00:00:10 | * | davidhq joined #nim |
00:04:05 | AforAvi | see you guys tommorow .. bye for today |
00:04:12 | * | AforAvi quit (Read error: Connection reset by peer) |
00:04:14 | Araq | bye |
00:32:58 | * | Sahnvour quit (Read error: Connection reset by peer) |
00:38:52 | tmm1 | can i create lib/pure/coro.nim.cfg with -d:nimCoroutines |
00:39:48 | Araq | use .nimcfg or .nims |
00:40:00 | Araq | .nim.cfg is deprecated ... |
00:45:15 | * | davidhq quit (Quit: Textual IRC Client: www.textualapp.com) |
00:59:54 | tmm1 | gotcha |
01:22:26 | * | chemist69_ joined #nim |
01:25:33 | * | chemist69 quit (Ping timeout: 250 seconds) |
01:50:00 | tmm1 | Araq: i have a nice patch for the parallelBuild issue |
01:51:40 | * | jakesyl quit (Ping timeout: 246 seconds) |
01:53:30 | * | X67r quit (Quit: leaving) |
01:57:29 | * | Kingsquee joined #nim |
02:04:59 | * | jakesyl joined #nim |
02:21:11 | * | Peach1 joined #nim |
02:21:22 | Peach1 | Do you have an online interpreter for nim on IRC? |
02:22:31 | ldlework | NimBot: 5 |
02:22:38 | ldlework | >_> |
02:35:40 | tmm1 | NimBot: !ping |
02:47:38 | * | jakesyl quit (Ping timeout: 240 seconds) |
03:01:08 | * | jakesyl joined #nim |
03:17:43 | * | tmm1 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
03:20:13 | * | jakesyl quit (Ping timeout: 246 seconds) |
03:33:58 | * | jakesyl joined #nim |
03:39:52 | Peach1 | ldlework: NimBot is unavailable? |
03:40:22 | Peach1 | > 5 |
03:40:29 | Peach1 | !5 |
03:40:31 | Peach1 | hmm |
04:33:49 | Xe | what is the nim qeuivalent of a void pointer? |
04:34:00 | Xe | something that can be any type of data |
04:39:43 | * | Peach1 quit (Quit: Peach1) |
05:09:23 | * | AndChat|235809 quit (Quit: Bye) |
05:09:40 | * | AndChat|235809 joined #nim |
05:11:10 | * | jakesyl quit (Ping timeout: 246 seconds) |
06:00:29 | * | AndChat-235809 joined #nim |
06:02:30 | * | AndChat|235809 quit (Ping timeout: 260 seconds) |
06:07:37 | * | AndChat-235809 quit (Read error: Connection reset by peer) |
06:07:48 | * | AndChat|235809 joined #nim |
06:07:49 | * | AndChat|235809 quit (Client Quit) |
06:37:00 | * | Ven joined #nim |
06:40:11 | * | bjz joined #nim |
06:41:01 | * | bjz quit (Client Quit) |
06:49:32 | * | darkf joined #nim |
07:11:06 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:11:21 | NimBot | nim-lang/Nim devel 5e9ce88 Aman Gupta [+1 ±4 -0]: implement bitsize pragma for bitfields |
07:11:21 | NimBot | nim-lang/Nim devel 0679340 Aman Gupta [+0 ±1 -0]: switch to bitsize:int |
07:11:21 | NimBot | nim-lang/Nim devel fa404dc Aman Gupta [+0 ±1 -0]: better assertions for bitfield behavior |
07:11:21 | NimBot | nim-lang/Nim devel e5ba94b Aman Gupta [+2 ±12 -0]: Merge remote-tracking branch 'origin/devel' into bitsize-pragma |
07:11:21 | NimBot | 4 more commits. |
07:12:11 | NimBot | nim-lang/Nim devel 700b63a Adam Strzelecki [+0 ±9 -0]: Use new #? filter prefix in various places... 2 more lines |
07:12:11 | NimBot | nim-lang/Nim devel ae9a89d Andreas Rumpf [+0 ±9 -0]: Merge pull request #3394 from nanoant/patch/use-new-filter-prefix... 2 more lines |
07:14:21 | * | bjz joined #nim |
07:21:09 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
07:21:29 | * | bjz joined #nim |
07:24:43 | * | bjz quit (Client Quit) |
07:29:29 | * | Ven joined #nim |
07:36:31 | * | AforAvi joined #nim |
07:36:36 | * | AforAvi is now known as AvinashSnl |
07:36:55 | * | AvinashSnl quit (Client Quit) |
07:37:11 | * | AforAvi joined #nim |
07:38:15 | * | bjz joined #nim |
07:45:28 | * | AforAvi is now known as AvinashSnl |
07:46:55 | * | AvinashSnl quit (Quit: Leaving.) |
07:47:17 | * | AforAvi joined #nim |
07:48:38 | * | AforAvi quit (Client Quit) |
07:56:27 | * | yglukhov joined #nim |
08:17:35 | * | Trustable joined #nim |
08:32:38 | * | BitPuffin|osx quit (Ping timeout: 240 seconds) |
08:43:02 | * | wuehlmaus quit (Ping timeout: 260 seconds) |
08:45:24 | * | gokr quit (Ping timeout: 264 seconds) |
08:57:53 | * | wuehlmaus joined #nim |
08:58:17 | * | wuehlmaus is now known as Guest58766 |
09:01:52 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
09:02:32 | * | bjz joined #nim |
09:16:22 | * | coffeepot joined #nim |
09:46:09 | * | Sahnvour joined #nim |
10:09:45 | * | Demon_Fox quit (Quit: Leaving) |
10:20:57 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:46:53 | * | elrood joined #nim |
11:02:57 | * | razaaa joined #nim |
11:10:44 | * | Guest58766 is now known as wuehlmaus |
11:14:35 | * | Ven joined #nim |
11:20:12 | * | X67r joined #nim |
11:26:51 | * | Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png) |
11:33:47 | * | AvinashSnl joined #nim |
11:35:21 | * | xet7 joined #nim |
11:35:59 | * | AvinashSnl quit (Read error: Connection reset by peer) |
11:37:56 | * | AvinashSnl joined #nim |
11:38:39 | * | xet7 quit (Client Quit) |
11:38:56 | * | joelmo joined #nim |
11:41:26 | * | xet7 joined #nim |
11:57:32 | * | Sembei joined #nim |
11:59:02 | * | Pisuke quit (Ping timeout: 260 seconds) |
12:55:57 | * | FedeOmoto joined #nim |
13:09:42 | * | UberLambda joined #nim |
13:11:54 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:22:43 | * | Ven joined #nim |
13:24:28 | * | physixer joined #nim |
13:25:31 | * | BitPuffin joined #nim |
13:26:16 | * | razaaa quit (Read error: Connection reset by peer) |
13:26:28 | * | razaaa joined #nim |
13:27:26 | * | wuehlmaus quit (Quit: Lost terminal) |
13:30:50 | physixer | hello trying to get into nim (experienced in Python, C). I looked at C code for greetings.nim (the tutorial code) and it has greetings.c and stdlib_system.c. stdlib_system is the "supporting runtime"? |
13:31:56 | UberLambda | how does nim know how to free resources? |
13:32:28 | UberLambda | suppose that I draw a cube and then interactively delete the code to draw it with hotswapping |
13:41:27 | * | AvinashSnl is now known as AvinashSnl|afk |
13:44:13 | physixer | nim has generics, templates, and macros. Why? |
13:45:54 | * | smodo joined #nim |
13:47:07 | softinio | Why do you ask? I think is a good thing. Sounds like you don't. |
13:48:19 | physixer | It's essentially once concept, why offer it in three flavors? |
13:48:26 | physixer | *one concept |
13:48:48 | * | merowinger joined #nim |
13:51:20 | r-ku | physixer each of them do different things and work best in different situations |
13:52:04 | r-ku | having only one would make it a half-assed solution at best because you cant be perfect doing all the things |
13:52:37 | reactormonk | physixer, templates are basically dumbed-down macros. |
13:53:47 | merowinger | physixer, read up here http://hookrace.net/blog/what-is-special-about-nim/ |
13:55:39 | physixer | merowinger: that link is very general, doesn't even mention generics |
13:55:47 | * | joelmo quit (Quit: Connection closed for inactivity) |
14:00:05 | coffeepot | generics are a way to create code that works on a range of types, templates and macros are metaprogramming which is basically writing code that writes code, so they're quite different |
14:01:41 | * | MyMind joined #nim |
14:03:51 | * | Sembei quit (Ping timeout: 255 seconds) |
14:04:20 | coffeepot | for example, i have an octree implementation that uses generics to allow you to store any type as the node, and uses templates to create a proc that lets you write procedures that traverse the tree. So, for example createTreeProc(myProcName, tpNodesOnly): <do stuff on nodes>. Then I can call myProcName(area) and it does the stuff I want. This lets |
14:04:21 | coffeepot | me write different procs that act on the tree in a couple of lines of code, and also I only need to change the tree traversal code in one place |
14:08:08 | coffeepot | macros are another level beyond templates where you build the compiler's tree with code. I've not any experience with those yet though so can't really fill in examples of their usefulness, but the general impression I get is that macros allow you to extend the language by creating "built in" style syntactic constructs without the runtime overhead |
14:09:19 | reactormonk | coffeepot, they're just a bit more powerful templates. |
14:11:07 | coffeepot | reactormonk, but a different way of working, isn't it - building the tree manually instead of simply substituting or producing code? |
14:11:26 | coffeepot | I once called templates "super inlining" :D |
14:11:45 | coffeepot | tongue in cheek ofc |
14:13:18 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:14:32 | * | AvinashSnl|afk is now known as AvinashSnl |
14:23:40 | * | Ven joined #nim |
14:24:10 | * | physixer quit (Quit: leaving) |
14:25:39 | * | merowinger quit (Quit: Page closed) |
14:39:50 | * | AvinashSnl quit (Quit: Leaving.) |
14:46:47 | softinio | we need to get nim docs added to http://devdocs.io/ |
14:48:56 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:52:16 | * | Ven joined #nim |
15:08:42 | reactormonk | softinio, go bug them. |
15:14:28 | * | ChrisMAN quit (Remote host closed the connection) |
15:17:57 | * | smodo quit (Remote host closed the connection) |
15:18:40 | * | ChrisMAN joined #nim |
15:19:53 | NimBot | nim-lang/Nim devel d6b7f0a JamesP [+0 ±1 -0]: add assertion for zero denominator |
15:19:53 | NimBot | nim-lang/Nim devel 2f4cc4e JamesP [+0 ±1 -0]: add a few type checks to limit type to SomeInteger... 4 more lines |
15:19:53 | NimBot | nim-lang/Nim devel ce18b85 JamesP [+2 ±0 -0]: add two test:... 2 more lines |
15:19:53 | NimBot | nim-lang/Nim devel f8b7a16 Dominik Picheta [+2 ±1 -0]: Merge pull request #3406 from jlp765/rationals1... 2 more lines |
15:20:07 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:20:32 | * | NimBot joined #nim |
15:34:40 | * | darkf quit (Quit: Leaving) |
15:34:59 | * | razaaa quit (Ping timeout: 240 seconds) |
15:38:59 | * | lokulin quit (Ping timeout: 240 seconds) |
15:39:52 | * | Ven joined #nim |
15:48:27 | * | razaaa joined #nim |
15:49:53 | * | shodan45 joined #nim |
15:54:33 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:59:04 | * | Ven joined #nim |
16:26:37 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:30:41 | * | pmbauer quit (Ping timeout: 256 seconds) |
16:32:00 | * | Peter_ joined #nim |
16:33:04 | * | pmbauer joined #nim |
16:36:13 | Peter_ | Hi! Can I ask a quick question about shallowCopy? I might not understand some concepts here. |
16:36:23 | reactormonk | Peter_, go on... |
16:36:28 | Peter_ | var x = @[1,2,3] |
16:36:31 | Peter_ | var y: seq[int] |
16:36:35 | Peter_ | shallowCopy(y, x) |
16:36:39 | Peter_ | x[0] = 99 |
16:36:40 | * | UberLambda quit (Read error: Connection reset by peer) |
16:36:41 | reactormonk | Peter_, please use a pastebin. |
16:36:41 | Peter_ | echo y[0] |
16:36:46 | Peter_ | That's all. |
16:36:52 | reactormonk | like gist. Or come gitter, where that's builtin |
16:36:53 | Peter_ | What should be the output? |
16:37:03 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:41:26 | Peter_ | On pastebin: http://pastebin.com/G8U2jfAG |
16:47:22 | Peter_ | I thought that shallowCopy works the same as y=x in python, so ``echo y[0]`` should result 99. |
16:48:52 | * | yglukhov quit (Ping timeout: 250 seconds) |
16:59:25 | Peter_ | I got off the train, my Nim time is over. I'll read the logs later. Thanks |
17:03:38 | * | alex__ quit (Quit: Connection closed for inactivity) |
17:03:48 | * | Peter_ quit (Ping timeout: 246 seconds) |
17:05:10 | reactormonk | Araq, ^ |
17:11:07 | * | Ven joined #nim |
17:16:00 | * | Ven quit (Ping timeout: 264 seconds) |
17:17:46 | * | BitPuffin quit (Ping timeout: 246 seconds) |
17:28:11 | * | golak joined #nim |
17:34:26 | * | golak quit (Ping timeout: 246 seconds) |
17:44:36 | * | tmm1 joined #nim |
17:51:51 | tmm1 | morning |
17:52:10 | tmm1 | Xe: "pointer" |
18:03:33 | * | yglukhov joined #nim |
18:07:51 | * | yglukhov quit (Ping timeout: 250 seconds) |
18:08:11 | * | Jesin quit (Quit: Leaving) |
18:10:27 | * | Jesin joined #nim |
18:39:22 | * | Matthias247 joined #nim |
18:40:04 | tmm1 | Araq: does this make sense https://github.com/tmm1/nim/commit/284a544494f20856acc516895c852a0060e76107 |
18:45:45 | tmm1 | hmm i guess that doesn't work at compile time.. |
18:59:28 | * | zielmicha joined #nim |
19:02:10 | * | UberLambda joined #nim |
19:06:11 | * | vendethiel joined #nim |
19:23:44 | tmm1 | seems there's no way to do this since you cannot use ffi at compile time |
19:26:31 | * | rleblic joined #nim |
19:34:08 | * | boopsiesisaway is now known as boopsies |
19:36:03 | * | lokulin joined #nim |
19:57:05 | * | UberLambda quit (Quit: GTG) |
20:00:32 | * | jakesyl joined #nim |
20:09:09 | * | jaco60 joined #nim |
20:15:46 | * | eldamar quit (Ping timeout: 244 seconds) |
20:21:42 | * | shodan45 quit (Quit: Konversation terminated!) |
20:25:33 | * | gmpreussner|work quit (Read error: Connection reset by peer) |
20:33:47 | * | vendethiel quit (Ping timeout: 264 seconds) |
20:41:01 | * | vendethiel joined #nim |
20:41:12 | * | razaaa____ joined #nim |
20:42:13 | * | razaaa quit (Read error: Connection reset by peer) |
20:46:34 | * | eldamar joined #nim |
20:47:04 | * | lokulin quit (Ping timeout: 246 seconds) |
20:49:29 | * | mtj_ quit (Ping timeout: 250 seconds) |
20:55:30 | * | ekarlso quit (Quit: WeeChat 1.1.1) |
20:56:46 | * | tmm1 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:58:29 | * | mtj_ joined #nim |
21:02:45 | * | Peter_ joined #nim |
21:02:50 | * | Demon_Fox joined #nim |
21:06:00 | * | razaaa____ quit (Quit: Leaving) |
21:08:07 | * | gmpreussner|work joined #nim |
21:14:26 | * | tmm1 joined #nim |
21:17:44 | * | lokulin joined #nim |
21:27:40 | * | jefus left #nim ("Leaving") |
21:28:44 | * | tmm1_ joined #nim |
21:29:43 | tmm1_ | Araq: you said there was a tool to print out the values of macro constants? |
21:34:33 | * | NimBot joined #nim |
21:55:06 | * | boopsies is now known as boopsiesisaway |
21:58:23 | * | yglukhov joined #nim |
22:02:48 | * | yglukhov quit (Ping timeout: 264 seconds) |
22:05:28 | * | tmm1_ quit (Ping timeout: 246 seconds) |
22:10:51 | Peter_ | FYI, my previous question here about shallowCopy has been solved, see https://github.com/nim-lang/Nim/pull/3407 for more details. |
22:11:17 | * | Peter_ quit (Quit: Page closed) |
22:13:35 | * | AMorpork left #nim ("Leaving") |
22:26:50 | * | Trustable quit (Remote host closed the connection) |
22:27:05 | * | BitPuffin|osx joined #nim |
22:27:55 | * | tmm1 joined #nim |
22:34:33 | ldlework | anyone bored |
22:38:27 | Araq | ldlework: let's see b-o-r-e-d. hmm |
22:38:35 | Araq | I used to know that word |
22:43:55 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:53:58 | * | NimBot joined #nim |
22:56:24 | * | aw1231 joined #nim |
22:56:52 | aw1231 | Hi, I'm trying to install nimble but the instructions on the readme don't work. |
22:57:14 | Araq | aw1231: are you on windows? |
22:57:42 | aw1231 | yes |
22:57:55 | Araq | then you already have nimble. |
22:58:08 | aw1231 | where is it located then? |
22:58:10 | Araq | the installer ships with it |
22:58:22 | aw1231 | I'm building from source. |
22:58:29 | Araq | ah ok |
22:58:44 | Araq | ok, so what's the error message? |
22:59:26 | aw1231 | (1, 21) Error: undeclared identifier: 'install_nimble' |
23:00:16 | Araq | what installation instructions are you following? |
23:00:17 | * | strcmp1 joined #nim |
23:00:28 | aw1231 | the ones in the readme |
23:00:31 | aw1231 | on github |
23:00:39 | Araq | nimble's? or nim's? |
23:00:59 | aw1231 | nim's |
23:01:37 | Araq | that's very new. you need to have nim's devel version for this to work |
23:01:52 | aw1231 | i do have that. |
23:02:51 | Araq | nim e install_nimble.nims |
23:02:53 | Araq | works for me |
23:03:33 | aw1231 | run in which folder? |
23:03:36 | Araq | you need to do it from nim's directory cause that's where the install_nimble.nims file is |
23:11:09 | * | elrood quit (Quit: Leaving) |
23:12:03 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:22:01 | Araq | aw1231: does it work for you? |
23:39:06 | aw1231 | yep |
23:41:24 | Araq | yay :-) |
23:42:15 | tmm1 | Araq: where would i add buitin for gcc version? |
23:42:24 | tmm1 | i couldn't find where gcc clang etc were declared |
23:43:00 | Araq | you need to improve your (nim)grep-foo then |
23:43:05 | Araq | it's in extccomp.nim |
23:44:02 | Araq | and yes, if you wonder. that filename predates the invention of long filenames. |
23:45:36 | * | strcmp1 quit (Remote host closed the connection) |
23:45:58 | Araq | tmm1: that's where 'clang' etc are defined, but that has nothing to do with adding new builtins |
23:46:17 | Araq | for that you could write a compiler plugin |
23:48:13 | Araq | tmm1: however, do we need to support older GCCs which don't know about C++'s threading primitives? |
23:51:53 | * | vendethiel quit (Ping timeout: 265 seconds) |
23:56:54 | tmm1 | Araq: i just want the tests to pass on travis |
23:57:14 | tmm1 | its using ubuntu precise which is not that old, i think nim should not try to use the atomic symbols if they're not available |
23:57:19 | tmm1 | instead of producing a broken binary |
23:57:39 | Araq | well it should affect the threading tests |
23:57:52 | Araq | which is not in our list of essential tests |
23:58:01 | Araq | what am I missing? |
23:58:39 | tmm1 | it would be nice to run all the tests |
23:58:48 | tmm1 | we can split it into multiple travis jobs so they run in parallel |
23:59:23 | tmm1 | what's the status of compile-time ffi? would be nice to be able a macro like GNU_MAJOR at compile time more easily since that's common when dealing with c code |