<< 26-06-2015 >>

00:03:03*JinShil joined #nim
00:03:22*jaco60 quit (Ping timeout: 256 seconds)
00:19:25*Demos joined #nim
00:21:23*elbow_jason quit (Quit: Leaving)
00:23:55*Demos quit (Ping timeout: 256 seconds)
00:48:57*ChrisMAN quit (Read error: Connection reset by peer)
00:51:50*drewsrem quit (Quit: Leaving)
01:05:32*dashed quit (Quit: Connection closed for inactivity)
01:16:46*Jesin joined #nim
01:17:45*brson quit (Remote host closed the connection)
01:31:55*jefus quit (Ping timeout: 256 seconds)
01:32:45*dddddd quit (Ping timeout: 244 seconds)
01:33:54*yglukhov__ joined #nim
01:38:08*yglukhov__ quit (Ping timeout: 246 seconds)
01:48:44*vasher_ quit (Quit: Connection closed for inactivity)
01:50:29*jefus joined #nim
02:02:34*doxavore joined #nim
02:07:37*jefus quit (Ping timeout: 264 seconds)
02:09:06*jefus joined #nim
02:31:59*MatrixBridge quit (Ping timeout: 265 seconds)
02:33:45*doxavore quit (Quit: I said good day, sir.)
02:46:00*duban quit (Quit: Leaving)
02:46:54*darkf joined #nim
02:59:55*vikaton joined #nim
03:07:42*vasher_ joined #nim
03:11:55*vendethiel joined #nim
03:35:13*BitPuffin|osx quit (Ping timeout: 255 seconds)
03:37:00*vendethiel quit (Ping timeout: 256 seconds)
03:56:58*Demos joined #nim
04:01:15*Demos quit (Ping timeout: 246 seconds)
04:40:28*Demon_Fox quit (Ping timeout: 256 seconds)
04:43:42avsejAraq, I will put dlerror() separately
04:43:55avsejand I updated #2995
05:02:26*Pisuke joined #nim
05:03:52*MyMind quit (Ping timeout: 255 seconds)
05:15:19*jubalh joined #nim
05:26:00*Demon_Fox joined #nim
05:34:41*buMPnet quit (Remote host closed the connection)
05:38:44*vasher_ quit (Quit: Connection closed for inactivity)
05:55:09*Matthias247 joined #nim
06:02:53*jszymanski joined #nim
06:10:32*FedeOmoto quit (Ping timeout: 272 seconds)
06:24:36*Matthias247 quit (Read error: Connection reset by peer)
06:33:13*vendethiel joined #nim
06:33:58*apense quit (Ping timeout: 244 seconds)
06:35:28*JinShil quit (Quit: Konversation terminated!)
06:57:09*vendethiel quit (Ping timeout: 250 seconds)
06:59:31*vendethiel joined #nim
07:19:18pigmejreactormonk: It seems that those colors are right when the buffer is visible
07:19:27pigmejwhen it's not visible, then they are blank,
07:19:41*irezvov joined #nim
07:20:15irezvovhi there
07:21:14irezvovi have again encontered with strange behaviour. in async part now
07:21:30irezvovi have such code https://gist.github.com/SPY/d4a34cc0771308753430#file-async_exception-nim-L25-L34
07:22:01irezvovtwo implementations of get function there
07:22:18irezvovone with pure future
07:22:32irezvovand another with async pragma
07:22:36*Ven joined #nim
07:22:44irezvovfirst works fine
07:23:09irezvovbut second fall with nil-access exception
07:23:56irezvovi suppose they should work identical
07:24:38*vendethiel quit (Ping timeout: 272 seconds)
07:24:49irezvovfull version of code could be founded here - https://github.com/SPY/nim-memcached/blob/master/memcacheasync.nim
07:26:02*avsej quit (Ping timeout: 252 seconds)
07:26:16*yglukhov__ joined #nim
07:28:43irezvovand another question: if i put asyncCheck instead of let _ = await there https://github.com/SPY/nim-memcached/blob/master/memcacheasync.nim#L118
07:28:55irezvovthis function do nothing
07:29:08fowlirezvov what type is requestheader?
07:29:12*avsej joined #nim
07:29:12*avsej quit (Changing host)
07:29:12*avsej joined #nim
07:29:13*wb__ quit (Ping timeout: 255 seconds)
07:29:57irezvovfowl: it is plane c structure
07:30:47irezvovit is defined there https://github.com/SPY/nim-memcached/blob/master/memcacheproto.nim#L91-L100
07:30:48fowlirezvov https://github.com/SPY/nim-memcached/blob/master/memcacheasync.nim#L42
07:31:18fowlHere you cast it to a pointer
07:31:30irezvovasyncSocket's send function works only with strings
07:31:33fowlUse header.addr
07:31:35*gokr_ joined #nim
07:31:41irezvovso i haven't found another way
07:32:02fowlThe way is not to cast a struct to a pointer i guarantee that
07:32:16irezvovnewRequestHeader returns ref RequestHeader
07:32:29irezvovso it works as expected
07:32:47fowlNvm
07:34:26*Demos joined #nim
07:36:31*Ven quit (Read error: Connection reset by peer)
07:38:58*Demos quit (Ping timeout: 256 seconds)
07:39:08fowlirezvov where is this memcacheasync.nim(82) sendCommandIter
07:39:20fowlI didnt see that function in that module
07:40:07*gokr_ quit (Read error: Connection reset by peer)
07:40:14fowlThats from the backtrace from the first link you sent
07:41:16irezvovi haven't written it, i guess it is produced by async pragma
07:42:31irezvovas i understand, it uses iterators and yield semantic to emulate sync flow
07:43:25fowlYea async is one of the most complicated macros out there
07:44:49*dalarmmst quit (Ping timeout: 264 seconds)
07:44:56fowlirezvov i will take a closer look when i get back home in 10-15 mins
07:45:12irezvovthx
07:45:46irezvovi've spent couple of hours for this, but gave up :)
07:46:12irezvovi'm not so expirienced nim user yet
07:56:20*woadwarrior joined #nim
08:04:56*JinShil joined #nim
08:06:59*Demon_Fox quit (Quit: Leaving)
08:11:04*coffeepot joined #nim
08:14:25*jubalh quit (Quit: Leaving)
08:17:11*JinShil left #nim ("Konversation terminated!")
08:18:12*vikaton quit (Quit: Connection closed for inactivity)
08:18:16*Trustable joined #nim
08:24:06*jubalh joined #nim
08:31:00*jubalh quit (Remote host closed the connection)
08:31:53*dddddd joined #nim
08:58:04*woadwarrior quit (Ping timeout: 252 seconds)
08:59:04*Ven joined #nim
09:02:07*sepisoad joined #nim
09:09:38*husanu1 joined #nim
09:12:25*Ven quit (Read error: Connection reset by peer)
09:12:51*milosn quit (Quit: leaving)
09:17:33*xcombelle joined #nim
09:18:17*husanu1 quit (Remote host closed the connection)
09:22:14*MatrixBridge joined #nim
09:23:19*vendethiel joined #nim
09:23:19*husanu3 joined #nim
09:28:44*husanu3 quit (Killed (marienz (Drones are not welcome on freenode.)))
09:31:40coffeepotsay i have a s = seq[X] and a refS = ref seq[X], how come I can do "for item in s", but "for item in refS" doesn't compile? Just curious, I don't need to get that working.
09:32:07Araqthere is no items iterator for 'ref seq'
09:32:16coffeepotah there you go nice and simple :)
09:33:06coffeepotany reason why not?
09:33:50*Gertm left #nim ("Leaving")
09:38:15Araqnobody uses ref seq
09:40:58coffeepotfair enough :)
09:41:00*woadwarrior joined #nim
09:47:01*vendethiel quit (Ping timeout: 250 seconds)
09:50:49*vendethiel joined #nim
09:59:39*thepreacher joined #nim
10:06:52*irezvov quit (Ping timeout: 246 seconds)
10:08:15Araqcoffeepot: what about a PR for your sqlserver stuff? if you use it already, it's good enough for a PR, right?
10:09:16*dalarmmst joined #nim
10:13:06*vendethiel quit (Ping timeout: 272 seconds)
10:22:51*vendethiel joined #nim
10:25:25*kas joined #nim
10:25:42*kas quit (Remote host closed the connection)
10:25:59*kas joined #nim
10:26:20*Ven joined #nim
10:31:44*Ven quit (Read error: Connection reset by peer)
10:32:06coffeepot:) I'm just polishing it up atm. It's close to being ready. Things to do are: 1) Just writing binary type for blobs, 2) Support large text (currently only fills buffer) 3) prettify code
10:32:09*kas quit (Ping timeout: 244 seconds)
10:32:40coffeepotI'm only supporting queries atm too
10:34:48coffeepoti'll get it on github as soon as I get the above 3 done and look up nimble support
10:35:38coffeepotoh and I need to plug in the support for times too
10:36:09*Ven joined #nim
10:37:50*Jesin quit (Ping timeout: 244 seconds)
10:45:54*Jesin joined #nim
10:54:40*gokr_ joined #nim
10:55:01wuehlmausi like dialogs module. But i miss a nice input method. wonder why it's not there.
10:57:26*thepreacher quit ()
10:59:53*MatrixBridge quit (Remote host closed the connection)
11:00:13*raza joined #nim
11:00:22*MatrixBridge joined #nim
11:11:58*Demos joined #nim
11:12:36*Ven quit (Read error: Connection reset by peer)
11:16:28*Demos quit (Ping timeout: 255 seconds)
11:16:34*Sentreen joined #nim
11:25:26*irezvov joined #nim
11:32:03irezvovfowl: have you managed to find something?
11:36:46*Ven joined #nim
11:48:52*Demon_Fox joined #nim
11:50:30*jaco60 joined #nim
11:52:58*Ven quit (Read error: Connection reset by peer)
11:56:48*dalarmmst quit (Ping timeout: 256 seconds)
12:01:20*kas joined #nim
12:10:54*xcombelle quit (Remote host closed the connection)
12:20:53*Sentreen quit ()
12:22:10*Ven joined #nim
12:28:01*doxavore joined #nim
12:33:02*ozra joined #nim
12:34:58*gunn joined #nim
12:35:14*doxavore quit (Quit: I said good day, sir.)
12:35:26*Sentreen joined #nim
12:38:45*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:39:23*Sentreen quit (Client Quit)
12:46:08*vendethiel quit (Ping timeout: 252 seconds)
12:54:05*Ven joined #nim
12:56:39*milosn joined #nim
13:01:23*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:03:45*vendethiel joined #nim
13:09:41*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
13:09:53*coffeepot joined #nim
13:15:12*Ven joined #nim
13:18:38*Ven quit (Read error: Connection reset by peer)
13:18:50*Ven joined #nim
13:21:41*sepisoad quit (Ping timeout: 265 seconds)
13:28:48Araqirezvov: dom96 will help you too once he's here, I'm sure
13:38:55irezvovAraq: thx for hint
13:39:50irezvovdom96: i've heard u are the best in async Nim :) could you look at my poor code?)
13:42:54*FedeOmoto joined #nim
13:45:00*Demos joined #nim
13:47:18*vendethiel quit (Ping timeout: 265 seconds)
13:47:49*gyeates quit (Ping timeout: 264 seconds)
13:52:31*jubalh joined #nim
14:02:27*FedeOmoto quit (Quit: Leaving)
14:03:01*gyeates joined #nim
14:05:04*FedeOmoto joined #nim
14:05:55irezvovAraq: i thought you could know anything about async nim too :)
14:06:17Araqi only know it rapes my poor compiler
14:06:55Araqso ... I actually only know the low level stuff about it
14:13:00irezvovi get it. i'll try to dive in async machinery and if i cope with it your compiler will be raped more
14:14:13*vendethiel joined #nim
14:19:47*rkj-b joined #nim
14:22:07*gyeates quit (Ping timeout: 248 seconds)
14:34:51*gyeates joined #nim
14:35:28*bjz joined #nim
14:43:25*Ven quit (Read error: Connection reset by peer)
14:43:39*Ven joined #nim
14:50:27*\q is now known as \u
14:55:51coffeepothow do I write a seq to an untyped buffer? I tried cast[mySeqType](buffer) but of course that doesn't work, and the result unsurprisingly has no length. What's a proper way to do this, cast to cstring instead?
14:57:02Demosyou can cast[array[0..1000000, typ]](buffer)
14:57:09coffeepotah! Nice one :D
14:57:11Demosjust give the array some huge size
14:57:25coffeepotI can provide the actual size so that's no prob :)
14:57:30Demosthere's also a way to disable bounds checks for a particular array using a pragma
14:59:44coffeepotcheers Demos :)
14:59:55Araqno no no
14:59:59Araqdon't cast to array
15:00:05Araqcast to 'ptr array' ;-)
15:00:36coffeepotgood point :)
15:00:46*yglukhov__ quit (Ping timeout: 265 seconds)
15:03:52*irezvov quit (Quit: Page closed)
15:06:59Demosdamn! thanks Araq
15:08:58*yglukhov__ joined #nim
15:09:41*rkj-b quit (Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253])
15:11:16*xcombelle joined #nim
15:12:14*jubalh quit (Quit: Leaving)
15:14:46*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
15:14:57*Ven_ joined #nim
15:15:06*coffeepot joined #nim
15:16:46*Ven quit (Ping timeout: 255 seconds)
15:17:58*cg_ joined #nim
15:19:04cg_hello
15:19:16coffeepothiya
15:30:21*darkf quit (Quit: Leaving)
15:31:23*Matthias247 joined #nim
15:32:49*raza quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
15:35:11*gyeates quit (Ping timeout: 248 seconds)
15:38:18*ChrisMAN joined #nim
15:41:12r-kuc2nim gave me this forward declaration: proc curl_easy_send*(curl: ptr CURL; buffer: pointer; buflen: csize; n: ptr csize): CURLcode
15:41:27r-kucompiling yields error: Error: implementation of 'easy.curl_easy_send(curl: ptr CURL, buffer: pointer, buflen: csize, n: ptr csize)' expected
15:41:38r-kuany idea what should i do here?
15:48:36Demosis this in the translated C header file?
15:48:42Demosor in your app?
15:48:57Demosor are you trying to translate all of cURL into nim?
15:49:14r-kujust making wrappter w/ c2nim
15:49:24*gyeates joined #nim
15:51:08*vasher_ joined #nim
15:51:38*woadwarrior quit (Quit: My Mac has gone to sleep. ZZZzzz…)
15:55:42*raza joined #nim
15:56:17Demosyeah so you need to tell c2nim what library to use
15:56:27*strcmp1 joined #nim
15:56:49r-kuimportc/header pragmas?
15:56:51DemosI usually give it a name and then edit the generated source with like when win32: ...
15:56:52Demosyeah
15:56:58Demosbut c2nim can generate them for you
15:57:02Demosand use dynlib, not header
15:57:03r-kuah right, i didnt use --header for that part. thanks
15:57:16r-kuoh, i plan on linking curl statically
15:57:23Demosyou don't need header for that
15:57:37Demosyou use dynlib and then pass --overrideDynlib to the compiler
15:57:42Demosand link the correct static lib
15:58:01r-kuah ha, thanks. ill do just that
15:58:20Demos(I really want to make this process easier, but I think dynamic libs are the right default for pragmatic reasons)
15:59:00r-kuas long as there is a way to link statically there is no problem imo
15:59:14r-kuin the end nim compiler still gets less command line parameters than gcc ;))
15:59:54Demosyeah, unfortunately you do have to pass in a crap-ton of parameters to get static linking right
16:01:33*vendethiel quit (Ping timeout: 246 seconds)
16:10:09*dalarmmst joined #nim
16:11:19*vendethiel joined #nim
16:11:23*Demos quit (Remote host closed the connection)
16:11:58*Demos joined #nim
16:13:39*milosn quit (Ping timeout: 256 seconds)
16:16:37*Demos quit (Ping timeout: 264 seconds)
16:17:05*coffeepot left #nim (#nim)
16:18:25*woadwarrior joined #nim
16:18:39*^aurora^ joined #nim
16:20:08*yglukhov__ quit (Ping timeout: 246 seconds)
16:21:37*sepisoad joined #nim
16:23:27*sepisoad quit (Read error: Connection reset by peer)
16:23:39*milosn joined #nim
16:36:16*vendethiel quit (Ping timeout: 272 seconds)
16:40:19*ChrisMAN quit (Remote host closed the connection)
16:41:32reactormonkpigmej, optimization?
16:42:48*ChrisMAN joined #nim
16:45:21*MatrixBridge quit (Remote host closed the connection)
16:45:44*MatrixBridge joined #nim
16:51:06*vendethiel joined #nim
16:59:33*kas quit (Ping timeout: 264 seconds)
16:59:45*gyeates quit (Remote host closed the connection)
17:00:55*Demos joined #nim
17:06:32*kas joined #nim
17:18:45*lokulin quit (Ping timeout: 264 seconds)
17:20:36*raza quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
17:22:19*Jehan` joined #nim
17:27:21*woadwarr_ joined #nim
17:28:02*lokulin joined #nim
17:28:06*woadwarrior quit (Ping timeout: 252 seconds)
17:28:33*raza joined #nim
17:30:47*Demos_ joined #nim
17:34:21*Demos quit (Ping timeout: 264 seconds)
17:36:51*vendethiel quit (Ping timeout: 244 seconds)
17:46:04*dtscode quit (Quit: ZNC - 1.6.0 - http://znc.in)
17:50:18*Matthias247 quit (Read error: Connection reset by peer)
17:54:41*kas quit (Ping timeout: 252 seconds)
17:55:38*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:59:31*vendethiel joined #nim
17:59:39*kas joined #nim
18:02:14*NimBot joined #nim
18:08:06fowlDamn i told irezov i would help them and then i fell asleep :X
18:14:04*thepreacher joined #nim
18:15:01*woadwarrior joined #nim
18:15:57*thepreacher quit (Client Quit)
18:16:47*woadwarr_ quit (Ping timeout: 248 seconds)
18:18:44pigmejreactormonk: ?
18:23:00reactormonkpigmej, about colors not visible when the buffer isn't
18:23:13*vendethiel quit (Ping timeout: 264 seconds)
18:23:55pigmejyeah something like taht probably
18:24:03pigmejI'm gona to ask #emacs :)
18:25:45*raza quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
18:26:22*raza joined #nim
18:26:35*Demos_ quit (Remote host closed the connection)
18:32:27*vendethiel joined #nim
18:34:20*Demos joined #nim
18:43:28*NimBot joined #nim
18:52:51*thepreacher joined #nim
19:06:28*Jesin quit (Quit: Leaving)
19:20:18*thepreacher quit (Remote host closed the connection)
19:24:05*boopsiesisaway is now known as boopsies
19:30:56*thepreacher joined #nim
19:35:42*thepreacher quit (Ping timeout: 252 seconds)
19:48:52*Jesin joined #nim
19:49:16*thepreacher joined #nim
19:50:09pigmejreactormonk: works ;]
19:50:18reactormonk\o/
19:53:08pigmejreactormonk: https://github.com/pigmej/nim-mode/blob/thing-at-point/nim-thing-at-point.el
19:53:52reactormonkso it displays call sig of the proc at point?
19:53:56*thepreacher quit (Client Quit)
19:54:44pigmejproc, type, method, variable
19:55:02pigmejin minibuffer
19:55:10pigmejand it's defaulted to 1 sec delay
19:55:39reactormonk:D
19:56:01reactormonkdoes it work for const?
19:56:27pigmejhmm
19:56:47pigmejyeah
19:57:02pigmejdisplays skConst: int literal(10)
19:57:12pigmejwhen I defined const like
19:57:13*^aurora^ quit (Quit: Textual IRC Client: www.textualapp.com)
19:57:16pigmejconst abc = 10
19:59:01reactormonk:D
19:59:19reactormonkI think you could format it to constant: - aka make a map
20:00:35pigmejyeah, I just used epc-nim-skname
20:01:25*raza quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
20:01:52pigmejsymkind*
20:02:41pigmejok now it returns const
20:02:43pigmej;-)
20:17:23*Demos quit (Remote host closed the connection)
20:18:52*Demos joined #nim
20:19:57*jszymanski quit (Quit: computer sleeps...)
20:23:06pigmejreactormonk: test it when you will find time, then I will rebase and we're ready to merge to master ;)
20:23:31*jszymanski joined #nim
20:28:10*jszymanski quit (Ping timeout: 255 seconds)
20:34:12*Demos quit (Remote host closed the connection)
20:34:14*xcombelle quit (Remote host closed the connection)
20:43:42reactormonksweet
20:46:59*thepreacher joined #nim
20:58:01*elbow_jason joined #nim
21:11:05*thepreacher quit ()
21:16:25*key_ quit (Read error: Connection reset by peer)
21:17:15*filcuc joined #nim
21:26:39*wu-lee quit (Remote host closed the connection)
21:27:43*kas quit (Ping timeout: 250 seconds)
21:30:36*woadwarrior quit (Quit: My Mac has gone to sleep. ZZZzzz…)
21:43:32*Demos joined #nim
21:44:48*FedeOmoto quit (Quit: Leaving)
21:47:45*Demos quit (Ping timeout: 246 seconds)
21:57:03*thales joined #nim
21:57:27*thales is now known as Guest62169
21:58:22*yglukhov__ joined #nim
21:59:03*nande joined #nim
22:00:43*filcuc quit (Quit: Konversation terminated!)
22:05:36*flaviu quit (Ping timeout: 272 seconds)
22:09:13*saml quit (Quit: Leaving)
22:09:32*flaviu joined #nim
22:10:02*Matthias247 joined #nim
22:13:03*gokr quit (Quit: Leaving.)
22:30:45*strcmp1 quit (Quit: Leaving)
22:35:33*milosn quit (Read error: Connection reset by peer)
22:37:12*milosn joined #nim
22:39:01*Matthias247 quit (Read error: Connection reset by peer)
22:44:54*Trustable quit (Remote host closed the connection)
22:51:28*Kingsquee joined #nim
23:14:59reactormonkpigmej, don't forget the PR, otherwise I'll forget about it
23:18:58*ekarlso quit (Changing host)
23:18:58*ekarlso joined #nim
23:19:15pigmejreactormonk: tomorrow
23:19:18pigmejI'm off for nwo :)
23:22:28*dddddd quit (Ping timeout: 256 seconds)
23:24:45*apense joined #nim
23:30:10*xdc joined #nim
23:31:39*Kingsquee quit (Ping timeout: 250 seconds)
23:31:45*yglukhov__ quit (Quit: Be back later ...)
23:32:07*Kingsquee joined #nim
23:32:14*saml_ joined #nim
23:38:44*vasher_ quit (Quit: Connection closed for inactivity)
23:41:04*boopsies is now known as boopsiesisaway
23:46:35*wu-lee joined #nim