<< 16-01-2017 >>

00:01:50*allan0 quit (Ping timeout: 248 seconds)
00:04:00*allan0 joined #nim
00:09:07*onionhammer quit (Read error: No route to host)
00:24:19*yglukhov joined #nim
00:28:34*yglukhov quit (Ping timeout: 245 seconds)
00:30:29*Kingsquee joined #nim
00:31:44*allan0 quit (Ping timeout: 255 seconds)
00:45:58*couven92 quit (Quit: Client disconnecting)
00:47:56*Kingsquee quit (Ping timeout: 255 seconds)
00:54:37*Kingsquee joined #nim
01:08:40*devted joined #nim
01:23:04*kunev quit (Ping timeout: 256 seconds)
01:24:05*kunev joined #nim
01:44:52*pregressive quit (Remote host closed the connection)
01:45:26*pregressive joined #nim
01:47:30*pregressive quit (Read error: Connection reset by peer)
01:47:46*pregressive joined #nim
01:49:04*pregressive quit (Read error: Connection reset by peer)
01:49:35*pregressive joined #nim
01:53:59*pregressive quit (Ping timeout: 245 seconds)
02:01:52*onionhammer joined #nim
02:22:30*Sembei quit (Excess Flood)
02:23:35*Sembei joined #nim
02:26:13*yglukhov joined #nim
02:27:47*dddddd quit (Quit: Hasta otra..)
02:31:36*yglukhov quit (Ping timeout: 240 seconds)
02:39:16*vlad1777d quit (Quit: Leaving)
02:40:44*allan0 joined #nim
02:43:35*chemist69 quit (Ping timeout: 255 seconds)
02:56:26*space-wizard joined #nim
02:57:40*chemist69 joined #nim
03:15:50*gangstaguy quit (Quit: Connection closed for inactivity)
03:37:18*allan0 quit (Ping timeout: 248 seconds)
05:05:31*libman quit (Ping timeout: 240 seconds)
05:22:40*vendethiel quit (Remote host closed the connection)
05:22:49*vendethiel joined #nim
05:23:42*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
06:25:05*nsf joined #nim
07:01:36*bjz joined #nim
07:09:02*ftsf_ quit (Quit: :q!)
07:15:20*ARCADIVS joined #nim
07:30:30*couven92 joined #nim
07:31:51*space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
07:32:59*yglukhov joined #nim
07:37:18*yglukhov quit (Ping timeout: 248 seconds)
07:57:11*yglukhov joined #nim
08:08:26*Andris_zbx joined #nim
08:11:00*yglukhov quit (Remote host closed the connection)
08:14:45*yglukhov joined #nim
08:14:53*Vladar joined #nim
08:15:03*rokups joined #nim
08:19:26*yglukhov quit (Ping timeout: 248 seconds)
08:28:07*allan0 joined #nim
08:32:27*devted quit (Quit: Sleeping.)
08:40:01*GustavoLapasta joined #nim
08:45:19*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
09:34:38*vlad1777d joined #nim
09:36:41*allan0 quit (Ping timeout: 255 seconds)
09:51:18*s4 joined #nim
09:51:38*s4 left #nim (#nim)
09:51:47*bjz joined #nim
09:52:00*pafmaf joined #nim
09:53:20*bjz_ joined #nim
09:54:11*byte512 joined #nim
09:56:30*bjz quit (Ping timeout: 252 seconds)
10:20:05*GustavoLapasta quit (Quit: Leaving)
10:22:59*byte512 quit (Ping timeout: 240 seconds)
10:24:44*Kingsquee quit (Read error: Connection reset by peer)
10:24:56*Kingsquee joined #nim
10:47:57*irrequietus joined #nim
11:02:25*allan0 joined #nim
11:05:58*Vladar quit (Quit: Leaving)
11:08:17*irrequietus quit (Ping timeout: 240 seconds)
11:15:40*vlad1777d_ joined #nim
11:17:02*vlad1777d quit (Ping timeout: 260 seconds)
11:29:28*Arrrr joined #nim
11:33:11*MonsterAbyss quit (Ping timeout: 240 seconds)
11:38:51*MonsterAbyss joined #nim
11:48:10ArrrrI didn't know there was a lot of activity on r/nim. Dom, you should replace the alien for the crown,
11:55:55*PMunch joined #nim
11:59:34Arrrr'could not load: pcre32.dll'
12:02:11*Snircle joined #nim
12:24:36*ARCADIVS quit (Quit: ARCADIVS)
12:26:33*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
13:54:12*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
14:03:13*vlad1777d_ quit (Quit: Leaving)
14:10:01*yeeve quit (Quit: Leaving)
14:16:32*Vladar joined #nim
14:19:45*krux02 joined #nim
14:23:11*Arrrr quit (Ping timeout: 240 seconds)
14:24:46*erwana[m] quit (Remote host closed the connection)
14:24:46*TheManiac quit (Remote host closed the connection)
14:24:46*dyce[m] quit (Remote host closed the connection)
14:24:46*MrAxilus[m] quit (Remote host closed the connection)
14:24:47*M-Quora quit (Write error: Connection reset by peer)
14:24:47*hohlerde quit (Read error: Connection reset by peer)
14:24:48*jivank[m] quit (Write error: Connection reset by peer)
14:24:50*Guest73656[m] quit (Write error: Connection reset by peer)
14:29:35*yeeve joined #nim
14:33:18FromGitter<moigagoo> Hi! I'm trying to make my src dir visible from the test dir so that I could import stuff in the test suite. To do it, I put `config.nims` in tests with the following content: `switch("path", "./src")`. Running `nim c -r tests/mytest` fails with import error. But if I add `switch("path", "../src")`, cd into tests and run `nim c -r mytest`, the import works. ⏎ ⏎ I've tried using .cfg instead of .nims, the behavior is the same—import
14:33:18FromGitter... fails from root and works from tests. ⏎ ⏎ Am I doing something wrong or is it an issue to report? [https://gitter.im/nim-lang/Nim?at=587cd9ac074f7be763d97e2b]
14:34:07FromGitter<moigagoo> The same happens if I pass `--path` explicitly to `nim c`.
14:35:52Araqpaths are interpreted relatively from the file they are specified in
14:36:10Araqsounds like the compiler behaves like it should?
14:36:32FromGitter<moigagoo> I've just tried @dom96 's code for "Nim in Action," get the same error https://github.com/dom96/nim-in-action-code/tree/master/Chapter7/Tweeter
14:36:43Araqconfig.nims is in tests/ from this perspective source is in ../src
14:36:47Araqnot in ./src
14:38:20FromGitter<moigagoo> > paths are interpreted relatively from the file they are specified in ⏎ ⏎ ⏎ But I'm calling tests/mytest from the dir above. So relative to it, the src dir is `./src`. Anyhow, even if I write `switch("path", "../src")` and run `nim c -r tests/mytest`, there still is an import error. [https://gitter.im/nim-lang/Nim?at=587cdadbdec171b811f66a73]
14:39:12FromGitter<moigagoo> In fact, I now have put both ./src and ../src in config.nims (like Dominik does in his example), and the behavior is the same.
14:39:40*Sentreen quit (Quit: WeeChat 1.4)
14:40:09FromGitter<moigagoo> > But I'm calling tests/mytest from the dir above. So relative to it, the src dir is ./src. ⏎ ⏎ ⏎ Disregard that, I misread your message. [https://gitter.im/nim-lang/Nim?at=587cdb47dec171b811f66d06]
14:40:45FromGitter<moigagoo> Still, `switch("path", "../src")` doesn't work either.
14:41:37Araqreport it properly please.
14:41:54FromGitter<moigagoo> Sure thing.
14:41:55Araqpath handling has been battle tested and afaik there are no bugs left.
14:42:06*Sentreen joined #nim
14:42:18*dddddd joined #nim
14:42:41FromGitter<moigagoo> Well, that's why my first thought is that I'm doing something wrong, not that Nim is broken :-)
14:50:41*dyce[m] joined #nim
14:57:02FromGitter<moigagoo> I've reported the issue and set up a test repo to reproduce it (https://github.com/nim-lang/Nim/issues/5228). I hope this qualifies and proper report. If not, please tell me what to fix and I'll do so.
15:02:14FromGitter<moigagoo> *as proper report
15:05:47Araqyeah.
15:05:49Araqworks for me
15:05:55Araqwhat's the error message?
15:06:15Araq(works for me from both dirs)
15:06:54FromGitter<moigagoo> bar.nim(1, 8) Error: cannot open 'foo'
15:08:38Araqtry to 'nim dump'
15:08:46Araqto see the --path
15:31:06*satta_satta joined #nim
15:31:16*satta_satta left #nim ("Leaving")
15:39:44krux02Araq: can you take a look at the bug I recently made?
15:39:45krux02https://github.com/nim-lang/Nim/issues/5218
15:41:38krux02I think it should get some high priority, because for some reason the compiler emits the wrong type for the C backend
15:42:33*PMunch quit (Quit: leaving)
15:42:58*jivank[m] joined #nim
15:42:59*hohlerde joined #nim
15:42:59*MrAxilus[m] joined #nim
15:42:59*M-Quora joined #nim
15:43:06*erwana[m] joined #nim
15:43:06*Guest73656[m] joined #nim
15:43:07*TheManiac joined #nim
15:46:34Araqkrux02: let's see
15:46:39FromGitter<moigagoo> @Araq I'll do so, thanks. I left my Windows machine at work, I'm on Mac now (so it's pointless to check).
15:55:41Araqkrux02: fixed
15:59:18krux02ok that was fast
15:59:39krux02but I don't see the commit yet
16:00:39*Ven quit (Ping timeout: 245 seconds)
16:02:17*Ven joined #nim
16:04:14Araqit's called QA
16:09:56VladarSo, I guess Nimgame 2 v0.1 alpha is out. http://forum.nim-lang.org/t/2730 https://www.reddit.com/r/nim/comments/5obl15/nimgame_2_v01_alpha_released/
16:13:50*PMunch joined #nim
16:15:35*Ven quit (Ping timeout: 256 seconds)
16:16:22AraqVladar: congrats. I need to look into your entity system
16:16:34Araqalways interesting to compare these
16:17:59VladarAraq, thanks. Yeah, entity system is a heart of any game engine.
16:18:09*MyMind joined #nim
16:18:11*Ven joined #nim
16:22:49krux02ok, I could verify, it is now fixed. That was really fast.
16:23:24Araqthe only thing that wonders me is why it's not been triggered by our test suite
16:23:31Araqbecause it should have been
16:27:12Araqkrux02: btw I really enjoy reading your answers on the forum :-)
16:29:36*Ven quit (Ping timeout: 240 seconds)
16:31:26*Trustable joined #nim
16:33:31*Ven joined #nim
16:44:25cheatfatewow, my PR is accepted, its so unexpected :)
16:46:05*Ven quit (Ping timeout: 248 seconds)
16:49:26*nsf quit (Quit: WeeChat 1.6)
16:49:48Araqcheatfate: our stuff still works with it, so I merged it
16:51:22*Ven joined #nim
16:58:37*space-wizard joined #nim
16:59:57*Ven quit (Ping timeout: 248 seconds)
17:11:08*Ven joined #nim
17:16:06*Ven quit (Ping timeout: 240 seconds)
17:16:08*Andris_zbx quit (Remote host closed the connection)
17:26:01*couven92 quit (Quit: Client disconnecting)
17:26:52*rupil joined #nim
17:31:07*Ven joined #nim
17:32:21*ftsf_ joined #nim
17:35:37*ftsf quit (Ping timeout: 240 seconds)
17:42:01nivhello. question about posix.signal() - what hoops do i need to jump through to make it compile?
17:42:21nivcode: https://gist.github.com/niv/6c652aa9d3aa7acaffe0ce1a8cce0ac0
17:43:49Araqniv: proc(sig: cint) {.noconv.}
17:48:44nivcant get it to work :(
17:48:49nivlockfile.nim(4, 9) Error: expression 'signal(cint(15), proc (sig: cint): void {.noconv.} =
17:48:49niv discard )' has no type (or is ambiguous)
17:54:31Araqniv: use = instead of :
17:55:56nivsame error.
17:59:09Araqimport posix
17:59:09Araqproc ensureLock*() =
17:59:09Araq signal(15.cint, proc(sig: cint) {.noconv.} =
17:59:11Araq echo "bye"
17:59:13Araq quit(0)
17:59:15Araq )
17:59:51*Ven quit (Ping timeout: 256 seconds)
18:00:45nivAraq: :) https://gist.github.com/niv/6c652aa9d3aa7acaffe0ce1a8cce0ac0
18:02:36Araqniv: use = instead of :
18:02:50AraqMY version compiles
18:03:01*rupil quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
18:03:18niv.. but im using = ..
18:03:32nivam i completely blind?
18:03:41nivoooh
18:03:43nivyes
18:03:45nivso sorry. duh.
18:03:52*Ven joined #nim
18:04:21nivthank you
18:07:39nivlet me ask something less dumb .. is there a cross-platform way to trap program exit?
18:08:47*MyMind quit (Ping timeout: 258 seconds)
18:12:54*vlad1777d joined #nim
18:15:06*Ven quit (Ping timeout: 240 seconds)
18:24:10*Ven joined #nim
18:30:12*Ven quit (Ping timeout: 252 seconds)
18:33:21*Ven joined #nim
18:36:41*allan0 quit (Ping timeout: 240 seconds)
18:42:29*allan0 joined #nim
18:53:05*nsf joined #nim
18:54:53*MyMind joined #nim
18:55:17cheatfatetrap your own program exit, or trap exit of child program?
18:55:41*Sembei quit (Ping timeout: 248 seconds)
18:58:42cheatfateif your own program its can be done with exceptions handlers, for child program its can be done by receiving SIGCHLD signal
18:59:09cheatfatewindows behavior for child program exit is a bit complex
19:00:31*Ven quit (Ping timeout: 240 seconds)
19:00:51*krux02 quit (Remote host closed the connection)
19:04:05*Ven joined #nim
19:08:17*couven92 joined #nim
19:08:40*Matthias247 joined #nim
20:01:33FromGitter<gokr> Hey guys...
20:02:00FromGitter<gokr> Just stumbled over this on via Flipboard: http://www.infoworld.com/article/3157745/application-development/nim-language-draws-from-best-of-python-rust-go-and-lisp.html
20:02:02*bjz joined #nim
20:02:11*Ven quit (Ping timeout: 240 seconds)
20:05:44*Ven joined #nim
20:06:43dom96gokr: wow, nice find
20:07:42FromGitter<gokr> Not entirely bad article, although I would say the description of the default GC is wrong.
20:08:08FromGitter<gokr> Otherwise quite balanced.
20:09:29dom96yeah
20:10:11dom96A fair overview from someone who likely isn't a frequency tourist of Nim land.
20:10:17dom96*frequent
20:10:44*cheatfate quit (Quit: Leaving)
20:13:32dom96https://twitter.com/d0m96/status/821087803207458817
20:13:36dom96I replied to him
20:13:49dom96and already got a reply back https://twitter.com/syegulalp/status/821087915535204353
20:16:13*Ven quit (Ping timeout: 248 seconds)
20:20:30dom96one more reference for Wikipedia :D
20:21:05*GustavoLapasta joined #nim
20:24:37*vendethiel- joined #nim
20:24:49*Ven joined #nim
20:26:01*vendethiel quit (Ping timeout: 258 seconds)
20:30:36*Ven quit (Ping timeout: 240 seconds)
20:32:16FromGitter<Varriount> @dom96 Good. I'm always afraid some wikipedant is going to come and try to take down Nim's article again.
20:32:41GustavoLapasta"To macro or not to macro? That is the problem". If I were to translate this thing to Nim, would it make sense to port the (crazy) preprocessor abuse into macros?
20:32:41GustavoLapastahttps://github.com/lsalzman/enet/blob/master/compress.c#L121
20:32:42dom96If that happens we will #OccupyWikipedia
20:33:26dom96GustavoLapasta: A template if you can help it
20:33:49*vlad1777d quit (Quit: Leaving)
20:35:26GustavoLapastawell yes, templates, but does it make any sense? Is there any performance improvement? They all looks like regular procs to me
20:37:46dom96I suppose a proc is fine, you can always convert it into a template later anyway
20:39:29*Ven joined #nim
20:42:04*rokups quit (Quit: Connection closed for inactivity)
20:47:06*Ven quit (Ping timeout: 240 seconds)
20:49:15*Ven joined #nim
20:50:11*gokr joined #nim
21:02:17*Ven quit (Ping timeout: 240 seconds)
21:04:24*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:06:43*Ven joined #nim
21:07:12*huonw joined #nim
21:17:27*pie_ joined #nim
21:17:51*Ven quit (Ping timeout: 260 seconds)
21:26:13*Ven joined #nim
21:32:17*Ven quit (Ping timeout: 240 seconds)
21:32:57*bjz joined #nim
21:43:07*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:46:28*Ven joined #nim
21:53:12*Vladar quit (Quit: Leaving)
22:00:58*GustavoLapasta quit (Quit: Leaving)
22:01:49*Ven quit (Ping timeout: 256 seconds)
22:06:23*Ven joined #nim
22:16:59*Ven quit (Ping timeout: 240 seconds)
22:25:57*Ven joined #nim
22:31:51*Ven quit (Ping timeout: 240 seconds)
22:36:30*bjz joined #nim
22:40:57*bjz quit (Ping timeout: 240 seconds)
22:42:29*cheatfate joined #nim
22:45:58*Ven joined #nim
23:02:51*Trustable quit (Remote host closed the connection)
23:03:10*Ven quit (Ping timeout: 258 seconds)
23:05:49*Ven joined #nim
23:09:48*nsf quit (Quit: WeeChat 1.6)
23:16:29*Ven quit (Ping timeout: 248 seconds)
23:22:34*devted joined #nim
23:24:32*couven92 quit (Read error: Connection reset by peer)
23:26:15*Ven joined #nim
23:32:45*aziz joined #nim
23:33:01*Ven quit (Ping timeout: 248 seconds)
23:36:12*Ven joined #nim
23:37:17*libman joined #nim
23:40:24*def-pri-pub joined #nim
23:47:18*Matthias247 quit (Read error: Connection reset by peer)
23:48:01*Ven quit (Ping timeout: 258 seconds)
23:50:07*Ven joined #nim