<< 27-11-2015 >>

00:00:30vikatonAraq: install.bat
00:01:07*zaquest joined #nim
00:04:36*biscarch joined #nim
00:04:36*BitPuffin|osx joined #nim
00:04:36*M-Quora joined #nim
00:08:41*juanfra quit (Disconnected by services)
00:08:46*juanfra_ joined #nim
00:08:57*nicktick joined #nim
00:12:26nivi think i just found a way to run the GC against the wall :(
00:12:38*jakesyl joined #nim
00:12:46*vqrs quit (Ping timeout: 260 seconds)
00:14:58*vqrs joined #nim
00:33:10*nicktick quit (Ping timeout: 260 seconds)
00:36:04*nicktick joined #nim
00:40:37*akiradeveloper joined #nim
01:18:17*gokr quit (Quit: Leaving.)
01:29:27*akiradeveloper quit (Remote host closed the connection)
01:35:09*zepolen quit (Read error: Connection reset by peer)
01:35:46*zepolen joined #nim
01:48:54*zaquest quit (Ping timeout: 260 seconds)
01:49:28*zaquest joined #nim
01:55:43*[CBR]Unspoken quit (Ping timeout: 250 seconds)
01:58:33*[CBR]Unspoken joined #nim
01:59:27*Varriount-Laptop joined #nim
02:06:22*zepolen quit (Read error: Connection reset by peer)
02:11:46*zepolen joined #nim
02:18:01*Varriount-Laptop quit (Ping timeout: 246 seconds)
02:19:34*zepolen quit (Read error: Connection reset by peer)
02:20:07*zepolen joined #nim
02:22:28*LibreTurkey is now known as LibreWerewulf
02:32:36nicktickhow to rebuild nimx after changing some files of nimx ?
02:32:56ldleworkwhat's nimx
02:33:08nicktickhttps://github.com/yglukhov/nimx
02:33:22nicktickI installed nimx with nimble
02:33:33ldleworkcool
02:33:53nicktickbut I don't know how to rebuild it with nim directly.
02:34:58ephjathe compiler does detect changes
02:37:29nicktickephja, I don't know how to make those change take effect.
02:38:20ephjanicktick: you should just have to build your application again
02:39:02ephjadependent modules will then be recompiled if necessary
02:39:24nicktick(let me try...)
02:40:16nicktick(I changed one file of nimx,not the app file writen by myself)
02:41:40nicktickephja , thx ,you're right!
02:42:01*zepolen quit (Read error: Connection reset by peer)
02:42:38*zepolen joined #nim
02:46:38nicktickif I opened two or more files into the edit area of Aporia(under windows), the edit area of Aporia will turn into dark.
02:47:03nickticksorry, if I opened two or more files into Aporia(under windows), the edit area of Aporia will turn into dark.
02:47:41nicktickthere is no such problem with Aporia under Linux.
02:48:20*juanfra_ quit (Quit: juanfra_)
02:48:52*juanfra joined #nim
02:49:23*theduke quit (Ping timeout: 264 seconds)
02:53:08*zepolen quit (Read error: Connection reset by peer)
02:55:10*ephja quit (Ping timeout: 260 seconds)
02:55:42*zepolen joined #nim
03:01:32*vendethiel joined #nim
03:05:12*zepolen quit (Read error: Connection reset by peer)
03:07:50*zepolen joined #nim
03:17:08*vikaton quit (Quit: Connection closed for inactivity)
03:18:10*theduke joined #nim
03:18:22*zepolen quit (Read error: Connection reset by peer)
03:18:59*zepolen joined #nim
03:24:34*vendethiel quit (Ping timeout: 260 seconds)
03:28:56*vikaton joined #nim
03:29:22*zepolen quit (Read error: Connection reset by peer)
03:36:09*zepolen joined #nim
03:54:32*zepolen quit (Read error: Connection reset by peer)
03:55:12*zepolen joined #nim
04:00:02*kniteli_ quit (Ping timeout: 260 seconds)
04:24:55*darkf_ joined #nim
04:33:30*pregressive joined #nim
04:39:24*zepolen quit (Read error: Connection reset by peer)
04:40:00*zepolen joined #nim
04:50:29*zepolen quit (Read error: Connection reset by peer)
04:53:13*zepolen joined #nim
05:08:05*pregressive quit (Remote host closed the connection)
05:17:10*darkf_ is now known as darkf
05:31:40*zepolen quit (Read error: Connection reset by peer)
05:32:15*zepolen joined #nim
06:18:28*filcuc joined #nim
06:18:50*zama_ quit (Ping timeout: 276 seconds)
06:19:08*s4 joined #nim
06:20:25*mnemonikk_ is now known as mnemonikk
06:20:25*mnemonikk quit (Changing host)
06:20:25*mnemonikk joined #nim
06:20:33*barosl__ joined #nim
06:21:39*nicktick1 joined #nim
06:23:35*nicktick quit (Ping timeout: 264 seconds)
06:23:36*sarlalian quit (Ping timeout: 264 seconds)
06:23:36*eldamar quit (Ping timeout: 264 seconds)
06:23:41*Demon_Fox quit (Ping timeout: 265 seconds)
06:24:11*barosl_ quit (Ping timeout: 264 seconds)
06:25:06*BitPuffin|osx quit (Ping timeout: 240 seconds)
06:30:10*vqrs quit (Ping timeout: 240 seconds)
06:30:59*eldamar joined #nim
06:31:57*zepolen_ joined #nim
06:36:12*Demon_Fox joined #nim
06:37:56*filcuc quit (*.net *.split)
06:37:56*zepolen quit (*.net *.split)
06:37:56*juanfra quit (*.net *.split)
06:37:57*gsingh93 quit (*.net *.split)
06:37:57*lyro quit (*.net *.split)
06:38:09*vqrs joined #nim
06:41:24*Demon_Fox quit (Quit: Leaving)
06:43:11*lyro joined #nim
06:45:52*gsingh93 joined #nim
06:50:00*zama joined #nim
07:13:14*girvo quit (Ping timeout: 260 seconds)
07:37:08*vikaton quit (Quit: Connection closed for inactivity)
07:38:02*zepolen joined #nim
07:38:27*zaquest quit (Quit: Leaving)
07:41:38*zepolen_ quit (Ping timeout: 243 seconds)
07:44:30*OmlkRoNiXz quit (Max SendQ exceeded)
07:50:26*nicktick1 quit (Ping timeout: 240 seconds)
07:53:19*OmIkRoNiXz joined #nim
07:54:03*nicktick joined #nim
07:56:34*zaquest joined #nim
08:03:38*yglukhov joined #nim
08:14:53*vqrs quit (Ping timeout: 266 seconds)
08:14:56*tomp quit (Remote host closed the connection)
08:16:00*gokr joined #nim
08:16:44*tomp joined #nim
08:27:21*lokulin quit (Ping timeout: 272 seconds)
08:27:29*r-ku- is now known as r-ku
08:28:22*juanfra joined #nim
08:28:37*JStoker quit (Ping timeout: 272 seconds)
08:29:53*n1ftyn8_ quit (Ping timeout: 272 seconds)
08:32:12*juanfra quit (*.net *.split)
08:32:12*clone1018__ quit (*.net *.split)
08:32:12*r-ku quit (*.net *.split)
08:32:12*BlaXpirit quit (*.net *.split)
08:32:12*makoLine quit (*.net *.split)
08:32:13*mlitwiniuk quit (*.net *.split)
08:32:14*BlaXpirit joined #nim
08:32:16*bjz quit (Max SendQ exceeded)
08:32:16*makoLine joined #nim
08:32:26*lokulin joined #nim
08:32:26*vqrs joined #nim
08:32:29*bjz joined #nim
08:32:30*r-ku joined #nim
08:33:24*n1ftyn8_ joined #nim
08:35:57*bjz_ joined #nim
08:40:29*pregressive joined #nim
08:42:01*r-ku quit (*.net *.split)
08:42:01*makoLine quit (*.net *.split)
08:42:36*bjz quit (*.net *.split)
08:42:36*vqrs quit (*.net *.split)
08:46:32*vqrs joined #nim
08:47:48*r-ku joined #nim
08:50:18*makoLine joined #nim
08:59:22*yglukhov_ joined #nim
08:59:43*lyro_ joined #nim
09:02:07*gunn joined #nim
09:02:20*lokulin_ joined #nim
09:02:48*makoLine quit (*.net *.split)
09:02:48*r-ku quit (*.net *.split)
09:02:48*vqrs quit (*.net *.split)
09:02:48*pregressive quit (*.net *.split)
09:02:48*bjz_ quit (*.net *.split)
09:02:48*n1ftyn8_ quit (*.net *.split)
09:02:48*BlaXpirit quit (*.net *.split)
09:02:48*lokulin quit (*.net *.split)
09:02:48*gokr quit (*.net *.split)
09:02:48*yglukhov quit (*.net *.split)
09:02:48*zaquest quit (*.net *.split)
09:02:48*nicktick quit (*.net *.split)
09:02:48*OmIkRoNiXz quit (*.net *.split)
09:02:48*zepolen quit (*.net *.split)
09:02:49*gsingh93 quit (*.net *.split)
09:02:49*lyro quit (*.net *.split)
09:02:49*barosl__ quit (*.net *.split)
09:02:49*darkf quit (*.net *.split)
09:02:49*theduke quit (*.net *.split)
09:02:49*biscarch quit (*.net *.split)
09:02:49*M-Quora quit (*.net *.split)
09:04:25*bjz joined #nim
09:12:11*gunn quit (Ping timeout: 264 seconds)
09:12:12*lyro_ quit (Ping timeout: 264 seconds)
09:12:12*yglukhov_ quit (Ping timeout: 264 seconds)
09:12:49*bjz quit (Ping timeout: 264 seconds)
09:12:57*makoLine joined #nim
09:12:57*r-ku joined #nim
09:12:57*n1ftyn8_ joined #nim
09:12:57*BlaXpirit joined #nim
09:12:57*gokr joined #nim
09:12:57*OmIkRoNiXz joined #nim
09:12:57*darkf joined #nim
09:12:57*theduke joined #nim
09:12:57*biscarch joined #nim
09:12:57*M-Quora joined #nim
09:13:02*zepolen joined #nim
09:14:49*yglukhov joined #nim
09:14:49*barosl joined #nim
09:17:11*enamex joined #nim
09:20:28enamexWas this down?
09:20:39*Ven joined #nim
09:20:51enamexYup, it was.
09:21:24*gunn joined #nim
09:22:01*bjz joined #nim
09:22:16*gsingh93 joined #nim
09:22:24enamexI've just now installed the Nim package including the compiler and Aporia from the Nim website. I got a little program written on Aporia with around 20 'readline' calls trying to get the resulting exe to stay on screen when I choose compile&run. Nothing.
09:23:25*vqrs joined #nim
09:24:00*Ven_ joined #nim
09:24:04*zepolen_ joined #nim
09:24:36*barosl_ joined #nim
09:24:48*yglukhov_ joined #nim
09:25:02*enamex_ joined #nim
09:30:35enamex_Now it's saying "execution of external program failed"
09:33:09*MyMind quit (Quit: WeeChat 1.4-dev)
09:33:15*Ven quit (*.net *.split)
09:33:15*enamex quit (*.net *.split)
09:33:15*barosl quit (*.net *.split)
09:33:15*yglukhov quit (*.net *.split)
09:33:15*zepolen quit (*.net *.split)
09:33:16*makoLine quit (*.net *.split)
09:33:16*r-ku quit (*.net *.split)
09:33:16*n1ftyn8_ quit (*.net *.split)
09:33:16*BlaXpirit quit (*.net *.split)
09:33:16*gokr quit (*.net *.split)
09:33:16*OmIkRoNiXz quit (*.net *.split)
09:33:16*darkf quit (*.net *.split)
09:33:16*theduke quit (*.net *.split)
09:33:16*biscarch quit (*.net *.split)
09:33:16*M-Quora quit (*.net *.split)
09:34:31*r-ku joined #nim
09:34:31*n1ftyn8_ joined #nim
09:34:31*BlaXpirit joined #nim
09:34:31*gokr joined #nim
09:34:31*OmIkRoNiXz joined #nim
09:34:31*darkf joined #nim
09:34:31*theduke joined #nim
09:34:31*biscarch joined #nim
09:34:31*M-Quora joined #nim
09:34:39*gunn quit (Max SendQ exceeded)
09:43:44*zaquest joined #nim
09:46:31*gunn joined #nim
09:54:50enamex_Actually, looks like a problem with Aporia specifically. Or rather, with the resulting executables if they aren't run from cmdline
09:55:17enamex_Running them with nim c -r works but opening the saved exe myself later doesn't :/
09:55:46*zaquest quit (Ping timeout: 240 seconds)
10:04:38*juanfra joined #nim
10:05:55*niv quit (Excess Flood)
10:06:03*niv joined #nim
10:07:07*zaquest joined #nim
10:14:24*lyro_ joined #nim
10:22:58*s4 quit (Ping timeout: 246 seconds)
10:23:18*cromo quit (Ping timeout: 246 seconds)
10:31:09*n1ftyn8__ joined #nim
10:32:06*niv_ joined #nim
10:32:53*BlaXpirit_ joined #nim
10:33:50*sarlalian joined #nim
10:34:01*r-ku- joined #nim
10:34:40*M-Quora1 joined #nim
10:34:45*zaquest quit (*.net *.split)
10:34:45*niv quit (*.net *.split)
10:34:46*gunn quit (*.net *.split)
10:34:46*r-ku quit (*.net *.split)
10:34:46*n1ftyn8_ quit (*.net *.split)
10:34:46*BlaXpirit quit (*.net *.split)
10:34:47*gokr quit (*.net *.split)
10:34:47*OmIkRoNiXz quit (*.net *.split)
10:34:47*darkf quit (*.net *.split)
10:34:47*theduke quit (*.net *.split)
10:34:47*biscarch quit (*.net *.split)
10:34:47*M-Quora quit (*.net *.split)
10:34:55*niv_ is now known as niv
10:34:55*BlaXpirit_ is now known as BlaXpirit
10:38:14*Ven_ quit (Ping timeout: 240 seconds)
10:39:50*lokulin_ quit (Ping timeout: 264 seconds)
10:40:09*n1ftyn8__ is now known as n1ftyn8_
10:40:34*mnemonikk quit (*.net *.split)
10:40:34*zxtx quit (*.net *.split)
10:42:53*gunn joined #nim
10:42:54*darkf joined #nim
10:42:54*theduke joined #nim
10:42:54*biscarch joined #nim
10:45:58*gunn quit (*.net *.split)
10:45:58*darkf quit (*.net *.split)
10:45:58*theduke quit (*.net *.split)
10:45:58*biscarch quit (*.net *.split)
10:46:11*lokulin joined #nim
10:46:54*gunn joined #nim
10:46:54*darkf joined #nim
10:46:54*theduke joined #nim
10:46:54*biscarch joined #nim
12:11:12*NimBot joined #nim
12:11:18*Ven joined #nim
12:11:37*mal`` joined #nim
12:11:40*bigfondue joined #nim
12:11:42*r-ku joined #nim
12:11:55*Sornaensis joined #nim
12:11:56*gokr joined #nim
12:11:58*BlaXpirit joined #nim
12:13:00*cyraxjoe joined #nim
12:13:00*M-Quora joined #nim
12:13:08*tymat joined #nim
12:15:11*Guest4360 quit (Ping timeout: 264 seconds)
12:15:12*CARAM__ quit (Ping timeout: 264 seconds)
12:15:30*BlaXpirit quit (Client Quit)
12:15:48*DecoPerson quit (Ping timeout: 264 seconds)
12:15:53*BlaXpirit joined #nim
12:17:04*BlaXpirit quit (Client Quit)
12:21:33*lokulin joined #nim
12:25:11*Learath2 joined #nim
12:32:10*xet7 quit (Quit: Leaving)
12:42:03*NimBot joined #nim
12:43:41*tymat joined #nim
12:44:23*bigfondue joined #nim
12:45:33*yglukhov joined #nim
12:46:11*r-ku joined #nim
12:48:39*M-Quora joined #nim
12:48:51*yglukhov quit (Remote host closed the connection)
12:48:57*lokulin joined #nim
12:49:28*heinrich5991 joined #nim
12:53:00*theduke quit (Ping timeout: 264 seconds)
12:53:34*Sornaensis joined #nim
12:53:36*enamex_ is now known as enamex
12:54:41*mal`` joined #nim
12:54:43*yglukhov joined #nim
12:55:07nivhi! is there a example on how to use the locks module? the official manual page speaks of TLock but that is flagged as deprecated. i tried implementing the template as listed there but it doesn't work in all cases (specifically when using yield/await inside the template it says it needs a inlined iterator ..?)
13:03:11*yglukhov quit (Ping timeout: 245 seconds)
13:04:28*pregressive joined #nim
13:05:43*gokr joined #nim
13:08:30*Jehan_ joined #nim
13:08:45*BlaXpirit joined #nim
13:08:47*pregressive quit (Ping timeout: 246 seconds)
13:08:58*theduke joined #nim
13:09:52Jehan_niv: Use `Lock` instead of `TLock`. The deprecation exists purely because the type was renamed.
13:10:27nivalright. can you point me as to why the template would fail as it does?
13:10:52nivthe exact error message is: Error: 'yield' cannot be used within 'try' in a non-inlined iterator
13:11:23nivthe code is: https://gist.github.com/niv/70d9c1d9183560e67eab
13:11:40nivit's the "await" that triggers the problem, although I don't see how there's a iterator involved
13:12:24*biscarch quit (Remote host closed the connection)
13:13:56*CARAM__ joined #nim
13:16:56*DecoPerson joined #nim
13:19:07*BitPuffin joined #nim
13:24:13*CARAM__ quit (Ping timeout: 264 seconds)
13:24:32*CARAM__ joined #nim
13:24:48*BitPuffin quit (Ping timeout: 264 seconds)
13:30:42*sarlalian joined #nim
13:37:09*nicktick joined #nim
13:40:31*nicktick1 joined #nim
13:43:23*nicktick quit (Ping timeout: 272 seconds)
13:46:45*NhanH joined #nim
13:48:40*Guest4360 joined #nim
13:49:06*biscarch joined #nim
13:50:27*clone1018_ joined #nim
13:52:19*nicktick1 quit (*.net *.split)
13:52:19*sarlalian quit (*.net *.split)
13:52:29*ephja joined #nim
13:55:17*boopsies is now known as boopsiesisaway
13:55:20*gunn quit (Max SendQ exceeded)
13:56:01*gunn joined #nim
13:59:47*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
14:02:06*Guest4360 quit (Ping timeout: 240 seconds)
14:02:38*Guest4360 joined #nim
14:04:42*Ven joined #nim
14:05:12dom96niv: The `async` macro converts the proc into an iterator.
14:05:32nivi've tried it without the template and that works. its just when wrapping the whole thing into a template that async fails
14:11:54*yglukhov joined #nim
14:11:54*yglukhov quit (Remote host closed the connection)
14:13:15*kniteli_ joined #nim
14:13:19*BitPuffin joined #nim
14:15:20*BitPuffin quit (Disconnected by services)
14:15:22*itPuffinB joined #nim
14:16:28*itPuffinB is now known as BitPuffin
14:22:53ephjaniv: could you make it a compilable test case? that always helps
14:23:22ephjaare you going to introduce multithreading?
14:24:43nivim just trying to figure out why stuff works the way it does. ill make a testcase in a minute
14:27:07*Guest4360 quit (*.net *.split)
14:27:07*clone1018_ quit (*.net *.split)
14:27:09*CARAM__ quit (*.net *.split)
14:27:09*flyx quit (*.net *.split)
14:27:12*darkf quit (*.net *.split)
14:30:15*nicktick joined #nim
14:33:24*yglukhov joined #nim
14:33:31*yglukhov quit (Remote host closed the connection)
14:38:18ephjaok
14:39:41nivephja: https://gist.github.com/niv/70d9c1d9183560e67eab
14:40:19nivI can create a gh issue if you want.
14:43:34*yglukhov joined #nim
14:47:47ephjaniv: "echo await(asy())", "echo(await asy())" or "echo(await(asy()))" does what you want I think
14:47:59ephja'await' is just like any other expression, really
14:48:28*Guest4360 joined #nim
14:48:28*clone1018_ joined #nim
14:48:28*CARAM__ joined #nim
14:48:28*flyx joined #nim
14:48:28*darkf joined #nim
14:49:16nivthat's .. disgusting. thanks, ephja
14:49:46nivI wonder why that template isn't in the stdlib locks module included though, considering how neccessary it is
14:51:26ephjawhat else? we don't have a haskell-like call syntax
14:51:47nivit's alright :) i didnt mean the syntax, just me missing it
14:51:58ephjaniv: maybe because of lack of manpower
14:52:06ephjawhich has been the case for some time
14:52:08ephjaright
14:52:29nivah, yeah. i wasnt complaining either. i just thought there might be a reason it's not in that i can't see with my noob-glasses on
14:53:25nivi'm still confused though. adding the param parens works, but now the template crashes inside release() with Illegal storage access.
14:53:43nivthe non-template variant still works
14:59:12*zepolen_ quit (Remote host closed the connection)
15:02:27ephjahttp://manual.nim-lang.org/docs/manual.html#exception-handling-defer-statement http://manual.nim-lang.org/docs/manual.html#type-bound-operations-destructors
15:02:37*Jehan_ quit (Quit: Leaving)
15:03:29ephjawould these constructs help? but destructors are still considered experimental
15:03:52ephjasuch a template might be useful regardless. feel free to create PR and see if anyone agrees
15:03:55nivit's not that i lack a dtor, i think. it's that release() SIGSEGVs when inside the template, but works outside of it
15:04:32nivthe defer: one is nice though :)
15:04:44*zepolen joined #nim
15:05:31*pregressive joined #nim
15:06:12*gokr quit (Quit: Leaving.)
15:08:18ephjayes that's a different issue
15:09:25*pregressive quit (Ping timeout: 240 seconds)
15:10:01nivon OSX it says: Error: unhandled exception: no exception to reraise but when i try to trap it, then there's no exception
15:12:32ephjaIsn't 'raise' without arguments (or "re-raise") limited to 'except' blocks? I don't understand what this means
15:12:56nivfwiw, here's the code: https://gist.github.com/niv/70d9c1d9183560e67eab looks like a bug to me
15:15:44*zepolen quit (Remote host closed the connection)
15:18:12ephjaor maybe not http://manual.nim-lang.org/docs/manual.html#exception-handling-raise-statement
15:18:53dom96niv: It fails in a template because the 'async' macro does not know that the template contains 'await' statements in a try statement.
15:18:54ephjauh oh, bad "see source" link: https://github.com/nim-lang/Nim/tree/master/lib/core/c:/users/anwender/projects/nimrod/lib/system/syslocks.nim#L14
15:19:03dom96It does not "see" that code
15:19:18dom96It has to transform the code so that no 'await's are in a try block
15:19:40dom96Just so you know, that transformation is full of bugs too
15:19:45nivmmmhh. how can i make this template work then?
15:19:58dom96I would recommend you try your best not to put 'await' in a try
15:20:24nivi kind of have to when i want to lock access to a resource that is awaited on
15:21:03ephjathere's not a repo for the website itself? I guess I'll submit a report in Nim then
15:21:44dom96niv: Why do you want to do that?
15:22:27nivthis is still about my redis playground implementation. i need to barrier commands so they don't interleave due to the reply/response nature of the wire protocol
15:22:49nivbut i want the impl to be async
15:23:18ephjait's not necessary, is it?
15:23:35nivso what i do is just warp sendCommand/receiveCommand into a lock
15:23:48nivwrap .. not warp .. :)
15:24:24nivasync is definitely necessary, because redis connections can also serve as pubsub channels, so listeners mustnt block the main thread
15:24:30dom96So what is the problem? The 'defer'?
15:24:55nivthe problem is the release() call inside the template
15:25:05dom96I don't think a lock is necessary, just use a simple bool?
15:25:07nivif i implement the template manually at each location it works fine
15:25:45nivi guess it isnt neccessary for it to be a mutex, no
15:26:04ephjaI'd suggest that you also read existing code that uses asyncdispatch https://github.com/nim-lang/Nim/blob/master/lib/pure/asyncdispatch.nim#L1575
15:26:16ephjait made things more obvious for me
15:26:35nivi was using a mutex so i can just let the OS tell me about when the connection becomes available again
15:26:51nivfor a bool or any other non-signal source i'd have to busywait ..
15:27:27*Jehan_ joined #nim
15:27:54dom96How about you create a queue, once the a response is received for a command pop the next command from the queue.
15:27:58dom96*once a
15:28:38dom96The connection becomes available when you received a reply from redis right?
15:29:21nivyeah, the redis connection is strictly synchronous. request/response pairs.
15:30:03nivqueues don't solve the busywaiting problem either without some sort of waiting mutex
15:30:54dom96You can make use of the Future's callback though
15:32:04dom96let resp = await sock.recvLine()
15:32:26dom96if client.queue.len > 0: await sendQueuedCommand(client.queue)
15:32:38nivright
15:32:51nivim not sure a queue is a good idea. adds complexity and failure modes i dont care for
15:33:19dom96How do you plan on doing it?
15:33:28dom96Blocking until the lock is released?
15:34:23dom96As soon as you block you defeat the purpose of async
15:34:51nivfair enough
15:35:51nivthe thought was that it would never block longer than it would take to read/write the actual data off the socket
15:36:40ephjaother callback examples appear in `or` and `and` in asyncdispatch
15:38:18nivthanks, i'll check it out and think about it some more :)
15:39:34ephja"await send(...); await recv(...)"?
15:40:24*zepolen joined #nim
15:40:24nivthat would allow another async "fiber" to interleave between the send and recv
15:46:55ephjayes if you don't wait for anything before that
15:52:20*nicktick1 joined #nim
15:53:47*Jehan_ quit (Ping timeout: 250 seconds)
15:53:47*NhanH quit (Ping timeout: 250 seconds)
15:54:38*NhanH joined #nim
15:54:39*nicktick quit (Ping timeout: 250 seconds)
15:55:12*Jehan_ joined #nim
16:04:05*Demon_Fox joined #nim
16:14:32*Jehan_ quit (Read error: Connection reset by peer)
16:19:03*elrood joined #nim
16:19:30*clone1018_ quit ()
16:21:50*clone1018 joined #nim
16:23:11*Jehan_ joined #nim
16:26:07*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:28:33*Ven joined #nim
16:45:22*sarlalian joined #nim
16:46:19*Ven quit (*.net *.split)
16:46:20*Jehan_ quit (*.net *.split)
16:46:20*clone1018 quit (*.net *.split)
16:46:20*elrood quit (*.net *.split)
16:46:23*Demon_Fox quit (*.net *.split)
16:46:24*NhanH quit (*.net *.split)
16:46:26*Guest4360 quit (*.net *.split)
16:46:27*CARAM__ quit (*.net *.split)
16:46:27*flyx quit (*.net *.split)
16:46:29*darkf quit (*.net *.split)
16:53:08*zaquest joined #nim
16:53:24*saml_ joined #nim
16:55:52*Demon_Fox joined #nim
16:56:18*Jehan_ joined #nim
16:56:18*clone1018 joined #nim
16:56:18*NhanH joined #nim
16:56:18*Guest4360 joined #nim
16:56:18*CARAM__ joined #nim
16:56:18*flyx joined #nim
16:56:18*darkf joined #nim
17:12:40*girvo joined #nim
17:13:24*zepolen quit (Remote host closed the connection)
17:17:35*girvo quit (Ping timeout: 264 seconds)
17:23:22*cyraxjoe_ is now known as cyraxjoe
17:24:29*boopsiesisaway is now known as boopsies
17:24:48*zxtx quit (Ping timeout: 240 seconds)
17:27:07*mnemonikk quit (Ping timeout: 240 seconds)
17:27:53*Demon_Fox quit (*.net *.split)
17:27:53*saml_ quit (*.net *.split)
17:31:24*Jehan_ quit (Read error: Connection reset by peer)
17:38:26*saml_ joined #nim
17:38:55*Demon_Fox joined #nim
17:39:58*Jehan_ joined #nim
17:40:47*saml_ quit (Max SendQ exceeded)
17:44:22*saml_ joined #nim
17:44:22*Jehan_ quit (Ping timeout: 246 seconds)
17:45:01*saml_ quit (Max SendQ exceeded)
17:50:57nivseems like finally: runs twice if you nest asyncs ..
17:50:58*Jehan_ joined #nim
17:53:04*darkf quit (Quit: Leaving)
17:55:48*Jehan_ quit (Ping timeout: 245 seconds)
17:56:25*elrood joined #nim
17:59:53avsejAraq, https://github.com/nim-lang/Nim/pull/3598/files
18:04:13*ldlework quit (Ping timeout: 247 seconds)
18:05:35*yglukhov quit (Ping timeout: 272 seconds)
18:05:42*Jehan_ joined #nim
18:05:52*nicktick1 quit (Quit: Leaving.)
18:21:46*zxtx joined #nim
18:22:54*zepolen joined #nim
18:23:47*zepolen quit (Remote host closed the connection)
18:23:59*zepolen joined #nim
18:25:22*ldlework joined #nim
18:29:59*Jehan_ quit (Read error: Connection reset by peer)
18:37:57ephjaniv: and nothing else runs twice?
18:38:25nivits some weird case with awaits, try and futures. i pretty much gave up in that now.
18:43:54*zepolen quit (Remote host closed the connection)
18:44:19*pregressive joined #nim
18:44:31*pregressive quit (Remote host closed the connection)
18:45:24*pregressive joined #nim
18:46:40thedukeanyone using concepts for anything more than simple tests? are they relatively stable?
18:46:54thedukeor at least usable
18:47:35ephjait's not usable
18:48:16ephjathere are some very common patterns that don't work
18:51:09thedukeephja: shame. guess i'll stick to a type hierarchy then
18:51:26thedukewhat common patterns, for example?
18:52:11ephjahttps://github.com/nim-lang/Nim/labels/Concept%5BT%5D
18:54:26ephjaI think these issues will be fixed some time after 1.0. zah seems to be occupied with other things still
18:55:29ephjaniv: ok. please file another report if you can. it would be nice to have it in a decent state by the time 1.0 is released
18:56:56nivi will tomorrow, i've had enough about this for today :)
18:57:51ephjaI've commented out quite a few buggy things along with a link to the issue in question
18:58:31thedukedon't get me wrong, i really love nim, it's a great language. but after spending two weeks with it now, and considering how easy it is to get c compiler errors or completely unhelpful error messages, completely broken lib modules (db_postgres), and totally unstable things like concepts. memory leaks with features like async... i think nim is nowhere near a point where it should be released as 1.0
19:01:09*yglukhov joined #nim
19:01:18thedukeit's understandable because nim does A LOT and has a lot of great features, but no organization with money behind it... sadly
19:05:28thedukeniv: i hope your redis client will be open source, i will need one of those soon
19:05:35*yglukhov quit (Ping timeout: 264 seconds)
19:07:10nivtheduke: its just a playground/sandbox atm. i cant get async to work reliably
19:07:11ephjathere's also an official library
19:07:19ephjawasn't there a link to the documentation?
19:07:21nivyou can have all of it if you want but its broken. ;)
19:09:23ephjatheduke: I don't think we're following the usual release cycle
19:12:32ephjafun fact: the previous ETA was "before 2015" ;)
19:13:34*girvo joined #nim
19:17:19*Matthias247 joined #nim
19:18:11*girvo quit (Ping timeout: 264 seconds)
19:19:28*xet7 joined #nim
19:29:00*pregressive quit (Remote host closed the connection)
19:41:18dom96niv: Like I said: try + await is still buggy. The way it currently works is very hackish and I would suggest avoiding 'await' inside a try statement.
19:42:00nivyea
19:51:09*brson joined #nim
19:51:35*makoLine joined #nim
19:54:54*yglukhov joined #nim
19:59:34*zepolen joined #nim
20:03:23*BitPuffin quit (Ping timeout: 272 seconds)
20:04:23*zepolen quit (Ping timeout: 264 seconds)
20:05:34*yglukhov quit (Remote host closed the connection)
20:05:56*makoLine quit (Ping timeout: 246 seconds)
20:12:55*kniteli_ quit (Remote host closed the connection)
20:14:40*kniteli joined #nim
20:22:40*makoLine joined #nim
20:26:13NimBotnim-lang/Nim devel 6e67b94 Sergey Avseyev [+0 ±1 -0]: fix path to nativesockets
20:26:13NimBotnim-lang/Nim devel cc6d9f6 Dominik Picheta [+0 ±1 -0]: Merge pull request #3598 from avsej/devel... 2 more lines
20:28:34*gokr joined #nim
20:52:51*xet7 quit (Quit: Leaving)
21:11:29*vendethiel joined #nim
21:12:57*gokr quit (Quit: Leaving.)
21:13:01thedukeguys
21:13:13thedukeanyone got a signal handler working and can show me the code?
21:13:26thedukecan't seem to get it right
21:13:34*pregressive joined #nim
21:14:14*girvo joined #nim
21:14:49*zepolen joined #nim
21:19:23*girvo quit (Ping timeout: 264 seconds)
21:19:26*zepolen quit (Ping timeout: 246 seconds)
21:31:44*jaco60 joined #nim
21:32:59*gokr joined #nim
21:39:14*vqrs quit (Ping timeout: 260 seconds)
21:42:40*vqrs joined #nim
22:09:47*vendethiel quit (Ping timeout: 264 seconds)
22:13:26*vendethiel joined #nim
22:14:28*pregressive quit (Remote host closed the connection)
22:33:27*brson quit (Quit: leaving)
22:48:03*BitPuffin|osx joined #nim
22:54:16*onionhammer joined #nim
22:59:13*ephja quit (Read error: Connection reset by peer)
23:04:04*yglukhov joined #nim
23:04:44*yglukhov quit (Remote host closed the connection)
23:06:43*elrood quit (Quit: Leaving)
23:07:47*boopsies is now known as boopsiesisaway
23:14:57*girvo joined #nim
23:15:48*Matthias247 quit (Read error: Connection reset by peer)
23:19:29*girvo quit (Ping timeout: 246 seconds)
23:29:35*gokr quit (Ping timeout: 264 seconds)
23:35:35*lokulin quit (Ping timeout: 264 seconds)
23:41:31*yglukhov joined #nim
23:41:36*yglukhov quit (Remote host closed the connection)
23:43:51*lokulin joined #nim
23:47:35*Demon_Fox quit (Ping timeout: 264 seconds)
23:47:37*zxtx quit (Ping timeout: 240 seconds)
23:48:34*makoLine quit (Ping timeout: 264 seconds)
23:49:31*makoLine joined #nim