<< 09-08-2015 >>

00:20:01*Sahnvour quit (Read error: Connection reset by peer)
00:30:00*strcmp1 quit (Ping timeout: 250 seconds)
00:32:59*X67r quit (Quit: leaving)
00:44:21*strcmp1 joined #nim
00:53:16*cyraxjoe_ joined #nim
00:54:07*cyraxjoe quit (Ping timeout: 265 seconds)
01:05:32renesac10~20 times faster code using a {.global.} variable overwritten every call instead of trusting the gc to allocate and deallocate the object local to this function
01:06:03renesacalso memory consumption at solid 800mb instead of varying between 1 and 2 GB
01:08:54dom96renesac: what does your code do?
01:10:35renesacI have a set, implemented with a seq, that I make a copy at the start of the function to not polute the original one
01:11:15renesacI tried writing my own copy function instead of using deepcopy, but the same result
01:11:40renesacchanged that function to work in-place with the global variable, bam, much better performance
01:14:24renesacwell, not "a" set, a few hundred of them, but only use one at a time
01:55:47dom96well it's nice that you got it working
01:55:55dom96but why did you implement your own sets?
01:56:14dom96couldn't you just have used the sets in the language or the ones in the sets module?
02:24:22*NimBot joined #nim
02:36:31*onionhammer1 joined #nim
02:38:44*onionham1 joined #nim
02:39:15*onionhammer quit (Ping timeout: 244 seconds)
02:41:45*onionhammer1 quit (Ping timeout: 240 seconds)
02:44:11*pregressive quit (Remote host closed the connection)
02:47:35*zahary quit (Read error: Connection reset by peer)
02:47:46*yglukhov joined #nim
02:52:11*yglukhov quit (Ping timeout: 260 seconds)
03:04:41*darkf joined #nim
03:24:25*Moix quit (Quit: Saliendo)
03:52:09*NimBot joined #nim
04:03:36*yglukhov joined #nim
04:07:57*yglukhov quit (Ping timeout: 246 seconds)
04:37:49*BitPuffin|osx quit (Ping timeout: 246 seconds)
05:11:07*NimBot joined #nim
05:48:18*NimBot joined #nim
05:54:29*xcombelle joined #nim
06:24:09*xcombelle quit (Remote host closed the connection)
06:26:59*yglukhov joined #nim
06:31:14*yglukhov quit (Ping timeout: 244 seconds)
06:50:38*polde quit (Ping timeout: 258 seconds)
06:57:20*polde joined #nim
07:00:58*kilon joined #nim
07:04:03*polde quit (Ping timeout: 258 seconds)
07:05:49*polde joined #nim
07:14:24*NimBot joined #nim
07:16:11*jszymanski joined #nim
07:22:51*thekilon joined #nim
07:25:27*yglukhov joined #nim
07:31:40*thekilon quit (Read error: Connection reset by peer)
07:31:49*thekilon joined #nim
07:38:14*yglukhov quit (Remote host closed the connection)
07:42:57*thekilon quit (Remote host closed the connection)
07:43:32*polde quit (Ping timeout: 258 seconds)
07:50:23*kilon quit ()
07:51:00*FedeOmoto quit (Quit: Leaving)
07:53:17*unclechu joined #nim
08:06:49*polde joined #nim
08:07:36*Hmmm joined #nim
08:10:43*Hmmm quit (Client Quit)
08:10:44*xcombelle joined #nim
08:12:17*polde quit (Ping timeout: 258 seconds)
08:16:34*polde joined #nim
08:23:51*yglukhov joined #nim
08:25:06*yglukhov quit (Remote host closed the connection)
08:28:23*Gonzih joined #nim
08:31:19*xificurC joined #nim
08:37:37*Sembei joined #nim
08:39:21*Pisuke quit (Ping timeout: 252 seconds)
08:52:09*polde quit (Ping timeout: 258 seconds)
09:04:51*X67r joined #nim
09:06:50*unregistereduser joined #nim
09:11:13*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
09:13:29*polde joined #nim
09:18:36*polde quit (Ping timeout: 258 seconds)
09:23:41*polde joined #nim
09:31:50baabelfishrenesac: I do that too when rendering simple sfml shapes. Use static or global because your rendering will happen in one core anyways.
09:34:17baabelfishYou don't want to do constant allocating / deallocating with non gc language either, just find a way to reuse the old objects
09:34:19*polde quit (Ping timeout: 258 seconds)
09:41:43*polde joined #nim
09:44:35*yglukhov joined #nim
09:48:53*polde quit (Ping timeout: 258 seconds)
09:50:44*unclechu quit (Ping timeout: 250 seconds)
09:52:11*polde joined #nim
10:02:12*Gonzih quit (Ping timeout: 264 seconds)
10:08:49*polde quit (Ping timeout: 258 seconds)
10:28:02*jszymanski quit (Quit: computer sleeps...)
10:46:33*bl1b joined #nim
10:50:27bl1bHi everyone. Sorry I may disturb you, Iam pretty new to nim and have a question to walkDirRec: walkDirRec("D:/") gives me every file in every directory on path "D:/". But what if I only want to retrieve directories? walkDirRec("D:/",{pcDir}) does nothing (neither does walkDirRec("D:/",{pcFile})) explicitly writing walkDirRec("D:/",{pcDir,pcFile}) gives the same result as omitting what did I do wrong?
10:56:14*Gonzih joined #nim
11:00:54*bl1b quit (Ping timeout: 246 seconds)
11:08:49*beac joined #nim
11:10:14*zahary joined #nim
11:15:58dom96bl1b: Hopefully you'll look at the IRC logs, walkDirRec("D:/",{pcDir}) will follow directories recursively (take a look at the docs for it). You can use existsFile and existsDir to determine whether the path you get is a directory or a file.
11:56:10*silven_ quit (Ping timeout: 260 seconds)
11:56:42*silven joined #nim
12:00:26*zahary_ quit (Read error: Connection reset by peer)
12:09:34*polde joined #nim
12:20:11*kilon joined #nim
12:31:51*xcombelle quit (Remote host closed the connection)
12:42:02*gokr joined #nim
12:50:35*BitPuffin|osx joined #nim
13:04:17*jszymanski joined #nim
13:08:28NimBotnim-lang/Nim devel 930e90a tulayang [+0 ±1 -0]: Modify proc parseHeader
13:08:28NimBotnim-lang/Nim devel f8babab Dominik Picheta [+0 ±1 -0]: Merge pull request #3197 from tulayang/async... 2 more lines
13:21:12*X67r quit (Read error: Connection reset by peer)
13:22:35*X67r joined #nim
14:24:05baabelfishhas anybody has success putting sfml resources into tables?
14:24:13baabelfishhad*
14:24:31baabelfishI should read my messages before I press enter
14:32:50baabelfishbasically how to get "newTable[string, Texture]()" to work?
14:48:08*EXetoC joined #nim
14:56:46*ivanvp joined #nim
14:59:01dom96baabelfish: why does it not work?
14:59:06dom96do you get an error?
15:05:22*unclechu joined #nim
15:19:06*xcombelle joined #nim
15:22:24*thekilon joined #nim
15:25:26*Arrrr joined #nim
15:32:39thekilonaloha nimsters :)
15:36:32*thekilon quit (Remote host closed the connection)
15:39:30dom96aww, didn't get to say hi
15:41:48*thekilon joined #nim
15:42:04Arrrryou have a new chance
15:43:05dom96hello thekilon!
15:43:24thekilonhey
15:43:37thekilonwhats new in the nim land ?
15:44:40Arrrrhello nimroder
15:49:01thekilon:)
15:59:29dom96http://forum.nim-lang.org/t/1506
15:59:30dom96:)
16:03:26ArrrrCan we put bountys on new features?
16:04:37dom96You can put bounties on whatever you want
16:11:42*Matthias247 joined #nim
16:15:45baabelfishdom96: im not currently at a computer, but I think it was something about destructors
16:17:13dom96baabelfish: hrm, bug perhaps?
16:18:09baabelfishdom96: no idea, felt unnatural
16:18:26dom96baabelfish: Can you send me a gist of your code whenever you're at a computer?
16:18:42baabelfishdom96: of course
16:19:36baabelfishActually that snippet i pasted above was enough with csfml and tables imported
16:29:39*thekilon quit (Remote host closed the connection)
16:31:47dom96baabelfish: yep, I can reproduce it
16:35:22baabelfishdom96: any idea of the reason? I quickly glanced inside the tables.nim and it seemed alright in there at least
16:35:48dom96baabelfish: Seems like a bug to me.
16:35:50dom96I'll report it
16:36:04dom96I tried to work around it but couldn't.
16:36:15baabelfishdom96: ok, thanks
16:36:23dom96Might be better to not use destructors for now
16:36:32dom96fowl's csfml doesn't use them IIRC
16:39:57baabelfishdom96: then the error seems really odd
16:41:18fowlRecommend you use blaxpirits lib and comment out the destructors
16:41:48*unregistereduser quit (Remote host closed the connection)
16:43:39baabelfishfowl: that is the one I was using
16:44:45baabelfishfowl: and also at the moment I can't finish sentences
16:44:58ArrrrI like this lib https://github.com/exetoc/nim-glfw
16:45:48dom96baabelfish: https://github.com/nim-lang/Nim/issues/3198
16:47:34*kilon quit ()
16:48:32baabelfishArrrr: I have used that with C++ but it's quite low level
16:48:52baabelfishNot quite but more than sfml
16:49:40baabelfishAnd does only a subset of what sfml handles
17:06:05*Gonzih quit (Ping timeout: 252 seconds)
17:15:44*Gonzih joined #nim
17:16:34*strcmp1 quit (Quit: Leaving)
17:40:32*FedeOmoto joined #nim
17:48:41*Arrrr quit (Quit: WeeChat 1.2)
18:01:39*darkf quit (Quit: Leaving)
18:29:53NimBotnim-lang/Nim devel 35f8cc0 Araq [+1 ±2 -0]: fixes #2752
18:29:53NimBotnim-lang/Nim devel cf4879b Araq [+0 ±1 -0]: added sequtils.reversed; refs #3148
18:31:39NimBotnim-lang/Nim devel a12c9cf Charles Blake [+0 ±1 -0]: Add MemFile text interface factored so users can optionally skip Nim string... 3 more lines
18:31:39NimBotnim-lang/Nim devel 3f4255d Charles Blake [+0 ±1 -0]: Beg->data, Len->size to address Varriount's issue. I was unaware of... 1 more lines
18:31:39NimBotnim-lang/Nim devel ae303cc Charles Blake [+0 ±1 -0]: Rename [rR]ecord->[mM]emSlice, rec->ms, End->ending. Also update some comments.
18:31:39NimBotnim-lang/Nim devel 18df5da Charles Blake [+0 ±1 -0]: Do not read past end of input. Ensure NUL termination.
18:31:39NimBot26 more commits.
18:44:57*jonathon joined #nim
18:46:53*Gonzih quit (Ping timeout: 256 seconds)
18:49:00*matkuki joined #nim
18:51:03*bl1b joined #nim
18:54:25bl1bdom96: thanks for the answer. That's what I expected but if I try: for entry in walkDirRec("D:/", {pcDir}): echo entry I get an empty result (or no echo respectively)
18:54:52*beac quit (Quit: Page closed)
19:10:48*xcombelle quit (Ping timeout: 265 seconds)
19:14:22*xcombelle joined #nim
19:27:16*Gonzih joined #nim
19:31:20*xcombelle quit (Ping timeout: 260 seconds)
19:33:56*xificurC_ joined #nim
19:35:36*matkuki quit (Quit: ChatZilla 0.9.91.1 [Firefox 39.0.3/20150806001005])
19:39:05*Demon_Fox joined #nim
19:39:06*xificurC quit (Ping timeout: 240 seconds)
19:40:27*pregressive joined #nim
19:41:50*Gonzih quit (Ping timeout: 240 seconds)
19:43:45*MyMind joined #nim
19:45:24*Sembei quit (Ping timeout: 255 seconds)
19:47:27dom96bl1b: hrm, let me take a look
19:49:18dom96bl1b: ahh, looks like walkDirRec only yields files.
19:55:38bl1bdom96: so why is there a pcDir filter?
19:56:57bl1bbtw. don't get me wrong I can use walkDir and do the recursion myself
19:58:31bl1band I already implemented a recursive proc using walkDir but walking entire drive D:/ took abou 14.3s on nim
19:58:52bl1bimplemented the same functionality (just walking dirs) on HaXe and it took ~4s
19:59:07bl1bI expected nim to be as fast as that or maybe even faster
19:59:40def-bl1b: source code for the Nim version?
20:00:42dom96bl1b: Take a look at the docs for walkDirRec http://nim-lang.org/docs/os.html#walkDirRec.i,string
20:01:00dom96pcDir means "follow real directories" not "yield directories"
20:02:40*strcmp1 joined #nim
20:06:00*xcombelle joined #nim
20:06:06*Gonzih joined #nim
20:10:48bl1bdef-: https://gist.github.com/bl1b/6bc58aba6614e983b5de
20:10:57bl1bbut i think i got my mistake
20:11:07bl1bI forgot to do a release build
20:11:28bl1bthe code provided in the gist runs in 0.4s
20:11:44def-ok, so it's fast enough?
20:11:49bl1bso significally faster than haxe
20:12:12bl1bI don't think native c will be faster
20:12:20bl1bor at least not by an amout that matters
20:12:41bl1bbut the difference of 4s to 0.4s or 14s (for the debug build) does
20:13:14bl1bnext test will be matching directories against pcre expressions
20:13:34def-making some kind of benchmark, deciding for a language?
20:13:45bl1byeah right
20:13:56bl1btaking rust into the test
20:14:24bl1bI just hate "C" and am looking for alternatives with possible cross platform approaches
20:15:17*Gonzih quit (Ping timeout: 252 seconds)
20:17:58*Gonzih joined #nim
20:25:06*brson joined #nim
20:27:25ekarlsodoes nim work for arduino ?
20:28:00federico3Hi ekarlso
20:29:38federico3Yes, although it would not be arduino anymore
20:29:47ekarlsohow so federico3 ? ^
20:30:24federico3Arduino is both an hardware standard and a soft stack
20:41:50*kilon joined #nim
20:50:37*ivanvp quit (Remote host closed the connection)
20:56:39*EXetoC quit (Ping timeout: 265 seconds)
20:58:37*FedeOmoto quit (Ping timeout: 250 seconds)
20:59:04*FedeOmoto joined #nim
20:59:19*thekilon joined #nim
21:02:32*unclechu quit (Remote host closed the connection)
21:02:55*xificurC_ quit (Ping timeout: 245 seconds)
21:04:52*xcombelle quit (Remote host closed the connection)
21:10:45*jszymanski quit (Quit: computer sleeps...)
21:12:40*Gonzih quit (Ping timeout: 244 seconds)
21:12:57*yglukhov quit (Remote host closed the connection)
21:18:57reactormonkekarlso, yeah, there has been some work
21:19:10reactormonkcheck the IRC logs
21:24:37*bl1b quit (Quit: Page closed)
21:25:16*Gonzih joined #nim
21:25:57*EXetoC joined #nim
21:30:16*jonathon left #nim (#nim)
21:40:36*Gonzih quit (Ping timeout: 264 seconds)
21:57:48*thekilon quit (Remote host closed the connection)
22:02:31*brson quit (Quit: leaving)
22:04:05*kilon quit ()
22:21:33Varriountdom96: I have an updated walkDirRec in the works, but it's proving tricky to do depth limiting.
22:34:46*strcmp1 quit (Ping timeout: 246 seconds)
22:34:58*dddddd joined #nim
22:40:00*dddddd quit (Ping timeout: 264 seconds)
22:40:49*Pisuke joined #nim
22:42:58*MyMind quit (Ping timeout: 260 seconds)
22:48:26*perturbation joined #nim
23:02:04*EXetoC quit (Ping timeout: 246 seconds)
23:02:39NimBotnim-lang/Nim devel 0fc43d3 Araq [+0 ±1 -0]: updated todo.txt
23:02:39NimBotnim-lang/Nim devel 5086179 Araq [+0 ±2 -0]: fixes #1329
23:02:39NimBotnim-lang/Nim devel bbf9757 Araq [+0 ±1 -0]: refs #2377
23:02:39NimBotnim-lang/Nim devel f934c92 Araq [+0 ±1 -0]: fixes #3096
23:02:39NimBot1 more commits.
23:06:59*perturbation quit (Quit: Leaving)
23:12:35*Matthias247 quit (Read error: Connection reset by peer)
23:17:49*Trustable joined #nim
23:24:48*yglukhov joined #nim
23:29:23*yglukhov quit (Ping timeout: 265 seconds)
23:36:04*strcmp1 joined #nim
23:36:53NimBotnim-lang/Nim devel 36a90c6 Araq [+2 ±1 -0]: fixes #1965
23:42:57*X67r quit (Quit: leaving)
23:50:18NimBotnim-lang/Nim devel d230b75 Araq [+0 ±1 -0]: removed sequtils.reversed again since it's already in algorithm.nim