<< 27-08-2014 >>

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:26Araqhow did collections/baseutils ever made it into the stdlib?
07:37:30Araqand who uses it?
07:39:57*io2 joined #nimrod
07:42:39Araqah, 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:36dom96hi
17:49:18*jjap joined #nimrod
17:50:45jjapIn macros.nim, there's this line: ## .. include:: ../doc/astspec.txt What's happening here?
17:51:31dom96It's including that file for its documentation.
17:51:39reactormonkAnyone using debian?
17:52:14dom96reactormonk: is this in regards to #1504?
17:52:23*gkoller joined #nimrod
17:52:32jjapI 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:59dom96hm, we need a Release Steps wiki article I think
17:54:21dom96To 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:25EXetoCisn't doc recommended?
17:54:36dom96*includes everything
17:54:38EXetoCI think it worked better for me
17:54:41dom96EXetoC: nope
17:54:56dom96doc is obsolete
17:55:33jjapI 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:48jjapThe 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:27dom96Does the compiler crash when it's missing?
17:57:44jjapdom96: Will try
17:57:44dom96I suppose it would be nice if it simply continued
17:58:01dom96Sounds like an easy thing to add.
17:58:26dom96jjap: Create an issue please, and if you feel like it have a go at trying to fix it :)
17:59:05jjapNo prob
18:06:05*io2 joined #nimrod
18:06:14reactormonkdom96, yup
18:06:37dom96reactormonk: I replied
18:07:33jjapdom96: 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:02dom96jjap: no, I mean when you run nimrod doc2 macros.nim. Do you get a stack trace or just an error?
18:10:07jjapError: unhandled exception: lib/core/macros.nim(15, 33) Error: cannot open '../doc/astspec.txt' [ERecoverableError]
18:10:29dom96interesting
18:10:38dom96I think that doesn't count as a crash though.
18:10:54dom96Still, would be nice if it was a warning I think.
18:11:07dom96But we should see what Araq thinks.
18:11:53jjapHmm I remember a stacktrace with the gh_pages tool
18:13:31jjapyes.. Here we are:
18:13:57jjap$ ~/.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:24jjap... 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:42jjapCreated issue: https://github.com/Araq/Nimrod/issues/1505
18:23:05dom96great, thanks.
18:23:45dom96I can run doc2 on the future module fine.
18:23:51dom96Are you using the latest compiler?
18:26:40jjap0.9.4
18:27:06jjapI 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:40Mat3hello
18:52:20dom96hi
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:22dom96hello enquora
19:00:43enquorahello
19:02:08Mat3hello dom96 and enquora
19:02:30enquoraIs this the Waltons?
19:02:55*jjap quit (Ping timeout: 246 seconds)
19:03:48*jjap joined #nimrod
19:04:10Mat3sorry, 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:18dom96enquora: waltons?
19:37:53enquorahttp://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:17enquorahttp://en.wikipedia.org/wiki/The_Waltons
19:39:15*dom96 still doesn't get the relation to nimrod
19:39:19Araqhi guys
19:39:35AraqI think it's a minor bug, dom96
19:39:42enquoraEach episode ends with family members saying 'Good-night' to each other
19:40:01Araqthe exception should be caught and converted to a proper error message
19:41:34Mat3hi Araq
19:41:48dom96enquora: i see
19:42:09dom96Araq: Ok. So no warning.
19:42:40Araqdom96: no, warning is fine
19:42:51Araqbut if it gives a stacktrace, it's wrong
19:45:13*filippo joined #nimrod
19:45:53Araqhi filippo welcome
19:46:23filippohi 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:25filippohi Araq
19:46:39filippoisn't it wrong?
19:46:55filippoi mean usually on linux i link a library with just -lnameoflibrary
19:47:19filippoand not with the full path (in fact that's the reason for the -L flag)
19:47:43Araqyou can do that with --passL:"-lnameoflibrary"
19:48:06Araqnot sure what clib should do, I didn't invent it
19:48:29filippoAraq: thank you i'll read the doc help of passL
19:49:47filippoAraq: i now that you're the nimrod author, so i ask you directly
19:50:05filippoare there some kind of type traits for proc function pointers
19:50:14filippofor retrieving ariety and params types
19:50:24filippobasically a sort of compile time reflection
19:51:01Araqtypetraits.nim has arity and name for types, but that's it unfortunately
19:51:47Araqa type API for macros is planned, but doesn't exist
19:52:04filippoAraq: ok
19:52:10Araqwhich is the opposite of the other macro APIs which are flawed, but do exist ...
19:52:25filippoAraq: from the command line output --clib:LIBNAME link an additional C library
19:59:34reactormonkdom96, I saw.
20:22:52filippobtw is there some kind of debug support?
20:23:03filippoor have i to debug the generated c code?
20:26:14reactormonkfilippo, there should be, try the doc
20:29:54dom96filippo: there is the embedded nimrod debugger, but it may not work very well.
20:30:00filippofound 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:14dom96http://build.nimrod-lang.org/docs/endb.html
20:30:58filippodom96: thanks ;)
20:31:11dom96np
20:36:19Araqfilippo: usually --debuginfo --linedir:on and then debugging with gdb works better
20:40:34filippoAraq: ok, thank you.
20:44:01*Demos joined #nimrod
21:02:10*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:04:22UNIcodeXsince 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:10EXetoCthat seems very likely
21:05:22reactormonkUNIcodeX, that depends on the structure of your code, but yes, it should be possible.
21:07:14jjapWould 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:27AraqUNIcodeX: yes. and there is also nimborg which is a nice bridge between python and nimrod
21:11:43Araqunfortunately it's not being worked on anymore
21:13:30Araqjjap: try --passL:"-lrt"
21:16:14UNIcodeXreactormonk, Araq: thank you
21:19:37UNIcodeXnimborg is very interesting indeed
21:22:02reactormonkUNIcodeX, feel free to pick it up
21:23:04filippobye all
21:23:18*filippo quit (Quit: Konversation terminated!)
21:28:21jjapAraq: Same. nimrod c -r mycode.nim --passL:"-lrt" ... mycode.o: In function `mycodeInit': mycode.c:(.text+0x199): undefined reference to `clock_gettime'
21:29:20Araqjjap: 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:25jjapAraq: --passL:"-lrt" is supposed to get passed to gcc, correct?
21:36:47jjapit looks like gcc isn't getting it -> gcc -o /vagrant/mycode /vagrant/nimcache/stdlib_parseutils.o [...] /vagrant/nimcache/mycode.o -ldl
21:37:39jjapfull copy and paste of my situation -> http://pastebin.com/t52cRj5d
21:39:26Araqjjap: when you use -r everything after the mycode.nim is passed to it as paramStr(1) etc.
21:39:41Araqso you have to write the --passL *before* the mycode.nim
21:39:55Araqor even better add it to your config file
21:42:58jjapAraq: 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:56Araqhi t4nk516 welcome
21:44:05t4nk516hello
21:44:43t4nk516I have a quick question about a code sample. This won't compile:
21:44:44t4nk516type GraphNode[T] = object data: T links: seq[ref GraphNode] var graph = GraphNode[int](data: 0, links: @[])
21:45:19t4nk516The compiler just says "cannot instantiate 'GraphNode'"
21:47:28Araquse ref GraphNode[T] within the 'seq'
21:48:36t4nk516oh thanks!
22:09:06*Ven quit (Ping timeout: 246 seconds)
22:13:28t4nk516Is there a way to push an item into a sequence?
22:14:54Araq'add' ?
22:15:59t4nk516OK I just didnt see it in the tutorial
22:17:13*Matthias247 quit (Read error: Connection reset by peer)
22:19:27EXetoCkeep the system.nim reference handy
22:19:29EXetoCalso: http://nimrod-by-example.github.io/
22:20:53dom96nim by example needs stdlib examples IMO
22:25:46*Ven joined #nimrod
22:32:53reactormonkdom96, what do you mean by that?
22:33:33dom96I mean examples of how to use sequences, sockets, hashtables etc
22:35:19jjapIt needs more examples in general. Also, oo programming is introduced before objects are :P
22:36:21jjapI'm looking through the github repo. Trying to figure out how that sidebar works...
22:36:35EXetoCyou don't want to cram things like that into the module documentation?
22:41:50VarriountMeeeep
22:42:04EXetoCbeep
22:43:16*EXetoC quit (Quit: WeeChat 1.0)
22:46:33dom96jjap: The content for it is taken from content/toc.md
22:52:01jjapdom96: 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:30t4nk516Is there a way to use `of` with strings? Like `assert("abc" of string)`?
22:56:04dom96good night
22:58:22Araqt4nk516: no need. "abc" is always a string and you can't subtype it
22:58:59t4nk516So `of` only works with subtypes?
23:00:43*Ven quit (Read error: Connection reset by peer)
23:01:22Araqwith 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