| 00:07:06 | Araq | dom96: wolfram alpha says binom(62, 28) == 349615716557887465 |
| 00:07:23 | Araq | and math.nim says it's 60730652 |
| 00:10:03 | * | jaco60 quit (Quit: Leaving) |
| 00:20:36 | Araq | and there is an overflow in both versions but it's surpressed thanks to .push checks:off :-( |
| 00:24:41 | NimBot | nim-lang/Nim devel 36f68e1 Araq [+1 ±6 -0]: fixes #3329 |
| 00:24:41 | NimBot | nim-lang/Nim devel 1c0b815 Araq [+0 ±1 -0]: fixes #3305; error message will improve with later improvements for concepts |
| 00:24:41 | NimBot | nim-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:47 | Araq | dom96: 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:08 | reactormonk | Araq, 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:07 | gokr | Hehe, I made hackernews... funky. |
| 07:05:23 | gokr | https://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:45 | wuehlmaus | gokr: congrats! nice! |
| 08:20:52 | * | vendethiel joined #nim |
| 09:07:52 | * | irrequietus joined #nim |
| 09:07:56 | dom96 | Araq: 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:28 | Araq | yglukhov: told you to test my fix_bracket_expr branch :-/ now there is https://github.com/nim-lang/Nim/issues/3343 |
| 10:25:31 | yglukhov | can't really remember you telling me anything like that :( |
| 10:26:14 | Araq | well it's a good thing we keep delaying the release ... |
| 10:26:34 | Araq | lots of bugfixes + immediate release doesn't work. |
| 10:26:59 | yglukhov | is 3343 hard to fix? |
| 10:27:20 | Araq | nah, remove a 'var' in the fake []= for system.nim |
| 10:30:33 | NimBot | nim-lang/Nim devel eb7f514 Araq [+0 ±1 -0]: fixes #3268 |
| 10:30:33 | NimBot | nim-lang/Nim devel 5b2f54f Araq [+0 ±4 -0]: fixes #3313 |
| 10:30:33 | NimBot | nim-lang/Nim devel c921f30 Araq [+1 ±6 -0]: renamed inCompilesContext to compilesContextId; added test case for #3313 |
| 10:30:33 | NimBot | nim-lang/Nim devel fd80a51 Araq [+1 ±2 -0]: fixes #2594 |
| 10:30:33 | NimBot | 1 more commits. |
| 10:30:51 | yglukhov | hmm.. how is that related to pointer+deref+asgn |
| 10:31:07 | Araq | it's a fake prototype for better metaprogramming |
| 10:31:54 | yglukhov | ah ok |
| 10:32:02 | Araq | in 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:14 | Araq | it's a big mess |
| 10:32:29 | Araq | but fixes a couple of glitches |
| 10:32:50 | Araq | one showstopper bug left :-) |
| 10:37:22 | yglukhov | which exactly `[]=` are you talking about? there's a few of them |
| 10:37:53 | yglukhov | oh, nevermind, didnt see your commit |
| 10:46:12 | vegansk | Araq, what version the upcoming release will have? |
| 10:50:32 | * | vendethiel joined #nim |
| 10:51:34 | wuehlmaus | vegansk: no 1.0 if you are thinking about that. |
| 10:53:35 | federico3 | a minor release would be nice tho |
| 11:02:37 | * | razaaa joined #nim |
| 11:14:53 | * | Noob____ joined #nim |
| 11:20:11 | NimBot | nim-lang/Nim devel 4231574 wt [+0 ±1 -0]: Fix proc closeSocket (posix): bad file descriptor error |
| 11:20:11 | NimBot | nim-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:49 | Noob____ | 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:48 | dom96 | Something like: |
| 11:25:21 | dom96 | proc `[]`(data: MyType, index: int): MyItem |
| 11:25:31 | dom96 | proc `[]`(data: MyItem, index: int): MySubItem |
| 11:25:43 | dom96 | proc `[]`(data: MySubItem, index: int): MySubSubItem |
| 11:25:45 | dom96 | Perhaps? |
| 11:26:05 | Noob____ | Yea i think that will work |
| 11:26:11 | Noob____ | I was hoping it'd be simpler |
| 11:26:30 | Noob____ | Thanks |
| 11:26:42 | dom96 | Noob____: what were you hoping it would be like? |
| 11:27:18 | vegansk | Oops. Last devel is broken on my project: SIGSEGV: Illegal storage access. (Attempt to read from nil?) |
| 11:28:44 | Noob____ | I was hoping you'd just be able to overload it, `[][][]`(i,j,k: int) |
| 11:29:41 | softinio | gokr: Congrats! Just up voted you on hacker news! |
| 11:29:52 | gokr | hehe thanks :) |
| 11:30:09 | gokr | I didn't expect this amount of interest. But its fun. |
| 11:30:24 | dom96 | Noob____: You might be able to get data[i,j,k] syntax working |
| 11:30:38 | dom96 | via proc `[]`(data: MyType, i, j, k: int): MyItem |
| 11:32:48 | Noob____ | Yea |
| 11:32:49 | Noob____ | that works fine |
| 11:32:57 | vegansk | And it's about unittest again :-( |
| 11:33:56 | dom96 | yeah, unittest is quite a complex beast |
| 11:34:05 | dom96 | I 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:10 | Arrrrrrr | wtf is this: "could not import: inet_ntop" |
| 11:41:41 | Arrrrrrr | Im using windows |
| 11:41:50 | Arrrrrrr | and net, rawsockets |
| 11:42:13 | Arrrrrrr | Something in the last 2 weeks in there i suppose |
| 11:42:20 | Arrrrrrr | *hsa changed |
| 11:43:30 | vegansk | Does anybody knows any alternative for standard unittest module? |
| 11:44:37 | vegansk | I don't mind to write it by myself, but it's a question of time :-( |
| 11:44:38 | Arrrrrrr | This is the only line on windows xp you need to get my error: "import rawsockets, net" compile and run |
| 11:47:31 | dom96 | Arrrrrrr: oh, guess that's my bad. |
| 11:48:21 | dom96 | For ipv6 support it's required :\ |
| 11:49:17 | Arrrrrrr | Well, it is not working in xp, just saying. Which line should i comment? |
| 11:50:34 | dom96 | Submit an issue on github. |
| 11:51:31 | dom96 | https://github.com/nim-lang/Nim/commit/01c99ff258dfb223e95c5733f62ad7beb2ab5f4d#diff-a17361ee8bc8490ca7a59a8e49165315R400 |
| 11:51:40 | dom96 | And line 433 |
| 11:53:15 | Arrrrrrr | Ok, 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:15 | Jehan_ | 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:58 | Jehan_ | 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:21 | softinio | is result set to nil at the start of a proc? |
| 15:30:42 | def- | softinio: yes |
| 15:31:04 | def- | 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:43 | indiagreen | is there an easy way to get maximum value traversed by an iterator? |
| 16:08:34 | indiagreen | (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:56 | indiagreen | huh, turns out I already can do “probabilities.max” and it would work |
| 16:21:35 | Araq | indiagreen: 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:01 | reactormonk | Araq, what's the stability status of concepts? |
| 16:39:35 | Araq | fixed a couple of bugs for them, but the implementation is still ridiculous |
| 16:51:47 | * | ChrisMAN quit (Ping timeout: 260 seconds) |
| 16:52:37 | dom96 | Jehan_: 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:30 | Jehan_ | 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:03 | Araq | Jehan_: any opinion on scope based vs function based closures? (dunno if there is standard terminology for it) |
| 17:34:20 | Jehan_ | Araq: What do you mean by that? |
| 17:34:42 | Araq | wether a new closure is allocated per loop iteration or not |
| 17:35:06 | Jehan_ | Araq: Heh. That's actually a pretty tricky piece of semantics. |
| 17:35:21 | Jehan_ | It's a problem that functional languages (mostly) don't have. |
| 17:35:33 | Jehan_ | Also, binding of variables. |
| 17:35:56 | * | pregressive joined #nim |
| 17:36:05 | Araq | the workarounds are well known and our current solution is a pain in the ass to maintain |
| 17:36:25 | Araq | so I'd prefer to switch to function based closures |
| 17:36:34 | * | pregressive quit (Remote host closed the connection) |
| 17:36:37 | Jehan_ | 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:02 | Araq | the current solution allocates a fresh environment per loop iteration |
| 17:37:09 | * | UberLambda joined #nim |
| 17:37:15 | Araq | so it does it "properly" |
| 17:37:21 | Araq | at least it aims to. |
| 17:37:50 | Jehan_ | Yeah. |
| 17:37:58 | * | Demos joined #nim |
| 17:38:14 | Jehan_ | Things tend to get really problematic when you have mutable state and don't do that. |
| 17:38:39 | Jehan_ | I think C# even had to change the precise semantics for that a while ago. |
| 17:38:59 | Araq | exactly but C# went from function based to scope based |
| 17:39:01 | Jehan_ | Basically, you want to create one instance per function invocation, right? |
| 17:39:07 | Araq | right |
| 17:39:41 | Araq | also might make async faster |
| 17:40:24 | Jehan_ | How about making it an option? |
| 17:40:56 | Araq | that makes it even harder to get correct |
| 17:41:20 | Araq | the workarounds are well known anyway since JavaScript is function based |
| 17:41:41 | Araq | and indeed it would improve JS interop too |
| 17:42:05 | Jehan_ | Ugh. The problem is that both have their uses. |
| 17:43:07 | * | NimBot joined #nim |
| 17:44:19 | * | elrood joined #nim |
| 17:47:10 | Araq | yeah, 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:31 | gokr | Araq: 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:44 | Araq | gokr yeah, love it. we don't have control over our stack though (generating C code has its downsides) |
| 20:10:05 | gokr | right |
| 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:11 | enurlyx | Araq: 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:59 | reactormonk | enurlyx, devel is probably a good idea. |
| 21:11:16 | * | Enamex quit (Ping timeout: 272 seconds) |
| 21:20:07 | enurlyx | Is there a way to pass -std=gnu++11 to nim, so that it is forwarded to gcc? |
| 21:23:49 | reactormonk | --passC: |
| 21:27:47 | * | NimBot joined #nim |
| 21:28:27 | enurlyx | Thanks |
| 21:31:20 | enurlyx | Yeahh, I got a HelloWorld Window :D |
| 21:31:29 | reactormonk | ^^ |
| 21:31:32 | reactormonk | nice work. |
| 21:37:32 | Araq | enurlyx: 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:18 | enurlyx | Ok, 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:40 | Xe | in nimble, how do I add a dependency via an arbitrary git repo? |
| 22:58:37 | Xe | ah |
| 22:58:43 | Xe | just add the git url to the deps |
| 23:02:19 | * | gokr quit (Quit: Leaving.) |
| 23:02:34 | * | gokr joined #nim |
| 23:05:13 | softinio | Nice 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 |