00:04:30 | * | endragor joined #nim |
00:06:29 | * | Demon_Fox quit (Remote host closed the connection) |
00:08:35 | * | Demon_Fox joined #nim |
00:08:59 | * | endragor quit (Ping timeout: 244 seconds) |
00:23:37 | * | yglukhov joined #nim |
00:28:36 | * | yglukhov quit (Ping timeout: 276 seconds) |
00:37:15 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
00:47:52 | * | yglukhov joined #nim |
00:52:39 | * | yglukhov quit (Ping timeout: 276 seconds) |
00:57:33 | * | irrequietus quit (Ping timeout: 258 seconds) |
01:07:03 | * | space-wizard joined #nim |
01:09:42 | * | Trixar_za quit (Quit: Leaving) |
01:11:51 | * | chemist69 quit (Ping timeout: 264 seconds) |
01:24:10 | * | yglukhov joined #nim |
01:25:07 | * | chemist69 joined #nim |
01:28:33 | * | yglukhov quit (Ping timeout: 244 seconds) |
01:37:55 | * | kssreeram joined #nim |
01:48:21 | * | yglukhov joined #nim |
01:52:32 | * | yglukhov quit (Ping timeout: 240 seconds) |
02:08:17 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
02:15:54 | * | nairobi joined #nim |
02:16:52 | * | nairobi_ joined #nim |
02:20:15 | * | nairobi quit (Ping timeout: 264 seconds) |
02:21:42 | * | nairobi_ quit (Ping timeout: 276 seconds) |
02:24:39 | * | yglukhov joined #nim |
02:29:15 | * | yglukhov quit (Ping timeout: 264 seconds) |
02:42:45 | ftsf | hi i'm having an issue understanding how to get a variable to be independent in a closure: https://gist.github.com/ftsf/c154c7faf6c5c659cd86a002d6c52cb4 i'd expect `newi` to be wrapped in the closure and not reference new declarations of it, any idea what i'm doing wrong here? |
02:47:15 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
02:48:55 | * | yglukhov joined #nim |
02:53:26 | * | yglukhov quit (Ping timeout: 250 seconds) |
03:00:21 | ftsf | Even when using `let newi = i` I get the same issue. I don't understand how newi is modified by subsequent iterations. |
03:04:10 | ftsf | hmm inside the proc each newi has the same memory address |
03:05:31 | ftsf | I guess I need to create the variable on the heap instead |
03:09:31 | * | space-wizard joined #nim |
03:17:22 | * | StarBrilliant quit (Ping timeout: 250 seconds) |
03:18:59 | * | kssreeram joined #nim |
03:20:28 | * | StarBrilliant joined #nim |
03:25:12 | * | yglukhov joined #nim |
03:29:33 | * | yglukhov quit (Ping timeout: 240 seconds) |
03:30:10 | ftsf | nope... |
03:39:25 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
04:01:35 | * | yglukhov joined #nim |
04:02:52 | * | endragor joined #nim |
04:06:12 | * | yglukhov quit (Ping timeout: 258 seconds) |
04:21:12 | * | kingofoz quit (Ping timeout: 240 seconds) |
04:21:30 | * | kingofoz joined #nim |
04:25:49 | * | yglukhov joined #nim |
04:30:17 | * | yglukhov quit (Ping timeout: 258 seconds) |
05:01:36 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:01:59 | * | yglukhov joined #nim |
05:06:42 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:26:12 | * | yglukhov joined #nim |
05:30:21 | * | yglukhov quit (Ping timeout: 244 seconds) |
05:37:08 | * | space-wizard joined #nim |
06:02:19 | * | yglukhov joined #nim |
06:06:31 | * | yglukhov quit (Ping timeout: 244 seconds) |
06:26:53 | * | yglukhov joined #nim |
06:29:32 | * | kssreeram joined #nim |
06:31:19 | * | yglukhov quit (Ping timeout: 244 seconds) |
06:42:17 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
06:51:09 | * | yglukhov joined #nim |
06:56:00 | * | yglukhov quit (Ping timeout: 276 seconds) |
07:08:52 | * | Demon_Fox quit (Quit: Leaving) |
07:27:21 | * | yglukhov joined #nim |
07:32:24 | * | yglukhov quit (Ping timeout: 276 seconds) |
07:37:06 | * | nsf quit (Quit: WeeChat 1.5) |
07:43:27 | * | kssreeram quit (Ping timeout: 276 seconds) |
07:45:51 | * | nairobi joined #nim |
07:49:16 | * | kssreeram joined #nim |
07:53:48 | ftsf | https://rosettacode.org/wiki/Closures/Value_capture#Nim ahh found this which seems to work, but i don't understand why |
08:03:35 | * | yglukhov joined #nim |
08:07:56 | * | yglukhov quit (Ping timeout: 244 seconds) |
08:09:11 | * | irrequietus joined #nim |
08:12:32 | def- | ftsf: that's a recent change in nim |
08:13:01 | def- | See "Closure changes": http://nim-lang.org/news/2016_01_18_version_0_13_0_released.html |
08:14:01 | ftsf | hmm I see, thanks! |
08:16:23 | * | fastrom joined #nim |
08:17:35 | * | kssreeram quit (Ping timeout: 244 seconds) |
08:23:04 | * | kssreeram joined #nim |
08:23:39 | * | yglukhov joined #nim |
08:28:05 | * | yglukhov quit (Ping timeout: 244 seconds) |
08:33:57 | * | yglukhov joined #nim |
08:37:30 | * | kssreeram quit (Ping timeout: 250 seconds) |
08:41:28 | * | Matthias247 joined #nim |
08:41:43 | * | brechtm joined #nim |
08:42:24 | ftsf | is it possible to have multiple proc arguments and specify them with do? |
08:42:41 | ftsf | how do you signify the start of the second do proc? |
08:43:07 | def- | ftsf: with another do: |
08:43:52 | * | rolha quit (Quit: Textual IRC Client: www.textualapp.com) |
08:44:36 | def- | https://gist.github.com/def-/0f171cb6e1fffb9a2c4815302c229b3e |
08:50:31 | ftsf | thanks, trying to figure out what i'm doing wrong now |
08:50:39 | * | rolha joined #nim |
08:54:12 | * | brechtm quit (Remote host closed the connection) |
08:56:38 | ftsf | https://gist.github.com/ftsf/c6baa260aa75ec6c9e41109e9ad1c4e4 for some reason the 2nd do is coming through as a void |
09:02:07 | ftsf | sorry, i'm an idiot =p i forgot the non proc argument |
09:17:40 | * | kssreeram joined #nim |
09:29:55 | * | ehmry joined #nim |
09:35:14 | * | fastrom quit (Quit: Leaving.) |
09:38:07 | * | endragor quit (Remote host closed the connection) |
09:39:18 | * | endragor joined #nim |
09:43:40 | * | endragor quit (Ping timeout: 252 seconds) |
09:45:14 | * | elrood joined #nim |
09:54:04 | * | gokr quit (Quit: Leaving.) |
09:54:09 | * | gokr1 joined #nim |
10:04:51 | * | endragor joined #nim |
10:09:21 | * | endragor quit (Ping timeout: 244 seconds) |
10:10:58 | * | fastrom joined #nim |
10:11:03 | * | nairobi quit (Remote host closed the connection) |
10:11:59 | * | nairobi joined #nim |
10:12:26 | * | nairobi_ joined #nim |
10:12:50 | * | AnonymousCoward joined #nim |
10:16:04 | * | nairobi quit (Ping timeout: 244 seconds) |
10:21:27 | * | nairobi_ quit (Ping timeout: 264 seconds) |
10:25:00 | * | nairobi joined #nim |
10:25:31 | * | pafmaf joined #nim |
10:28:06 | * | kssreeram quit (Read error: Connection reset by peer) |
10:29:57 | * | brechtm joined #nim |
10:48:39 | * | Arrrr joined #nim |
10:58:30 | * | kssreeram joined #nim |
11:08:17 | * | zodiak_ joined #nim |
11:08:45 | * | endragor joined #nim |
11:10:28 | * | zodiak quit (Ping timeout: 250 seconds) |
11:15:21 | * | kssreeram quit (Read error: Connection reset by peer) |
11:16:20 | * | yglukhov quit (Remote host closed the connection) |
11:27:44 | * | GangstaCat joined #nim |
11:28:10 | * | yglukhov joined #nim |
11:32:32 | * | yglukhov quit (Ping timeout: 244 seconds) |
11:47:54 | * | kssreeram joined #nim |
11:57:56 | ehmry | if I want to embed a Nim object into a C++ object, must I use a void* like C or can I embed a real struct? |
11:59:55 | ehmry | I'm trying to implement a Nim backend for a C++ library |
12:02:48 | ehmry | nevermind, I see I can use a pointer |
12:17:15 | * | endragor quit (Remote host closed the connection) |
12:21:15 | * | brechtm quit (Remote host closed the connection) |
12:25:53 | * | titanomachy joined #nim |
12:36:27 | * | GangstaCat quit (Quit: Leaving) |
12:37:38 | * | brechtm joined #nim |
12:37:50 | * | endragor joined #nim |
12:38:40 | * | kssreeram quit (Ping timeout: 258 seconds) |
12:41:45 | * | gokr1 quit (Quit: Leaving.) |
12:41:54 | * | gokr joined #nim |
12:42:10 | * | endragor quit (Ping timeout: 258 seconds) |
13:02:23 | * | AnonymousCoward quit (Quit: Leaving) |
13:04:29 | * | endragor joined #nim |
13:08:46 | * | endragor quit (Ping timeout: 250 seconds) |
13:36:46 | * | kssreeram joined #nim |
13:37:33 | * | kssreeram quit (Client Quit) |
13:43:55 | * | Arrrr quit (Ping timeout: 250 seconds) |
14:02:15 | * | yglukhov joined #nim |
14:06:30 | * | yglukhov quit (Ping timeout: 244 seconds) |
14:12:23 | * | yglukhov joined #nim |
14:14:21 | * | xet7_ quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) |
14:17:01 | * | Jesin quit (Ping timeout: 252 seconds) |
14:19:14 | * | Trustable joined #nim |
14:25:43 | * | nairobi quit (Remote host closed the connection) |
14:31:11 | * | fredrik92 joined #nim |
14:32:59 | * | Jesin joined #nim |
14:35:14 | * | fredrik92 quit (Client Quit) |
14:35:27 | * | gokr quit (Ping timeout: 244 seconds) |
14:36:50 | * | kssreeram joined #nim |
14:45:35 | * | Matthias247 quit (Read error: Connection reset by peer) |
14:47:50 | * | brechtm quit (Remote host closed the connection) |
14:56:45 | * | endragor joined #nim |
15:01:04 | * | Arrrr joined #nim |
15:01:04 | * | Arrrr quit (Changing host) |
15:01:04 | * | Arrrr joined #nim |
15:01:33 | * | endragor quit (Ping timeout: 276 seconds) |
15:04:37 | * | endragor joined #nim |
15:08:51 | * | endragor quit (Ping timeout: 244 seconds) |
15:16:35 | * | irrequietus quit (Ping timeout: 258 seconds) |
15:18:58 | * | gokr joined #nim |
15:29:37 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
15:33:53 | * | Jesin quit (Quit: Leaving) |
15:36:36 | * | Jesin joined #nim |
15:48:34 | * | kssreeram joined #nim |
15:49:07 | Sentreen | Is there a way to enusre that all the documentation generatd by nimdoc ends up in the same directory? |
15:49:39 | Sentreen | Something like `nim --out:doc doc2 projectfile` |
15:50:49 | Sentreen | The way I understand things, it will create the .html files in the same directory as the source files, which seems horrible. But I may be missing something relating to index files? |
16:04:13 | * | endragor joined #nim |
16:05:08 | * | desophos quit (Read error: Connection reset by peer) |
16:05:35 | Sentreen | Also, is there a way to execute a task from within another task? |
16:05:39 | Sentreen | (in nims) |
16:07:38 | Arrrr | I think that, if you have a task say task Hello:, you can call it by taskHello() |
16:08:44 | * | endragor quit (Ping timeout: 258 seconds) |
16:09:55 | Sentreen | hmmm, seems you were almost right, it creates a proc called `hello Task` |
16:10:57 | Sentreen | It didn't occur to me that it would create a proc behind the scenes, so I started diging into the source after you gave me the hint :) |
16:13:53 | Arrrr | helloTask, taskHello |
16:16:14 | Sentreen | Right, it also did not occur to me that I could remove the backticks. I still have a lot to learn when it comes to nim |
16:21:09 | dom96 | hrm, bootstrapping on a fresh Ubuntu install fails with this: https://gist.github.com/dom96/b6f78d84f8e55b1ee29b35cc372f89b6 |
16:21:36 | dom96 | Anybody else saw this? |
17:04:21 | * | endragor joined #nim |
17:08:52 | * | endragor quit (Ping timeout: 260 seconds) |
17:10:38 | elrood | dom96, in case you haven't already found a solution, it should be possible to figure out which package is missing with something like apt-file search limits.h. i'd guess glibc-headers. not currently on ubuntu myself, though, so that could be off, and someone actually using that system might want to step in |
17:12:53 | ofelas | that's a #include_next <limits.h> /* recurse down to the real one */, so a missing dep as just suggested? (this on Mint) |
17:14:58 | cheatfate | dom96, limits.h must be there... |
17:15:32 | cheatfate | it looks like ubuntu problem... |
17:18:08 | ofelas | other pkgs providing limits.h are libgcc-5-dev, linux-libc-dev and linux-headers (with help from what-provides) |
17:19:21 | cheatfate | limits.h is like `stdio.h` it always present |
17:27:07 | * | nairobi joined #nim |
17:28:20 | * | nairobi_ joined #nim |
17:31:37 | * | nairobi quit (Ping timeout: 260 seconds) |
17:32:40 | * | nairobi_ quit (Ping timeout: 244 seconds) |
17:39:16 | dom96 | of course, the build-essentials package helped |
17:45:51 | * | endragor joined #nim |
17:50:13 | * | endragor quit (Ping timeout: 244 seconds) |
17:58:12 | * | yglukhov quit (Remote host closed the connection) |
18:03:26 | * | brson joined #nim |
18:04:00 | * | endragor joined #nim |
18:08:15 | * | endragor quit (Ping timeout: 250 seconds) |
18:08:17 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
18:09:01 | * | brechtm joined #nim |
18:10:03 | * | yglukhov joined #nim |
18:14:30 | * | yglukhov quit (Ping timeout: 244 seconds) |
18:25:48 | * | irrequietus joined #nim |
18:31:21 | * | brechtm quit (Remote host closed the connection) |
18:33:14 | * | titanomachy quit (Ping timeout: 260 seconds) |
18:37:43 | * | irrequietus quit (Ping timeout: 252 seconds) |
18:37:56 | * | titanomachy joined #nim |
18:45:55 | * | yglukhov joined #nim |
18:50:09 | * | yglukhov quit (Ping timeout: 244 seconds) |
19:10:01 | * | brechtm joined #nim |
19:11:43 | Sentreen | Another question from you resident noob: Is it normal that I cannot access named tuple entries in a template? e.g. I have a template that accepts a tuple[filename:string, line:int], which keeps on telling me that the field `filename` does not exist |
19:19:26 | dom96 | Sentreen: That doesn't sound normal, show us your code |
19:20:41 | Sentreen | Give me a sec, I'll try to get something minimal |
19:25:38 | Sentreen | http://pastebin.com/3D06zwke |
19:27:57 | Sentreen | Let me know if I should create an issue about this. Just want to be sure that this is just not me doing something stupid :) |
19:30:38 | Araq | Sentreen: that's just a glitch of instantiationInfo() ... |
19:30:50 | Araq | inner((filename: "", line: 2)) works |
19:30:54 | * | space-wizard joined #nim |
19:31:07 | * | lesshaste joined #nim |
19:31:08 | Araq | use loc[0] as a workaround |
19:31:09 | lesshaste | hi |
19:31:29 | * | space-wizard quit (Max SendQ exceeded) |
19:31:39 | Sentreen | Okay, that's what I'm doing. Thanks! |
19:32:06 | * | space-wizard joined #nim |
19:32:38 | dom96 | hello lesshaste |
19:33:21 | * | yglukhov joined #nim |
19:34:00 | * | yglukhov quit (Remote host closed the connection) |
19:43:29 | * | yglukhov joined #nim |
19:46:00 | * | brson quit (Quit: leaving) |
19:46:31 | * | Trustable quit (Remote host closed the connection) |
19:47:21 | * | Trustable joined #nim |
19:49:51 | * | fastrom quit (Quit: Leaving.) |
19:57:50 | * | titanomachy quit (Quit: Titano quit.) |
20:03:50 | * | endragor joined #nim |
20:08:10 | * | endragor quit (Ping timeout: 244 seconds) |
20:09:03 | * | pafmaf quit (Ping timeout: 240 seconds) |
20:16:05 | * | nairobi joined #nim |
20:16:36 | * | yglukhov quit (Remote host closed the connection) |
20:19:02 | * | Arrrr quit (Read error: Connection reset by peer) |
20:23:14 | * | chemist69 quit (Quit: WeeChat 1.5) |
20:24:09 | * | Trustable quit (Remote host closed the connection) |
20:25:16 | * | Trustable joined #nim |
20:25:28 | * | Trustable quit (Remote host closed the connection) |
20:28:03 | * | gokr quit (Ping timeout: 240 seconds) |
20:28:26 | * | yglukhov joined #nim |
20:33:42 | * | yglukhov quit (Ping timeout: 276 seconds) |
20:33:48 | * | chemist69 joined #nim |
20:44:16 | * | brechtm quit (Remote host closed the connection) |
20:44:52 | * | brechtm joined #nim |
20:53:03 | * | yglukhov joined #nim |
20:57:15 | * | yglukhov quit (Ping timeout: 244 seconds) |
20:58:39 | * | irrequietus joined #nim |
21:12:20 | * | endragor joined #nim |
21:16:40 | * | endragor quit (Ping timeout: 252 seconds) |
21:17:15 | * | yglukhov joined #nim |
21:20:14 | * | xet7_ joined #nim |
21:21:26 | * | Demon_Fox joined #nim |
21:21:32 | * | yglukhov quit (Ping timeout: 244 seconds) |
21:21:58 | * | zahary quit (Ping timeout: 258 seconds) |
21:25:19 | * | zahary joined #nim |
21:29:23 | * | xet7 quit (Quit: Leaving) |
21:33:26 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:35:45 | * | nsf joined #nim |
21:37:33 | * | cheatfate quit (Ping timeout: 244 seconds) |
21:38:52 | * | cheatfate joined #nim |
21:53:16 | * | yglukhov joined #nim |
21:58:12 | * | yglukhov quit (Ping timeout: 276 seconds) |
22:17:48 | * | yglukhov joined #nim |
22:21:59 | * | yglukhov quit (Ping timeout: 244 seconds) |
22:36:03 | * | nairobi quit (Remote host closed the connection) |
22:38:50 | * | brson joined #nim |
22:53:40 | * | bjz joined #nim |
22:53:50 | * | yglukhov joined #nim |
22:54:41 | * | endragor joined #nim |
22:58:39 | * | yglukhov quit (Ping timeout: 276 seconds) |
22:59:11 | * | endragor quit (Ping timeout: 244 seconds) |
23:00:24 | * | xet7_ quit (Read error: Connection reset by peer) |
23:02:09 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:13:49 | * | xet7_ joined #nim |
23:14:17 | * | irrequietus quit (Ping timeout: 258 seconds) |
23:18:14 | * | yglukhov joined #nim |
23:22:26 | * | yglukhov quit (Ping timeout: 244 seconds) |
23:27:57 | * | endragor joined #nim |
23:30:57 | * | Trixar_za joined #nim |
23:32:06 | * | endragor quit (Ping timeout: 244 seconds) |
23:37:35 | * | elrood quit (Quit: Leaving) |
23:42:34 | * | yglukhov joined #nim |
23:47:24 | * | yglukhov quit (Ping timeout: 276 seconds) |