<< 12-03-2015 >>

00:00:56*bcinman quit (Ping timeout: 246 seconds)
00:04:52*vendethiel joined #nim
00:07:53*fizzbooze quit (Ping timeout: 246 seconds)
00:08:44*bcinman joined #nim
00:09:07Araqreactormonk: btw this is wrong
00:09:15*mwbrown joined #nim
00:09:18Araqlib\pure\collections\sequtils.nim(328, 6) Waring: Special variable 'result' is shadowed. [ResultShadowed]
00:09:20*chrisheller quit (Remote host closed the connection)
00:09:32Araqyou need to check that 'result' is not gensym'ed
00:09:45reactormonkAraq, https://github.com/Araq/Nim/pull/2311
00:09:50Araqcause a gensymed result doesn't shadow anything really
00:10:35Araqyeah that's horrible, let's revert that
00:10:52Araqinjecting warning:off, what a strange solution
00:11:11*Aszarsha quit (Ping timeout: 250 seconds)
00:11:24Araqthat's what happens when you don't let me do code reviews
00:13:14reactormonkI found it strange, but a better solution didn't come to mind, so I brushed it off
00:15:13reactormonkgot me a sample file to test if my stuff works?
00:15:16reactormonkah right, sequtils
00:16:03Araqwell there is a reason my todo still contains
00:16:05Araq- 'result' shadowing warning
00:17:11reactormonkbtw, which one gensym? the shadowed one or the shadowing one?
00:17:40*lnr quit (Read error: Connection reset by peer)
00:18:37Araqwell the shadowed one is skResult, so the other one
00:18:45Araqthe shadowing one
00:19:50Araqugh I hate this pegs crap
00:20:06Araqso some codegen check doesn't trigger
00:20:29Araqnow find the bug in the "declarative" peg
00:21:38reactormonk- if shadowed.kind == skResult:
00:21:39reactormonk+ if shadowed.kind == skResult and sfGenSym notin v.flags:
00:21:41reactormonk^ good enough?
00:22:00reactormonkWhere can I find some code to check it?
00:23:24*a5i joined #nim
00:23:30Araqsequtils?
00:23:33*matkuki quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805])
00:23:42Araqlol maybe you should sleep :P
00:23:59reactormonknope, sequtils doesn't trigger it
00:24:12reactormonkasyncdispatch does
00:24:27Araqit surely triggers it when I bootstrap
00:24:51reactormonkah, but not when you compile it directly
00:25:00Araqpossible
00:25:27*^aurora^ quit (Quit: Leaving.)
00:26:28reactormonkok, my fix gets rid of the warnings from sequtils, but not the ones from asyncdispatach
00:27:34*vendethiel quit (Ping timeout: 256 seconds)
00:29:37*vendethiel joined #nim
00:29:56Araqtry v.flags * {sfGenSym, sfFromGeneric} == {} as the condition
00:30:14Araqbut I guess asyncdispatch really is dirty
00:30:16*filwit joined #nim
00:32:23*filwit quit (Remote host closed the connection)
00:32:44reactormonknope, no sfFromGeneric flag on it
00:32:53reactormonkaccording to echo(v.flags)
00:34:29*BlaXpirit_ quit (Quit: Quit Konversation)
00:35:52Araqwell dom96's macro shouldn't generate 'result' then
00:36:04Araqbut some other name
00:37:00reactormonkThe name is fitting though
00:38:59reactormonkwhy doesn't the macro-generated symbol ahve sfFromGeneric?
00:42:56reactormonkwell, it is shadowing result...
00:43:45*flaviu quit (Remote host closed the connection)
00:44:24*flaviu joined #nim
00:45:30*reem quit (Remote host closed the connection)
00:46:56Araqreactormonk: well it's not really from a generic when it comes from a macro
00:47:09AraqsfFromGeneric originally had some other purpose
00:47:35reactormonkHm. time for a new flag?
00:47:54reactormonkbut it's overwriting result after all
00:48:00Araqno, just grep for sfFromGeneric and make an analysis
00:48:11Araqwhat its semantics are :P
00:48:11*reem joined #nim
00:48:33reactormonksfFromGeneric, # symbol is instantiation of a generic; this is needed
00:50:47*Jehan_ quit (Quit: Leaving)
00:51:11*vendethiel quit (Ping timeout: 264 seconds)
00:58:03Araqgood night
01:00:00*flaviu quit (Remote host closed the connection)
01:01:52*flaviu joined #nim
01:11:41*vendethiel joined #nim
01:21:54*chrisheller joined #nim
01:31:04*brson quit (Quit: leaving)
01:31:32*brson joined #nim
01:35:17*ARCADIVS joined #nim
01:38:13*vendethiel quit (Ping timeout: 264 seconds)
01:39:01*girvo quit (Quit: Lost terminal)
01:43:13*TEttinger quit (Ping timeout: 244 seconds)
01:45:43*TEttinger joined #nim
01:47:12*jholland quit (Quit: Connection closed for inactivity)
02:00:15*saml_ joined #nim
02:00:41*darkf joined #nim
02:06:20*Demos joined #nim
02:10:45*Mimbus joined #nim
02:13:39*reem quit (Remote host closed the connection)
02:22:11*brson quit (Quit: leaving)
02:35:26*reem joined #nim
02:38:44*TEttinger quit (Ping timeout: 265 seconds)
02:40:37*Sembei quit (Read error: Connection reset by peer)
02:41:21*TEttinger joined #nim
02:44:37*Sembei joined #nim
02:48:52*kniteli quit (Ping timeout: 255 seconds)
02:57:53*akiradeveloper joined #nim
02:59:04akiradeveloperThis is my experimental code for recursive unwrapping of msgpack-nim https://gist.github.com/akiradeveloper/6ed7af50e129d4c7fdda but it doesn't compile. What can I do to compile this?
03:01:27akiradeveloperI added {.closure.} pragma to type Unwrapper but it doesn't still compile
03:01:37*ChrisMAN quit (Ping timeout: 264 seconds)
03:06:11*jefus quit (Ping timeout: 264 seconds)
03:10:00*enquora quit (Quit: enquora)
03:13:35*kniteli joined #nim
03:17:46*reem quit (Remote host closed the connection)
03:20:21*chrisheller quit (Remote host closed the connection)
03:33:30*kapil___ joined #nim
03:35:40*Sembei quit (Read error: Connection reset by peer)
03:36:33*chrisheller joined #nim
03:40:32*Sembei joined #nim
03:43:06*bcinman quit (Quit: Textual IRC Client: www.textualapp.com)
03:43:28*bcinman joined #nim
03:49:35*Demos_ joined #nim
03:53:17*Demos quit (Ping timeout: 246 seconds)
04:00:50*chrisheller quit (Remote host closed the connection)
04:00:52*Menche quit (Ping timeout: 240 seconds)
04:02:08*chrisheller joined #nim
04:07:51*mwbrown quit (Ping timeout: 252 seconds)
04:22:04*Demos joined #nim
04:24:15*chrisheller quit (Remote host closed the connection)
04:24:43*Demos_ quit (Ping timeout: 252 seconds)
04:35:09*chrisheller joined #nim
04:46:59*saml_ quit (Quit: Leaving)
05:05:51*vince- joined #nim
05:07:26*[exa]_ joined #nim
05:07:51*lnr joined #nim
05:08:48*keypusher joined #nim
05:09:20*Vinnie quit (Ping timeout: 245 seconds)
05:09:21*[exa] quit (Remote host closed the connection)
05:09:22*zama quit (Read error: Connection reset by peer)
05:09:25*dhasenan_ quit (Ping timeout: 240 seconds)
05:09:25*key_ quit (Remote host closed the connection)
05:09:37*zama_ joined #nim
05:10:36*dhasenan_ joined #nim
05:14:55*nimnoob123 quit (Quit: Page closed)
05:19:59*vendethiel joined #nim
05:21:20*Menche joined #nim
05:42:30*Demos quit (Read error: Connection reset by peer)
05:44:54*vendethiel quit (Ping timeout: 256 seconds)
06:23:24*vendethiel joined #nim
07:25:02*untitaker quit (Ping timeout: 246 seconds)
07:26:07*vendethiel quit (Ping timeout: 245 seconds)
07:29:13*kniteli quit (Ping timeout: 264 seconds)
07:30:58*untitaker joined #nim
07:34:32*vendethiel joined #nim
07:35:06*smodo joined #nim
07:37:00*epichero_ quit ()
07:37:19*epichero joined #nim
07:40:41*^aurora^ joined #nim
08:03:14*Menche quit (Quit: Leaving)
08:13:14*dumdum joined #nim
08:14:48*akiradeveloper quit (Quit: Page closed)
08:17:51*BlaXpirit joined #nim
08:18:34*vendethiel quit (Ping timeout: 245 seconds)
08:21:23*dhasenan quit (Ping timeout: 246 seconds)
08:26:21*dhasenan joined #nim
08:30:56*reem joined #nim
08:33:25*dumdum left #nim (#nim)
08:36:16*darkf quit (Read error: Connection reset by peer)
08:36:59*darkf joined #nim
08:37:28*Trustable joined #nim
08:40:10*Aszarsha joined #nim
08:41:06*^aurora^ quit (Quit: Leaving.)
08:44:09*vendethiel joined #nim
08:45:06*reem quit (Remote host closed the connection)
08:45:39*reem joined #nim
08:49:38*epichero quit ()
09:06:44*tumult joined #nim
09:08:22*vendethiel quit (Ping timeout: 240 seconds)
09:12:49*bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…)
09:24:42*xificurC joined #nim
09:26:20*reem quit (Remote host closed the connection)
09:27:08*zahary quit (Read error: Connection reset by peer)
09:27:30*zahary joined #nim
09:28:01*reem joined #nim
09:36:34*TEttinger quit (Ping timeout: 255 seconds)
09:38:57*vendethiel joined #nim
09:39:00*TEttinger joined #nim
10:02:11*vendethiel quit (Ping timeout: 246 seconds)
10:10:06*davidhq joined #nim
10:22:19*vendethiel joined #nim
10:27:35*reem quit (Remote host closed the connection)
10:32:16*Aszarsha quit (Ping timeout: 252 seconds)
10:45:09*chrisheller quit (Remote host closed the connection)
10:57:07*aleron joined #nim
10:59:01ekarlsohmm
10:59:04ekarlsohow to get a basename in nim ?
11:01:20fowlwhats a basename
11:01:37LoneTechekarlso: middle field from splitFile in os? http://nim-lang.org/os.html
11:02:04fowlsplitfile(f)[1]
11:02:18ekarlsothnx LoneTech :P
11:09:10ekarlsoadding sharing now to playsite
11:09:25ekarlsoanother idea if I get time sometime would be "live collaboration" on snippets
11:09:42ekarlsolike using multiple ace editor cursors to have multiple people at the same time doing stuff
11:12:47*vendethiel quit (Ping timeout: 264 seconds)
11:22:05*vendethiel joined #nim
11:26:10BlaXpiritthat would be too good
11:28:20ekarlsoBlaXpirit: should be possible :p
11:28:24ekarlsoace editor supports it :p
11:28:31bw_hmm, i can managed to find the shebang for compile on the fly
11:30:01ekarlsobw_: ? :p
11:30:58bw_like #!/bin/usr/nim c -r $0 or something like that, but maybe i'm mixing up things
11:39:52Trixar_za* /usr/bin
11:41:21bw_yeah, of course :)
11:45:40*chrisheller joined #nim
11:47:19*vendethiel quit (Ping timeout: 245 seconds)
11:50:14*chrisheller quit (Ping timeout: 252 seconds)
11:58:00*Aszarsha joined #nim
11:58:51*aleron quit (Quit: leaving)
12:09:31*chrisheller joined #nim
12:10:51*chrisheller quit (Remote host closed the connection)
12:17:50fowlekarlso, need a domain? im not using skeetskeetskeet.net
12:18:06ekarlsofowl: sorry ? :p
12:18:30fowlto point to the web repl
12:18:48ekarlsowebwhat ?
12:18:55fowlhttp://185.56.186.94/#/.
12:19:45*vendethiel joined #nim
12:20:09ekarlsofowl: dont see why I would need a seperate domain for that :p
12:23:46fowleasier to remember than an ip address
12:24:09fowlrecommend one of these http://lifehacker.com/the-best-free-alternatives-to-dyndns-1561556205
12:24:25def-fowl: maybe it can be play.nim-lang.org when it works properly
12:25:13ekarlsosome of that hinges on dom96 making exc handling working in jester :p
12:26:54fowlthat would be good
12:28:47fowlAraq is cleaning house today :D
12:37:23ekarlsohttp://nim-play.svcs.io < should become live soon
12:39:48*mwbrown joined #nim
12:40:14ekarlsothere we go
12:40:45fowloh cool
12:47:49*repax joined #nim
12:53:56Araqfowl: I wish people would implement all these pointless feature requests
12:54:10dom96ekarlso: what do you need exception handling for?
12:54:10Araqfeature request: make everyhing *perfect*.
12:54:32fowlAraq, the compiler is scary
12:54:50Araqfowl: most requests are about the tooling though
12:55:19ekarlsodom96: ... if there's a exception like InvalidRun it would be nice to be able to catch it top level vs pr route so that any exceptions are not HTML when going back...
12:55:59ekarlsodom96: client side tooling that reads json doesn't quite play well with html exceptions...
12:56:29dom96ekarlso: Sure, it would be nice, doesn't mean you can't get it working in a slightly more not nice way.
12:56:39dom96ekarlso: Client side tooling should check the content-type.
12:56:50dom96and the status code
12:57:03ekarlsodom96: uh, still defaulting to a 502 and html error isn't that good :p
12:57:12ekarlsonot to mention getting the "real" error message out from html is nasty
12:57:20fowlcant you wrap the parseJson part in try:except: ekarlso
12:57:30dom96ekarlso: That is meant as a debugging aid.
12:57:36dom96it disappears in release mode
12:57:41dom96you shouln
12:57:46dom96*shouldn't depend on it
12:57:55ekarlsodom96: what happens in release mode then ?
12:58:10dom96you don't get a traceback
12:58:22dom96you still get a 502 though
12:58:48ekarlsohmmms
12:59:00ekarlsodom96: still it would be a very nice addition to make api's with :)
12:59:03dom96would you prefer if your app crashed when one of your routes raises an exception?
12:59:49ekarlsodom96: nope :p
13:00:06dom96then you should be happy :P
13:00:35ekarlsodom96: pffft :p
13:00:55ekarlsodom96: how hard you think it would be to register like a pr route exception function or top level ?
13:04:04*Aszarsha quit (Ping timeout: 252 seconds)
13:04:23dom96it shouldn't be too har
13:04:24dom96d
13:05:31ekarlsowanna do it ? :D
13:05:54*vendethiel quit (Ping timeout: 252 seconds)
13:06:00fowlonionhammer, i'm trying to figure out a way to make test::notherName wrapped properly (so you invoke it like test.notherName instead of instance.notherName)
13:07:09fowli tried proc staticName(ty: typedesc[test]): int {.importcpp:"test::staticName".} but importcpp doesnt like that very much
13:08:24dom96ekarlso: There are far more important things I should implement in Jester, like caching.
13:11:22*chrisheller joined #nim
13:11:26ekarlsodom96: tsssk :(
13:15:39*chrisheller quit (Ping timeout: 252 seconds)
13:16:08*mwbrown quit (Ping timeout: 246 seconds)
13:18:45*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:19:01reactormonkAraq, gotta do less issue work, my laptop almost crashes when opening them all ^^
13:29:58*banister joined #nim
13:31:55*mpthrapp joined #nim
13:33:50*banister is now known as banisterfiend
13:42:40*ramnes left #nim (#nim)
13:42:57Araqfowl: use importcpp: "namespace::foo(@)" instead
13:43:03Araqso the compiler knows it's a pattern
13:43:25*vendethiel joined #nim
13:45:52*enquora joined #nim
13:46:13ekarlsoflaviu: the only crappy pattern with the mount stuff in playpen is that you need to have the same path's both in the chroot as you do in the host
13:46:41ekarlsoso if you do random tmp folder paths you would need to create the paths in advance in the chroot since you cant do something like -b <src>:<dst> :(
13:46:59ekarlsoany of you guys that know C well enough to make playpen support ^?
13:48:07fowlAraq, same error
13:49:22fowli made an issue for it #2324
13:49:31Araqfowl: ok
13:49:38*mpthrapp quit (Remote host closed the connection)
13:50:48*gokr quit (Quit: Leaving.)
13:53:01Araqfowl: well if you want to import a variable, use a variable?
13:53:27Araqbut ok, you want to attach it to the class I guess
13:53:58Araqso try proc somvar() {.importcpp: "class:somvar@".}
13:53:59fowlyea sort of a fake namespace
13:54:15Araqthe @ tell it's a pattern
13:54:19Araqbut the arguments are empty
13:54:22Araqcould work
13:54:57fowlsame error
13:55:04Araqwell yeah
13:55:13Araqtypedesc confuses the codegen
14:00:55*mpthrapp joined #nim
14:01:35onionhammerfowl hmm i thought i had static stuff working w/ typedesc
14:02:07onionhammerunless it stopped workin
14:02:18fowlonionhammer, static function works
14:02:24onionhammerah, but not fields?
14:02:32fowlright
14:02:35*[exa]_ is now known as [exa]
14:02:43*[exa] quit (Changing host)
14:02:43*[exa] joined #nim
14:02:50onionhammeryou shouldnt be accessing static fields anyway :P
14:03:13fowlthats an araq answer if i ever heard one :x
14:03:30*[exa] left #nim (#nim)
14:03:48fowlAraq, will try it in a minute, i messed up my local nim repo and cant fix it
14:04:29onionhammerhaha true
14:04:33onionhammeri felt like an araq when i said that
14:06:04onionhammerafk meeting
14:06:24*smodo quit (Ping timeout: 256 seconds)
14:07:50Araqwell unfortunately the answer "if it doesn't work it's your own fault" is only valid for C.
14:08:32fowlAraq, that causes this to be generated N_NIMCALL(NI, Foo::x@)(void);
14:08:47fowler let me try with a var
14:08:47Araqnodecl?
14:08:54Araq.nodecl?
14:09:27fowlvar foo_x {.importc:"Foo::x", nodecl.}: int works
14:10:04Araqflaviu: despair, I'm using md5 for some checksum again
14:10:27Araqand if the values are identical I assume everything is fine
14:12:52*gokr joined #nim
14:24:27*darkf quit (Quit: Leaving)
14:27:44*ChrisMAN joined #nim
14:31:37*vendethiel quit (Ping timeout: 264 seconds)
14:32:54*chrisheller joined #nim
14:34:13*chrisheller quit (Remote host closed the connection)
14:34:31OderWatis there anywhere a "black on white" nim crown logo available which is not just 16x16 ?
14:39:15fowlOderWat, maybe in nim-lang/assets
14:43:55OderWatOK got what I wanted. TY
14:48:46*chrisheller joined #nim
14:50:40*gokr1 joined #nim
14:51:28*pr3d4t0r left #nim ("WeeChat 0.3.7")
14:53:13*gokr quit (Ping timeout: 264 seconds)
14:54:30*jholland joined #nim
14:54:54*Trixar_za quit (Quit: ZNC - http://znc.in)
14:55:46AraqOderWat: still waiting for PRs of you that I can accept :P
14:56:34OderWatI just spent my night and day with installing GitLab .. but right now I look at that tuple thing
15:02:42*vendethiel joined #nim
15:03:52*pregressive joined #nim
15:04:16*gokr1 quit (Quit: Leaving.)
15:10:46*chrisheller quit (Remote host closed the connection)
15:18:53*kniteli joined #nim
15:34:45*chrisheller joined #nim
15:36:40ekarlsohow should a playpen sharing function work ?
15:38:12Araqekarlso: it should work well.
15:38:29Araqsorry, couldn't resist
15:42:01ekarlsoAraq: ....
15:42:44*icebattle joined #nim
15:46:10*Menche joined #nim
15:54:21*gokr joined #nim
15:54:27*vezzy joined #nim
15:54:47*quasinoxen quit (Ping timeout: 265 seconds)
15:58:02reactormonkok, bye bye nim serve
15:58:43ekarlsonim serve ?
15:59:31ekarlsowhat's that reactormonk ? :p
15:59:53reactormonkekarlso, https://github.com/Araq/Nim/commit/dfc48e76f7bc03f199730ed9a4c8984d5749f602
16:01:35def-ekarlso: wouldn't it be more important that the entire thing doesn't hang when someone makes a while loop?
16:01:45ekarlsodef-: shouldnt hang atm :/
16:02:00def-ekarlso: go on nim-lang play and try "echo \"hi\""
16:02:37ekarlsomeh
16:02:40ekarlsoapparantly it does hang..
16:02:45ekarlsoI thought hte asyncproc fixed it :(
16:03:31Araqekarlso: you can even hack this thing together with the old school cgi protocol
16:03:46Araqmore than 1 user at a time is a solved problem
16:04:37ekarlsoAraq: still I wonder why it borks..
16:10:42ekarlsoother stupid thing is that timeout doesn't seem to be working..
16:11:20ekarlsowhat you meant by cgi protocol Araq ?
16:13:00def-http://nim-lang.org/cgi.html
16:13:33ekarlsomeh
16:14:35*brson joined #nim
16:14:50*ARCADIVS quit (Quit: ARCADIVS)
16:17:37ekarlsohow would you avoid that then ?
16:20:15Araqekarlso: juse use a server that can handle cgi
16:20:18Araq*just
16:25:35dom96in what situation does it hang?
16:29:03def-dom96: if another user does a while-true loop, then no output is returned for any other user
16:29:41dom96that should work with async
16:30:00dom96perhaps ekarlso is using 'await' when he shouldn't be.
16:30:58def-ah, it only happens when the while-true-loop echos something constantly
16:31:13def-so it's probably reading from that process all the time
16:31:23def-I just did 'while true: echo "hi"'
16:37:56ekarlsocare to take a look dom96 ?
16:37:58ekarlso:p
16:38:05*johnsoft quit (Ping timeout: 244 seconds)
16:38:16dom96https://github.com/ekarlso/nim-playpen/blob/master/src/nim_playpen.nim#L53
16:38:39dom96probably shouldn't be using await there
16:38:41*johnsoft joined #nim
16:38:52dom96although hrm
16:39:20dom96nvm what I said
16:40:19dom96definitely should only do this once: https://github.com/ekarlso/nim-playpen/blob/master/src/private/run.nim#L169
16:40:33dom96surprised that doesn't crash in fact
16:41:52dom96https://github.com/ekarlso/nim-playpen/blob/master/src/private/asyncproc.nim#L115
16:42:00dom96Change this into a for i in 0..10:
16:42:40dom96or remove the while loop altogether
16:46:09ldleworkAny exiciting Nim news?
16:49:30*icebattle quit (Quit: leaving)
16:52:15fowlldlework, macros.getType(), do you know about it?
16:52:23ldleworknope
16:52:51fowlit retrieves type info from a symbol
16:53:44fowlpretty awesome, i use it here for curry() and an `==` for objects that handles variant types https://gist.github.com/fowlmouth/9b9010397ad5fe4b9872
16:54:18ldleworkfowl: have you been doing any game programming?
16:54:57fowlplaying with urho3d a bit but nothing serious
16:56:25*tacone joined #nim
16:56:57taconehello :)
16:57:01ldleworkfowl: have you played Cataclysm DDA?
16:57:15fowlhi tacone
16:57:18fowlno ldlework
16:57:23ldleworkhrm
16:57:29*wb joined #nim
16:58:36taconeI've compiled Aporia. It's very nice and feels just right. I can't get the auto-suggestion and "compile" working though. Any pointers?
16:59:02*vendethiel quit (Ping timeout: 245 seconds)
16:59:48ldleworktacone: I think those are known to be broken
16:59:49taconewhen I try to compile it says "Unable to determine what action to take for nim"
17:00:00taconeah ok
17:00:31*bcinman joined #nim
17:00:36taconefine then, no more time wasted trying to make them work then, I suppose :)
17:00:46def-and there is work in progress in the new-suggest branch of Aporia
17:00:56*vendethiel joined #nim
17:01:20taconethank you def- i'll take a look to the branches then
17:01:52*repax quit (Ping timeout: 240 seconds)
17:03:28*tumult quit (Ping timeout: 246 seconds)
17:11:15ekarlsodom96: would there be a way to kill a process btw if say output reaches x lines ?
17:14:59dom96ekarlso: yeah, you just need to create a proc in asyncproc which sends the KillProcess command on the commandChan.
17:22:29*UberLambda joined #nim
17:24:04*vendethiel quit (Ping timeout: 244 seconds)
17:26:40*smodo joined #nim
17:31:53ekarlsodom96: but comamndchan then how does it know the pid or smth?
17:33:48dom96hrm, there is a bigger problem I only realised now.
17:33:59dom96asyncproc can only run one process at a time.
17:34:04ekarlso:p
17:34:18ekarlsohard to get fixed ? :P
17:35:00dom96yeah..
17:35:09ekarlsocrap :(
17:36:29ekarlsodom96: how would one go about to fix it ?
17:40:13*vendethiel joined #nim
17:40:39dom96I guess you would need a thread for each process
17:40:56dom96which means you would need 2 channels for each process
17:41:09dom96because reading from a process' output stream can block
17:41:59ekarlsodom96: so what, a threadpool ish then or ?
17:42:24dom96I think so
17:46:14*^aurora^ joined #nim
17:47:21ekarlsodom96: wanna give it a go ? :p
17:50:14*Demon_Fox joined #nim
17:53:12dom96i guess...
17:55:29*EXetoC joined #nim
18:03:01*alexruf joined #nim
18:05:18ekarlsodom96: ping when u got something :p
18:08:14ldleworkhmm problems with nimble, https://gist.github.com/dustinlacewell/09643fc4b361475cc9a1
18:08:55fowltry nimble#head
18:09:37fowlnm i thought that error looked familiar, it doesnt
18:10:30dom96def-: seems your PR breaks asyncdispatch: https://gist.github.com/dom96/b5bc4cc9aff279e54c51
18:11:03dom96ldlework: ping github.com?
18:11:28ldleworkdom96: I can get there fine
18:13:28*alexruf quit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:13:52dom96def-: oh. I guess I need to bootstrap
18:23:06dom96ekarlso: https://gist.github.com/dom96/add4434a23ad3cb5b451
18:23:16dom96no idea if it will work
18:23:17dom96:P
18:23:35dom96and yes, it's not the best solution
18:26:30*npnerd joined #nim
18:26:38*npnerd left #nim ("Textual IRC Client: www.textualapp.com")
18:26:40*npnerd joined #nim
18:26:44*npnerd left #nim ("Textual IRC Client: www.textualapp.com")
18:26:50*banisterfiend quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:26:52*vendethiel quit (Ping timeout: 240 seconds)
18:28:17ldleworknimble just seems totally broken for me :(
18:28:24ldleworkI've updated nim and nimble so I dunno what's wrong here
18:28:30*chrisheller quit (Remote host closed the connection)
18:28:40ldleworkdifferent erro, https://gist.github.com/dustinlacewell/367ccfcdbfe416f2cbcf
18:29:44*chrisheller joined #nim
18:32:59ldleworkshould I like... just delete everything and reclone from scratch?
18:33:28ldleworkhmm deleting ~/.nimble seems to have worked
18:33:41*bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:34:20*bcinman joined #nim
18:36:30*Matthias247 joined #nim
18:38:10*Matthias247 quit (Read error: Connection reset by peer)
18:38:35*tacone quit (Quit: Page closed)
18:39:54*Matthias247 joined #nim
18:42:02def-Araq: you're aware that a few parallel tests fail now?
18:43:27*Matthias247 quit (Read error: Connection reset by peer)
18:44:16*mwbrown joined #nim
18:44:54*Matthias247 joined #nim
18:45:15*Matthias247 quit (Read error: Connection reset by peer)
18:48:52*Matthias247 joined #nim
18:49:09*vendethiel joined #nim
18:49:50*fizzbooze joined #nim
18:53:12*alexruf joined #nim
19:01:21*^aurora^ quit (Quit: Leaving.)
19:01:35*banister joined #nim
19:01:57*nastavnic joined #nim
19:10:24*Trixar_za joined #nim
19:11:41fowlBlaXpirit, did you know csfml 2.2 is released?
19:14:25*nastavnic quit (Quit: WeeChat 1.1.1)
19:17:46*nastavnic joined #nim
19:18:33*Trixar_za quit (Remote host closed the connection)
19:19:08ldleworkhow do you install a specific version of a package with Nimble?
19:19:27ldleworkfowl: it looks like nim-csfml has a 2.2.0 version
19:20:02*Trixar_za joined #nim
19:21:51ldleworkI can't seem to do 'nimble install csfml@#v2.1.3
19:22:28ldleworkoh I see
19:22:51fowlhowd you get it working
19:23:19def-ldlework: works for me, you can try "csfml@#v2.1.3"
19:23:24ldleworkyeah that's what I did
19:23:28ldleworkI was typing search instead of install
19:23:38ldleworkso when I try to compile examples from csfml I get, could not load: libcsfml-graphics.so
19:23:53ldleworkoh I'm dumb
19:24:03ldleworkwait no
19:24:07def-ldlework: csfml and sfml need to be installed, and both in the same version
19:24:23ldleworkdef-: yeah I've cloned both, checked both out to 2.1, make and make install them both
19:24:41def-ldlework: i always had trouble installing them from source
19:24:50ldlework/home/dlacewell/dev/libs/CSFML-2.1/lib/libcsfml-graphics.so
19:25:05def-maybe they're not in the LD_LIBRARY_PATH?
19:25:28ldlework/usr/local/lib/libcsfml-graphics-d.so
19:25:31ldleworkwtf is -d
19:25:32ldleworkoh debug
19:25:34ldleworkI see
19:25:42fowlldlework, just copy them to /usr/lib
19:25:56fowli doubt ld_library_path has /usr/local/lib in it
19:35:02ldleworkhttps://gist.github.com/dustinlacewell/77a48536a64faa1114b6
19:35:10Araqdef-: no, these work for me, but I can check them later on linux
19:35:25def-Araq: really doesn't look linux specific
19:35:59def-tests/parallel/tconvexhull.nim(55, 9) Error: (k)..(k) not disjoint from (k)..(k)
19:36:23BlaXpiritfowl, thanks, so i just switched default branch on github
19:36:44ldleworkBlaXpirit: any idea why I'm getting the error I just gisted?
19:37:05Araqdef-: ugh ... yeah you're right ...
19:37:08BlaXpirito_O
19:37:18Araqwas too late yesterday night ... fuck
19:39:46Araqno wait
19:39:58Araqthat could also be my countup iterator changes
19:41:20*nastavni1 joined #nim
19:41:47*nastavnic quit (Ping timeout: 246 seconds)
19:41:53def-Araq: but good job with all the issues today
19:42:41Araqah yeah
19:42:53Araqdisjoint checking cannot deal with the new countup iterators
19:42:59emilspNOOOOOOO
19:43:02Araqwhen I revert that, they are all green again
19:43:40def-Araq: we couldn't use gotos instead to do the countup iterators?
19:44:33Araqdef-: I used the implementation that I know has no size/speed regressions
19:45:14*epichero joined #nim
19:48:52*Jehan_ joined #nim
19:50:04def-Araq: so the disjoint checker can be fixed to work again with the new countup/down?
19:52:04*fizzbooze quit (Ping timeout: 256 seconds)
19:52:45Araqdef-: sure, I think it only needs to skip the nkConv nodes at strategic places
19:54:09def-alright, great
20:07:41*bcinman quit (Ping timeout: 246 seconds)
20:11:12*bcinman joined #nim
20:13:57*Trustable quit (Remote host closed the connection)
20:23:03*fizzbooze joined #nim
20:36:50*nastavni1 quit (Quit: WeeChat 1.1.1)
20:49:13*banister quit (Quit: Textual IRC Client: www.textualapp.com)
20:49:29*banister joined #nim
20:49:34*banister quit (Max SendQ exceeded)
20:57:00*reem joined #nim
20:58:03*banister joined #nim
21:05:24*reem quit (Remote host closed the connection)
21:06:30*mpthrapp quit (Remote host closed the connection)
21:08:42*smodo quit (Read error: Connection reset by peer)
21:10:59ekarlsodom96: you know what a fix would be for the play stuff ?
21:11:01ekarlso:p
21:16:59VarriountBlaXpirit: I resent your allegation that I don't know Python string internals.
21:17:20*reem joined #nim
21:18:07EXetoCgot a realistic ETA? :-)
21:18:07*tacone joined #nim
21:18:37VarriountCPython versions before 3.3 did use 16 or 32 bit arrays for string data storage. Versions 3.3+ use 8, 16, or 32 bit arrays, depending on the size of the largest code point
21:18:42taconehello :) is there any way to download the documentation as a zip?
21:19:31tacone(or how to build it for offline reading?)
21:22:09Varriounttacone: The documentation can be built.
21:22:28VarriountI believe the compiler documentation points out how to do so.
21:22:50taconethank you!
21:25:35taconemh, can't seem to find anything useful
21:26:27taconei can't even find the repository containing the doc sources
21:29:22*fizzbooze quit (Ping timeout: 255 seconds)
21:33:42*UberLambda quit (Quit: Leaving the Matrix)
21:37:24Araqtacone: http://nim-lang.org/download/docs-0.10.2.zip
21:38:01*ehaliewicz joined #nim
21:38:17*alexruf quit (Quit: My Mac has gone to sleep. ZZZzzz…)
21:41:04*BlaXpirit_ joined #nim
21:41:42flaviuAraq: md5 is fine, as long as you're not basing the security of the compiler on it.
21:42:01flaviuusing a CRC as a checksum however...
21:43:04Araqflaviu: a CRC is a tried and proven solution.
21:43:57*BlaXpirit quit (Ping timeout: 244 seconds)
21:44:21flaviuekarlso: I don't see where the problem is. let path = "..."; discard "bind the path here"; "playpen ... sh " + path
21:44:55taconeAraq: thank you!
21:45:07flaviuConcatenation like that is fine, since you control the random dir generation. s/+ path/& path & "run.sh"/
21:45:37Araqtacone: 0.10.2 is quite outdated though.
21:46:17taconedoesn't matter, I'm just starting, it'll be enough for now
21:50:18*fizzbooze joined #nim
21:55:54flaviuAraq: I hope you're joking about that.
21:55:59flaviure "ekarlso: I don't see where the problem is. "
21:56:01flaviuoops
21:56:07flaviure "a CRC is a tried and proven solution"
21:57:14Araqlol, I'm just making fun of "software engineering" ;-)
21:59:23*reem quit (Remote host closed the connection)
21:59:59*chrisheller quit (Ping timeout: 252 seconds)
22:02:11*chrisheller joined #nim
22:09:49*fizzbooze quit (Ping timeout: 250 seconds)
22:10:12*reem joined #nim
22:10:31*chrisheller quit (Remote host closed the connection)
22:11:21*fizzbooze joined #nim
22:11:37*xificurC quit (Ping timeout: 256 seconds)
22:12:55*reem quit (Remote host closed the connection)
22:14:49Jehan_I'm a bit lost, I'm afraid ...
22:21:20ekarlsoflaviu: yeah I got that fixed..
22:21:45ekarlsoflaviu: another problem that came up was that asyncproc just supported one proc at a time since it only had 1 thread
22:21:50*^aurora^ joined #nim
22:22:02*ehaliewicz quit (Quit: ERC Version 5.3 (IRC client for Emacs))
22:27:08ekarlsoone process that is
22:27:26ekarlsoflaviu: https://github.com/ekarlso/nim-playpen/commit/3fce5bbc24ae7310550e7df5fc9fcc45ff5d657d
22:30:58*reem joined #nim
22:33:42flaviuekarlso: Looks good. UUID is a bit overkill, but that doesn't really matter.
22:33:56flaviuAraq's suggestion of CGI is a good idea btw.
22:36:23BlaXpirit_is CGI ever a good idea?
22:36:28BlaXpirit_what's going on here
22:36:47flaviuYes. It's incredibly simple, so it's easy to develop for.
22:37:13Araqit also kinda fits the problem
22:37:25Araqhe has to start a fresh process for a request anyway
22:38:38*pregressive quit (Remote host closed the connection)
22:38:51*pregressive joined #nim
22:38:55*reem quit (Remote host closed the connection)
22:39:00*pregressive quit (Client Quit)
22:40:03flaviuWell, it's 3 processes at this point
22:40:09flaviu4 actually
22:41:50*chrisheller joined #nim
22:45:03*epichero quit ()
22:45:30*reem joined #nim
22:47:14*reem quit (Remote host closed the connection)
22:54:10*tacone quit (Ping timeout: 246 seconds)
22:55:30dom96ekarlso: Have you tried the asyncproc I gave you?
22:56:02*chrisheller quit (Remote host closed the connection)
22:56:07*reem joined #nim
22:57:38*OderWat quit (Quit: Textual IRC Client: www.textualapp.com)
22:58:11*OderWat joined #nim
22:58:23*reem quit (Remote host closed the connection)
22:58:46*rzzz joined #nim
23:01:30*reem joined #nim
23:07:23*reem quit (Remote host closed the connection)
23:08:46*filwit joined #nim
23:09:44*reem joined #nim
23:10:46*reem quit (Remote host closed the connection)
23:15:06Araqhey filwit, how's that forum work coming along?
23:15:10*Jehan_ quit (Quit: Leaving)
23:17:35filwiti was trying to separate and unify all the CSS before, but it wasn't going well (trying to share a single CSS file between the web and forum isn't worth it if they're in separate repos really). So I scrapped that (got distracted with Aporia) and haven't really worked on making the simple changes to the forums yet (there's only a few places that need to be fixed).
23:17:59filwiti'll try to get some things done on it tonight though
23:21:48*reem joined #nim
23:22:37*fizzbooze quit (Ping timeout: 264 seconds)
23:23:40OderWat<- is so happy... just created a wxWidgets Window with Nim :)
23:25:00AraqOderWat: use /me :-)
23:25:16Araqso .. you wrapped wxWidgets?
23:25:18OderWatI won't use you :)
23:25:24*reem quit (Remote host closed the connection)
23:25:54OderWatI am fooling around with the wxc lib which comes originally from haskell but is used for D and Rust too.
23:26:12Araqoh yeah that thing
23:26:14OderWatAnd I would not say that I wrapped it (yet). It's all handcoded
23:26:28Araqjust c2nim wxc
23:26:32OderWatmost types are "pointer" :)
23:27:45Araqurho also comes with a widget set
23:27:48OderWatwxWidgets is C++ so it is probably a worthy target for later but I guess its "over the top" for me to get that beast running fighting with c++ / wxwidgets and the compiler
23:28:04OderWatI need native widgets on mac and windows
23:28:22AraqI see
23:29:27OderWatI used a lot wxPython in the past .. to an extend that their tools where tested with my application definitions. pretty complex apps.
23:29:37BlaXpirit_D:
23:30:12*reem joined #nim
23:30:39OderWatThe cool thing is.. it runs on win95, xp, and now on windows 8.1 acer tables with toughscreens .. software was made 10 years ago
23:30:52OderWattoughscreens :)
23:30:57BlaXpirit_:p
23:30:59OderWati should go to sleep
23:31:04BlaXpirit_i may be helpful in wrapping wxwidgets depending on circumstances
23:31:17BlaXpirit_maybe let's talk tomorrow, OderWat
23:31:26OderWatWell actually I was thinking about sponsoring that with $$$
23:31:40BlaXpirit_why does it need $$
23:31:59OderWatbecause it needs work and I usually work for money :)
23:32:06BlaXpirit_all i can do is look if it's possible to make an automatic wrapper
23:32:06fowlI want to write something like AbsTK, does anybody want to do the curses portion of it :D
23:32:15BlaXpirit_not gonna do manual wrapping for sure
23:32:41fowlhttp://www.gobolinux.org/abstk/
23:34:16OderWatWell it needs to work. I am not sure if that can be wrapped automagically... I doubt it and if.. one needs to compile everything in c++ but I guess Nim got a lot better about that :)
23:37:48*gmpreussner|work joined #nim
23:38:37AraqOderWat: I still have an old wrapper for wxWidgets 2.8 or maybe 2.6
23:38:56Araqbut it's better to start from scratch I think
23:39:07OderWatWas that c++ ?
23:40:10Araqwxc
23:41:21OderWatI guess that would spoil my fun :)
23:41:51Araqdo yourself a favor and learn how to use c2nim for that
23:42:47AraqI know, I know, it doesn't work, blablabla. worked for me to translate 250 header files of C++ code though
23:43:31BlaXpirit_you made it, you understand it, you can make it work for you
23:43:34OderWatI may look at it if I understand how I do it by hand
23:43:49*chrisheller joined #nim
23:45:32AraqBlaXpirit_: nevertheless it can be learned and saves a ton of work once learned.
23:45:47BlaXpirit_in some cases
23:46:13BlaXpirit_probably most cases, gotta admit
23:48:09OderWatWell I bet you know that talk but you are working in and with nim for 7? years. Me since 7 weeks. Its the same with people working for me with code I developed in the last 10 years. They could do everything better... but in reality stuff is complicated.
23:49:52Araqwell of course, but you can also use c2nim to learn how to wrap manually
23:51:50OderWatATM it is not about wrapping but about getting "the system running". Doing the right initialisation, creating the right data
23:54:35*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:57:57dom96Any ideas how big wxwidgets is in comparison to GTK?
23:58:32Araqdom96: it's smaller. much smaller iirc.
23:58:46Araqperhaps ~6000 lines in Nim
23:59:12dom96ooh. Sounds like a fun way to play around with Nim's new C++ support.