<< 18-02-2018 >>

00:00:41*endragor joined #nim
00:01:23*yglukhov joined #nim
00:01:51*zolk3ri joined #nim
00:05:05*endragor quit (Ping timeout: 240 seconds)
00:06:04*yglukhov quit (Ping timeout: 256 seconds)
00:09:32*Snircle joined #nim
01:09:05*vlad1777d quit (Ping timeout: 256 seconds)
01:13:16*yglukhov joined #nim
01:17:30*yglukhov quit (Ping timeout: 252 seconds)
01:31:43*couven92 quit (Ping timeout: 248 seconds)
01:34:28*gangstacat quit (Ping timeout: 256 seconds)
01:49:56*radagast_04 quit (Ping timeout: 268 seconds)
01:54:51*zolk3ri quit (Quit: Lost terminal)
02:00:47*endragor joined #nim
02:02:57*enthus1a1t quit (Ping timeout: 240 seconds)
02:04:27*rauss quit (Ping timeout: 240 seconds)
02:05:19*endragor quit (Ping timeout: 248 seconds)
02:16:02*enthus1ast joined #nim
02:22:54*yglukhov joined #nim
02:27:17*yglukhov quit (Ping timeout: 256 seconds)
02:29:10*chemist69 quit (Ping timeout: 240 seconds)
02:40:57*PMunch quit (Quit: leaving)
02:41:24*PMunch joined #nim
02:43:13*chemist69 joined #nim
02:43:25*PMunch quit (Client Quit)
02:56:51*dddddd quit (Remote host closed the connection)
03:12:28*yglukhov joined #nim
03:16:14*endragor joined #nim
03:17:09*yglukhov quit (Ping timeout: 256 seconds)
03:31:55*SenasOzys quit (Remote host closed the connection)
03:35:52*endragor quit (Remote host closed the connection)
03:36:19*endragor joined #nim
03:38:35*arthurz joined #nim
03:45:12*radagast_04 joined #nim
03:46:04radagast_04What does the return value of posix.SC_PAGE_SIZE imply? I know my page size is 4096 bytes
03:46:22*rinzai quit (Ping timeout: 265 seconds)
03:46:39radagast_04SC_PAGE_SIZE returns 30
03:47:05*rinzai joined #nim
03:51:10*rinzai quit (Ping timeout: 240 seconds)
04:12:41*yglukhov joined #nim
04:16:40*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
04:17:34*yglukhov quit (Ping timeout: 260 seconds)
04:36:28*vivus quit (Quit: Leaving)
04:40:48*rinzai joined #nim
04:44:33*j_rod_s joined #nim
04:45:02FromGitter<Varriount> Araq: I was looking over the Rod file commits earlier today - I think it's quite clever, using sqlite as a storage library.
04:45:21*rinzai quit (Ping timeout: 248 seconds)
04:58:34*arthurz quit ()
05:02:40*rauss joined #nim
05:22:23*yglukhov joined #nim
05:26:59*yglukhov quit (Ping timeout: 260 seconds)
05:34:30*rinzai joined #nim
05:38:56*rinzai quit (Ping timeout: 252 seconds)
05:59:25*NoDrinks joined #nim
05:59:32*NoDrinks quit (Remote host closed the connection)
06:11:38*j_rod_s_ joined #nim
06:13:23*j_rod_s quit (Ping timeout: 256 seconds)
06:13:23*j_rod_s_ is now known as j_rod_s
06:28:14*rinzai joined #nim
06:31:40*radagast_04 quit (Ping timeout: 240 seconds)
06:32:21*radagast_04 joined #nim
06:32:39*rinzai quit (Ping timeout: 256 seconds)
06:42:38*rinzai joined #nim
06:47:08*rinzai quit (Ping timeout: 265 seconds)
06:50:37AraqVarriount: thanks. I'm eager to finish and test it.
06:52:38*nodrinks joined #nim
06:57:45*nodrinks left #nim (#nim)
06:58:55*yglukhov joined #nim
07:00:10*miran joined #nim
07:02:57*yglukhov quit (Ping timeout: 240 seconds)
07:14:42*solitudesf joined #nim
07:20:03*gokr joined #nim
07:23:24*rinzai joined #nim
07:23:47*gokr left #nim (#nim)
07:28:11*rinzai quit (Ping timeout: 256 seconds)
07:28:44FromGitter<mratsim> By the way I've wrapped Rocksdb if you don't need a full database but just a very efficient key-value store
07:31:50Araqis the API sane?
07:33:02*TakeYourFreedom joined #nim
07:40:40*yglukhov joined #nim
07:44:57*yglukhov quit (Ping timeout: 240 seconds)
07:49:56*BitPuffin joined #nim
07:57:50*r3d9u11 joined #nim
08:06:51*rokups joined #nim
08:14:01*TakeYourFreedom quit (Remote host closed the connection)
08:17:09*rinzai joined #nim
08:21:27*rinzai quit (Ping timeout: 256 seconds)
08:23:54*nsf joined #nim
08:54:36*yglukhov joined #nim
08:58:52*j_rod_s_ joined #nim
09:00:29*yglukhov quit (Ping timeout: 260 seconds)
09:02:27*j_rod_s quit (Ping timeout: 240 seconds)
09:02:28*j_rod_s_ is now known as j_rod_s
09:10:50*gangstacat joined #nim
09:10:52*rinzai joined #nim
09:15:05*rinzai quit (Ping timeout: 240 seconds)
09:32:31*couven92 joined #nim
09:47:27*vlad1777d joined #nim
09:52:39*gokr joined #nim
09:59:59*rinzai joined #nim
10:00:20*rinzai quit (Client Quit)
10:01:52*rauss quit (Read error: Connection reset by peer)
10:03:52*rauss joined #nim
10:09:01*SenasOzys joined #nim
10:12:58*yglukhov joined #nim
10:16:13*gokr quit (Ping timeout: 268 seconds)
10:17:37*yglukhov quit (Ping timeout: 256 seconds)
10:39:11*Yardanico_ joined #nim
11:11:05*yglukhov joined #nim
11:15:43*yglukhov quit (Ping timeout: 248 seconds)
11:23:39*gangstacat quit (Quit: Ĝis!)
11:31:58*sz0 joined #nim
11:47:24*dddddd joined #nim
11:48:43*miran quit (Ping timeout: 268 seconds)
11:57:59*yglukhov joined #nim
12:01:16*federico3 quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
12:02:02*federico3 joined #nim
12:02:39*yglukhov quit (Ping timeout: 248 seconds)
12:05:00*themagician joined #nim
12:14:57FromGitter<zetashift> How's working with status.im and Nim @mratsim
12:20:06dom96the compiler is going to depend on sqlite now? :/
12:34:21*themagician quit (Ping timeout: 268 seconds)
12:34:33*radagast_04 quit (Ping timeout: 264 seconds)
12:41:54federico3uh?
12:46:07*PMunch joined #nim
12:47:36*Yardanico_ quit (Remote host closed the connection)
12:47:44*Vladar joined #nim
12:48:31*Yardanico_ joined #nim
12:49:57*GitDisc joined #nim
12:50:01*GitDisc quit (Remote host closed the connection)
12:54:16*GitDisc joined #nim
12:54:34dom96Yardanico_: I had to restart matterbridge for some reason
12:54:47dom96Also twitch relay crashed :)
12:55:15GitDisc<dom> Fixed ^ 😃
12:56:14PMunchMaybe we should set up a Telegram bridge as well?
12:56:27PMunchLot's of people asking questions over there
12:57:52dom96lol
12:58:01dom96I'm not sure
12:58:29PMunchOh and by the way, maybe we/me/someone should write an IDE guide? It's a recurring question, and removing even the smallest bar of entry is always good for adoption :)
12:58:31PMunchWhy not?
13:03:10dom96I dunno, might be too much relays
13:03:13dom96but *shrug*
13:04:37PMunchRelay all the things!
13:06:16*yglukhov joined #nim
13:06:21dom96:)
13:06:56dom96Maybe we can get Yardanico_ to set it up :)
13:06:57*SenasOzys quit (Ping timeout: 240 seconds)
13:08:59federico3we end up reinventing Matrix here :D
13:10:25*yglukhov quit (Ping timeout: 248 seconds)
13:11:12PMunchYeh I've been meaning to check out Matrix
13:14:31FromGitter<data-man> Knock, knock, Neo. :)
13:18:08*SenasOzys joined #nim
13:23:28federico3https://www.instagram.com/p/BfTX87aFSd9/
13:23:44*radagast_04 joined #nim
13:32:45FromGitter<data-man> Are Araq - Morpheus?
13:33:08radagast_04Hmm, a Nim-Qt binding generator like https://www.vandenoever.info/blog/2017/09/04/rust_qt_binding_generator.html would be quite nice :)
13:44:51FromGitter<zetashift> @radagast_04 : qml bindings should be enough: http://filcuc.github.io/nimqml/
13:48:55radagast_04I wonder if it's possible to use the QtGraphicalEffects module as demonstrated in https://doc.qt.io/qt-5/qml-qtgraphicaleffects-fastblur.html with the DOtherSide library, zetashift
13:50:03*Yardanico_ quit (Read error: Connection reset by peer)
14:00:25YardanicoWho asked about Telegram bridge? :)
14:01:20YardanicoAh, actually it's quite easy because matterbridge (which relays messages to discord) supports telegram
14:20:54*yglukhov joined #nim
14:25:20*yglukhov quit (Ping timeout: 265 seconds)
14:36:00FromGitter<mratsim> @zetashift working great, I'm doing some crypto stuff at the moment
14:36:37*Vladar quit (Remote host closed the connection)
14:48:26*ftsf quit (Quit: Leaving)
14:52:59*xkapastel quit (Quit: Connection closed for inactivity)
15:04:05*radagast_04 quit (Ping timeout: 240 seconds)
15:08:26*r3d9u11 quit (Remote host closed the connection)
15:09:14*natrys joined #nim
15:14:47*yglukhov joined #nim
15:19:22*yglukhov quit (Ping timeout: 252 seconds)
15:27:17federico3hm, distcc doesn't seem to have a successor
15:37:32FromGitter<data-man> @federico3: fastbuild? http://fastbuild.org https://github.com/fastbuild/fastbuild
15:39:11federico3data-man: are you using it with Nim?
15:39:32FromGitter<data-man> No
15:39:53*gokr joined #nim
15:40:00*gokr left #nim (#nim)
15:42:40federico3oh interesting https://github.com/icecc/icecream
15:47:28PMunchHuh, interesting
15:48:18PMunchWould be cool to have a RPi cluster sharing build costs
15:50:38*miran joined #nim
15:54:05*rauss quit (Ping timeout: 240 seconds)
15:58:04federico3I can volunteer one
15:59:31def-PMunch: what for? cross-compiling is usually better
15:59:50PMunchdef-, just for fun :)
16:05:42*yglukhov joined #nim
16:09:58*yglukhov quit (Ping timeout: 252 seconds)
16:13:12FromGitter<data-man> For C/C ++ I prefer tup, and I think that tup can be used with Nim.
16:22:25*rauss joined #nim
16:23:40miranthis might be of interest of nim community too: https://www.reddit.com/r/programming/comments/7y6gw1/the_d_community_hub_an_umbrella_group_for_d/due1lgb/
16:28:18Araqdata-man: huh? why would I be Morpheus?
16:30:11FromGitter<data-man> @Araq: You gave us a gold pill and saved us from other languages. :)
16:37:00FromGitter<mratsim> THe article on the forum from the game dev was interesting btw :P
16:37:55FromGitter<mratsim> btw, could we rename the {.pure.} pragma for enums to {.qualified.}, pure doesn’t mean anything in an enum context (like in pure function)
16:43:54Araqmratsim: .pure and non-pure enums have been unified anyway
16:44:03Araqwell almost.
16:44:10AraqI should finish this feature.
16:44:25FromGitter<mratsim> ™ ;)
16:44:36Araqenums fields are now in their own scope that is requested when everything else fails
16:45:04Araqand if the enum field is not ambiguous with another enum field
16:45:24Araqfull qualification can be used to disambiguate
16:45:40Araqthis way it works like the rest of the language, more or less.
16:48:06*Trustable joined #nim
16:49:43*yglukhov joined #nim
16:53:58*j_rod_s_ joined #nim
16:55:38*j_rod_s quit (Ping timeout: 255 seconds)
16:55:38*j_rod_s_ is now known as j_rod_s
17:00:21PMunchHmm, it would be neat if procs with a single var parameter would implicitly return that (with {.discardable.} of course)
17:00:30PMunchWould mean you could chain any such proc
17:23:08*solitudesf quit (Quit: solitudesf)
17:24:08miranchaining would be nice!
17:24:19*j_rod_s quit (Ping timeout: 256 seconds)
17:32:16FromGitter<Bennyelg> karax hello world example failed to work ⏎ ⏎ ```Uncaught TypeError: Cannot read property 'parentNode' of null``` ⏎ ⏎ when entering the html page [https://gitter.im/nim-lang/Nim?at=5a89b8a0e4ff28713a93dd52]
17:43:52*sz0 quit (Quit: Connection closed for inactivity)
17:50:02*solitudesf joined #nim
17:53:48*r3d9u11 joined #nim
17:54:30PMunchMan, this protobuf thing is taking way longer to implement than I thought :P
17:55:37FromGitter<mratsim> @PMunch I think how Lua does it is nice https://github.com/edubart/arraymancer-demos/blob/master/logistic_regression.lua#L83
17:56:17PMunchUhm, thats either the wrong long or not meant for me :P
17:57:30*xkapastel joined #nim
17:57:54*j_rod_s joined #nim
17:59:39FromGitter<mratsim> returning the var parameter implictly
18:02:42FromGitter<mratsim> Can the wrong stdcall/cdecl trigger an attempt to read from nil in a wrapped library? I’m currently in ASM in LLDB trying to trace what went wrong in an OpenCL library I’m wrapping. I checked my params, I don’t see any issue with them :/
18:09:08*await is now known as SunDwarf
18:15:59*arecacea1 quit (Remote host closed the connection)
18:16:22*arecacea1 joined #nim
18:20:01*endragor quit (Remote host closed the connection)
18:27:05FromGitter<mratsim> I think I found it. Somehow one of the OpenCL type is `type Pcommand_queue* = ptr T_cl_command_queue` but the library I wrapped wants a `ptr ptr T_cl_command_queue` oh boy
18:27:40*chemist69 quit (Ping timeout: 256 seconds)
18:38:52PMunchmratsim, oh right :P
18:39:28PMunchHuh, so : is take the same argument and reuse it or something like that?
18:39:35PMunchThat could be cool for Nim actually
18:39:53PMunchJust a "grab the first argument and use it for all of these procedures" operator
18:41:42*chemist69 joined #nim
18:42:46FromGitter<mratsim> It seems like a proc is like this `proc foo(param1: int, param2: int, result: var int)` if result is supplied it is modified in place, otherwise it is returned for function chaining
18:43:24FromGitter<mratsim> and `:` does the function chaining (like the dot actually)
18:43:32PMunchHuh
18:43:50miranin nim it would be usefult to have 'var result' as a first param
18:44:04FromGitter<mratsim> the interesting stuff is the possibility to modify in place or return a value
18:45:00FromGitter<mratsim> currently in arraymancer I have some speed issue due to allocation so I provide low-level primitive that do not allocate and high level that do.
18:45:24FromGitter<mratsim> the one that do not allocate all have a “result: var Foo”
18:46:57*endragor joined #nim
18:51:07*endragor quit (Read error: Connection reset by peer)
19:04:55*r3d9u11 quit (Remote host closed the connection)
19:35:10FromGitter<mratsim> @miran what blocks: https://github.com/nim-lang/Nim/pull/4666?
19:54:29*SenasOzys quit (Ping timeout: 256 seconds)
19:54:45FromGitter<mratsim> ah oops sorry it’s not you
20:01:38*regtools quit (Quit: leaving)
20:06:33*SenasOzys joined #nim
20:07:24*regtools joined #nim
20:11:48dom96Araq: https://github.com/nim-lang/Nim/issues/2172#issuecomment-366524865
20:16:37*gangstacat joined #nim
20:18:54*j_rod_s quit (Ping timeout: 260 seconds)
20:20:08*Trustable quit (Remote host closed the connection)
20:20:16*yglukhov quit (Remote host closed the connection)
20:21:31*Trustable joined #nim
20:31:17*thomasross quit (Quit: Leaving)
20:42:17*rokups quit (Quit: Connection closed for inactivity)
20:55:48*BitPuffin quit (Remote host closed the connection)
21:03:36*nsf quit (Quit: WeeChat 2.0.1)
21:10:24*MJCaley joined #nim
21:40:37FromGitter<Bennyelg> I tried to run another karax program ⏎ I did the follow: ⏎ create nim file with this context: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5a89f2d5888332ee3a9e57dc]
21:42:03FromGitter<Bennyelg> I render it using nim js -o:prog.js x.nim
21:46:35*Trustable quit (Remote host closed the connection)
21:52:51*miran quit (Quit: Konversation terminated!)
21:56:37PMunchHmm, is there a search tree in Nim for any unit?
21:57:12PMunchLike a crit-bit tree but for any kind
22:03:50*gokr joined #nim
22:09:59GitDisc<SolarLune> Yo
22:10:15PMunchHi there
22:10:29GitDisc<SolarLune> I have a question - I'm trying to compile a Nim program on Linux, but I'm running into a permissions error.
22:10:39PMunchHmm, that's strange
22:10:44GitDisc<SolarLune> I can compile using "sudo nim", but I'd rather not.
22:10:53PMunchYeah that sounds like a bad idea
22:10:58GitDisc<SolarLune> The error specifically is due to permission denial in /usr/local/include.
22:11:06GitDisc<SolarLune> Is that specifically to do with the OS I'm using?
22:11:17GitDisc<SolarLune> If so, I can just ask them.
22:11:27PMunchHmm, could you give me the full error. And OS/Distro version
22:11:37FromGitter<zacharycarter> probably has to do with the permissions of the user / group that owns that folder
22:11:38PMunchNot quite sure, might be distro-specific
22:11:41GitDisc<SolarLune> Sure, the full error is here on my Forum post: https://forum.nim-lang.org/t/3559
22:11:50FromGitter<zacharycarter> vs the user you're executing the nim executable with
22:11:59GitDisc<SolarLune> The OS is Solus OS, version 3.26.2 (fully updated).
22:12:03PMunchGetting a 404 on that link
22:12:30GitDisc<SolarLune> Weird, maybe someone has to approve it first. I'll pastebin the error, then.
22:13:14dom96Approved
22:13:23dom96No need for a pastebin
22:13:32GitDisc<SolarLune> Ah, cool! Thanks!\
22:13:36GitDisc<SolarLune> Ah, cool! Thanks!
22:14:44dom96Well, what are the permissions on /usr/local/include? :)
22:14:48PMunchHmm, my /usr/local/include is also owned by root
22:15:03PMunchbut it gives everyone read permissions
22:15:19PMunchCould you do "ls -lah /usr/local/include"
22:15:20GitDisc<SolarLune> I can't even view the folders in my file manager. Maybe the OS has it too locked down or something.
22:15:48GitDisc<SolarLune> Nah, I can't - permission's denied, hahaha.
22:15:53PMunchYeah that's a bit strange
22:16:09PMunchOh wow, that means something higher is locked as well
22:16:12GitDisc<SolarLune> This is /usr/include, though:
22:16:13GitDisc<SolarLune> drwxr-xr-x 64 root root 4.0K Feb 5 20:44 include
22:16:40PMunchAnd /usr/local?
22:18:02*couven92 quit (Remote host closed the connection)
22:18:10GitDisc<SolarLune> Can't run the command on /usr/local because it's root, I think, too. If I run the command with root, I get: drwxr-xr-x 2 root root 4.0K Nov 29 10:07 include
22:18:16GitDisc<SolarLune> Can't run the command on /usr/local because it's root, I think, too. If I run the command with root, I get:
22:18:17GitDisc<SolarLune> drwxr-xr-x 2 root root 4.0K Nov 29 10:07 include
22:18:42PMunchYou do have read permissions though
22:18:51PMunchSo that's strange
22:18:54*couven92 joined #nim
22:18:55GitDisc<SolarLune> I don't think I do, if I can't open the folders.
22:19:01GitDisc<SolarLune> Or maybe not?
22:19:03PMunchDoes Solus do something strange about permissions?
22:19:31*couven92 quit (Remote host closed the connection)
22:19:39GitDisc<SolarLune> It shouldn't usually, but I think I've always had this issue whenever I tried out Nim on here. I'll ask around on Solus's reddit / forums.
22:19:43GitDisc<SolarLune> Thanks, everyone.
22:20:07PMunchWell the third r in the permissions pattern means that everyone has read permissions
22:20:24PMunchSo it's strange that you don't
22:22:16GitDisc<SolarLune> OK, I adjusted the folder as root to allow viewing the folder and now compilation appears to work fine. Thanks!
22:22:21GitDisc<SolarLune> I'll submit a bug report for Solus.
22:23:06PMunchMight have been a rogue install of some kind messing with the permissions
22:23:45GitDisc<SolarLune> Maybe, but I'm pretty sure I've run into this months ago, not too long after a clean install. Maybe one of my frequently installed programming tool does it silently, though???
22:24:20PMunchCould be, a bit strange though
22:24:35PMunchHow did you change it by the way? Because looking at the permissions it looked fine
22:26:27GitDisc<SolarLune> I opened a file manager as root and changed the permissions on /usr/local and its contents to be viewable by all others.
22:27:04PMunchYou seem to not be the only one having this issue at least: https://dev.solus-project.com/T5126
22:27:20PMunchOh wait
22:27:24PMunchThat's opened by you :P
22:27:39GitDisc<SolarLune> Ah, so it was, haha!
22:27:55GitDisc<SolarLune> I'll see if I run into any other issues, and add onto this same report. :p
22:29:34dom96hah!
22:29:39dom96That's funny. I know ikey
22:31:10*natrys quit (Quit: natrys)
22:32:37dom96that is interesting though. The permissions do indeed seem to indicate that any user should be able to read the contents.
22:33:24dom96Maybe one of the parent directories has different permissions?
22:35:34GitDisc<SolarLune> Not sure - it seems like it was only local that was inaccessible.
22:35:54GitDisc<SolarLune> From root, I mean.
22:36:08GitDisc<SolarLune> Like, the other folders were fine, but /usr/local was inaccessible.
22:36:17dom96what are the permissions on /usr/local then?
22:38:24GitDisc<SolarLune> root can create and delete, the root group can access, and others can now also access.
22:38:41GitDisc<SolarLune> Before, I think that was set to None.
22:39:22dom96That doesn't look right
22:39:26dom96Here is what they are on Ubuntu:
22:39:28dom96drwxr-xr-x 10 root root 4096 Dec 21 2016 local
22:40:30GitDisc<SolarLune> This is what I have now: drwxr-xr-x 3 root root 4.0K Nov 29 10:07 local
22:41:08dom96Certainly let the solus guys know about this.
22:52:15*solitudesf quit (Ping timeout: 248 seconds)
22:59:28PMunchHmm, does anyone know if there's a way to filter what comes up in your feed when you follow someone?
22:59:41*gangstacat quit (Ping timeout: 255 seconds)
22:59:49PMunchI'm interested in what people create, not what they star..
23:11:42*derlafff quit (Remote host closed the connection)
23:12:03*derlafff joined #nim
23:12:12*MJCaley quit (Quit: MJCaley)
23:14:11FromGitter<mratsim> I’m back to programming a go playing bot, and I stumbled upon this conversation from 2007 about “what programming language: runs in Linux, fast, garbage collection” https://groups.google.com/forum/#!topic/computer-go-archive/X0WClKs5x0Q%5B1-25%5D
23:21:15*PMunch quit (Quit: leaving)
23:22:05FromGitter<zetashift> Seems most people recommend D
23:23:17*chemist69 quit (Ping timeout: 265 seconds)
23:24:12FromGitter<mratsim> back in 2007 :P
23:27:17*chemist69 joined #nim
23:28:02dom96Ahh, 2007, no Go, Rust or Nim.
23:29:30dom96It was a simpler time
23:48:28*geocar joined #nim
23:49:08*gangstacat joined #nim
23:58:36*MJCaley joined #nim