<< 30-09-2013 >>

00:40:36*DAddYE joined #nimrod
00:44:03*EXetoC quit (Ping timeout: 260 seconds)
00:45:09*DAddYE quit (Ping timeout: 252 seconds)
00:58:13*q66 quit (Quit: Leaving)
01:04:34*ltbarcly joined #nimrod
01:16:16*MFlamer_ joined #nimrod
01:19:34*DAddYE joined #nimrod
01:40:03*MFlamer_ quit (Ping timeout: 250 seconds)
01:49:24*DAddYE quit (Remote host closed the connection)
01:49:51*DAddYE joined #nimrod
01:54:27*DAddYE quit (Ping timeout: 260 seconds)
02:46:35*DAddYE joined #nimrod
03:13:43*OrionPK quit (Read error: Connection reset by peer)
03:27:24*MFlamer_ joined #nimrod
03:33:08*DAddYE quit (Remote host closed the connection)
03:46:53reactormonkAraq, fix which echo?
04:08:11MFlamer_How come for i in 0..numThreads-1: never loops? If numThreads = 1 I would expect it to run once
04:08:25*xilo joined #nimrod
04:19:48reactormonkMFlamer_, you loop from 0 to 0
04:19:54reactormonkhm...
04:19:58reactormonktry ...
04:20:19MFlamer_ok, makes sense I guess
04:20:40MFlamer_I just used a while loop, little uglyier
04:25:09*MFlamer_ quit (Ping timeout: 250 seconds)
04:34:16*DAddYE joined #nimrod
04:40:23*Boscop quit (Disconnected by services)
04:40:26*Boscop joined #nimrod
04:40:37*DAddYE quit (Ping timeout: 248 seconds)
04:42:44*silven_ joined #nimrod
04:44:15*xilo_ joined #nimrod
04:44:32*orbitz_ joined #nimrod
04:49:35*xilo quit (*.net *.split)
04:49:39*orbitz quit (*.net *.split)
04:49:39*silven quit (*.net *.split)
05:24:58*ltbarcly quit (Quit: Computer has gone to sleep.)
05:30:31*DAddYE joined #nimrod
05:32:18*dyu joined #nimrod
05:59:10*ltbarcly joined #nimrod
06:00:59*zahary_ quit (Ping timeout: 248 seconds)
06:04:21*ltbarcly quit (Quit: Computer has gone to sleep.)
06:12:07*ltbarcly joined #nimrod
06:16:33*ltbarcly_ joined #nimrod
06:16:37*ltbarcly quit (Ping timeout: 248 seconds)
06:27:37*orbitz_ quit (Quit: Reconnecting)
06:27:43*orbitz joined #nimrod
07:13:20*ltbarcly_ quit (Ping timeout: 256 seconds)
07:18:41*ltbarcly joined #nimrod
07:20:07*dyu quit (Disconnected by services)
07:20:34*dyu_ joined #nimrod
07:31:29*XAMPP quit (Read error: Connection reset by peer)
07:34:56*DAddYE quit (Remote host closed the connection)
07:54:47*ltbarcly quit (Quit: Computer has gone to sleep.)
07:58:03*shevy left #nimrod ("I'll be back ... maybe")
08:42:36*q66 joined #nimrod
08:55:15*q66 quit (Quit: Leaving)
08:59:17*dyu_ quit (Quit: Leaving)
08:59:31*Araq_ joined #nimrod
09:00:23*q66 joined #nimrod
09:02:02Araq_MFlamer: for i in 0..numThreads-1 loops once iff numThread == 1
09:02:53Araq_surely we have hundred thousands of lines written in a language with a broken 'for' loop... or the problem is perhaps something else? ;-)
09:38:49*Araq_ quit (Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812])
09:41:16*Associat0r joined #nimrod
09:41:16*Associat0r quit (Changing host)
09:41:16*Associat0r joined #nimrod
11:15:51*Araq_ joined #nimrod
11:45:21*Araq_ quit (Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812])
11:47:07*dyu joined #nimrod
12:04:34*dyu quit (Disconnected by services)
12:05:05*dyu joined #nimrod
12:12:13*dyu quit (Disconnected by services)
12:12:52*dyu_ joined #nimrod
13:01:45*faassen joined #nimrod
13:09:13*io2 joined #nimrod
13:10:32*OrionPK joined #nimrod
13:28:17*wlhlm joined #nimrod
13:43:32*q66_ joined #nimrod
13:44:09*q66 quit (Disconnected by services)
13:44:13*q66_ is now known as q66
13:47:15*xilo_ quit (Ping timeout: 252 seconds)
13:54:48*Araq_ joined #nimrod
13:55:45*Araq_ quit (Client Quit)
13:59:04*EXetoC joined #nimrod
14:27:19*EXetoC quit (Quit: WeeChat 0.4.1)
14:28:01*OrionPK quit (Read error: Connection reset by peer)
14:44:27*faassen quit (Quit: Leaving.)
14:57:18wlhlmHi, I'm doing the nimrod tutorial I. When compiling the first programm (with `nimrod compile --run greetings.nim`), the compiler created the `~/nimcache` directory - Is there a way to change the cache directory in `/etc/nimrod.cfg` other then --nimcache?
15:07:36reactormonkwlhlm, so you want to set nimcache in nimrod.cfg?
15:12:41wlhlmreactormonk, yes if it's possible - I don't like when software creates directories/files in my user home and I don't want to set it all the time one the command line/alias. I think for cache files `/tmp` would be a better option…
15:16:30dom96The nimcache directory is created wherever you are compiling your files.
15:16:35*shodan45 quit (Quit: Konversation terminated!)
15:16:36dom96It's not always in ~
15:17:32wlhlmdom96: ahh, ok…
15:17:37dom96And haven't you answered your own question? You use --nimcache to change the dir.
15:19:35wlhlmdom96: I don't want to specify it all the time or alias it.
15:20:11dom96You can put it in your cfg file.
15:20:16wlhlmIs there a description of the syntax of `/etc/nimrod.cfg`?
15:20:43dom96it's the same as on the cmd line, or 'nimcache = "..."'
15:22:08wlhlmdom96: thanks! (now I see the line "# additional options always passed to the compiler")
16:28:48*ltbarcly joined #nimrod
16:38:40*seeker joined #nimrod
16:38:53seekerhi there
16:39:16seekerjust wanted to now if the forum has a search function
16:40:06seekerI mean this forum: http://forum.nimrod-code.org/
16:42:36MFlamerNo, but I asked the same question on the form and someone responded with a way to use google to search
16:45:03seekerthx MFlamer
16:45:22seekerindeed i did use site:forum.nimrod-code.org
16:45:25seeker;)
16:46:01seekerMFlamer: by any chance do you know who implemented the win32 ole library?
16:47:31*DAddYE joined #nimrod
16:48:57seekerMFlamer: in fact i was looking for a COM library to complete the OLE one
16:50:42seekerany examples on using http://nimrod-code.org/ole2.html somewhere?
16:52:44dom96Looks like that module is really old: https://github.com/Araq/Nimrod/blob/master/lib/windows/ole2.nim
16:53:06dom96And I have no idea what OLE is, so i can't really help you.
16:53:15seekerthx dom96
16:53:39seekeri think you're the author of jester, isn't it?
16:53:44dom96yeah
16:53:47seekernice job
16:53:55dom96thanks :)
16:54:18seekerdom96: can jester be used in some async mode?
16:54:34seekerlike libuv would allow to...
16:56:05dom96yes, it can.
16:56:31dom96https://github.com/dom96/jester/blob/master/tests/asynctest.nim
16:57:30seekerdom96: very nice! any benchmark?
16:58:14dom96http://www.techempower.com/benchmarks/#section=data-r6http://www.techempower.com/benchmarks/#section=data-r6http://www.techempower.com/benchmarks/#section=data-r6
16:59:01dom96bbl
17:10:05*brson joined #nimrod
17:13:24seekeri am looking for more examples on using nimrod with win32 than what i can find with the distribution, if anyone can help?
17:18:51MFlamer I can't offer much help here, unfortunatly
17:19:02Araqhi seeker, welcome
17:19:11seekerhi Araq
17:19:14AraqI translated the ole2 stuff from FPC once
17:19:31seekeris it used somewhere?
17:19:40Araqno idea ;-)
17:19:44AraqI don't think so
17:19:49seekerno problem ;)
17:20:14Araqalso I had the beginning of a COM interface but people told me there are easier/better ways
17:20:17seekerin fact i read a nice article about nimrod today
17:20:23Araqand now we have nothing instead. great, hu?
17:20:23*ltbarcly quit (Ping timeout: 260 seconds)
17:20:52seekerAraq: i usually use either python or luacom for this
17:21:14AraqI never touch these anymore :P
17:21:41seekerbut with nimrod i could compile the whole thing to a single executable if i understood correctly
17:22:29Araqyes and the executable is very small
17:22:40seekeri was really impressed
17:23:07seekerand would love to rebuild my OLE COM stuff with nimrod
17:23:27seekerno clue where to start with win32 and nimrod
17:23:37Araqinstall it?
17:23:50seekeryes it's so easy and fast
17:24:04seekertalking about nimrod...
17:24:36*ltbarcly joined #nimrod
17:24:42*ltbarcly quit (Client Quit)
17:24:54seekerAraq: is your COM interface still available somewhere?
17:25:09seekerthe one you started
17:25:40AraqI'm looking for it right now
17:25:47*ltbarcly joined #nimrod
17:26:00seekerthx Araq
17:26:00*ltbarcly quit (Client Quit)
17:29:11*ltbarcly joined #nimrod
17:29:49wlhlmtg
17:30:20wlhlmsorry, wrong window…
17:30:24*ltbarcly quit (Client Quit)
17:31:37Araqseeker: found it; I wanted to wrap http://disphelper.sourceforge.net/ with c2nim
17:31:47Araqshould be quite easy
17:31:57seekerthx Araq i'll keep you posted
17:34:15Araqif you manage, please put it on github and add it to Babel
17:34:47seekerAraq: sure
17:36:00seekerbtw i was looking for such an easy library to wrap with luajit ffi for some time now ;)
17:36:19seekerbut I'd rather do it in nimrod now...
17:36:42Araqwow you're a quick believer ;-)
17:38:47seekerAraq: lua and luajit is tiny but nimrod also has the huge advantage of compiling to a standalone single executable
17:39:10AraqI know ;-)
17:40:01seekerit's funny that I'm selling you nimrod now :)
17:42:21Araqit's funnier people always assume I don't know any other programming languages
17:43:04seekerWhat's your background Araq if i may ask?
17:43:36seekerprogramming language wise...
17:47:16AraqI wrote lots of Delphi, Ada, C, Java, C#, Lua and Python code. I've used other languages, but these are the ones in which I wrote "real word"/production code.
17:54:17seekernice language compilation...
17:55:08seekeri think it sheds some light on nimrod's origins
17:55:39seekeri have Ada missing on my own list but i used and still use a lot of Ruby
17:56:32Araqit does but perhaps not as much as you think; for instance modula 3 is has been a big influence even though I never really used the language as the compiler wouldn't build on my machine ;-)
17:56:51seekerinteresting...
17:57:19Araqalso C++ and Lisp are quite obvious influences
17:57:28seekerindeed
17:58:24seekeryou're doing a great job with nimrod
17:58:54Araqoh and I copied the module system from Oberon :P
17:59:19seekeroh, i have no clue here ;)
18:01:57seekerAraq: i must leave now; again my compliments on nimrod and keep up the good work
18:02:12Araqthank you
18:02:18*seeker quit ()
18:07:08*ltbarcly joined #nimrod
18:15:25*MFlamer quit (Ping timeout: 250 seconds)
18:42:39*MFlamer joined #nimrod
18:50:46*EXetoC joined #nimrod
18:57:38*silven_ is now known as silven
20:20:11*wlhlm quit (Ping timeout: 245 seconds)
21:06:16*io2 quit ()
21:14:23*fowl joined #nimrod
21:23:01Araqhi fowl wb
21:38:28fowlhi
21:43:24*shevy joined #nimrod
21:43:36Araqhey shevy
21:43:44shevygot a question - but let me look at my notes first
21:44:01AraqI'm doing my best, but can't help it, you're constantly downvoted on reddit :P
21:44:22shevythat's ok
21:44:26shevy80% idiots on reddit
21:44:36shevyanyway, to read in input one can do something like: var user_input = readline(stdin)
21:44:43Araqyes
21:44:58shevythat will read in until the \n character?
21:45:21Araqyeah but it's not part of user_input
21:45:32shevywait... lost me there
21:45:56shevylet's say I type: "abc" then hit enter, the variable will have "abc"
21:46:11shevybut if I would type "abc\ndef" enter, the variable would also have only "abc" right?
21:46:21shevythe real question I have is actually how to do multiline input
21:46:50AraqI think this works:
21:46:58Araqwhile not eof(stdin):
21:47:07Araq var line = stdin.readline
21:47:19shevylemme test slowly :D
21:47:22Araqand then terminate your input via CRTL+Z
21:47:38Araqor maybe it was CTRL+D
21:48:26shevyah ok
21:59:10*dyu_ quit (Quit: Leaving)
22:00:51Araqshevy: check out the 'rdstdin' module to get GNU readline support
22:07:45*OrionPK joined #nimrod
22:56:49reactormonkAraq, should break break out of the inner or outermost construct? https://github.com/Araq/Nimrod/issues/611
22:57:20Araqthe guy is right, it should break the 'block'
22:57:29Araqthat's what the spec says
23:10:18OrionPKshould blocks make 'unused' compiler warnings?
23:11:47Araqlike "label is not used"?
23:11:51OrionPKyeah
23:11:53Araqyeah I guess
23:12:02OrionPKI mean.. you are using it though, presumably
23:12:17OrionPKthe block's name isnt being used, but the code contained within is being called
23:12:21OrionPKseems like extra noise
23:12:45OrionPKno one will ever benefit from that warning, I dont think
23:13:11*ltbarcly quit (Ping timeout: 260 seconds)
23:14:03Araqthe name can be descriptive though
23:14:13Araqblock deleteAllFiles: ...
23:14:15OrionPKyeah
23:14:19OrionPKnames are good
23:14:21Araqeven if the label ain't used
23:14:22OrionPKthe warning is bad
23:14:31OrionPKimo
23:15:02OrionPKI have no problem with the name being there
23:16:03Araqyeah ok
23:16:08Araqso no warning then
23:28:26Araqgood night
23:32:05*shevy quit (Read error: Operation timed out)
23:32:24*shevy joined #nimrod