<< 10-09-2016 >>

00:22:51*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:29:46*brson joined #nim
00:37:27*brson quit (Ping timeout: 265 seconds)
00:43:25*girvo joined #nim
00:48:05*girvo quit (Ping timeout: 265 seconds)
00:59:38*arnetheduck joined #nim
01:08:52*chemist69 quit (Ping timeout: 264 seconds)
01:22:11*chemist69 joined #nim
02:18:48*desophos quit (Read error: Connection reset by peer)
02:21:36*csoriano_ quit (Quit: csoriano_)
02:44:14*girvo joined #nim
02:48:55*girvo quit (Ping timeout: 265 seconds)
03:03:31*yglukhov joined #nim
03:08:07*yglukhov quit (Ping timeout: 250 seconds)
03:28:03*gsingh93 quit (Excess Flood)
03:28:17*gsingh93 joined #nim
03:43:58*girvo joined #nim
03:48:26*girvo quit (Ping timeout: 250 seconds)
03:58:42*Sentreen quit (Ping timeout: 276 seconds)
04:02:36*ARCADIVS joined #nim
04:10:07*Sentreen joined #nim
04:29:04*dddddd quit (Ping timeout: 240 seconds)
04:32:44*space-wizard joined #nim
04:34:34*Demon_Fox joined #nim
04:44:52*girvo joined #nim
04:49:10*girvo quit (Ping timeout: 252 seconds)
05:07:41*brechtm quit (*.net *.split)
05:07:41*Jesin quit (*.net *.split)
05:07:41*alexsystemf___ quit (*.net *.split)
05:07:41*zielmicha quit (*.net *.split)
05:07:41*Sergio965 quit (*.net *.split)
05:07:41*huonw quit (*.net *.split)
05:07:41*cnu- quit (*.net *.split)
05:07:41*flyx quit (*.net *.split)
05:07:41*opi quit (*.net *.split)
05:07:41*lenstr quit (*.net *.split)
05:07:41*jeffc quit (*.net *.split)
05:07:41*kunev quit (*.net *.split)
05:07:41*abruanese quit (*.net *.split)
05:07:41*lyro quit (*.net *.split)
05:07:41*ldlework quit (*.net *.split)
05:07:41*SianaGearz quit (*.net *.split)
05:07:41*asdf quit (*.net *.split)
05:07:41*jackv quit (*.net *.split)
05:07:41*mtj_ quit (*.net *.split)
05:07:41*Satyajit quit (*.net *.split)
05:07:41*ofelas quit (*.net *.split)
05:07:41*CcxCZ quit (*.net *.split)
05:07:41*GaveUp quit (*.net *.split)
05:07:41*javax quit (*.net *.split)
05:07:41*ARCADIVS quit (*.net *.split)
05:07:41*StarBrilliant quit (*.net *.split)
05:07:41*vktec quit (*.net *.split)
05:07:41*pleiosaur quit (*.net *.split)
05:07:41*dyce quit (*.net *.split)
05:07:41*ehmry quit (*.net *.split)
05:07:41*cyraxjoe quit (*.net *.split)
05:07:43*heinrich5991 quit (*.net *.split)
05:07:43*bodie_ quit (*.net *.split)
05:07:45*low-profile quit (*.net *.split)
05:07:45*tstm quit (*.net *.split)
05:07:45*Xe quit (*.net *.split)
05:08:48*Xe joined #nim
05:09:46*dyce joined #nim
05:11:37*NhanH quit (Ping timeout: 250 seconds)
05:17:58*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
05:22:25*NhanH joined #nim
05:25:19*brechtm joined #nim
05:25:19*Jesin joined #nim
05:25:19*opi joined #nim
05:25:19*alexsystemf___ joined #nim
05:25:19*zielmicha joined #nim
05:25:19*Sergio965 joined #nim
05:25:19*huonw joined #nim
05:25:19*cnu- joined #nim
05:25:19*flyx joined #nim
05:55:58*xet7 quit (Ping timeout: 265 seconds)
06:03:48*brson joined #nim
06:29:25*nairobi joined #nim
06:32:49*brson quit (Quit: leaving)
06:48:21FromGitter<x421> Hey, is there a null coalescing operator in nim?
06:48:22*nairobi quit (Read error: Connection reset by peer)
07:20:14*brson joined #nim
07:22:54*brson quit (Client Quit)
07:46:38*girvo joined #nim
07:51:24*girvo quit (Ping timeout: 265 seconds)
08:02:44*ARCADIVS joined #nim
08:03:13*Gonzih quit (Quit: WeeChat 1.5)
08:04:43*gokr joined #nim
08:04:43*StarBrilliant joined #nim
08:04:43*vktec joined #nim
08:04:43*pleiosaur joined #nim
08:04:43*ehmry joined #nim
08:04:43*cyraxjoe joined #nim
08:04:43*bodie_ joined #nim
08:04:43*heinrich5991 joined #nim
08:04:43*low-profile joined #nim
08:04:43*tstm joined #nim
08:04:53*Gonzih joined #nim
08:05:19*lenstr joined #nim
08:05:19*jeffc joined #nim
08:05:19*kunev joined #nim
08:05:19*abruanese joined #nim
08:05:19*lyro joined #nim
08:05:19*ldlework joined #nim
08:05:19*SianaGearz joined #nim
08:05:19*asdf joined #nim
08:05:27*Matthias247 joined #nim
08:05:28*jackv joined #nim
08:05:28*mtj_ joined #nim
08:05:28*Satyajit joined #nim
08:05:28*ofelas joined #nim
08:05:28*javax joined #nim
08:05:28*CcxCZ joined #nim
08:05:28*GaveUp joined #nim
08:14:39*elrood joined #nim
08:17:47*Demon_Fox quit (Quit: Leaving)
08:22:36*planhths joined #nim
08:25:00*csoriano_ joined #nim
08:27:44*planhths quit (Ping timeout: 265 seconds)
08:50:54*Trustable joined #nim
08:57:03*GangstaCat joined #nim
08:57:28*yglukhov joined #nim
09:21:48*gokr quit (Remote host closed the connection)
09:27:22flyxI have this strange error: https://gist.github.com/flyx/0e03e697855084a88d8b5fc1ba89c963
09:28:23flyxapparently, when I instantiate printContent with a generic parameter in newStringB, the compiler fails to recognize any fields of B
09:33:53flyxhmm, I better create an issue
09:39:08flyxfor the time being, I hope there is some workaround better than calling init() manually
09:44:53*gokr joined #nim
09:47:27*girvo joined #nim
09:52:04*girvo quit (Ping timeout: 264 seconds)
09:53:34*zaquest quit (Remote host closed the connection)
09:55:19*zaquest joined #nim
10:04:40*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
10:07:09*bjz joined #nim
10:10:06*bjz quit (Client Quit)
11:14:00*chemist69 quit (Ping timeout: 265 seconds)
11:16:21*Matthias247 quit (Read error: Connection reset by peer)
11:17:54*chemist69 joined #nim
11:48:20*girvo joined #nim
11:52:32*girvo quit (Ping timeout: 240 seconds)
12:30:17*bjz joined #nim
12:36:57*xet7 joined #nim
12:41:44SentreenSo stupid question: I have a macro that generates a proc based on the value of an enum. I want to call this macro on every possible value of this enum.
12:42:10SentreenI just loop over the enum values now, that's easy, but the generated proc stays in the scope of the for (and cannot be exported at that level)
12:42:16SentreenIs there any way to work around this?
12:47:25flyxSentreen: you can loop over the enum's values in a macro and return a statement list wherein you concatenate the calls to the original macro
12:53:29*akaisora joined #nim
12:57:42SentreenThat sounds like a great way to do it, thanks!
13:14:54*dddddd joined #nim
13:22:40*chemist69 quit (Ping timeout: 264 seconds)
13:22:49*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
13:23:05*bjz joined #nim
13:26:51*xet7 quit (Quit: Leaving)
13:27:57*bjz quit (Client Quit)
13:49:07*chemist69 joined #nim
13:49:16*girvo joined #nim
13:53:59*girvo quit (Ping timeout: 265 seconds)
14:04:44yglukhovcheatfate: we're getting a problem with nimongo on windows. looks like it's stuck somewhere in asyncdispatch. the issue can not be reproduced with nim 41f6c08f92f9f0255330155f6fe8802e3fb2ba3a (5 days ago), but reproduces with HEAD. do you have any ideas?
14:05:28cheatfateyglukhov, even don't know what to say there was many patches
14:06:18cheatfatebut none of them touches semantic
14:06:34cheatfatedoes your nimongo uses ssl?
14:09:19cheatfateyglukhov, ok there is only 3 big changes was made, 1st SSL (server-side ssl), 2nd https://github.com/nim-lang/Nim/pull/4683
14:09:36cheatfatei dont think move all macro code to asyncmacro.nim could cause a problem
14:12:38*bjz joined #nim
14:13:35hohlerdedo you know of any (online) shop where I can order Nim shirts?
14:17:10*bjz quit (Client Quit)
14:21:34yglukhovcheatfate: nimongo doesnt use ssl afaik
14:23:00yglukhovcheatfate: and the problem is only with windows
14:25:08*planhths joined #nim
14:26:52cheatfateyglukhov, is it possible to show changes between 2 versions of nim in github?
14:28:36yglukhovcheatfate: https://github.com/nim-lang/Nim/compare ?
14:29:30cheatfateyeah but i can't compare to your (41f6c08f92f9f0255330155f6fe8802e3fb2ba3a)
14:30:03*ARCADIVS quit (Quit: ARCADIVS)
14:33:12yglukhovhttps://github.com/nim-lang/Nim/compare/41f6c08f92f9f0255330155f6fe8802e3fb2ba3a...devel
14:33:15yglukhov?
14:40:05yglukhovcheatfate: ok, so if you've got windows with mongodb running, you can easily reproduce the issue by running nimngo tests: nim c -r nimongo/nimongotest
14:43:25cheatfateyglukhov, heh i dont have mongo
14:44:04cheatfateyglukhov, do you have used upcoming version or current?
14:44:13yglukhovcheatfate: current
14:49:39*mcc joined #nim
14:55:54cheatfatei dont see any changes in this diffs
14:56:35*fredrik92 joined #nim
14:58:41mccI am confused by "cstringarray". Why is this a different type from cstring addr?
15:05:36mccerr n/m figured it out
15:06:31mccupdate: i have not figured it out at all
15:09:59*yglukhov quit (Ping timeout: 260 seconds)
15:10:12mcci eventually got around it by calling allocCStringArray/deallocCStringArray but this seems very weird that i can't seem to just use a cstring ptr here
15:15:21*planhths quit (Ping timeout: 276 seconds)
15:28:16*chemist69 quit (Ping timeout: 250 seconds)
15:31:27*chemist69 joined #nim
15:46:30*fnxx joined #nim
15:47:26*planhths joined #nim
15:50:04*fnxx quit (Quit: Leaving)
15:50:04*girvo joined #nim
15:51:24*fnxx joined #nim
15:52:29*csoriano_ quit (Quit: csoriano_)
15:52:32*dddddd quit (Ping timeout: 250 seconds)
15:54:39*csoriano_ joined #nim
15:55:00*girvo quit (Ping timeout: 276 seconds)
15:55:13*fnxx quit (Client Quit)
15:55:30*fnxx joined #nim
15:56:14*bjz joined #nim
15:57:15*fnxx quit (Client Quit)
15:57:42*fnxx joined #nim
15:58:51*fnxx quit (Client Quit)
15:59:05*fnxx joined #nim
15:59:32*fnxx quit (Remote host closed the connection)
15:59:48*fnxx joined #nim
16:08:28*libman1 joined #nim
16:09:04*desophos joined #nim
16:09:21*libman1 left #nim (#nim)
16:15:42mccWhat is the type of "nil"?
16:30:13*fredrik921 joined #nim
16:30:58*fredrik92 quit (Ping timeout: 252 seconds)
16:35:15*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
16:35:33*bjz joined #nim
16:36:50*libman joined #nim
16:37:13libmanIs the order of items on https://github.com/nim-lang/Nim/wiki/editor-support significant? Is vscode support better than others?
16:38:16*yglukhov joined #nim
16:42:54*yglukhov quit (Remote host closed the connection)
16:46:04*vqrs quit (Max SendQ exceeded)
16:46:22*vqrs joined #nim
16:49:37*planhths quit (Quit: Konversation terminated!)
16:50:09*yglukhov joined #nim
16:50:12*yglukhov quit (Remote host closed the connection)
16:50:26*yglukhov joined #nim
16:52:52*libman quit (Read error: Connection reset by peer)
16:53:06mccSo right now i'm trying to write a functino overload that takes nil
16:53:19mcclike, i would like it to be able to take either an int or nil, for a reason
16:53:36mccand if i pass in nil it says "expected number but expected nil"
16:53:40mccwhich seems to imply it sees nil as a type
16:53:48mccbut i can't say, like, proc x(y: nil) or anything
16:54:04mccbut that raises the question of what, if you say let x = nil, what type x is
16:59:02flyxmcc: that simply does not compile
16:59:24flyxmcc: nil is a special value for ref, ptr and pointer types
17:00:05flyxmcc: similarly to [], which is implicitly converted to any array type, nil is implicitly converted to any ptr, ref or pointer type
17:01:16flyxmcc: what you want is probably http://nim-lang.org/docs/options.html
17:04:32flyx(I really think that this package and the type should be named Optional rather than Option.)
17:05:57*yglukhov quit (Remote host closed the connection)
17:06:23mccflyx: ok thanks
17:11:26*libman joined #nim
17:14:06*fredrik921 quit (Quit: Leaving.)
17:15:09*yglukhov joined #nim
17:24:03*space-wizard joined #nim
17:24:38*space-wizard quit (Max SendQ exceeded)
17:25:18*space-wizard joined #nim
17:25:53*space-wizard quit (Max SendQ exceeded)
17:26:07cheatfateyglukhov, are you still here?
17:26:12yglukhovyep
17:26:20cheatfatei remember one patch
17:26:30*space-wizard joined #nim
17:26:51yglukhovwhich one?
17:26:53*irrequietus joined #nim
17:27:11cheatfatehttps://github.com/nim-lang/Nim/pull/4680/files
17:27:17cheatfatehttps://github.com/nim-lang/Nim/pull/4680
17:27:21cheatfatethis one
17:27:42cheatfatemaybe it cause a problems
17:27:46cheatfatecould you check?
17:28:45yglukhovcheatfate: can't check until monday. no windows available.
17:29:09yglukhoverr. but this pr is older than 5 days.
17:30:08yglukhovcheatfate: ill try to do bisect on monday, if you dont figure it earlier
17:31:41yglukhovbtw installing mongo is really easy on windows ;)
17:33:29*chemist69 quit (Ping timeout: 250 seconds)
17:48:06*Ven_ joined #nim
17:50:32*Ven_ quit (Max SendQ exceeded)
17:50:56*girvo joined #nim
17:55:40*girvo quit (Ping timeout: 264 seconds)
18:00:40*chemist69 joined #nim
18:04:05*Ven_ joined #nim
18:13:22*desophos quit (Ping timeout: 250 seconds)
18:15:53*Matthias247 joined #nim
18:23:18*libman quit (Read error: Connection reset by peer)
18:23:53*yglukhov quit (Remote host closed the connection)
18:24:21*yglukhov joined #nim
18:32:24*Ven_ quit (Ping timeout: 260 seconds)
18:38:01mccis there a constant for "NULL as a pointer"?
18:38:08mccwhen i pass in nil it seems to be not converting it to a pointer.
18:40:08*irrequietus quit ()
18:40:20*irrequietus joined #nim
18:41:52*libman joined #nim
18:49:16*irrequietus quit ()
18:49:33*irrequietus joined #nim
18:49:43*Ven_ joined #nim
19:01:54*Ven_ quit (Ping timeout: 244 seconds)
19:12:35*planhths joined #nim
19:25:54*Jesin quit (Quit: Leaving)
19:29:00*planhths quit (Quit: Konversation terminated!)
19:30:20*Jesin joined #nim
19:36:04*Demon_Fox joined #nim
19:38:07*chemist69 quit (Ping timeout: 265 seconds)
19:42:07*chemist69 joined #nim
19:51:48*girvo joined #nim
19:54:46*libman quit (Ping timeout: 244 seconds)
19:56:09*girvo quit (Ping timeout: 244 seconds)
19:56:42*nairobi joined #nim
20:00:38*nairobi quit (Read error: Connection reset by peer)
20:00:47*libman joined #nim
20:06:57*nairobi joined #nim
20:08:50mccI just tried to compile the line `echo (cube.len div 3)` and got: "app.nim(309, 14) Warning: a [b] will be parsed as command syntax; spacing is deprecated [Deprecated]"
20:08:55mccIs this a bug, or do i just not understand something?
20:09:05mccis it trying to interpret this as "echo(cube.len, div, 3)"?
20:24:43mccHow do people usually use glBufferData and glVertexAttribPointer in Nim? My first guess was to use seq and pass in &theseq[0] but seq is owned by the garbage collector or whatever and can move, right?
20:25:45mccare the contents of a seq guaranteed to be contiguous in memory?
20:27:28*desophos joined #nim
20:28:36*libman left #nim (#nim)
20:34:21*brechtm quit (Read error: Connection reset by peer)
20:34:56*brechtm joined #nim
20:35:29*Ivan_ joined #nim
20:35:51*libman-BitchX joined #nim
20:36:54*Ivan_ quit (Client Quit)
20:49:47*fnxx quit (Quit: Leaving)
20:50:30*dddddd joined #nim
20:53:47*libman-BitchX quit (Quit: BitchX-1.2.1 -- just do it.)
21:14:57*yglukhov quit (Remote host closed the connection)
21:22:33*StarBrilliant quit (Quit: ZNC - http://znc.in)
21:33:09*yglukhov joined #nim
21:37:25*yglukhov quit (Ping timeout: 244 seconds)
21:37:30*GangstaCat quit (Quit: Leaving)
21:46:33*chemist69 quit (Ping timeout: 250 seconds)
21:50:40*chemist69 joined #nim
21:52:29*nairobi quit (Ping timeout: 265 seconds)
21:52:44*girvo joined #nim
21:57:28*girvo quit (Ping timeout: 264 seconds)
22:03:51*yglukhov joined #nim
22:05:10*bjz quit (Quit: Textual IRC Client: www.textualapp.com)
22:05:37*bjz joined #nim
22:06:02*bjz quit (Remote host closed the connection)
22:06:53*bjz joined #nim
22:08:12*yglukhov quit (Ping timeout: 240 seconds)
22:08:39*brechtm quit (Read error: Connection reset by peer)
22:09:04*brechtm joined #nim
22:12:39*dddddd quit (Ping timeout: 276 seconds)
22:24:16*yglukhov joined #nim
22:28:44*yglukhov quit (Ping timeout: 265 seconds)
22:30:38*BlaXpirit_ joined #nim
22:31:36*BlaXpirit quit (Quit: Bye)
22:31:37*BlaXpirit_ is now known as BlaXpirit
22:36:12*Trustable quit (Remote host closed the connection)
22:45:14*Xe quit (Quit: *.yolo *.swag)
22:46:11Sentreen`type mismatch: got (ref array[int, Datum]) but expected 'ref array[int, Datum]'`
22:46:16SentreenGo home nim, you're drunk
22:49:09*Xe joined #nim
22:50:28*akaisora quit (Ping timeout: 252 seconds)
22:56:42def-Sentreen: the first might be a tuple with 1 member?
22:57:01def-or different definitions of Datum
22:58:20flyxdef-: no, the compiler for some reason always renders the first type in () for this message, and the second type in ''
22:58:23flyxit is not a tuple
22:59:36SentreenSame version of Datum, just setting the value of a field
23:05:35*yglukhov joined #nim
23:10:30*yglukhov quit (Ping timeout: 276 seconds)
23:11:15*Xe quit (Ping timeout: 260 seconds)
23:11:34flyxSentreen: you should show your code
23:11:44flyxI am off to bed now though
23:13:25*csoriano_ quit (Quit: csoriano_)
23:14:48*Xe joined #nim
23:16:24SentreenMyeah, at first I thought I was doing something stupid, but I might have stumbled into a bug (or more likely I don't get some aspect of nim :) )
23:16:29SentreenI made a minimal example: http://pastebin.com/QuYdbnBV
23:25:30*Matthias247 quit (Read error: Connection reset by peer)
23:32:21*irrequietus quit ()
23:35:51*kulelu88 joined #nim
23:35:51*coffeepot joined #nim
23:46:18*yglukhov joined #nim
23:50:52*yglukhov quit (Ping timeout: 255 seconds)
23:53:14*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
23:53:31*girvo joined #nim
23:58:08*girvo quit (Ping timeout: 244 seconds)