<< 01-08-2016 >>

00:04:17*endragor joined #nim
00:05:17*bjz joined #nim
00:08:46*endragor quit (Ping timeout: 250 seconds)
00:09:47*bjz quit (Client Quit)
00:18:39*yglukhov joined #nim
00:21:27*shodan45 joined #nim
00:22:53*yglukhov quit (Ping timeout: 244 seconds)
00:42:16*brson quit (Quit: leaving)
00:42:56*yglukhov joined #nim
00:47:51*yglukhov quit (Ping timeout: 276 seconds)
01:03:22*endragor joined #nim
01:03:26*Trixar_za quit (Quit: Leaving)
01:07:47*endragor quit (Ping timeout: 260 seconds)
01:10:16*chemist69 quit (Ping timeout: 250 seconds)
01:16:54*ftsf_ joined #nim
01:19:15*yglukhov joined #nim
01:23:20*yglukhov quit (Ping timeout: 244 seconds)
01:23:24*chemist69 joined #nim
01:38:40*nairobi joined #nim
01:39:33*nairobi quit (Read error: Connection reset by peer)
01:40:01*nairobi joined #nim
01:43:32*yglukhov joined #nim
01:44:21*nairobi quit (Ping timeout: 244 seconds)
01:44:49*endragor joined #nim
01:48:18*yglukhov quit (Ping timeout: 276 seconds)
01:49:18*endragor quit (Ping timeout: 250 seconds)
01:55:41*kssreeram joined #nim
01:59:10*kssreeram quit (Client Quit)
02:03:25*endragor joined #nim
02:07:39*yglukhov joined #nim
02:08:14*endragor quit (Ping timeout: 260 seconds)
02:11:06*pdv joined #nim
02:11:54*yglukhov quit (Ping timeout: 244 seconds)
02:31:49*yglukhov joined #nim
02:36:11*yglukhov quit (Ping timeout: 244 seconds)
03:07:50*yglukhov joined #nim
03:12:48*yglukhov quit (Ping timeout: 276 seconds)
03:16:08*endragor joined #nim
03:16:46*endragor quit (Remote host closed the connection)
03:17:28*endragor joined #nim
03:30:39*Kaini quit (Remote host closed the connection)
03:30:52*Kaini joined #nim
03:32:22*yglukhov joined #nim
03:33:40*endragor quit (Remote host closed the connection)
03:36:38*yglukhov quit (Ping timeout: 244 seconds)
03:38:26*aFrigginElf joined #nim
03:42:00*endragor joined #nim
03:53:03*kssreeram joined #nim
03:56:32*yglukhov joined #nim
04:00:55*yglukhov quit (Ping timeout: 244 seconds)
04:03:49*kulelu88 joined #nim
04:10:05*endragor quit (Remote host closed the connection)
04:20:51*chemist69 quit (Ping timeout: 264 seconds)
04:21:11*chemist69 joined #nim
04:21:25*endragor joined #nim
04:32:35*yglukhov joined #nim
04:36:30*aFrigginElf quit (Read error: Connection reset by peer)
04:36:57*aFrigginElf joined #nim
04:37:05*yglukhov quit (Ping timeout: 244 seconds)
04:39:12*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:47:17*space-wizard joined #nim
04:57:02*yglukhov joined #nim
05:02:00*yglukhov quit (Ping timeout: 276 seconds)
05:13:24*ftsf_ quit (Ping timeout: 250 seconds)
05:25:00*ftsf_ joined #nim
05:37:24*hendi__ joined #nim
05:39:30*girvo joined #nim
05:39:37girvoHey all :)
05:42:03*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
05:44:45ftsf_ahoy!
05:46:14girvoquick (dumb) question: I'm interfacing with the posix/termios procs; I need to pass pointers to them, so I'm doing so via addr() -- can I pass refs instead? Or, whats the proc for cleaning up heap-allocated objects that I've passed pointers of to procs?
05:51:07ftsf_dealloc
05:51:19ftsf_( i don't know about refs )
05:51:39girvodealloc is exactly what I was looking for, perfect
05:52:26girvoLastly, debugging a Nim terminal app that uses xterm's alternate buffer and raw STDIN mode is... difficult. Does anyone have any decent docs on using GDB or similar for step-wise debugging Nim programs?
05:53:13ftsf_hmm i've just used gdb for debugging nim apps compiled with -d:debug seems to work ok
05:53:32girvoNeat, I'll give it a try. I haven't used GDB much to be honest
05:53:54ftsf_it's not the most friendly tool, but useful
05:56:11*kulelu88 quit (Quit: Leaving)
06:03:50Araqgirvo: use --debugger:native for GDB support
06:09:29*der-landgraf joined #nim
06:11:10*ftsf_ has been dreaming in nim lately
06:12:43ftsf_discovered: cast[array[int.high, uint8]](foo) is very different from cast[ptr array[int.high, uint8]](foo)
06:25:16*irrequietus joined #nim
06:54:38*endragor quit (Remote host closed the connection)
07:06:13*yglukhov joined #nim
07:16:14*girvo quit (Ping timeout: 260 seconds)
07:16:22*fastrom joined #nim
07:21:40*gokr joined #nim
07:25:39*girvo joined #nim
07:28:24def-ftsf: yep, also noticed that
07:30:14*girvo quit (Ping timeout: 260 seconds)
07:30:33*pafmaf joined #nim
07:35:55*shodan45 quit (Quit: Konversation terminated!)
07:36:42ftsf_it'd be nice to have some protection against that, but cast is kind of like saying "i know what i'm doing"
07:40:45*aFriginElf joined #nim
07:42:02*endragor joined #nim
07:43:34*endragor quit (Remote host closed the connection)
07:44:12*aFrigginElf quit (Ping timeout: 250 seconds)
07:44:19*aFrigginElf joined #nim
07:45:30*aFriginElf quit (Ping timeout: 250 seconds)
07:45:49*endragor joined #nim
07:47:12*endragor quit (Remote host closed the connection)
07:50:51*themagician quit (Ping timeout: 244 seconds)
07:51:20*aFrigginElf quit (Read error: Connection reset by peer)
07:52:33*themagician joined #nim
07:55:54*endragor joined #nim
07:57:09*endragor quit (Remote host closed the connection)
07:58:53*ftsf_ quit (Quit: :q!)
08:01:19*Demon_Fox quit (Quit: Leaving)
08:03:46*hendi__ quit (Ping timeout: 244 seconds)
08:03:53*Trustable joined #nim
08:10:09*girvo joined #nim
08:10:33*themagician quit (Ping timeout: 240 seconds)
08:13:10*endragor joined #nim
08:13:37*kssreeram quit (Ping timeout: 260 seconds)
08:14:33*themagician joined #nim
08:17:33*girvo quit (Ping timeout: 240 seconds)
08:17:47*endragor quit (Ping timeout: 258 seconds)
08:18:23*kssreeram joined #nim
08:19:22*girvo joined #nim
08:25:34*kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…)
08:32:18*girvo quit (Ping timeout: 250 seconds)
08:54:38*hogyncymraeg joined #nim
08:55:51hogyncymraegHi. I'm fairly new to nim and noticed recently that every time i import asynchhtpserver, i get the following error: lib/pure/httpcore.nim(84, 20) Error: undeclared field: 'key'
08:56:05hogyncymraeganyone seen this before?
09:03:32*nairobi joined #nim
09:06:22hogyncymraegIt seems to happen if you import parsecfg before it
09:07:57*Arrrr joined #nim
09:07:57*Arrrr quit (Changing host)
09:07:57*Arrrr joined #nim
09:08:25*kssreeram joined #nim
09:09:51*elrood joined #nim
09:09:54*irrequietus quit (Ping timeout: 244 seconds)
09:13:23*girvo joined #nim
09:14:45*endragor joined #nim
09:16:21*bjz joined #nim
09:17:28hogyncymraegpastebin of problem: http://pastebin.com/yp23Trs7
09:18:02*girvo quit (Ping timeout: 258 seconds)
09:19:11*endragor quit (Ping timeout: 258 seconds)
09:27:11ArrrrIt compiles ok to me, you should pull from devel.
09:33:14hogyncymraegJust did, and yes, it compiles!
09:34:02hogyncymraegMust have been fixed last few days as my previous version didn't compile (0.14.3 (2016-07-25))
09:34:14Araqyup. workaround for older versions: change import order
09:34:48hogyncymraegThanks Araq! Installed new version. All good.
09:35:16hogyncymraegBTW Araq, I haven't felt so comfortable with a language in a long time. Awesome work :-)
09:36:36Araqalways glad to hear that :-)
09:37:55*endragor joined #nim
09:38:16AraqIn my spare time, I keep designing 'nim v2' and it never gets anywhere, so ... it looks good for nim v1 :P
09:39:01*irrequietus joined #nim
09:45:46ArrrrWhat's the main difference between versions?
09:48:06*fredrik92 joined #nim
09:48:44AraqArrrr: I throw out everything that was hard to implement
09:48:57Araqor feature that I don't need all that much
09:49:02Araq*features
09:49:36ArrrrSo, no concepts or methods i presume
09:53:08Araqno iterators, no converters, no hygienic macros, no methods, no effect system, no GC, no exceptions, no 'var T', no 'case objects', no inheritance, no subranges, ...
09:53:47cheatfateAraq, it becomes look like C
09:54:05cheatfateor even pure Assembler
09:54:23Araqcheatfate: where did you read "confuses arrays and pointers" in my description? :P
09:55:32cheatfateAraq, ok, not C
09:55:36cheatfateAssembler?
09:55:46Arrrrwow, no iterators and no GC?
09:59:00ArrrrAnd what's the replacement of case objects if you don't allow inheritance?
09:59:42AraqI dunno.
10:00:03*cheatfate_ joined #nim
10:00:03*cheatfate quit (Read error: Connection reset by peer)
10:00:10*cheatfate_ is now known as cheatfate
10:00:13Araqmost likely I would add back inheritance
10:04:18nivAraq: what do you think of D?
10:04:51*girvo joined #nim
10:06:47Araqlater, gotta go.
10:07:08nivlaters :)
10:07:34hogyncymraegD was cool when I tried it a while back, but that was when there was a splitbrain in the runtime library
10:07:48hogyncymraegTotally made life hell trying to do anything
10:08:08nivi've been poking at it now and again and it /kind of/ gives me a similar vibe as nim does
10:08:22nivits certainly more fun to write than C++
10:09:20*girvo quit (Ping timeout: 250 seconds)
10:12:00*girvo joined #nim
10:17:34*girvo quit (Ping timeout: 265 seconds)
10:18:12*brechtm_ joined #nim
10:21:27*brechtm quit (Ping timeout: 264 seconds)
10:22:22*brechtm_ quit (Ping timeout: 250 seconds)
10:23:38*hogyncymraeg quit (Ping timeout: 250 seconds)
10:29:21ArrrrDoes D have good ides?
10:29:39Flox42you lucky guys. I am struggling with golang and cgo ... what a mess compared to nim
10:37:06*hendi__ joined #nim
10:37:22*endragor quit (Remote host closed the connection)
10:38:54*endragor joined #nim
10:51:48*kssreeram quit (Ping timeout: 250 seconds)
11:01:34*kssreeram joined #nim
11:03:08*pdv quit (Remote host closed the connection)
11:13:22*girvo joined #nim
11:18:21*girvo quit (Ping timeout: 276 seconds)
11:19:17*xet7 joined #nim
11:24:35*brainbomb_ joined #nim
11:27:37*brechtm joined #nim
11:27:59*kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…)
11:31:46*ephja joined #nim
12:03:43*arnetheduck quit (Remote host closed the connection)
12:06:22*gokr quit (Ping timeout: 260 seconds)
12:10:18*girvo joined #nim
12:15:57ftsfhmm how does one create an instance of an iterator (closure)?
12:18:09*girvo quit (Ping timeout: 258 seconds)
12:18:44ftsfiterator foo(a,b,c,d:int): int = ... ; var x = foo(1,2,3,4); x()
12:19:04ftsfattempting to call undeclared routine: 'foo' when i do x = foo(...)
12:20:51*rolha quit (Quit: My Mac has gone to sleep. ZZZzzz…)
12:21:26ftsfahh need to doo var x = foo; x(1,2,3,4)
12:27:29ftsfoh i see, they're stateless?
12:30:05ftsfhmm, no.. if i call an iterator multiple times, what should I pass it as arguments?
12:31:36ftsfI guess I should have a closure to generate an iterate and not have the iterator take arguments
12:36:56*gokr joined #nim
12:51:43ArrrrMaybe you need {.closure.} pragma
12:52:24ftsfcreating the iterator in a proc and returning that works
12:55:32*Arrrr quit (Read error: Connection reset by peer)
12:55:47*nairobi quit (Remote host closed the connection)
12:58:03*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
12:59:02*brechtm_ joined #nim
13:00:20*nsf quit (Quit: WeeChat 1.5)
13:01:03*brechtm quit (Ping timeout: 264 seconds)
13:02:28*bjz joined #nim
13:13:22*girvo joined #nim
13:16:38ftsfyay! got my pixel perfect triangle fill working \o/
13:16:51ftsfmade a bresenham iterator
13:18:36*girvo quit (Ping timeout: 276 seconds)
13:23:59*filcuc joined #nim
13:24:45*kssreeram joined #nim
13:32:53*fredrik92 quit (Ping timeout: 258 seconds)
13:33:11SentreenIs there any way to obtain the current thread/id?
13:36:50*brechtm_ quit (Remote host closed the connection)
13:38:19*fredrik92 joined #nim
13:40:08*gokr quit (Read error: Connection reset by peer)
13:44:16*brechtm joined #nim
13:50:36*gokr joined #nim
13:58:27*Jesin quit (Quit: Leaving)
14:04:00*NhanH quit (Ping timeout: 258 seconds)
14:04:12*kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…)
14:04:20*zielmicha quit (Read error: Connection reset by peer)
14:08:00*Flox42 quit (Ping timeout: 276 seconds)
14:08:17*M-max quit (Ping timeout: 260 seconds)
14:08:34*M-max joined #nim
14:08:46*Trixar_za joined #nim
14:12:45*NhanH joined #nim
14:13:06*Flox42 joined #nim
14:13:25*girvo joined #nim
14:16:41*zielmicha joined #nim
14:18:11*girvo quit (Ping timeout: 258 seconds)
14:20:55*michael_campbell quit (Read error: Connection reset by peer)
14:28:06*fredrik92 quit (Ping timeout: 258 seconds)
14:31:27*endragor quit (Remote host closed the connection)
14:36:43*CARAM__ quit (Ping timeout: 250 seconds)
14:37:49cheatfateSentreen, http://nim-lang.org/docs/threads.html
14:39:15*CARAM__ joined #nim
14:40:37SentreenI checked that, but as far as I can tell it doesn't allow me to obtain the thread I'm currently running in
14:41:31*fredrik92 joined #nim
14:41:48cheatfateSentreen, pass this Thread to thread as argument...
14:45:36cheatfateor you can do on windows GetCurrentThreadId and on posix systems pthread_t pthread_self(void);
14:45:49cheatfatebut this will be system thread id
14:47:10SentreenRight, I'm writting a logger for a multithreaded application, and I need to differentiate between threads. I'm trying to avoid passing around threadid all the time.
14:47:30SentreenUsing GetCurrentThreadId and pthread_self should work out just fine though
14:47:32SentreenThanks!
15:03:08*endragor joined #nim
15:07:39*endragor quit (Ping timeout: 264 seconds)
15:07:42*brechtm quit (Remote host closed the connection)
15:13:26*girvo joined #nim
15:18:04*girvo quit (Ping timeout: 260 seconds)
15:21:48*xet7 quit (Quit: Leaving)
15:26:21*gokr quit (Read error: Connection reset by peer)
15:35:02*pregressive joined #nim
15:36:05*gokr joined #nim
15:39:01*brechtm joined #nim
15:39:11Xewhat is the dockerfile for nimlang/nim?
15:39:41Xeoh
15:39:57Xeit's just some random's dockerfiles, okay
15:40:28Xewow
15:40:35Xesome random giu's very inefficient dockerfiles
15:40:38Xeguy*
15:48:13*M-max quit (Ping timeout: 250 seconds)
15:48:36*Flox42 quit (Ping timeout: 244 seconds)
15:48:48*filcuc quit (Read error: Connection reset by peer)
15:50:08*M-Quora quit (Ping timeout: 258 seconds)
15:50:39*rolha joined #nim
15:55:10*brainbomb_ quit (Quit: ChatZilla 0.9.92 [Firefox 47.0.1/20160623154057])
15:57:14*nairobi joined #nim
15:58:21*nairobi_ joined #nim
16:01:45*nairobi quit (Ping timeout: 276 seconds)
16:02:27*Flox42 joined #nim
16:02:50*nairobi_ quit (Ping timeout: 258 seconds)
16:03:19*Flox42 quit (Remote host closed the connection)
16:07:31*Trixar_za quit (Quit: Leaving)
16:13:24*girvo joined #nim
16:13:32*yglukhov quit (Ping timeout: 240 seconds)
16:16:12*kingofoz quit (Ping timeout: 240 seconds)
16:17:32*girvo quit (Ping timeout: 244 seconds)
16:23:57*Flox42 joined #nim
16:24:37*fredrik92 quit (Ping timeout: 258 seconds)
16:43:16*lesshaste quit (Remote host closed the connection)
16:46:13*gokr quit (Read error: Connection reset by peer)
16:52:07*space-wizard joined #nim
16:54:26*yglukhov joined #nim
16:55:35*yglukhov quit (Remote host closed the connection)
16:55:47*yglukhov joined #nim
17:08:29*rolha quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:13:25*girvo joined #nim
17:14:28*krux02 joined #nim
17:17:17*krux02 quit (Client Quit)
17:17:52*girvo quit (Ping timeout: 252 seconds)
17:25:41*rolha joined #nim
17:38:16*hendi__ quit (Ping timeout: 250 seconds)
17:43:46*brson joined #nim
17:46:05*Arrrr joined #nim
17:55:42*fredrik92 joined #nim
17:56:40*nairobi joined #nim
17:58:46*nairobi_ joined #nim
18:00:35*brechtm_ joined #nim
18:00:41*ephja quit (Read error: Connection reset by peer)
18:01:03*nairobi quit (Ping timeout: 264 seconds)
18:01:42*nairobi joined #nim
18:03:30*nairobi_ quit (Ping timeout: 265 seconds)
18:04:39*brechtm quit (Ping timeout: 264 seconds)
18:06:41*endragor joined #nim
18:08:21*jeffc joined #nim
18:10:59*_stowa joined #nim
18:11:11*endragor quit (Ping timeout: 258 seconds)
18:12:59*saml quit (Remote host closed the connection)
18:13:25*girvo joined #nim
18:16:34*gokr joined #nim
18:17:33*girvo quit (Ping timeout: 240 seconds)
18:18:10*_stowa quit (K-Lined)
18:18:31*kingofoz joined #nim
18:19:00*brechtm_ quit (Remote host closed the connection)
18:19:29*brechtm joined #nim
18:21:29*desophos joined #nim
18:24:03*saml joined #nim
18:43:43*kulelu88 joined #nim
18:48:03*xet7 joined #nim
18:50:54*nsf joined #nim
18:55:43*gokr quit (Ping timeout: 258 seconds)
19:03:40*endragor joined #nim
19:05:18*M-Quora joined #nim
19:05:25*M-max joined #nim
19:08:25*endragor quit (Ping timeout: 252 seconds)
19:12:29*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
19:13:22*girvo joined #nim
19:14:18*space-wizard joined #nim
19:14:53*space-wizard quit (Max SendQ exceeded)
19:15:29*space-wizard joined #nim
19:16:04*space-wizard quit (Max SendQ exceeded)
19:16:41*michael_campbell joined #nim
19:16:44*space-wizard joined #nim
19:16:49*kingofoz quit (Ping timeout: 244 seconds)
19:17:56*girvo quit (Ping timeout: 265 seconds)
19:38:29*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
19:40:05*space-wizard joined #nim
19:40:11*gokr joined #nim
19:40:40*space-wizard quit (Max SendQ exceeded)
19:41:19*space-wizard joined #nim
19:41:54*space-wizard quit (Max SendQ exceeded)
19:42:33*space-wizard joined #nim
19:43:36*Matthias247 joined #nim
19:45:58*endragor joined #nim
19:51:12*endragor quit (Ping timeout: 276 seconds)
20:03:00*endragor joined #nim
20:05:15*brechtm quit (Remote host closed the connection)
20:05:29*fredrik92 quit (Quit: Shutting down . . .)
20:06:31*brechtm joined #nim
20:07:12*endragor quit (Ping timeout: 240 seconds)
20:13:22*girvo joined #nim
20:14:41*kssreeram joined #nim
20:17:43*girvo quit (Ping timeout: 252 seconds)
20:28:13*Arrrr quit (Quit: WeeChat 1.4)
20:32:40*avsej quit (Quit: Quit)
20:33:29*avsej joined #nim
20:33:29*avsej quit (Changing host)
20:33:29*avsej joined #nim
20:42:17*irrequietus quit ()
20:42:28*irrequietus joined #nim
20:44:58*endragor joined #nim
20:49:42*endragor quit (Ping timeout: 276 seconds)
21:03:16*endragor joined #nim
21:03:47*pregressive quit (Remote host closed the connection)
21:04:44*libman joined #nim
21:08:04*endragor quit (Ping timeout: 260 seconds)
21:11:43*Trixar_za joined #nim
21:12:41*andi___ joined #nim
21:13:25*girvo joined #nim
21:18:12*girvo quit (Ping timeout: 260 seconds)
21:26:39*andi___ quit (Quit: ChatZilla 0.9.92 [Firefox 47.0/20160604131506])
21:29:54*fastrom quit (Quit: Leaving.)
21:33:41*ehaliewicz joined #nim
21:33:44*Sembei joined #nim
21:34:30*fastrom joined #nim
21:45:09*endragor joined #nim
21:48:51*gokr quit (Ping timeout: 276 seconds)
21:49:34*endragor quit (Ping timeout: 252 seconds)
21:53:02*pafmaf quit (Quit: Leaving)
22:01:31*Matthias247 quit (Read error: Connection reset by peer)
22:02:33*Arcanum_za joined #nim
22:02:56*endragor joined #nim
22:05:14*Trixar_za quit (Ping timeout: 260 seconds)
22:07:28*endragor quit (Ping timeout: 244 seconds)
22:13:24*girvo joined #nim
22:17:49*girvo quit (Ping timeout: 244 seconds)
22:20:45*Trustable quit (Remote host closed the connection)
22:45:01*nairobi quit (Remote host closed the connection)
22:45:11*endragor joined #nim
22:49:52*endragor quit (Ping timeout: 258 seconds)
23:00:15*nairobi joined #nim
23:01:56*girvo joined #nim
23:02:37*endragor joined #nim
23:04:12*nairobi quit (Ping timeout: 240 seconds)
23:06:23*girvo quit (Ping timeout: 244 seconds)
23:06:44*endragor quit (Ping timeout: 244 seconds)
23:13:24*girvo joined #nim
23:13:39*M-Quora quit (Ping timeout: 258 seconds)
23:13:42*M-max quit (Ping timeout: 258 seconds)
23:13:58*Flox42 quit (Ping timeout: 244 seconds)
23:17:33*girvo quit (Ping timeout: 240 seconds)
23:18:45*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
23:20:08*space-wizard joined #nim
23:20:43*space-wizard quit (Max SendQ exceeded)
23:21:20*space-wizard joined #nim
23:29:26*kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…)
23:48:48*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:50:10*elrood quit (Remote host closed the connection)
23:53:45*yglukhov quit (Remote host closed the connection)
23:54:49*nairobi joined #nim
23:58:25*girvo joined #nim