<< 28-05-2017 >>

00:02:42dom96zacharycarter: answer anyway :)
00:50:10*WhiskyRyan joined #nim
01:05:43*yingjun joined #nim
01:05:45FromGitter<Varriount> If I can actually load json at compile time
01:06:32FromGitter<Varriount> The parser in the standard library won't work at compile time, and the one available on Nimble is little more than an event emitter
01:08:46*PMunch quit (Quit: leaving)
01:10:05*yingjun quit (Ping timeout: 240 seconds)
01:16:11*chemist69 quit (Ping timeout: 255 seconds)
01:20:42*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:23:55*WhiskyRyan joined #nim
01:24:06*yglukhov joined #nim
01:27:09dom96Varriount: Why do you need to parse JSON at compile-time?
01:27:21dom96in any case, you might be able to fix the json module for that purpose.
01:27:55*Hekaton joined #nim
01:28:19*yglukhov quit (Ping timeout: 245 seconds)
01:28:20*jsgrant_ quit (Ping timeout: 260 seconds)
01:28:26*jsgrant__ joined #nim
01:29:48*chemist69 joined #nim
01:31:48*Hekatonkiros joined #nim
01:31:58*Hekaboi quit (Ping timeout: 260 seconds)
01:33:33*Hekaton quit (Ping timeout: 268 seconds)
01:40:42FromGitter<Varriount> dom96: The AWS API is described using these (https://github.com/boto/botocore/tree/develop/botocore/data) JSON documents
01:48:24FromGitter<Varriount> @dom96 I can't fix it until `when nimvm` is less limited.
02:00:12FromGitter<Varriount> And until the VM can handle addr better
02:12:23*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:13:11*pilne quit (Quit: Quitting!)
02:18:20*WhiskyRyan joined #nim
02:21:49FromGitter<zacharycarter> @Varriount how do we make ^ happen?
02:26:22FromGitter<ephja> https://github.com/nim-lang/Nim/blob/devel/lib/pure/collections/tableimpl.nim#L123 how should this deal with instantiations where either the key or the value type is annotated with `not nil`? "lib\pure\collections\tableimpl.nim(144, 40) Error: cannot prove 't.data[i]' is not nil"
02:27:41FromGitter<ephja> perhaps the only issue is with shallowCopy
02:29:12FromGitter<ephja> nah of course not. regular assignments fail for the same reason
02:29:22*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:29:46*arnetheduck joined #nim
02:30:05*WhiskyRyan joined #nim
02:39:47FromGitter<Varriount> @zacharycarter Right now I'm just using jsmn
02:39:59FromGitter<Varriount> It's a pain to use, but at least it works
02:41:01FromGitter<Varriount> `when nimvm` won't work in type definitions
02:41:40FromGitter<ephja> you could do "assert t.data[i] != nil". it's just that authors must test these things by instantiating with `not nil`types, unless it can be checked automatically
02:41:43*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:42:19*WhiskyRyan joined #nim
02:48:49FromGitter<Varriount> @ephja I ran into that
03:02:42*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:05:05*WhiskyRyan joined #nim
03:07:17*yingjun joined #nim
03:11:39*yingjun quit (Ping timeout: 245 seconds)
03:17:04*chemist69 quit (Ping timeout: 245 seconds)
03:21:33*chemist69 joined #nim
03:34:55*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:35:27*WhiskyRyan joined #nim
03:56:34*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:00:45*WhiskyRyan joined #nim
04:03:45*Hekaton joined #nim
04:07:08*Hekatonkiros quit (Ping timeout: 260 seconds)
04:18:13FromGitter<Varriount> @dom96 What's the expected layout for a nimble package?
04:24:04*Trioxin2 joined #nim
04:24:04*shashlick joined #nim
04:25:28*Trioxin quit (Ping timeout: 240 seconds)
04:34:54*shashlick quit (Quit: Bye)
04:46:50*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:49:02*WhiskyRyan joined #nim
04:50:32FromGitter<gogolxdong> science computation requires high quality library which could also be used as deep learning underlying lib
04:54:06*yingjun joined #nim
04:54:20*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:55:27*WhiskyRyan joined #nim
04:58:35*yingjun quit (Ping timeout: 240 seconds)
05:36:41*vlad1777d joined #nim
05:37:32*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
06:17:08*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:40:09FromGitter<mratsim> @Varriount: It’s there https://github.com/nim-lang/nimble#creating-packages ⏎ Everything should be in ./src/package-name
06:40:25FromGitter<mratsim> Things that you don’t want published in a “private” folder
06:42:06FromGitter<mratsim> However what I’m not clear is include vs import. See nimfp: https://github.com/vegansk/nimfp/blob/master/src/fp.nim vs linalg: https://github.com/unicredit/linear-algebra/blob/master/linalg.nim
06:42:28*nsf joined #nim
06:55:54*yingjun joined #nim
06:56:45*Trioxin joined #nim
06:57:05*Trioxin2 quit (Ping timeout: 240 seconds)
07:00:23*yingjun quit (Ping timeout: 260 seconds)
07:01:25*Trioxin2 joined #nim
07:04:05*Trioxin quit (Ping timeout: 240 seconds)
07:30:52*Trioxin joined #nim
07:35:32*Trioxin2 quit (Ping timeout: 268 seconds)
07:43:49*rokups joined #nim
07:50:10*dddddd quit (Remote host closed the connection)
07:52:05*vlad1777d quit (Quit: Leaving)
07:55:01FromGitter<Varriount> @mratsim Nim's include is much like C's include mechanism. The text from a module is incorporated into the current file
08:03:07*madmalik joined #nim
08:10:49FromGitter<mratsim> I meant as a recommendation when packaging
08:14:41*Matthias247 joined #nim
08:24:50*yglukhov joined #nim
08:25:07*yglukhov quit (Remote host closed the connection)
08:25:20*yglukhov joined #nim
08:34:09*yglukhov quit (Remote host closed the connection)
08:35:05*yglukhov joined #nim
09:24:25SusWombatHey all :)
09:27:14FromGitter<mratsim> Hey SusWombat
09:32:02*Hekaboi joined #nim
09:32:31*vlad1777d joined #nim
09:32:32*couven92 joined #nim
09:35:27*Hekaton quit (Ping timeout: 240 seconds)
09:36:07*yglukhov quit (Remote host closed the connection)
09:42:59FromGitter<mratsim> @dom96 Something is wrong with this thread: https://forum.nim-lang.org/t/2975 Was the OP deleted? Your are answering the wind :P
09:44:49SusWombatTheres currently no working repl for nim right?
09:45:23*yglukhov joined #nim
09:45:24*yglukhov quit (Remote host closed the connection)
09:47:41*Matthias247 quit (Read error: Connection reset by peer)
09:58:17*yingjun joined #nim
10:02:35*yingjun quit (Ping timeout: 240 seconds)
10:11:22*ronny left #nim ("WeeChat 1.1.1")
10:11:36FromGitter<mratsim> nim secret
10:12:23*Neomex joined #nim
10:19:33*Hekatonkiros joined #nim
10:21:13fr1endSusWombat: https://github.com/wheineman/nrpl worked on 0.16
10:21:18fr1endhaven't tried on .17
10:21:25SusWombatok thx
10:21:28fr1endit's a little sketchy but it does work to some degree
10:22:07*Hekaboi quit (Ping timeout: 255 seconds)
10:28:35*yglukhov joined #nim
10:31:54*Trioxin quit (Ping timeout: 268 seconds)
11:02:22*Snircle joined #nim
11:07:11SusWombatwhy does my my programm crash when i echo to much?
11:18:07dom96what's the stack trace?
11:18:13dom96and what do you mean "too much"?
11:18:19dom96mratsim: fixed
11:19:05FromGitter<mratsim> :+1:
11:19:46SusWombatdom96, sec
11:26:21*SusWombat quit (Remote host closed the connection)
11:27:12FromGitter<zacharycarter> I'm trying to assign a function pointer and getting a strange error - https://gist.github.com/zacharycarter/6d4f1419991b55f3814d5ecf82bffe2c
11:27:24FromGitter<zacharycarter> Here's the relevant C code I'm binding to -
11:27:37FromGitter<zacharycarter> https://github.com/EsotericSoftware/spine-runtimes/blob/2e6d84aa2538c9c319cb17ed5ad9fb8977be9c3f/spine-c/spine-c/include/spine/AnimationState.h#L49
11:28:09*SusWombat joined #nim
11:29:52FromGitter<zacharycarter> quite the cryptic stacktrace...
11:34:40SusWombatnvm seems like it was a mistake somewhere else cant reproduce it anymore :(
11:34:41SusWombatsry
11:42:48*xet7 quit (Quit: Leaving)
11:48:48FromGitter<mratsim> I stumbled upon this. A transpiler that targeted C++, Python, JS, Nim https://github.com/rusthon/Rusthon/issues/45 (project has not been updated since Feb2016)
11:50:44FromGitter<zacharycarter> sounds like a lot of work :P
11:52:53FromGitter<zacharycarter> ahh cdecl pragma fixed my callback issue
11:52:54FromGitter<zacharycarter> yay
12:01:58dom96zacharycarter: great :) You should make sure those type names start with an upper case letter though.
12:17:00*SusWombat quit (Remote host closed the connection)
12:17:56FromGitter<zacharycarter> @dom96 : yup - I think it's due to c2nim I'll have to fix eventually
12:21:54FromGitter<ephja> @zacharycarter are you sure? did you specify a calling convention?
12:29:11FromGitter<mratsim> Is there a semantic/performance difference between ref array and sequences?
12:29:36FromGitter<mratsim> besides the value vs ref when assigning
12:34:33dom96array cannot be resized
12:35:21*Vladar joined #nim
12:35:32FromGitter<zacharycarter> @ephja I meant the lowercase type names
12:35:45FromGitter<ephja> oh
12:38:14FromGitter<mratsim> Ah yes the fixed size, that’s what I’m looking for. I found a big difference, items and mitems are not implemented for ref arrays
12:39:10*nsf quit (Quit: WeeChat 1.7.1)
12:52:53*fredrik92 joined #nim
12:54:37*Trustable joined #nim
12:54:57*couven92 quit (Ping timeout: 240 seconds)
12:58:55dom96In case anyone wants to buy my book at 50% off: https://www.manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81
12:59:01dom96Use code wm052817lt
13:00:25*yingjun joined #nim
13:01:15FromGitter<ephja> @mratsim the only downside is that it's more verbose
13:02:07FromGitter<ephja> since you need to dereference it
13:04:35*yingjun quit (Ping timeout: 240 seconds)
13:05:23FromGitter<zacharycarter> I love BGFX's stats view : http://imgur.com/a/20PJD
13:05:47FromGitter<zacharycarter> also only 4 draw calls for all that :P
13:06:31FromGitter<ephja> @mratsim but it can be done automatically if necessary. you just need to apply the `experimental` pragma before the point of use, at the top (module) level
13:07:20FromGitter<ephja> but of course, the usual disclaimer regarding experimental features apply. it might very well end up being a core feature though
13:07:30FromGitter<mratsim> It’s fine, I just wanted to initialize the ref array with 0 but I was catched off guard by the absence of mitems
13:12:36FromGitter<ephja> I hope it ends up being a core features, because that will encourage users not to define ref parameters when it isn't necessary
13:19:15FromGitter<mratsim> That’s OO for you, everyone wants to pass ref all around ;)
13:20:22FromGitter<mratsim> I was evaluating shallow copy too for my lib this week, and I found a wealth of request to make shallow-copying by default
13:44:49*krux02 joined #nim
13:47:28*def-pri-pub joined #nim
13:58:57*krux02 quit (Remote host closed the connection)
13:59:12*krux02 joined #nim
14:01:05*fredrik92 is now known as couven92
14:05:50*krux02 quit (Remote host closed the connection)
14:06:04*krux02 joined #nim
14:06:49*rokups quit (Quit: Connection closed for inactivity)
14:18:39*Ven joined #nim
14:19:03*Ven is now known as Guest70007
14:42:30*pilne joined #nim
14:44:30*dddddd joined #nim
14:56:49*Guest70007 quit (Ping timeout: 246 seconds)
14:58:49*Trustable quit (Remote host closed the connection)
14:59:43*Ven_ joined #nim
15:03:08*Hekatonkiros quit (Ping timeout: 260 seconds)
15:04:36*yingjun joined #nim
15:07:29*chemist69 quit (Ping timeout: 245 seconds)
15:08:44*yingjun quit (Ping timeout: 245 seconds)
15:12:25*chemist69 joined #nim
15:41:22*sz0 joined #nim
15:48:01*WhiskyRyan joined #nim
15:57:04*Ven_ quit (Ping timeout: 245 seconds)
16:00:07*Ven joined #nim
16:00:31*Ven is now known as Guest80608
16:25:19*Arrrr joined #nim
16:29:50FromGitter<ephja> wasn't there a patch that set the output encoding to utf-8?
16:34:27*arnetheduck quit (Ping timeout: 240 seconds)
16:48:35shmupcurious if anyone has any insight on sdl2 compiling but run time error of not finding libSDL2.so https://gist.github.com/shmup/581dcb2eb2785052d6b162255352ef84
16:49:23*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:50:26*WhiskyRyan joined #nim
16:50:52ftsfshmup, where's your libSDL2.so ?
16:54:13shmupoh, heh. assuming I need to make sure libsdl2 is installed :P
16:54:18ftsfyep
17:06:03*yingjun joined #nim
17:06:44shmupjust having issues with sdl_gfx atm but getting much closer
17:06:52shmupI can render a window
17:08:05shmupjust another package I need to install, of course.
17:10:24*yingjun quit (Ping timeout: 245 seconds)
17:11:55*Ven joined #nim
17:12:01*Guest80608 quit (Read error: Connection reset by peer)
17:12:18*Ven is now known as Guest24123
17:14:11shmupi'm not really sure I should be trying to get this to work on linux subsystem (on windows) and instead just use Windows.
17:14:55shmupbut when compiling on windows I get Error: cannot open 'stb_image/read'
17:15:07FromGitter<ephja> hmm. no compile-time converters? :p
17:16:47*Guest24123 quit (Ping timeout: 258 seconds)
17:18:20shmupftsf: which min/max are you trying to use when you use it with 3 arguments?
17:19:03*Ven_ joined #nim
17:21:11*WhiskyRyan quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:38:06FromGitter<ephja> this one? https://nim-lang.org/docs/system.html#min,openArray[T]
17:41:14*Jesin quit (Ping timeout: 255 seconds)
17:43:34*Ven_ quit (Ping timeout: 268 seconds)
17:45:58*Jesin joined #nim
17:46:32*Ven_ joined #nim
17:51:13*Ven_ quit (Ping timeout: 255 seconds)
17:51:48*Ven_ joined #nim
17:53:06*Neomex quit (Quit: Leaving)
17:56:15*Ven_ quit (Ping timeout: 245 seconds)
18:03:32*couven92 quit (Quit: Client Disconnecting)
18:06:56*nsf joined #nim
18:11:44FromGitter<bigDaddyS1oth> hey peeps. Thought I'd install Nim and give it a look and while installing nimble via the websites instructions I run into this error `lib/nim/pure/os.nim(802, 33) Error: cannot evaluate at compile time: environment`
18:13:56FromGitter<GULPF> are you on arch? I think it's a known issue
18:14:07FromGitter<GULPF> you can install via choosenim instead
18:14:16FromGitter<GULPF> https://github.com/dom96/choosenim
18:14:22FromGitter<bigDaddyS1oth> Yea I'm on Arch
18:15:14FromGitter<bigDaddyS1oth> Oh so choosenim is almost like RVM for Ruby or NVM for Node?
18:20:04FromGitter<GULPF> yes
18:20:12FromGitter<bigDaddyS1oth> Sweet
18:23:03FromGitter<bigDaddyS1oth> Thanks
18:33:51*rhencke joined #nim
19:01:32def-pri-pubftsf: are you still here?
19:08:28def-pri-pubftsf: Can I get a response to this https://github.com/define-private-public/stb_image-Nim/issues/1
19:11:06ArrrrYeah, that information should be provided whenever you try to acces an invalid index with a seq.
19:19:49*yglukhov quit (Remote host closed the connection)
19:28:11*Vladar quit (Quit: Leaving)
19:40:36*Arrrr quit (Read error: Connection reset by peer)
19:46:02*PMunch joined #nim
19:53:03*themagician joined #nim
20:00:39*rhencke quit (Quit: Leaving)
20:02:30*chemist69 quit (Ping timeout: 245 seconds)
20:07:07*chemist69 joined #nim
20:08:37*yingjun joined #nim
20:12:55*yingjun quit (Ping timeout: 245 seconds)
20:17:59dom96https://news.ycombinator.com/item?id=14434900
20:18:14dom96Does my answer make sense? or am I not understanding coldtea.
20:20:12FromGitter<mratsim> I’ve written 2 versions of a matrix multiplication algorithm. One with pointer arithmetics, one with a mutable offset that I increment (instead of moving a pointer). I would have expected the pointer one to be faster but it’s 2x slower on a Broadwell CPU when multiplying 2 5000x5000 matrices. Is Nim doing (very!) aggressive optimization on array access? ⏎ ⏎ I tried checking the C code but I didn’t find
20:20:13FromGitter... anything obvious
20:20:22*yglukhov joined #nim
20:22:26*Matthias247 joined #nim
20:23:49*Matthias247 quit (Read error: Connection reset by peer)
20:24:26*flyx quit (Quit: ZNC - http://znc.in)
20:25:07*Matthias247 joined #nim
20:25:08*yglukhov quit (Ping timeout: 260 seconds)
20:25:15*flyx joined #nim
20:26:10*flyx quit (Client Quit)
20:26:41*flyx joined #nim
20:27:30*flyx quit (Client Quit)
20:28:05*flyx joined #nim
20:29:32*flyx quit (Client Quit)
20:29:53*flyx joined #nim
20:33:12*Mat4 joined #nim
20:44:16*vlad1777d quit (Remote host closed the connection)
20:45:23shmupif you give me enough time, I answer my own stupid questions
20:52:25PMunchdom96, it's good :)
20:54:51PMunchReplied to you as well
20:55:10PMunchI've got Apache set up as a Reverse Proxy now by the way :) Works like a charm
21:10:36*couven92 joined #nim
21:18:52*Mat4 quit (Quit: Mat4)
21:26:24*FromGitter quit (Remote host closed the connection)
21:26:24*oprypin quit (Quit: Bye)
21:26:40*FromGitter joined #nim
21:26:46*oprypin joined #nim
21:46:39*SusWombat joined #nim
21:48:08*PMunch quit (Quit: leaving)
21:51:40*couven92 quit (Ping timeout: 245 seconds)
21:52:35FromGitter<krux02> When is araq coming back to Nim?
21:52:53*Matthias247 quit (Read error: Connection reset by peer)
22:10:15*[ui] joined #nim
22:10:39*yingjun joined #nim
22:11:57FromGitter<zacharycarter> Where has he gone?
22:12:21FromGitter<zacharycarter> @krux02 ?
22:15:05*yingjun quit (Ping timeout: 240 seconds)
22:17:04*nsf quit (Quit: WeeChat 1.7.1)
22:22:32*yglukhov joined #nim
22:23:32FromGitter<dom96> He's on holiday, should be back soon.
22:24:00krux02I see less activity when he's gone
22:25:00krux02normally I get some murky remarks on my pull requests or issues
22:25:07krux02that's not the case right now anymore
22:25:28FromGitter<zacharycarter> ah gotcha
22:26:57*yglukhov quit (Ping timeout: 240 seconds)
22:28:46*themagician quit ()
22:43:39*irrequietus joined #nim
22:44:45demi-dom96: i'm unsure how i am supposed to have a multi-file package and then perform imports
22:50:01*couven92 joined #nim
22:50:32FromGitter<Varriount> Hrm, Now I'm running into VM limitations.
22:50:51FromGitter<Varriount> I think the javascript file is too big, and the VM isn't being given enough memory
22:51:40FromGitter<zacharycarter> :/
22:54:05FromGitter<Varriount> Did someone post another JSON parser here recently? Made for benchmarking purposes?
22:54:14FromGitter<dom96> Demi-: import pkgname/[module, module2]
22:55:41demi-yeah i guess my confusion comes from if i put a bunch of files in a directory without an encapsulating one, then I get a bunch of warnings when installing the package; so should the format be `import pkgname/pkgname/module1`?
23:28:33*dddddd quit (Read error: Connection reset by peer)
23:57:55*irrequietus quit (Ping timeout: 245 seconds)
23:59:16*WhiskyRyan joined #nim
23:59:52*WhiskyRyan quit (Client Quit)