<< 18-09-2015 >>

00:07:06Araqdom96: wolfram alpha says binom(62, 28) == 349615716557887465
00:07:23Araqand math.nim says it's 60730652
00:10:03*jaco60 quit (Quit: Leaving)
00:20:36Araqand there is an overflow in both versions but it's surpressed thanks to .push checks:off :-(
00:24:41NimBotnim-lang/Nim devel 36f68e1 Araq [+1 ±6 -0]: fixes #3329
00:24:41NimBotnim-lang/Nim devel 1c0b815 Araq [+0 ±1 -0]: fixes #3305; error message will improve with later improvements for concepts
00:24:41NimBotnim-lang/Nim devel a4a5003 Araq [+0 ±1 -0]: fixes #3312
00:40:18*irrequietus quit ()
00:43:14*brson quit (Ping timeout: 272 seconds)
00:43:47Araqdom96: you should get some price for bug #3338. incredible bug.
00:53:21*vendethiel quit (Ping timeout: 252 seconds)
01:36:11*Enamex quit (Ping timeout: 246 seconds)
01:37:31*chemist69_ joined #nim
01:38:07*NimBot joined #nim
01:40:27*chemist69 quit (Ping timeout: 255 seconds)
01:56:23*cold_sauce joined #nim
02:00:46*cold_sauce quit (Ping timeout: 240 seconds)
02:10:53*cold_sauce joined #nim
02:34:09*cold_sauce quit (Ping timeout: 244 seconds)
02:53:44*NimBot joined #nim
02:59:46*saml quit (Read error: Connection reset by peer)
03:00:55*saml joined #nim
03:26:51*NimBot joined #nim
03:27:52*cold_sauce joined #nim
03:31:36*darkf joined #nim
03:35:05*NimBot joined #nim
03:36:11*NimBot joined #nim
03:37:28*barosl joined #nim
03:42:17*cold_sauce quit (Quit: WeeChat 1.0.1)
03:44:12*NimBot joined #nim
03:50:08*vendethiel joined #nim
04:14:17*vendethiel quit (Ping timeout: 252 seconds)
05:35:43*smodo joined #nim
05:40:52*Kingsquee joined #nim
05:52:30*Enamex joined #nim
06:15:08reactormonkAraq, how exactly does the fix in https://github.com/nim-lang/Nim/commit/a4a5003b7d1284fd751f686b54a55c98fe9c9651 work?
06:15:36*Sembei joined #nim
06:16:53*Pisuke quit (Ping timeout: 246 seconds)
06:19:25*keyle quit (Quit: http://twitter.com/keyle/)
07:04:20*gokr joined #nim
07:05:07gokrHehe, I made hackernews... funky.
07:05:23gokrhttps://news.ycombinator.com/item?id=10235688
07:16:03*vegansk joined #nim
07:30:03*yglukhov joined #nim
07:34:02*Trustable joined #nim
08:04:23*coffeepot joined #nim
08:14:18*bjz joined #nim
08:20:45wuehlmausgokr: congrats! nice!
08:20:52*vendethiel joined #nim
09:07:52*irrequietus joined #nim
09:07:56dom96Araq: you mean prize? lol?
09:36:40*vendethiel quit (Quit: q+)
09:53:15*tja joined #nim
10:08:53*dom96 quit (Changing host)
10:08:53*dom96 joined #nim
10:14:54*tja quit (Ping timeout: 246 seconds)
10:23:28Araqyglukhov: told you to test my fix_bracket_expr branch :-/ now there is https://github.com/nim-lang/Nim/issues/3343
10:25:31yglukhovcan't really remember you telling me anything like that :(
10:26:14Araqwell it's a good thing we keep delaying the release ...
10:26:34Araqlots of bugfixes + immediate release doesn't work.
10:26:59yglukhovis 3343 hard to fix?
10:27:20Araqnah, remove a 'var' in the fake []= for system.nim
10:30:33NimBotnim-lang/Nim devel eb7f514 Araq [+0 ±1 -0]: fixes #3268
10:30:33NimBotnim-lang/Nim devel 5b2f54f Araq [+0 ±4 -0]: fixes #3313
10:30:33NimBotnim-lang/Nim devel c921f30 Araq [+1 ±6 -0]: renamed inCompilesContext to compilesContextId; added test case for #3313
10:30:33NimBotnim-lang/Nim devel fd80a51 Araq [+1 ±2 -0]: fixes #2594
10:30:33NimBot1 more commits.
10:30:51yglukhovhmm.. how is that related to pointer+deref+asgn
10:31:07Araqit's a fake prototype for better metaprogramming
10:31:54yglukhovah ok
10:32:02Araqin a generic context we rewrite a[i] = x to `[]=`(a, i, x) only to rewrite it back to a[i] = x for the builtin array/pointer access
10:32:14Araqit's a big mess
10:32:29Araqbut fixes a couple of glitches
10:32:50Araqone showstopper bug left :-)
10:37:22yglukhovwhich exactly `[]=` are you talking about? there's a few of them
10:37:53yglukhovoh, nevermind, didnt see your commit
10:46:12veganskAraq, what version the upcoming release will have?
10:50:32*vendethiel joined #nim
10:51:34wuehlmausvegansk: no 1.0 if you are thinking about that.
10:53:35federico3a minor release would be nice tho
11:02:37*razaaa joined #nim
11:14:53*Noob____ joined #nim
11:20:11NimBotnim-lang/Nim devel 4231574 wt [+0 ±1 -0]: Fix proc closeSocket (posix): bad file descriptor error
11:20:11NimBotnim-lang/Nim devel d93c612 Dominik Picheta [+0 ±1 -0]: Merge pull request #3344 from tulayang/devel... 2 more lines
11:20:53*zaquest quit (Ping timeout: 256 seconds)
11:21:36*zaquest joined #nim
11:22:49Noob____Does anyone here know how to use multidimensional access on a custom class? I'm trying to write a proc that will allow me to use the following : <data>[i][j][k]
11:24:48dom96Something like:
11:25:21dom96proc `[]`(data: MyType, index: int): MyItem
11:25:31dom96proc `[]`(data: MyItem, index: int): MySubItem
11:25:43dom96proc `[]`(data: MySubItem, index: int): MySubSubItem
11:25:45dom96Perhaps?
11:26:05Noob____Yea i think that will work
11:26:11Noob____I was hoping it'd be simpler
11:26:30Noob____Thanks
11:26:42dom96Noob____: what were you hoping it would be like?
11:27:18veganskOops. Last devel is broken on my project: SIGSEGV: Illegal storage access. (Attempt to read from nil?)
11:28:44Noob____I was hoping you'd just be able to overload it, `[][][]`(i,j,k: int)
11:29:41softiniogokr: Congrats! Just up voted you on hacker news!
11:29:52gokrhehe thanks :)
11:30:09gokrI didn't expect this amount of interest. But its fun.
11:30:24dom96Noob____: You might be able to get data[i,j,k] syntax working
11:30:38dom96via proc `[]`(data: MyType, i, j, k: int): MyItem
11:32:48Noob____Yea
11:32:49Noob____that works fine
11:32:57veganskAnd it's about unittest again :-(
11:33:56dom96yeah, unittest is quite a complex beast
11:34:05dom96I think it might make sense to simplify it
11:39:50*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
11:40:49*Arrrrrrr joined #nim
11:41:10Arrrrrrrwtf is this: "could not import: inet_ntop"
11:41:41ArrrrrrrIm using windows
11:41:50Arrrrrrrand net, rawsockets
11:42:13ArrrrrrrSomething in the last 2 weeks in there i suppose
11:42:20Arrrrrrr*hsa changed
11:43:30veganskDoes anybody knows any alternative for standard unittest module?
11:44:37veganskI don't mind to write it by myself, but it's a question of time :-(
11:44:38ArrrrrrrThis is the only line on windows xp you need to get my error: "import rawsockets, net" compile and run
11:47:31dom96Arrrrrrr: oh, guess that's my bad.
11:48:21dom96For ipv6 support it's required :\
11:49:17ArrrrrrrWell, it is not working in xp, just saying. Which line should i comment?
11:50:34dom96Submit an issue on github.
11:51:31dom96https://github.com/nim-lang/Nim/commit/01c99ff258dfb223e95c5733f62ad7beb2ab5f4d#diff-a17361ee8bc8490ca7a59a8e49165315R400
11:51:40dom96And line 433
11:53:15ArrrrrrrOk, thanks
12:03:03*vegansk quit (Quit: Ухожу я от вас (xchat 2.4.5 или старше))
12:12:30*Arrrrrrr quit (Ping timeout: 246 seconds)
12:14:40*boopisaway is now known as boop
12:14:57*Noob____ quit (Ping timeout: 246 seconds)
12:22:05*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
12:30:41*BitPuffin joined #nim
12:55:38*boop is now known as boopisaway
12:58:40*NimBot joined #nim
13:01:07*Jehan_ joined #nim
13:04:15Jehan_Araq, dom96: I think the inet_ntop() problem is actually my fault. In my defense, I had pointed out that I had no way to test it on Windows.
13:04:58Jehan_Oops, was meant for Arrrrrr. So much for tab completion.
13:23:17*razaaa left #nim ("Leaving")
13:23:48*razaaa____ joined #nim
13:23:48*razaaa joined #nim
13:23:55*razaaa quit (Client Quit)
13:25:41*coffeepot joined #nim
13:34:27*Varriount_ joined #nim
13:35:19*Varriount quit (Ping timeout: 260 seconds)
13:52:01*FedeOmoto joined #nim
14:13:16*xet7 joined #nim
14:17:59*kotokz joined #nim
14:18:54*Jehan_ quit (Quit: Leaving)
14:19:06*kotokz quit (Client Quit)
14:27:06*vendethiel quit (Ping timeout: 240 seconds)
14:32:43*pregressive joined #nim
14:40:29*yglukhov_ joined #nim
14:41:11*pregressive quit (Remote host closed the connection)
14:41:37*pregressive joined #nim
14:43:31*yglukhov quit (Ping timeout: 246 seconds)
14:44:48*yglukhov_ quit (Ping timeout: 264 seconds)
15:06:02*boopisaway quit (Ping timeout: 265 seconds)
15:06:14*nchambers joined #nim
15:12:33*MyMind joined #nim
15:21:57*nchambers is now known as _fno_rtti
15:22:47*_fno_rtti is now known as nchambers
15:23:30*razaaa____ quit (Read error: Connection reset by peer)
15:23:56*razaaa____ joined #nim
15:26:02*NimBot joined #nim
15:27:21softiniois result set to nil at the start of a proc?
15:30:42def-softinio: yes
15:31:04def-nil or any other form of binary 0
15:35:16*pregressive quit (Remote host closed the connection)
15:40:36*razaaa____ quit (Ping timeout: 264 seconds)
15:40:57*razaaa____ joined #nim
15:57:13*indiagreen joined #nim
16:06:53*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:07:20*boopisaway joined #nim
16:07:43indiagreenis there an easy way to get maximum value traversed by an iterator?
16:08:34indiagreen(so that I could do something like “probabilities.items.maximum” to get maximum value in the “probabilities” sequence)
16:10:39*joelmo joined #nim
16:13:48*barosl quit (Read error: Connection reset by peer)
16:16:33*boopisaway is now known as boop
16:19:56*umurgdk joined #nim
16:19:58*Jehan_ joined #nim
16:20:56indiagreenhuh, turns out I already can do “probabilities.max” and it would work
16:21:35Araqindiagreen: yeah system.max works on openArray though, the stdlib still doesn't use concepts
16:21:36*SpookySpock joined #nim
16:21:55*SpookySpock quit (Remote host closed the connection)
16:24:07*vendethiel joined #nim
16:36:27*indiagreen quit (Remote host closed the connection)
16:37:01reactormonkAraq, what's the stability status of concepts?
16:39:35Araqfixed a couple of bugs for them, but the implementation is still ridiculous
16:51:47*ChrisMAN quit (Ping timeout: 260 seconds)
16:52:37dom96Jehan_: Nah, it's not your fault. If anything it's mine, but I don't tend to test on Windows XP.
16:57:58*umurgdk quit (Remote host closed the connection)
16:59:26*darkf quit (Quit: Leaving)
17:03:58*umurgdk joined #nim
17:04:09*razaaa____ quit (Read error: Connection reset by peer)
17:04:35*razaaa____ joined #nim
17:10:14*Sahnvour joined #nim
17:11:05*MyMind quit (Ping timeout: 256 seconds)
17:16:30Jehan_dom96: I keep forgetting that Windows XP even exists anymore ...
17:25:19*ChrisMAN joined #nim
17:27:24*roit joined #nim
17:27:27*roit left #nim ("Leaving")
17:30:20*BitPuffin quit (Ping timeout: 252 seconds)
17:34:03AraqJehan_: any opinion on scope based vs function based closures? (dunno if there is standard terminology for it)
17:34:20Jehan_Araq: What do you mean by that?
17:34:42Araqwether a new closure is allocated per loop iteration or not
17:35:06Jehan_Araq: Heh. That's actually a pretty tricky piece of semantics.
17:35:21Jehan_It's a problem that functional languages (mostly) don't have.
17:35:33Jehan_Also, binding of variables.
17:35:56*pregressive joined #nim
17:36:05Araqthe workarounds are well known and our current solution is a pain in the ass to maintain
17:36:25Araqso I'd prefer to switch to function based closures
17:36:34*pregressive quit (Remote host closed the connection)
17:36:37Jehan_Hmm. What is the current solution? I must admit I find myself using templates more often where I'd use closures in other languages.
17:36:50*pregressive joined #nim
17:37:02Araqthe current solution allocates a fresh environment per loop iteration
17:37:09*UberLambda joined #nim
17:37:15Araqso it does it "properly"
17:37:21Araqat least it aims to.
17:37:50Jehan_Yeah.
17:37:58*Demos joined #nim
17:38:14Jehan_Things tend to get really problematic when you have mutable state and don't do that.
17:38:39Jehan_I think C# even had to change the precise semantics for that a while ago.
17:38:59Araqexactly but C# went from function based to scope based
17:39:01Jehan_Basically, you want to create one instance per function invocation, right?
17:39:07Araqright
17:39:41Araqalso might make async faster
17:40:24Jehan_How about making it an option?
17:40:56Araqthat makes it even harder to get correct
17:41:20Araqthe workarounds are well known anyway since JavaScript is function based
17:41:41Araqand indeed it would improve JS interop too
17:42:05Jehan_Ugh. The problem is that both have their uses.
17:43:07*NimBot joined #nim
17:44:19*elrood joined #nim
17:47:10Araqyeah, it's messy
17:55:31*umurgdk quit (Remote host closed the connection)
17:56:39*Demos quit (Ping timeout: 265 seconds)
18:26:17*thotypous is now known as matias
18:26:25*matias is now known as thotypous_
18:26:28*thotypous_ is now known as thotypous
18:27:15*xet7_ joined #nim
18:28:09*thotypous left #nim ("WeeChat 1.3")
18:29:05*thotypous joined #nim
18:29:21*thotypous left #nim (#nim)
18:29:44*gokr_ joined #nim
18:29:54*xet7_ quit (Read error: Connection reset by peer)
18:30:08*xet7_ joined #nim
18:30:11*thotypous joined #nim
18:30:19*xet7 quit (Ping timeout: 246 seconds)
18:42:08*NimBot joined #nim
18:43:23*MyMind joined #nim
18:47:08*yglukhov joined #nim
19:05:31gokrAraq: Not sure, but I think Eliot describes how Cog optimizes these things in this post: http://www.mirandabanda.org/cogblog/2009/01/14/under-cover-contexts-and-the-big-frame-up/
19:08:04*gyeates joined #nim
19:19:50*MyMind quit (Ping timeout: 240 seconds)
19:34:34*UberLambda quit (Quit: GTG)
19:55:44Araqgokr yeah, love it. we don't have control over our stack though (generating C code has its downsides)
20:10:05gokrright
20:10:17*Trustable quit (Remote host closed the connection)
20:21:18*MyMind joined #nim
20:21:54*Jesin quit (Quit: Leaving)
20:24:01*Jesin joined #nim
20:25:02*gyeates quit (Ping timeout: 240 seconds)
20:27:23*gokr quit (Ping timeout: 250 seconds)
20:27:24*MyMind quit (Quit: WeeChat 1.4-dev)
20:34:01*Gonzih joined #nim
20:37:42*jaco60 joined #nim
20:40:51*enurlyx joined #nim
20:43:46*smodo quit (Ping timeout: 240 seconds)
20:48:11enurlyxAraq: I like to try wxnim. How useable is it? Which compiler version should I use? devel? 0.11.2 does crash when compiling wxnim example2
20:51:05*Gonzih quit (Ping timeout: 240 seconds)
20:53:54*razaaa____ quit (Quit: Leaving)
21:00:45*gyeates joined #nim
21:04:18*pregressive quit (Remote host closed the connection)
21:07:32*FedeOmoto quit (Quit: Leaving)
21:08:59reactormonkenurlyx, devel is probably a good idea.
21:11:16*Enamex quit (Ping timeout: 272 seconds)
21:20:07enurlyxIs there a way to pass -std=gnu++11 to nim, so that it is forwarded to gcc?
21:23:49reactormonk--passC:
21:27:47*NimBot joined #nim
21:28:27enurlyxThanks
21:31:20enurlyxYeahh, I got a HelloWorld Window :D
21:31:29reactormonk^^
21:31:32reactormonknice work.
21:37:32Araqenurlyx: should be fairly usable but I have never done more than the examples
21:39:18*xet7_ quit (Read error: Connection reset by peer)
21:39:38*xet7_ joined #nim
21:43:18enurlyxOk, I will just try it out
21:45:36*irrequietus quit ()
21:46:22*boop is now known as boopisaway
21:49:13*NimBot joined #nim
21:59:28*gokr joined #nim
22:00:07*elrood quit (Quit: Leaving)
22:09:59*gokr quit (Ping timeout: 240 seconds)
22:10:57*gokr joined #nim
22:12:06*vikaton joined #nim
22:12:42*NimBot joined #nim
22:14:01*Enamex joined #nim
22:20:50*OnO quit (Quit: ZNC - 1.6.0 - http://znc.in)
22:23:36*enurlyx left #nim (#nim)
22:29:28*Jehan` joined #nim
22:30:11*OnO joined #nim
22:32:47*SpookySpock joined #nim
22:33:28*SpookySpock quit (Client Quit)
22:33:39*SpookySpock joined #nim
22:37:20*SpookySpock quit (Client Quit)
22:43:00*NimBot joined #nim
22:43:32*gyeates quit (Ping timeout: 246 seconds)
22:52:35*Jehan` quit (Read error: Connection reset by peer)
22:53:41*umurgdk joined #nim
22:56:14*Jehan` joined #nim
22:56:40Xein nimble, how do I add a dependency via an arbitrary git repo?
22:58:37Xeah
22:58:43Xejust add the git url to the deps
23:02:19*gokr quit (Quit: Leaving.)
23:02:34*gokr joined #nim
23:05:13softinioNice learnt somethings new thanks @Xe
23:08:00*rupil joined #nim
23:46:30*cyraxjoe quit (Ping timeout: 240 seconds)
23:47:22*cyraxjoe joined #nim