<< 04-01-2017 >>

00:14:05*Matthias247 quit (Read error: Connection reset by peer)
00:25:57*Jesin joined #nim
00:31:38*qwertfisch is now known as Bunkerfisch
00:31:54*yglukhov joined #nim
00:36:26*yglukhov quit (Ping timeout: 256 seconds)
00:55:25*Bunkerfisch is now known as qwertfisch
00:57:21*aedigix quit (Remote host closed the connection)
01:02:45*aedigix joined #nim
01:16:16*space-wizard joined #nim
01:17:10*space-wi_ quit (Ping timeout: 248 seconds)
01:50:50*chamar quit (Quit: WeeChat 1.5)
01:53:20*libman quit (Remote host closed the connection)
01:55:02*Jesin quit (Quit: Leaving)
02:05:40*brson quit (Quit: leaving)
02:22:20def-pri-pubI could use a little clarification on how dynamic distpatch works in Nim. http://forum.nim-lang.org/t/2698
02:34:14*yglukhov joined #nim
02:38:47*yglukhov quit (Ping timeout: 248 seconds)
02:38:55*pie_ joined #nim
02:42:32ftsfdef-pri-pub, i believe so, since you've defiend a as type Animal (the same is the case with c++)
02:42:49*chemist69 quit (Ping timeout: 240 seconds)
02:48:11*vasher_ quit (Quit: Connection closed for inactivity)
03:00:19*chemist69 joined #nim
03:19:25*pie_ quit (Changing host)
03:19:25*pie_ joined #nim
03:26:55*kulelu88 quit (Quit: Leaving)
04:06:44*subsetpark quit (Quit: Connection closed for inactivity)
04:35:48*yglukhov joined #nim
04:38:10*ARCADIVS joined #nim
04:40:33*yglukhov quit (Ping timeout: 272 seconds)
04:44:21*chemist69 quit (Ping timeout: 245 seconds)
04:49:05*chemist69 joined #nim
05:13:35def-pri-pubwin 2
05:13:43def-pri-pub(ignore that please)
05:33:41*space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:34:02*dyce[m] quit (Read error: Connection reset by peer)
05:34:04*zielmicha[m] quit (Write error: Connection reset by peer)
05:34:06*jivank[m] quit (Read error: Connection reset by peer)
05:34:06*erwana[m] quit (Read error: Connection reset by peer)
05:34:06*TheManiac quit (Read error: Connection reset by peer)
05:34:06*MrAxilus[m] quit (Write error: Connection reset by peer)
05:34:06*M-Quora quit (Write error: Connection reset by peer)
05:34:06*Guest73656[m] quit (Read error: Connection reset by peer)
05:34:06*hohlerde quit (Read error: Connection reset by peer)
05:41:13*space-wizard joined #nim
05:51:09*nsf joined #nim
05:51:31*dyce[m] joined #nim
05:58:09*devted quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:28:10*def-pri-pub quit (Quit: leaving)
06:32:35*space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:37:34*yglukhov joined #nim
06:39:14*pregressive quit (Remote host closed the connection)
06:42:09*yglukhov quit (Ping timeout: 272 seconds)
06:44:37*pregressive joined #nim
06:44:47*pregressive quit (Remote host closed the connection)
06:45:05*pregressive joined #nim
06:45:35*pregressive quit (Remote host closed the connection)
06:46:07*pregressive joined #nim
06:47:49*Varriount|Mobile joined #nim
06:48:08Varriount|MobileSomeone might want to mention Nim here: https://news.ycombinator.com/item?id=13312484
06:48:50Varriount|MobileI lack an active account. >_<
06:49:49*jivank[m] joined #nim
06:49:51*MrAxilus[m] joined #nim
06:49:51*hohlerde joined #nim
06:49:52*zielmicha[m] joined #nim
06:49:54*M-Quora joined #nim
06:49:56*erwana[m] joined #nim
06:50:00*TheManiac joined #nim
06:50:01*Guest73656[m] joined #nim
06:50:42*pregressive quit (Ping timeout: 258 seconds)
07:14:29*ftsf quit (Quit: :q!)
07:26:27*rokups joined #nim
07:29:39*bjz joined #nim
07:41:51*bjz quit (Ping timeout: 245 seconds)
07:45:11*chemist69 quit (Ping timeout: 245 seconds)
07:45:34*bjz joined #nim
07:45:42*bjz quit (Client Quit)
07:45:54*chemist69 joined #nim
07:51:19*Varriount|Mobile quit (Read error: Connection reset by peer)
07:53:11*Vladar joined #nim
08:01:15*bjz joined #nim
08:04:02*yglukhov joined #nim
08:08:38*yglukhov quit (Ping timeout: 256 seconds)
08:09:41*gokr joined #nim
08:11:07*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
08:23:48*byte512 joined #nim
08:25:12*bjz joined #nim
08:38:26gokrCommented this, suggesting Nim: http://blog.ntpsec.org/2017/01/03/getting-past-c.html
08:38:52gokrIt's on HN too, tons of comments, no mention of Nim AFAICT.
08:47:38*Andris_zbx joined #nim
08:56:48*delian66 quit (Ping timeout: 256 seconds)
09:07:37*Matthias247 joined #nim
09:08:53*subsetpark joined #nim
09:13:02*yglukhov joined #nim
09:13:19*yglukhov quit (Remote host closed the connection)
09:15:31*yglukhov joined #nim
09:21:54*jinshil quit (Quit: Good-bye!)
09:25:19euantordom96: Delving back a bit in regards to your comment about WebKit being the best approach for desktop apps (eg: Electron), have you seen this: https://blog.xinhong.me/post/sublime-text-vs-vscode-vs-atom-performance-dec-2016/
09:26:01euantorBoth Atom and Visual Studio Code use Electron and both are dog slow and hog memory in comparison to Sublime Text or TextEdit
09:30:59gokreuantor: They are definitely hogs, no doubt about it. But... VSCode is actually darn nice. I really like it, and it has a nice Nim extension too :)
09:31:23euantorYep, it's what I use to write Nim code as it has by far the best plugin
09:31:40euantorThe Nim plugin + indent rainbows + editorconfig make VS Code a really nice editor for Nim
09:35:37*bjz_ joined #nim
09:37:25*bjz quit (Ping timeout: 248 seconds)
09:39:57*synshroud quit (Quit: ZNC 1.6.4 - http://znc.in)
09:54:06*synshroud joined #nim
09:54:34*dddddd joined #nim
09:59:56hohlerdeis the vscode nim plugin better than the one for atom?
10:07:40*jinshil joined #nim
10:09:59euantorI've not tried the one for atom
10:21:00dom96does the vs code plugin support nimsuggest?
10:23:26euantoryes
10:32:48gokrdom96: VSCode is actually darn slick. Like for example "Peek at definition" etc, which "inlines" a view of a definition etc. And the git support is also really neat.
10:33:17gokrIt still baffles me that it's MS :)
10:36:10*bjz joined #nim
10:37:16*bjz_ quit (Ping timeout: 245 seconds)
11:06:17chemist69gokr: Even as a convinced Linux user, I use VS Code as main editor, that's how good it is ;.)
11:06:33gokrI agree, same here.
11:07:13*chemist69 goes to try this rainbow indentation thingy...
11:14:00*Ven joined #nim
11:17:49*chemist69 quit (Ping timeout: 240 seconds)
11:18:38*Ven quit (Ping timeout: 258 seconds)
11:21:02*chemist69 joined #nim
11:29:05*Ven joined #nim
11:31:31euantorAny ideas how I might handle wrapping a C sruct that has members with "-" in their name?
11:31:54Araqthere is no such thing.
11:32:00euantorI'm attempting to wrap libnotify: https://developer.gnome.org/libnotify/0.7/NotifyNotification.html#NotifyNotification--app-name
11:32:12AraqC identifiers cannot have '-' in their names.
11:32:33euantorHm, so what are they referring to in the above link?
11:32:43Araq"properties"
11:32:57euantorGreat, so that's something else entirely
11:33:02Araqyes.
11:33:54euantorCheers
11:33:57Araqmost likely something like setprop("app-name", "value")
11:34:03Araqgetprop("app-name")
11:34:38euantorYeah, I'm just trying to work out how to mirror that
11:34:57Araqthe string literals stay the same
11:35:04yglukhovwow, forum notifications have finally got a link to the thread!
11:35:23Araqyglukhov: and new users are moderated
11:35:37Araqmeaning you won't ever get any spam. hopefully.
11:36:23Araqand the new data model supports admins and moderators
11:36:27yglukhovcool! i can be a moderator in case you need any
11:47:17*vasher_ joined #nim
11:50:59cheatfateAraq, but looks like latest modifications made 1.50s to get first page http://forum.nim-lang.org
11:51:32*jinshil quit (Quit: client terminated!)
11:52:56Araqcheatfate: hmmm so dom96 was right and I should create some indexes for the new queries :P
11:53:03*krux02 joined #nim
11:54:38dom96:P
11:56:45krux02Araq: what does the ``dynlib`` pragma for export do? As far as I know there is no way to not make a function accessable from outside when the name of the function is known, and the name is already fixed with exportc.
11:58:21Araqon windows it needs __declspec(dllexport) iirc
12:16:32*vlad1777d joined #nim
12:22:24*jinshil joined #nim
12:36:42cheatfateAraq, are you able to edit my forum nickname as you promised last year? :)
12:51:10*ARCADIVS quit (Quit: ARCADIVS)
13:19:48*madmalik joined #nim
13:36:17*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
13:38:25*bjz joined #nim
13:51:10*jinshil quit (Quit: client terminated!)
14:00:58Araqcheatfate: good question
14:01:25*gokr quit (Ping timeout: 248 seconds)
14:15:03*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
14:27:17*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
14:38:54*gokr joined #nim
15:00:42subsetparkHey there, I'm having some confusion with the Python FFI and Nim.
15:01:39subsetparkI'm able to set up a FFI with ctypes that accepts an openArray of objects perfectly, but it returns an array of floats and I'm not sure what the combination of types on the nim and ctypes side will get the correct values. Treating it like a C array of doubles gets me nonsenical results
15:03:32subsetparkas a starting point, I currently have `c_double * 3` on the Python side and `array[0..2, cdouble]` on the Nim side.
15:05:03Araqsubsetpark: can't work, C's array are defective
15:05:15Araqyou can wrap it in an object/struct though
15:08:39*gangstacat quit (Quit: Ĝis)
15:09:06subsetparkoh, good to know!
15:09:40subsetparkAraq: is this sort of information documented somewhere?
15:09:53*devted joined #nim
15:10:09krux02subsetpark yes, when you want to return an array you need to return it as a struct: struct FooResut{double arr[3];};
15:10:36krux02subsetpark: it is knowledge you get when you learn C
15:11:18subsetparkkrux02: I'm talking about calling nim from python... I think you're talking in the other direction?
15:11:25krux02but most tutorials don't tell you "C array types are defective" they tell you arrays and pointers are the same, which is obviously wrong
15:12:12krux02oh yea, I have little knowledge about python, but I know that the bridge is the C code generator
15:12:58Araqsubsetpark: ctypes likely inherited C's semantics.
15:13:07krux02sorry I should not give you misleading information, I never used Python FFI
15:13:12Araqnote that Nim does support returning arrays.
15:13:49AraqNim's code generator knows about C's defective arrays and works around their limitations
15:14:16subsetparkAraq: I think that's a fair guess. So you're saying (and I haven't written C in >10 years) that just generally speaking, when writing C, you need to wrap arrays in structs in order to return them?
15:14:34Araqyes.
15:15:25subsetparkGot it, that's fair.
15:16:01subsetparkhttps://www.irccloud.com/pastebin/QVFjmxH5/
15:16:05subsetparkSomething like that?
15:17:02krux02you are not writing C there, you are writing Nim there
15:17:20subsetparkThat's correct :)
15:17:27subsetparkThis is nim that is called by an FFI
15:17:51Araqthe Python FFI "declaration" needs to be s{d[3]}
15:18:15Araqor whatever the primitive syntax for this looks like
15:18:33Araqthe Nim side can do without the object wrapper
15:20:27subsetparkOh, interesting. So return the array on the nim side, assume a struct on the FFI side
15:20:50Araqthat should work for 3 doubles, yes
15:21:00Araqbut in general you need to watch out for alignments too
15:21:42Araqoh wait, Nim transforms the array return type into a hidden pointer :-)
15:21:42subsetparkYes, that does work perfectly. What do you mean by 'watch out for alignments'?
15:22:25Araqoh well. better use pointers explicitly
15:23:00FromGitter<andreaferretti> also useful: https://github.com/jboy/nim-pymod
15:23:16FromGitter<andreaferretti> it is a little limited in what type it handles
15:23:26FromGitter<andreaferretti> but it generates all the nim <-> python glue for you
15:23:42subsetparkyes, andreaferretti - I started with that, but I found it a bit limiting
15:24:12krux02is the nim-mode (for emacs) currently maintained by anyone?
15:24:36krux02I made an issue end of November, and no reply to that until now.
15:26:43Araqkrux02: reactormonk is responsible for it, I think
15:27:14reactormonkI haven't written any elisp in the last few months...
15:27:44krux02I know writing Nim is more fun
15:28:12*vasher_ quit (Quit: Connection closed for inactivity)
15:28:29krux02maybe at some point I am able to contribute, too.
15:28:56krux02I am now a bit more familiar with emacs, and things don't feel uncomfortable anymore
15:31:55krux02Araq: is there a symbol for thismodule by now in Nim?
15:33:02krux02reactormonk: This issue here https://github.com/nim-lang/nim-mode/issues/147 is creating some false error reports in my code base, and I think it could be an easy fix
15:33:32Araqkrux02: everybody uses the instantionInfo hack
15:39:25*gangstacat joined #nim
15:40:29krux02Araq: but that is only giving me the filename of the module, the problem I had was that for some reason in nim-mode flycheck does not the correct filename, and therefore creates errors when I use the name of the current file as a symbol
15:41:29krux02if a symbol for the current module would exist, these errors would disapper. That would not solve the bug in nim-mode, but it would make the bug non relevant to me.
15:43:03*gangstacat quit (Client Quit)
15:45:13Araqso instead of foo.x you want to be able to write thisModule.x ?
15:45:20Araqso it's a symbol, not a string?
15:47:20*gangstacat joined #nim
15:55:02*gokr quit (Ping timeout: 248 seconds)
15:57:46krux02Araq: yes
16:06:44reactormonkkrux02, didn't do the flycheck.
16:15:24*yglukhov_ joined #nim
16:19:02*yglukhov quit (Ping timeout: 248 seconds)
16:19:26*yglukhov_ quit (Ping timeout: 246 seconds)
16:19:39*Jesin joined #nim
16:39:12*space-wizard joined #nim
16:42:00*gokr joined #nim
16:42:44*brson joined #nim
16:57:52*odc quit ()
17:04:46*Ven quit (Ping timeout: 245 seconds)
17:08:23*Ven joined #nim
17:19:26*Ven quit (Ping timeout: 256 seconds)
17:25:24*Andris_zbx quit (Remote host closed the connection)
17:28:29*Ven joined #nim
17:34:40*Trustable joined #nim
17:35:03*Ven quit (Ping timeout: 258 seconds)
17:38:30*gokr quit (Ping timeout: 248 seconds)
17:47:56*Ven joined #nim
18:05:10*Ven quit (Ping timeout: 248 seconds)
18:07:45*Ven joined #nim
18:15:57dom96https://news.ycombinator.com/item?id=13319904
18:16:29dom96looks like a true compiled Python is here
18:17:31dom96although no C extensions is a huge limitation.
18:20:29*space-wi_ joined #nim
18:20:36*Ven quit (Ping timeout: 245 seconds)
18:21:59*space-wizard quit (Ping timeout: 272 seconds)
18:23:21*yglukhov joined #nim
18:27:47*Ven joined #nim
18:36:33*Ven quit (Ping timeout: 272 seconds)
18:50:09*chemist69 quit (Ping timeout: 240 seconds)
19:08:08*Ven joined #nim
19:10:39*chemist69 joined #nim
19:13:57*yglukhov quit (Remote host closed the connection)
19:17:07*pregressive joined #nim
19:20:15*Ven quit (Ping timeout: 272 seconds)
19:23:56*Ven joined #nim
19:34:51*Ven quit (Ping timeout: 256 seconds)
19:36:17*NimBot joined #nim
19:36:19*Araq joined #nim
19:36:20*Araq is now known as rumpf
19:36:20*onionhammer joined #nim
19:36:20*reactormonk joined #nim
19:36:41*zxtx joined #nim
19:36:58*federico3 joined #nim
19:37:41*fold4 joined #nim
19:44:13*Ven joined #nim
19:47:34*rumpf is now known as Araq
19:50:38*Ven quit (Ping timeout: 272 seconds)
20:03:37*yglukhov joined #nim
20:03:43*Ven joined #nim
20:19:15*bjz joined #nim
20:21:01*Ven quit (Ping timeout: 258 seconds)
20:23:34*Ven joined #nim
20:32:45*yglukhov quit (Remote host closed the connection)
20:34:29*chemist69 quit (Ping timeout: 240 seconds)
20:41:58*federico3 quit (Changing host)
20:41:58*federico3 joined #nim
20:51:02*Ven quit (Ping timeout: 246 seconds)
20:51:34*pregressive quit (Ping timeout: 248 seconds)
20:53:15*chemist69 joined #nim
20:53:40*Ven joined #nim
21:02:37*yglukhov joined #nim
21:18:22*pregressive joined #nim
21:20:47*Ven quit (Ping timeout: 246 seconds)
21:23:55*Ven joined #nim
21:30:20*pafmaf joined #nim
21:30:29*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:35:45*Snircle joined #nim
21:36:01*pafmaf is away (see ya)
21:36:04*Ven quit (Read error: Connection reset by peer)
21:36:08*Ven_ joined #nim
21:37:34*Vladar quit (Quit: Leaving)
21:41:05*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
21:41:43*Snircle joined #nim
21:44:27*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:48:19*pafmaf left #nim ("Leaving")
21:50:36*def-pri-pub joined #nim
21:52:02*gokr joined #nim
21:53:58*bjz joined #nim
21:57:40*pafmaf joined #nim
21:58:06Araqpafmaf: welcome back :P
21:58:25pafmafhi, sorry, IRC issues :(
21:59:06*space-wizard joined #nim
21:59:21*space-wi_ quit (Ping timeout: 256 seconds)
22:00:10*Trustable quit (Remote host closed the connection)
22:01:48gokrTrying to get ESR to look at Nim :) At least he responded to my comment about it.
22:02:02AraqESR?
22:02:07gokrEric Raymond
22:02:21Araqoh that gun lover :P
22:02:54def-pri-pubwait, is that the bazar guy?
22:03:08gokryeah
22:03:10gokrhttps://blog.ntpsec.org/2017/01/03/getting-past-c.html
22:03:19dom96gokr: awesome
22:03:38gokrHe had narrowed it down to Rust or Go - and I tried to get him to consider Nim at least :)
22:03:54gokrBut he seems to have dismissed Nim due to small community size so far.
22:06:40*bjz quit (Read error: Connection reset by peer)
22:06:47gokrHmmm, wait ... weird. If you use http instead of https, you end up with a different set of comments: http://blog.ntpsec.org/2017/01/03/getting-past-c.html
22:09:28gokrSidenote: Was fiddling with Spry today, messing with scoping etc - and realized my lexical scopes were fubar ;) Oops.
22:14:41gokrHad to throw in a link to this writeup which I found was a gem: https://news.ycombinator.com/item?id=9050114
22:27:52*vasher_ joined #nim
22:42:21*pregressive quit (Remote host closed the connection)
22:42:57*pregressive joined #nim
22:47:31*pregressive quit (Ping timeout: 256 seconds)
23:01:35*ftsf joined #nim
23:04:27*madmalik quit (Quit: Connection closed for inactivity)
23:16:24*yglukhov quit (Remote host closed the connection)
23:17:12*yglukhov joined #nim
23:21:31*yglukhov quit (Ping timeout: 256 seconds)
23:29:33def-pri-pubquick question: When I do an `import` or an `include` does the nim compiler give preferance to what's in my current directory over what in the .nimble/pkgs folder?
23:30:06dom96current directory has preference
23:30:58def-pri-pubOkay, thanks.
23:46:59*jinshil joined #nim
23:48:22*Matthias247 quit (Read error: Connection reset by peer)
23:52:00*rokups quit (Quit: Connection closed for inactivity)
23:56:44*dddddd quit (Remote host closed the connection)