<< 06-07-2015 >>

00:01:34EXetoCthere we go
00:02:08reactormonkdom96, I'm gonna do it if it isn't slower, currently creating benchmarks
00:02:30Araqreactormonk: it doesn't matter if it's slower or faster
00:02:41Araqit's not how the rest of the API works
00:02:41EXetoCbut I was trying to have it complete all the tasks at which point it would just exit the program by getting to the last statement. is that possible?
00:02:51reactormonkAraq, don't worry, I wont' change the API
00:10:26*pregressive quit (Ping timeout: 256 seconds)
00:11:33*pregressive joined #nim
00:14:49*Pisuke quit (Ping timeout: 246 seconds)
00:17:34*pregress_ joined #nim
00:17:52*pregressive quit (Read error: Connection reset by peer)
00:19:52EXetoCI should have just used Future[void] there I think
00:24:54*dalarmmst quit (Ping timeout: 276 seconds)
00:26:09*themagician joined #nim
00:27:45*Pisuke joined #nim
00:27:58*themagician_d quit (Ping timeout: 264 seconds)
00:28:19EXetoCworking on a novel mongo driver *again*. it's just so much more fun
00:32:23*vendethiel quit (Ping timeout: 256 seconds)
00:36:29*thales joined #nim
00:36:53*thales is now known as Guest72256
00:37:35*X67r quit (Quit: leaving)
00:40:55*pregressive joined #nim
00:41:12*pregress_ quit (Read error: Connection reset by peer)
00:45:59*jaco60 quit (Ping timeout: 256 seconds)
00:47:07*vendethiel joined #nim
00:47:15*Varriount|Phone quit (Read error: Connection reset by peer)
00:48:08*Varriount|Phone joined #nim
00:53:01*wu-lee quit (Ping timeout: 246 seconds)
00:57:55*no_name quit (Remote host closed the connection)
00:57:55*devzerp quit (Remote host closed the connection)
00:59:09*devzerp joined #nim
00:59:11*no_name joined #nim
01:04:03*ozra quit (Ping timeout: 246 seconds)
01:05:32*wu-lee joined #nim
01:05:52*pregress_ joined #nim
01:06:15*pregressive quit (Read error: Connection reset by peer)
01:07:22*apense_ joined #nim
01:07:56*kashyap_ quit (Ping timeout: 246 seconds)
01:09:30*apense quit (Ping timeout: 244 seconds)
01:10:00*JohnS_ quit (Ping timeout: 246 seconds)
01:13:43*wu-lee quit (Ping timeout: 265 seconds)
01:14:17*gyeates joined #nim
01:15:06*Varriount|Phone quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
01:15:54reactormonkWhat to use for benchmarking?
01:16:43reactormonkwell, there's tests/benchmarks/
01:19:55def-reactormonk: maybe this and the links at the bottom: https://github.com/def-/nim-benchmarksgame
01:22:56reactormonkdef-, I wanna test my table fetchers, but I'm not sure how to do it in such a manner that the compiler doesn't simply make it a const
01:23:25reactormonklet's see if volatile works
01:25:46*wu-lee joined #nim
01:27:19*gyeates quit (Ping timeout: 246 seconds)
01:29:43*vendethiel quit (Ping timeout: 252 seconds)
01:31:24*gyeates joined #nim
01:32:12reactormonkhow exactly does var work in the type system? In proc[T](a: T): T = a, can T be var? In proc[T](a: seq[T]): seq[T] = a, can T be var?
01:36:25reactormonkI'm currently wondering why https://gist.github.com/5bf2048f53240e0a1d3e won't compile with Error: type mismatch: got (Option[system.int]) but expected 'int'
01:39:23*vendethiel joined #nim
01:42:57*tennix joined #nim
01:43:32*Guest72256 quit (Quit: Leaving)
02:03:22*vendethiel quit (Ping timeout: 264 seconds)
02:04:34*vendethiel joined #nim
02:18:21*gyeates quit (Ping timeout: 256 seconds)
02:27:37*vasher_ joined #nim
02:34:15*gyeates joined #nim
02:51:07*vendethiel quit (Ping timeout: 252 seconds)
02:58:43*darkf joined #nim
02:59:48*vendethiel joined #nim
03:10:41*pregress_ quit (Ping timeout: 265 seconds)
03:23:00*vendethiel quit (Ping timeout: 276 seconds)
03:23:26*BitPuffin|osx quit (Ping timeout: 248 seconds)
03:26:55*elbow joined #nim
03:28:30Varriountreactormonk: Sounds like the manual needs an 'about var types' section. :3
03:30:22*gyeates quit (Ping timeout: 264 seconds)
03:32:33*vendethiel joined #nim
03:38:47*johnsoft quit (Ping timeout: 252 seconds)
03:41:29VarriountIs it possible to try/catch an exception thrown from an iterator in a for loop, and still continue the iterator?
03:44:17*gyeates joined #nim
03:46:17fowlI doubt it
03:46:52fowlfor x in iter(): <-- where can you specify except: here
03:52:25*infinity0 quit (Remote host closed the connection)
03:56:06*jimmiejohnson48 joined #nim
03:56:43*jimmiejohnson48 quit (Client Quit)
04:22:15*dalarmmst joined #nim
04:26:36*pregressive joined #nim
04:38:48*vasher_ quit (Quit: Connection closed for inactivity)
04:41:09*pregressive quit (Remote host closed the connection)
04:43:41*yuan joined #nim
04:46:36*yuan quit (Client Quit)
04:47:12*vendethiel quit (Ping timeout: 255 seconds)
04:53:29*tennix quit (Remote host closed the connection)
05:07:31fowlcool https://github.com/andreaferretti/patty
05:13:42reactormonkfowl, that's some next level awesome
05:14:35reactormonkeven the define statment for the debug code ^^
05:31:37*FedeOmoto quit (Quit: Leaving)
05:35:22reactormonkok, first try with macros: segfault.
05:44:41reactormonkhttps://gist.github.com/59b23beaf9f9468586dc <- could someone help me out with macros?
05:47:42reactormonkAh fuck it, I'll try the forums
05:48:45reactormonkO.o there isn't even an emacs mode for restructured text
05:50:16reactormonkThere's apparently rst-mode, but no package, eh.
05:51:01reactormonkoh, it's integrated. oops.
05:52:38dtscodepatty seems awesome
05:53:10reactormonkdtscode, yeah, currently working on a patch to use pure enums instead of suffixes, let's see if I get anywhere
05:57:37*darithorn joined #nim
05:58:11*zaquest joined #nim
06:07:32*johnsoft joined #nim
06:21:16*johnsoft quit (Ping timeout: 246 seconds)
06:21:53*johnsoft joined #nim
06:30:22*Kingsquee quit (Ping timeout: 246 seconds)
06:30:23*johnsoft quit (Ping timeout: 252 seconds)
06:31:18*johnsoft joined #nim
06:35:37*apense_ quit (Ping timeout: 246 seconds)
06:40:43*gyeates quit (Ping timeout: 256 seconds)
06:41:43*pregressive joined #nim
06:44:31*Trustable joined #nim
06:46:34*pregressive quit (Ping timeout: 264 seconds)
06:53:37*cornusammonis joined #nim
06:56:11*infinity0 joined #nim
06:57:09*cornus_ammonis quit (Ping timeout: 256 seconds)
07:14:25*jszymanski joined #nim
07:18:43*bjz joined #nim
07:19:29*bjz quit (Client Quit)
07:19:59*bjz joined #nim
07:21:04*bjz quit (Client Quit)
07:30:35*bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…)
07:34:19EXetoCnim is rad
07:34:25EXetoCpeas out
07:40:08*EXetoC quit (Ping timeout: 250 seconds)
07:41:42*Kingsquee joined #nim
07:58:51*bjz joined #nim
07:59:13*jaco60 joined #nim
08:01:43*yglukhov_ joined #nim
08:01:55*yglukhov_ quit (Client Quit)
08:04:45*coffeepot joined #nim
08:08:22*jaco60 quit (Ping timeout: 246 seconds)
08:09:45*yglukhov joined #nim
08:18:47*gokr joined #nim
08:32:50*vendethiel joined #nim
08:36:24*johnsoft quit (Ping timeout: 264 seconds)
08:36:38*johnsoft joined #nim
08:54:58*jszymanski quit (Ping timeout: 264 seconds)
08:56:39*jszymanski joined #nim
09:27:09*milosn quit (Quit: leaving)
09:34:06*xet7 quit (Ping timeout: 250 seconds)
09:36:58*infinity0 quit (Remote host closed the connection)
09:39:13*infinity0 joined #nim
09:49:03*xet7 joined #nim
10:06:28*magistr joined #nim
10:09:33*arnetheduck joined #nim
10:14:11gokrHey guys
10:14:49fowlSup goku
10:15:04gokrLast 2-3 days of work before... vacation :)
10:15:22gokrMy Ni is completely messed up :)
10:15:49gokrMessed with it last night, but... I think its going toward a "good place"
10:16:48gokrNot sure if I mentioned it - but I added the ability for functions (and prims) to decide if the argument is meant to be evaluated before being passed - or not.
10:17:43gokrIt really messed up the code ;)
10:20:01fowlHow
10:21:53gokrWell... hard to explain.
10:22:33gokrI have most of the tests green again, but I think my semantics aren't fully well defined.
10:22:52gokrI need to think it through.
10:30:42def-Saw a russian nim article today: http://habrahabr.ru/post/261801/
10:31:22Araqer why can a banned user still post?
10:36:26*ozra joined #nim
10:43:15*pregressive joined #nim
10:48:06*pregressive quit (Ping timeout: 255 seconds)
10:54:39*vasher_ joined #nim
11:07:38*Jesin quit (Quit: Leaving)
11:17:37*pipeep quit (Remote host closed the connection)
11:21:47*thales joined #nim
11:22:11*thales is now known as Guest67556
11:22:55*boopsies quit (Ping timeout: 256 seconds)
11:26:53*johnsoft quit (Ping timeout: 256 seconds)
11:27:27*johnsoft joined #nim
11:28:13*maxvi joined #nim
11:28:36maxvihi everybody! has Nim lib to work with websockets ?
11:29:49*aziz joined #nim
11:32:41Araqmaxvi: onionhammer1 has a websockets library on github, I don't think it's in Nimble yet ... :-/
11:32:51def-maxvi: this looks like the best shot: https://github.com/onionhammer/onion-nimrod/tree/master/websockets
11:36:36*boopsies joined #nim
11:36:54*maxvi left #nim ("ERC Version 5.3 (IRC client for Emacs)")
11:43:26*EXetoC joined #nim
11:51:17*Nairobi9_ joined #nim
11:54:30*Nairobi9_ quit (Client Quit)
12:01:31*jszymanski quit (Ping timeout: 246 seconds)
12:06:43*johnsoft quit (Ping timeout: 246 seconds)
12:06:55*johnsoft joined #nim
12:21:22*NhanH quit ()
12:21:32*NhanH joined #nim
12:35:04*pmbauer quit ()
12:35:23*pmbauer joined #nim
12:45:45*BitPuffin joined #nim
12:46:36*xet7 quit (Quit: Leaving)
12:49:35*ChrisMAN quit (Ping timeout: 244 seconds)
13:02:54*aziz quit (Remote host closed the connection)
13:09:38*n1ftyn8_ quit ()
13:09:53*n1ftyn8_ joined #nim
13:11:53*milosn joined #nim
13:21:06*pregressive joined #nim
13:23:43*endou___________ quit ()
13:23:56*endou___________ joined #nim
13:25:51*Demos joined #nim
13:27:06*ChrisMAN joined #nim
13:36:32*FedeOmoto joined #nim
13:38:37*yglukhov quit (Quit: Be back later ...)
13:40:34*yglukhov joined #nim
13:45:00*yglukhov quit (Ping timeout: 250 seconds)
13:50:02*bcinman joined #nim
13:52:54*gmpreussner|work joined #nim
14:01:01*Arrrr joined #nim
14:01:23*jubalh joined #nim
14:23:06*saml joined #nim
14:25:35*gyeates joined #nim
14:26:04*jubalh quit (Quit: Leaving)
14:26:22*jubalh joined #nim
14:39:11*elbow quit (Remote host closed the connection)
14:46:51*xcombelle joined #nim
14:59:49*CARAM__ quit ()
15:00:02*CARAM__ joined #nim
15:02:18*jszymanski joined #nim
15:04:36*gyeates quit (Ping timeout: 255 seconds)
15:08:07*Demos quit (Read error: Connection reset by peer)
15:08:43*Demos joined #nim
15:21:48*gyeates joined #nim
15:25:33*Nairobi911 joined #nim
15:27:25*Nairobi911 quit (Client Quit)
15:40:01*def- quit (Ping timeout: 252 seconds)
15:40:17EXetoCdom96: do you think it would be useful to have optional timeouts for the socket routines in asyncdispatch?
15:40:33*jaco60 joined #nim
15:45:51EXetoCshould I just use asyncnet? or I could just roll my own future
15:51:09*elbow_jason joined #nim
15:57:29*yglukhov joined #nim
16:02:20*Demos quit (Remote host closed the connection)
16:09:38*jubalh quit (Remote host closed the connection)
16:10:58r-kuquick add that ru article on wikipedia nim article references before they delete it
16:13:45*johnsoft quit (Ping timeout: 252 seconds)
16:14:23*johnsoft joined #nim
16:15:42*jubalh joined #nim
16:16:21*def- joined #nim
16:17:21*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:18:48*vasher_ quit (Quit: Connection closed for inactivity)
16:20:00*gyeates quit (Ping timeout: 256 seconds)
16:28:47*Demos joined #nim
16:29:14*darkf quit (Quit: Leaving)
16:40:30Araqr-ku: got my message?
16:40:46*Heartmender quit (Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!)
16:40:53*Heartmender joined #nim
16:40:57*Heartmender quit (Changing host)
16:40:57*Heartmender joined #nim
16:40:57*Heartmender quit (Changing host)
16:40:57*Heartmender joined #nim
16:41:05r-kuyes Araq, i think i fixed it on local version but not that it helps much
16:48:11r-kuAraq: that looks better? https://github.com/r-ku/Nim/blob/coroutines/lib/system/gc_ms.nim#L542
16:49:44*gyeates joined #nim
16:50:42*JStoker quit (*.net *.split)
16:51:10*JStoker joined #nim
16:53:12*brson joined #nim
16:53:25dtscodeIf I need to represent this unicode character: U+200B , how would I do that in a string?
16:53:31dtscode\u200B ?
16:55:05*vasher_ joined #nim
16:56:55r-kusource file is utf-8, just write unicode character in the string
16:57:29dtscodewell I can't write the character
16:58:10r-kuin that case i dont know
16:58:23EXetoCyou could copy it from a website
16:58:50dtscodeyou can't though. The character I need is the zero width whitespace character. theres literally nothing to copy
16:58:53EXetoCbut I suppose you could treat an integer as a unicode glyph, if you must do that
16:59:21EXetoCright
16:59:27dtscodethanks
16:59:28EXetoCwell
16:59:42EXetoCjust chain multiple hex literals
16:59:45EXetoCthat'll work, right?
17:00:11dtscodeUmmm I'm not sure
17:00:18dtscodeI don't even know the hex value
17:01:07*brson quit (Quit: leaving)
17:01:13EXetoC200B would be the hex value
17:01:18dtscodeoh ok
17:01:22dtscodeso just \200b then?
17:01:31*brson joined #nim
17:01:32*brson quit (Client Quit)
17:01:59EXetoCe2808b in utf 8
17:02:09EXetoCdtscode: \x20\x0b ?
17:02:47dtscodeoh ok. thanks for helping out a noob :D
17:03:54*brson joined #nim
17:04:17EXetoChttp://nim-lang.org/docs/manual.html#lexical-analysis-string-literals
17:04:29EXetoCthere we go. I know how to paste now
17:04:42EXetoCenjoy
17:04:52*brson quit (Client Quit)
17:05:16dtscode:D
17:05:21*brson joined #nim
17:05:31EXetoCd(:D)|<
17:15:27Arrrris a person!
17:20:19Demosit's probably valid C++
17:22:25dtscodeyou mean perl
17:24:50*Matthias247 joined #nim
17:25:24dom96EXetoC: use sleepAsync
17:25:35*Guest67556 quit (Ping timeout: 264 seconds)
17:25:47dtscodeyay my modifications to irc.nim are done :D
17:26:32dom96TIL Perl has a bless command/keyword/function(?)
17:27:36dtscodehttp://stackoverflow.com/questions/11695110/why-is-this-program-valid-i-was-trying-to-create-a-syntax-error
17:29:10dtscodehttp://perldoc.perl.org/functions/bless.html
17:29:11dtscode>This function tells the thingy
17:29:31*dtscode is now known as dirtyheddwch
17:30:46*dirtyheddwch is now known as dtscode
17:31:51*dtscode is now known as PaulMaudib
17:32:10Arrrrnim must have a 'curse' proc
17:36:05*PaulMaudib is now known as ErroneousNick
17:37:05*ErroneousNick is now known as dtscode
17:38:12*BitPuffin quit (Ping timeout: 264 seconds)
17:48:23*woflox joined #nim
17:53:46EXetoCdom96: ok
17:54:37EXetoCArrrr: 0.001% chance of code segment mutation?
17:55:13Demosperl has a very .... unique ... way of supporting OOP
17:55:30DemosI kinda like it, but then again I rather like perl's attitude as a whole
17:56:40EXetoChow do you actually define variables that are local to a function? it just seemed really confusing
17:56:46EXetoCin perl that is
17:57:09reactormonkAraq, could you read my backlog questions about var?
17:57:15dtscodesuper complicated: my $var #local to the function
17:57:37EXetoChuh
17:57:47dtscodeforgot a ;
17:58:12*NimBot joined #nim
17:58:45Demosinterestingly local $var is a global
17:58:52Demosas far as I remember
17:59:08EXetoCI think that's what confused me
17:59:28Demosyeah perl is full of stuff like that
17:59:31Demosit's fun!
18:04:41*magistr quit (Ping timeout: 256 seconds)
18:13:05*Arrrr quit (Quit: WeeChat 1.2)
18:14:58*drewsrem joined #nim
18:15:25*thaless joined #nim
18:17:06*elbow_jason quit (Remote host closed the connection)
18:20:25*X67r joined #nim
18:23:33Araqreactormonk: no idea what you're asking
18:24:30reactormonkAraq, is there a way to make a proc that handles both var Table and non-var Table?
18:25:27Araqno.
18:25:39Araqyou can easily share the impl though as it's done
18:26:05reactormonkSure.
18:26:25reactormonkon another note, http://forum.nim-lang.org/t/1411
18:26:54*gyeates quit (Ping timeout: 248 seconds)
18:29:16*xcombelle quit (Ping timeout: 246 seconds)
18:39:54*gyeates joined #nim
18:42:32Araquse : untyped instead of : stmt
19:02:38*lokulin quit (Ping timeout: 248 seconds)
19:08:48*vasher_ quit (Quit: Connection closed for inactivity)
19:10:36*xcombelle joined #nim
19:12:08*shodan45 joined #nim
19:13:00*lokulin joined #nim
19:27:25*thaless quit (Ping timeout: 244 seconds)
19:34:16*gokr quit (Read error: Connection reset by peer)
19:34:23*gokr joined #nim
19:35:03dtscodehow come the stdlib has no split with a max split?
19:35:39Araqthere was a patch for that and I rejected it
19:35:47dtscodewhy?
19:35:51Araqsaw no point in it.
19:36:23dtscodeit can have uses
19:36:34Araqsplit is a poor man's parser anyway, "split with max" even moreso
19:37:12dtscodeof course its a poor man parser, but by that logic sockets is a poor mans network lib
19:37:41dtscodeeh I guess I'll just run a modded stdlib
19:38:28Araqor use parseutils
19:38:38Araqwhich is for parsing stuff
19:39:04dtscodewhy would I need a full on parser when I just need a seq with 3 elements split on the first 3 ws's
19:39:50Araqwhy would the first 3 be separated by whitespace and not the rest?
19:40:26dtscodeIf I were writing a rudimentary ircd, and the command type was PRIVMSG, I would only need PRIVMSG, CHANNEL, and :MSG
19:40:37dtscodeit would be pointless to split :MSG
19:41:44Araqwell I can see that it would come in handy for your situation but I still don't see the point of a split with max.
19:42:00dtscodeor I'm reading from a file, and each line contains POINT POINT LINE, and I need to put LINE at (POINT,POINT) but not parse the rest of the line
19:42:10Araqwhat if it's the last 3 items you're interested in?
19:42:32dtscodethen you would split the whole line
19:42:33Araqdo you then want a "split with min"? a "split with range"?
19:42:39dtscodeno
19:42:49EXetoC-3 :p
19:42:59fowldtscode thats not right for irc anyways
19:43:17dtscodeits just an example fowl
19:43:20fowlYou only need to search for ' :' to find the last arg
19:43:42dom96using split() is not maintainable
19:44:02dom96just look at the way the irc module does parsing
19:46:10EXetoCdon't you want to use that? there are some conveniences missing though but it's easy to patch
19:50:36*apense joined #nim
19:50:49apensecan compiler procs be generic?
19:51:14apenseasking to see if `nimDestroyRange[T]` can have the export marker removed
19:57:32Araqapense: no, they cannot
19:57:46Araqbut nimDestroyRange will be obsolete eventually anyway
20:01:52dtscodeso dom96 if I understand the irc module correctly with [email protected] dtscode becomes the user and dtscode.io becomes the host?
20:11:53*filcuc joined #nim
20:16:40*filcuc quit (Read error: No route to host)
20:16:56*filcuc joined #nim
20:21:04*gokr quit (Quit: Leaving.)
20:29:11*gyeates quit (Ping timeout: 256 seconds)
20:32:39dom96dtscode: yes
20:32:54dom96you can just test it, just pass some string to parseMessage or whatever it's called
20:34:23*vasher_ joined #nim
20:39:23*def- quit (Ping timeout: 264 seconds)
20:53:56dtscodeeh fair enough
20:55:11*yglukhov quit (Quit: Be back later ...)
20:55:52*yglukhov joined #nim
20:57:08*yglukhov_ joined #nim
20:57:08*yglukhov quit (Read error: Connection reset by peer)
20:58:13*gokr joined #nim
21:01:22*yglukhov_ quit (Ping timeout: 250 seconds)
21:03:46*xcombelle quit (Quit: Leaving)
21:09:48*FedeOmoto quit (Quit: Leaving)
21:10:11*jszymanski quit (Quit: computer sleeps...)
21:14:40*def- joined #nim
21:22:02*jubalh quit (Remote host closed the connection)
21:24:25*Matthias247 quit (Read error: Connection reset by peer)
21:27:16*Demos quit (Remote host closed the connection)
21:27:28*zemm joined #nim
21:38:08*Trustable quit (Remote host closed the connection)
21:52:38*dom96_ joined #nim
21:58:29*jefus is now known as nohead_Jefus
21:59:26*filcuc quit (Ping timeout: 250 seconds)
22:00:34*gyeates joined #nim
22:02:46*nohead_Jefus is now known as Jefus
22:03:04*elbow_jason joined #nim
22:06:51*woflox quit (Ping timeout: 246 seconds)
22:30:04*milosn quit (Read error: Connection reset by peer)
22:33:57*wirbi joined #nim
22:34:26wirbiHello!
22:34:38dom96_Hi wirbi
22:34:50*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:35:30*milosn joined #nim
22:35:37wirbiIs there somebody russian speaking?
22:36:02wirbiI need consult but my english is very bad.
22:37:30dom96_It doesn't sound too bad :)
22:37:41dom96_I can't speak Russian at all :(
22:37:50dom96_Maybe Google Translate could help?
22:38:04wirbiSo, sorry, I'll try in english. :)
22:39:26wirbiNeed I use pastebin for the code or copy it right here?
22:39:34dom96_use pastebin
22:39:44dom96_or better gist
22:39:49dom96_(it supports Nim)
22:41:22*gyeates quit (Ping timeout: 256 seconds)
22:42:40*dom96_ quit (Quit: Page closed)
22:43:19wirbihttps://gist.github.com/wirbi7/3ada37c12ddac52fcc0a
22:44:46dom96You can't do this: https://gist.github.com/wirbi7/3ada37c12ddac52fcc0a#file-gistfile1-nim-L28
22:44:58wirbiBut then I try to compile it, I receive error: Error: value of type 'proc (ws: WebSocket): Future[system.string]{.gcsafe, locks: <unknown>.}' has to be discarded
22:46:12wirbiYes, I have error exactly in this line
22:46:31dom96https://gist.github.com/dom96/721f126bc75c2979ca50
22:46:33dom96This might work
22:47:28dom96You should make your callbacks return a Future[void] btw
22:47:33dom96So that you can 'await' them :)
22:48:03dom96oh, your WebSocketRecvClosure already does that.
22:48:21*gyeates joined #nim
22:48:49*vasher_ quit (Quit: Connection closed for inactivity)
22:50:35dom96wirbi: hrm. I get C code gen error when I try to compile the code I gave you...
22:50:40dom96looks like a Nim bug
22:51:10dom96I shall report it
22:54:32dom96Adding {.closure.} to line 6 compiles though: https://gist.github.com/dom96/721f126bc75c2979ca50
22:54:38dom96Good night!
22:56:00wirbidom96: Oh... Thanka lot!
22:56:06wirbidom96: Oh... Thank a lot!
22:57:11wirbiGood night!
22:57:38*wirbi quit (Quit: Page closed)
22:58:15*Demos joined #nim
23:02:45*Demos quit (Ping timeout: 256 seconds)
23:14:47*elbow_jason quit (Remote host closed the connection)
23:18:31*Kingsquee quit (Quit: Konversation terminated!)
23:35:10*strcmp1 quit (Ping timeout: 246 seconds)
23:42:25*dalarmmst quit (Ping timeout: 256 seconds)
23:43:03*bcinman quit (Quit: Textual IRC Client: www.textualapp.com)
23:47:19*gyeates quit (Ping timeout: 252 seconds)
23:50:01*X67r quit (Quit: leaving)