00:02:22 | * | bjz quit (Ping timeout: 240 seconds) |
00:30:08 | * | brson quit (Quit: leaving) |
00:57:34 | * | Matthias247 quit (Read error: Connection reset by peer) |
01:05:36 | * | seubert_ is now known as seubert |
01:09:08 | * | EXetoC quit (Quit: WeeChat 1.0) |
01:12:05 | * | q66 quit (Quit: Leaving) |
01:19:06 | * | Joe_knock joined #nimrod |
01:46:35 | * | bogen joined #nimrod |
01:59:55 | * | Boscop quit (Read error: Connection reset by peer) |
02:29:06 | * | Sht0 quit (Ping timeout: 260 seconds) |
03:02:39 | * | xenagi quit (Read error: Connection reset by peer) |
04:06:06 | * | saml_ quit (Quit: Leaving) |
04:43:44 | * | johnsoft quit (Ping timeout: 260 seconds) |
04:44:08 | * | johnsoft joined #nimrod |
05:06:48 | * | gkoller joined #nimrod |
05:13:07 | * | Joe_knock quit (Quit: Leaving) |
05:15:24 | * | kshlm joined #nimrod |
05:48:02 | * | noam quit (Ping timeout: 250 seconds) |
06:05:06 | * | Araq_bnc is now known as Araq |
06:21:02 | * | skyfex quit (Quit: Computer has gone to sleep.) |
06:41:55 | * | gkoller quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
06:46:36 | * | BlaXpirit joined #nimrod |
07:30:29 | * | kunev joined #nimrod |
07:37:26 | Araq | how did collections/baseutils ever made it into the stdlib? |
07:37:30 | Araq | and who uses it? |
07:39:57 | * | io2 joined #nimrod |
07:42:39 | Araq | ah, LockFreeHash ... |
07:52:51 | * | Sht0 joined #nimrod |
07:55:46 | * | kunev quit (Read error: Connection reset by peer) |
07:56:25 | * | kunev joined #nimrod |
07:58:02 | * | endou joined #nimrod |
08:03:06 | * | endou_ joined #nimrod |
08:03:13 | * | clone1018__ joined #nimrod |
08:03:32 | * | silven_ joined #nimrod |
08:03:36 | * | [CBR]Unspoken1 joined #nimrod |
08:03:51 | * | onionhammer1 joined #nimrod |
08:10:04 | * | onionhammer quit (*.net *.split) |
08:10:04 | * | elie1 quit (*.net *.split) |
08:10:05 | * | Fr4n quit (*.net *.split) |
08:10:05 | * | [CBR]Unspoken quit (*.net *.split) |
08:10:05 | * | clone1018 quit (*.net *.split) |
08:10:06 | * | endou quit (*.net *.split) |
08:10:06 | * | saml quit (*.net *.split) |
08:10:08 | * | vegai quit (*.net *.split) |
08:10:08 | * | vissborg quit (*.net *.split) |
08:10:08 | * | silven quit (*.net *.split) |
08:11:06 | * | vegai joined #nimrod |
08:13:18 | * | endou_ quit (Quit: leaving) |
08:13:47 | * | endou joined #nimrod |
08:15:49 | * | Fr4n joined #nimrod |
08:16:45 | * | elie1 joined #nimrod |
08:16:58 | * | saml joined #nimrod |
08:20:46 | * | Sht0 quit () |
08:21:46 | * | Sht0 joined #nimrod |
08:22:57 | * | BlaXpirit quit (Quit: Quit Konversation) |
08:23:47 | * | vissborg joined #nimrod |
08:26:20 | * | BlaXpirit joined #nimrod |
08:44:12 | * | Ven joined #nimrod |
08:54:50 | * | Matthias247 joined #nimrod |
09:11:15 | * | bogen quit (Ping timeout: 255 seconds) |
09:11:57 | * | bogen joined #nimrod |
09:29:25 | * | johnsoft quit (Ping timeout: 260 seconds) |
09:30:45 | * | reactormonk quit (Ping timeout: 240 seconds) |
09:31:37 | * | johnsoft joined #nimrod |
09:32:57 | * | Skrylar quit (Ping timeout: 272 seconds) |
09:34:08 | * | bogen quit (Ping timeout: 250 seconds) |
09:36:21 | * | johnsoft quit (Ping timeout: 240 seconds) |
10:17:10 | * | noam joined #nimrod |
10:47:12 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:56:29 | * | johnsoft joined #nimrod |
10:57:50 | * | bogen joined #nimrod |
10:59:22 | * | reactormonk joined #nimrod |
11:03:58 | * | johnsoft quit (Quit: Leaving) |
11:09:42 | * | kunev quit (Quit: leaving) |
11:12:47 | * | bjz joined #nimrod |
11:24:08 | * | Ven joined #nimrod |
11:29:49 | * | jasondotstar quit (Ping timeout: 260 seconds) |
11:33:06 | * | kunev joined #nimrod |
11:44:04 | * | jasondotstar joined #nimrod |
11:56:42 | * | johnsoft joined #nimrod |
12:00:39 | * | saml_ joined #nimrod |
12:06:20 | * | jasondotstar quit (Quit: Leaving) |
12:13:14 | * | gkoller joined #nimrod |
12:28:00 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:30:16 | * | BlameStross left #nimrod (#nimrod) |
12:51:55 | * | saml_ quit (Quit: Leaving) |
13:02:21 | * | kshlm quit (Ping timeout: 240 seconds) |
13:49:28 | * | darkf quit (Quit: Leaving) |
13:52:03 | * | gkoller quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:19:22 | * | EXetoC joined #nimrod |
14:46:47 | * | disconnected joined #nimrod |
15:14:08 | * | BlaXpirit quit (Quit: Quit Konversation) |
15:20:50 | * | kunev quit (*.net *.split) |
15:20:50 | * | endou quit (*.net *.split) |
15:20:51 | * | io2 quit (*.net *.split) |
15:20:53 | * | woodgiraffe quit (*.net *.split) |
15:20:53 | * | def- quit (*.net *.split) |
15:20:54 | * | oddmunds quit (*.net *.split) |
15:22:39 | * | BlaXpirit-UA joined #nimrod |
15:22:39 | * | kunev joined #nimrod |
15:22:39 | * | endou joined #nimrod |
15:22:39 | * | io2 joined #nimrod |
15:22:39 | * | woodgiraffe joined #nimrod |
15:22:39 | * | def- joined #nimrod |
15:22:39 | * | oddmunds joined #nimrod |
15:41:24 | * | MightyJoe joined #nimrod |
15:45:55 | * | cyraxjoe quit (Quit: No Ping reply in 180 seconds.) |
15:46:34 | * | bogen quit (Quit: Leaving.) |
15:48:00 | * | kunev quit (Quit: leaving) |
15:49:27 | * | gkoller joined #nimrod |
15:59:20 | * | brson joined #nimrod |
16:07:43 | * | gkoller quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
16:12:18 | * | untitaker quit (Ping timeout: 260 seconds) |
16:18:03 | * | untitaker joined #nimrod |
16:18:29 | * | Matthias247 quit (Read error: Connection reset by peer) |
16:39:26 | * | noam_ joined #nimrod |
16:41:58 | * | Jesin quit (Ping timeout: 264 seconds) |
16:42:17 | * | noam quit (Ping timeout: 245 seconds) |
16:45:46 | * | Jesin joined #nimrod |
17:03:13 | * | Jesin quit (Quit: Leaving) |
17:10:41 | * | skyfex joined #nimrod |
17:12:02 | * | q66 joined #nimrod |
17:27:58 | * | io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist) |
17:35:09 | * | Ven joined #nimrod |
17:48:36 | dom96 | hi |
17:49:18 | * | jjap joined #nimrod |
17:50:45 | jjap | In macros.nim, there's this line: ## .. include:: ../doc/astspec.txt What's happening here? |
17:51:31 | dom96 | It's including that file for its documentation. |
17:51:39 | reactormonk | Anyone using debian? |
17:52:14 | dom96 | reactormonk: is this in regards to #1504? |
17:52:23 | * | gkoller joined #nimrod |
17:52:32 | jjap | I noticed that doc2 fails, complaining that macros.nim couldn't find this plain text file of documentation. Turns out the Mac binary tar.gz only includes html files in the doc folder, and not exactly the same ones either |
17:53:59 | dom96 | hm, we need a Release Steps wiki article I think |
17:54:21 | dom96 | To ensure that whoever is making these archives everything that is needed. |
17:54:22 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
17:54:25 | EXetoC | isn't doc recommended? |
17:54:36 | dom96 | *includes everything |
17:54:38 | EXetoC | I think it worked better for me |
17:54:41 | dom96 | EXetoC: nope |
17:54:56 | dom96 | doc is obsolete |
17:55:33 | jjap | I was playing with gradhas gh_pages thing which generates docs for your project. I noticed it fail, complaining that macros.nim couldn't fine ../docs/ast([something].txt |
17:56:48 | jjap | The fix was simple (copy all the .txt from github to my nimrod/docs folder), but it seems strange that a text file with documentation would be able to cause macros to crash |
17:57:27 | dom96 | Does the compiler crash when it's missing? |
17:57:44 | jjap | dom96: Will try |
17:57:44 | dom96 | I suppose it would be nice if it simply continued |
17:58:01 | dom96 | Sounds like an easy thing to add. |
17:58:26 | dom96 | jjap: Create an issue please, and if you feel like it have a go at trying to fix it :) |
17:59:05 | jjap | No prob |
18:06:05 | * | io2 joined #nimrod |
18:06:14 | reactormonk | dom96, yup |
18:06:37 | dom96 | reactormonk: I replied |
18:07:33 | jjap | dom96: when you say "does the compiler crash when it's missing", you mean doing nimrod -c whatever? No. I haven't seen it crash yet |
18:08:02 | dom96 | jjap: no, I mean when you run nimrod doc2 macros.nim. Do you get a stack trace or just an error? |
18:10:07 | jjap | Error: unhandled exception: lib/core/macros.nim(15, 33) Error: cannot open '../doc/astspec.txt' [ERecoverableError] |
18:10:29 | dom96 | interesting |
18:10:38 | dom96 | I think that doesn't count as a crash though. |
18:10:54 | dom96 | Still, would be nice if it was a warning I think. |
18:11:07 | dom96 | But we should see what Araq thinks. |
18:11:53 | jjap | Hmm I remember a stacktrace with the gh_pages tool |
18:13:31 | jjap | yes.. Here we are: |
18:13:57 | jjap | $ ~/.babel/bin/gh_nimrod_doc_pages -c . Generating docs for target 'master' lib/core/macros.nim(15, 33) Error: cannot open '../doc/astspec.txt' lib/pure/future.nim(18, 11) Error: undeclared identifier: 'newNimNode' |
18:14:24 | jjap | ... lib/pure/future.nim(25, 5) Error: internal error: cannot generate code for: nnkPar No stack traceback available Error running /usr/local/bin/nimrod doc2 --verbosity:0 --index:on --out:src/iterutils.html src/iterutils.nim on 'src/iterutils.nim', compiler aborted. |
18:18:57 | * | gkoller quit (Quit: Textual IRC Client: www.textualapp.com) |
18:19:42 | jjap | Created issue: https://github.com/Araq/Nimrod/issues/1505 |
18:23:05 | dom96 | great, thanks. |
18:23:45 | dom96 | I can run doc2 on the future module fine. |
18:23:51 | dom96 | Are you using the latest compiler? |
18:26:40 | jjap | 0.9.4 |
18:27:06 | jjap | I think future.nim is there because macros.nim fails |
18:31:03 | * | Ven joined #nimrod |
18:31:49 | * | Matthias247 joined #nimrod |
18:32:02 | * | nande joined #nimrod |
18:37:37 | * | Mat3 joined #nimrod |
18:37:40 | Mat3 | hello |
18:52:20 | dom96 | hi |
18:52:47 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:57:37 | * | enquora joined #nimrod |
18:59:02 | * | Ven joined #nimrod |
19:00:22 | dom96 | hello enquora |
19:00:43 | enquora | hello |
19:02:08 | Mat3 | hello dom96 and enquora |
19:02:30 | enquora | Is this the Waltons? |
19:02:55 | * | jjap quit (Ping timeout: 246 seconds) |
19:03:48 | * | jjap joined #nimrod |
19:04:10 | Mat3 | sorry, I don't know what you mean |
19:16:15 | * | io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist) |
19:37:18 | dom96 | enquora: waltons? |
19:37:53 | enquora | http://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB8QFjAA&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FThe_Waltons&ei=fzP-U4DpH4OsjALfuIC4DQ&usg=AFQjCNHypVxO82Sxh8U0Bmgx82qFNnqEtw&bvm=bv.74035653,d.cGE |
19:38:17 | enquora | http://en.wikipedia.org/wiki/The_Waltons |
19:39:15 | * | dom96 still doesn't get the relation to nimrod |
19:39:19 | Araq | hi guys |
19:39:35 | Araq | I think it's a minor bug, dom96 |
19:39:42 | enquora | Each episode ends with family members saying 'Good-night' to each other |
19:40:01 | Araq | the exception should be caught and converted to a proper error message |
19:41:34 | Mat3 | hi Araq |
19:41:48 | dom96 | enquora: i see |
19:42:09 | dom96 | Araq: Ok. So no warning. |
19:42:40 | Araq | dom96: no, warning is fine |
19:42:51 | Araq | but if it gives a stacktrace, it's wrong |
19:45:13 | * | filippo joined #nimrod |
19:45:53 | Araq | hi filippo welcome |
19:46:23 | filippo | hi all, i'm playing with nimrod and i really like it. I tried to link to a c library with the clib option. However the generated command in -l/current/path/of/execution/libname |
19:46:25 | filippo | hi Araq |
19:46:39 | filippo | isn't it wrong? |
19:46:55 | filippo | i mean usually on linux i link a library with just -lnameoflibrary |
19:47:19 | filippo | and not with the full path (in fact that's the reason for the -L flag) |
19:47:43 | Araq | you can do that with --passL:"-lnameoflibrary" |
19:48:06 | Araq | not sure what clib should do, I didn't invent it |
19:48:29 | filippo | Araq: thank you i'll read the doc help of passL |
19:49:47 | filippo | Araq: i now that you're the nimrod author, so i ask you directly |
19:50:05 | filippo | are there some kind of type traits for proc function pointers |
19:50:14 | filippo | for retrieving ariety and params types |
19:50:24 | filippo | basically a sort of compile time reflection |
19:51:01 | Araq | typetraits.nim has arity and name for types, but that's it unfortunately |
19:51:47 | Araq | a type API for macros is planned, but doesn't exist |
19:52:04 | filippo | Araq: ok |
19:52:10 | Araq | which is the opposite of the other macro APIs which are flawed, but do exist ... |
19:52:25 | filippo | Araq: from the command line output --clib:LIBNAME link an additional C library |
19:59:34 | reactormonk | dom96, I saw. |
20:22:52 | filippo | btw is there some kind of debug support? |
20:23:03 | filippo | or have i to debug the generated c code? |
20:26:14 | reactormonk | filippo, there should be, try the doc |
20:29:54 | dom96 | filippo: there is the embedded nimrod debugger, but it may not work very well. |
20:30:00 | filippo | found this post http://forum.nimrod-lang.org/t/297 about type traits. If i've some time i'll try to extend the api |
20:30:14 | dom96 | http://build.nimrod-lang.org/docs/endb.html |
20:30:58 | filippo | dom96: thanks ;) |
20:31:11 | dom96 | np |
20:36:19 | Araq | filippo: usually --debuginfo --linedir:on and then debugging with gdb works better |
20:40:34 | filippo | Araq: ok, thank you. |
20:44:01 | * | Demos joined #nimrod |
21:02:10 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:04:22 | UNIcodeX | since nimrod compiles to c and c++, it is then theoretically possible to build extension modules for python which are natively multithreaded, thus bypassing the GIL for certain tasks, yes? |
21:05:10 | EXetoC | that seems very likely |
21:05:22 | reactormonk | UNIcodeX, that depends on the structure of your code, but yes, it should be possible. |
21:07:14 | jjap | Would anyone know why " import posix; var sp = posix.Ttimespec(); discard posix.clock_gettime(0,sp) " would get the compiler to complain "(.text+0x199): undefined reference to `clock_gettime' " ? |
21:07:58 | * | Ven joined #nimrod |
21:11:27 | Araq | UNIcodeX: yes. and there is also nimborg which is a nice bridge between python and nimrod |
21:11:43 | Araq | unfortunately it's not being worked on anymore |
21:13:30 | Araq | jjap: try --passL:"-lrt" |
21:16:14 | UNIcodeX | reactormonk, Araq: thank you |
21:19:37 | UNIcodeX | nimborg is very interesting indeed |
21:22:02 | reactormonk | UNIcodeX, feel free to pick it up |
21:23:04 | filippo | bye all |
21:23:18 | * | filippo quit (Quit: Konversation terminated!) |
21:28:21 | jjap | Araq: Same. nimrod c -r mycode.nim --passL:"-lrt" ... mycode.o: In function `mycodeInit': mycode.c:(.text+0x199): undefined reference to `clock_gettime' |
21:29:20 | Araq | jjap: http://stackoverflow.com/questions/2418157/ubuntu-linux-c-error-undefined-reference-to-clock-gettime-and-clock-settim |
21:34:20 | * | jjap quit (Quit: Page closed) |
21:35:31 | * | jjap joined #nimrod |
21:36:25 | jjap | Araq: --passL:"-lrt" is supposed to get passed to gcc, correct? |
21:36:47 | jjap | it looks like gcc isn't getting it -> gcc -o /vagrant/mycode /vagrant/nimcache/stdlib_parseutils.o [...] /vagrant/nimcache/mycode.o -ldl |
21:37:39 | jjap | full copy and paste of my situation -> http://pastebin.com/t52cRj5d |
21:39:26 | Araq | jjap: when you use -r everything after the mycode.nim is passed to it as paramStr(1) etc. |
21:39:41 | Araq | so you have to write the --passL *before* the mycode.nim |
21:39:55 | Araq | or even better add it to your config file |
21:42:58 | jjap | Araq: Ah ha! Thank you. I've been playing with nimrod to see if I can replace some ruby+inline-c. So far so good. |
21:43:46 | * | t4nk516 joined #nimrod |
21:43:56 | Araq | hi t4nk516 welcome |
21:44:05 | t4nk516 | hello |
21:44:43 | t4nk516 | I have a quick question about a code sample. This won't compile: |
21:44:44 | t4nk516 | type GraphNode[T] = object data: T links: seq[ref GraphNode] var graph = GraphNode[int](data: 0, links: @[]) |
21:45:19 | t4nk516 | The compiler just says "cannot instantiate 'GraphNode'" |
21:47:28 | Araq | use ref GraphNode[T] within the 'seq' |
21:48:36 | t4nk516 | oh thanks! |
22:09:06 | * | Ven quit (Ping timeout: 246 seconds) |
22:13:28 | t4nk516 | Is there a way to push an item into a sequence? |
22:14:54 | Araq | 'add' ? |
22:15:59 | t4nk516 | OK I just didnt see it in the tutorial |
22:17:13 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:19:27 | EXetoC | keep the system.nim reference handy |
22:19:29 | EXetoC | also: http://nimrod-by-example.github.io/ |
22:20:53 | dom96 | nim by example needs stdlib examples IMO |
22:25:46 | * | Ven joined #nimrod |
22:32:53 | reactormonk | dom96, what do you mean by that? |
22:33:33 | dom96 | I mean examples of how to use sequences, sockets, hashtables etc |
22:35:19 | jjap | It needs more examples in general. Also, oo programming is introduced before objects are :P |
22:36:21 | jjap | I'm looking through the github repo. Trying to figure out how that sidebar works... |
22:36:35 | EXetoC | you don't want to cram things like that into the module documentation? |
22:41:50 | Varriount | Meeeep |
22:42:04 | EXetoC | beep |
22:43:16 | * | EXetoC quit (Quit: WeeChat 1.0) |
22:46:33 | dom96 | jjap: The content for it is taken from content/toc.md |
22:52:01 | jjap | dom96: Thought so: https://github.com/flaviut/nimrod-by-example/pull/15 |
22:53:23 | * | jhc76 joined #nimrod |
22:54:11 | * | jhc76 quit (Read error: Connection reset by peer) |
22:54:56 | * | jhc76 joined #nimrod |
22:55:30 | t4nk516 | Is there a way to use `of` with strings? Like `assert("abc" of string)`? |
22:56:04 | dom96 | good night |
22:58:22 | Araq | t4nk516: no need. "abc" is always a string and you can't subtype it |
22:58:59 | t4nk516 | So `of` only works with subtypes? |
23:00:43 | * | Ven quit (Read error: Connection reset by peer) |
23:01:22 | Araq | with objects, yes |
23:15:58 | * | t4nk516 quit (Ping timeout: 246 seconds) |
23:17:30 | * | BlaXpirit-UA quit (Quit: Quit Konversation) |
23:27:25 | * | jhc76 quit (Remote host closed the connection) |
23:34:24 | * | darkf joined #nimrod |
23:37:00 | * | Ven joined #nimrod |
23:46:33 | * | Ven quit (Ping timeout: 240 seconds) |
23:52:46 | * | Mat3 quit (Quit: Verlassend) |
23:58:08 | * | xenagi joined #nimrod |