<< 09-03-2018 >>

00:24:36noonienwhat cwd does ni/nimble run gcc in?
00:29:24noonienoh, same cwd nimble was called in aparently
00:38:52*Remy999 joined #nim
00:40:53*Remy999 quit (Client Quit)
00:43:02*douglascorrea quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:48:50*MJCaley quit (Quit: MJCaley)
01:02:12FromGitter<data-man> I prefer tup for C/C++. And Premake5.
01:02:49*ketralnis joined #nim
01:26:13*douglascorrea joined #nim
01:32:13*whisky quit (Ping timeout: 240 seconds)
01:54:55*yglukhov joined #nim
01:56:58*yglukhov quit (Remote host closed the connection)
02:06:27*S1tiSchu joined #nim
02:10:29*S1t1Schu quit (Ping timeout: 260 seconds)
02:17:54*yglukhov joined #nim
02:22:53*yglukhov quit (Ping timeout: 268 seconds)
02:24:54*craigger quit (Quit: bye)
02:25:55*craigger joined #nim
02:27:13*craigger quit (Client Quit)
02:29:24*craigger joined #nim
02:38:32*yglukhov joined #nim
02:39:58*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
02:42:27*yglukhov quit (Ping timeout: 240 seconds)
02:45:20*noonien quit (Quit: Connection closed for inactivity)
02:55:38*sz0 joined #nim
03:30:23*zarthur quit (Quit: Leaving)
03:40:26*yglukhov joined #nim
03:44:01*vlad1777d quit (Ping timeout: 248 seconds)
03:44:58*yglukhov quit (Ping timeout: 265 seconds)
04:02:27*yglukhov joined #nim
04:05:18*yglukhov quit (Remote host closed the connection)
04:20:14*tiorock joined #nim
04:20:14*tiorock quit (Changing host)
04:20:14*tiorock joined #nim
04:20:14*rockcavera is now known as Guest57790
04:20:14*Guest57790 quit (Killed (karatkievich.freenode.net (Nickname regained by services)))
04:20:14*tiorock is now known as rockcavera
04:26:14*yglukhov joined #nim
04:30:35*yglukhov quit (Ping timeout: 240 seconds)
04:37:15*douglascorrea quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:46:54*yglukhov joined #nim
04:50:57*yglukhov quit (Ping timeout: 240 seconds)
05:03:23*sz0 quit (Quit: Connection closed for inactivity)
05:07:31*yglukhov joined #nim
05:11:54*yglukhov quit (Ping timeout: 260 seconds)
05:28:08*yglukhov joined #nim
05:29:11*ieatnerds joined #nim
05:29:15ieatnerdsHi
05:29:32*yglukhov quit (Read error: No route to host)
05:30:00*yglukhov joined #nim
05:30:08ieatnerdsIts late here and I think I'm just not doing something correctly.
05:30:18*yglukhov quit (Remote host closed the connection)
05:38:07*SenasOzys quit (Ping timeout: 245 seconds)
05:50:03*dddddd quit (Remote host closed the connection)
05:51:13*yglukhov joined #nim
05:55:45*yglukhov quit (Ping timeout: 248 seconds)
05:55:48*nsf joined #nim
06:11:52*yglukhov joined #nim
06:15:53*yglukhov quit (Ping timeout: 240 seconds)
06:27:42*xkapastel quit (Quit: Connection closed for inactivity)
06:32:31*yglukhov joined #nim
06:36:59*yglukhov quit (Ping timeout: 256 seconds)
06:48:35*rockcavera quit (Remote host closed the connection)
06:53:07*yglukhov joined #nim
06:55:59*yglukhov quit (Read error: No route to host)
06:56:11*yglukhov joined #nim
07:05:17*yglukhov quit (Remote host closed the connection)
07:09:10*yglukhov joined #nim
07:10:40*yglukhov quit (Read error: Connection reset by peer)
07:11:03*yglukhov joined #nim
07:12:37*yglukhov quit (Remote host closed the connection)
07:17:40*yglukhov joined #nim
07:21:47*yglukhov quit (Remote host closed the connection)
07:27:28*rockcavera joined #nim
07:33:26*Vladar joined #nim
07:39:44*smt` joined #nim
07:42:42*yglukhov joined #nim
07:43:29*smt quit (Ping timeout: 248 seconds)
07:47:15*yglukhov quit (Ping timeout: 268 seconds)
07:57:02*Ven`` joined #nim
08:03:21*yglukhov joined #nim
08:07:37*yglukhov quit (Ping timeout: 252 seconds)
08:13:42*ak102 quit (Quit: ZNC - http://znc.in)
08:14:53*r3d9u11 joined #nim
08:25:23*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:31:38*Ven`` joined #nim
08:31:50*thor77 quit (Quit: ZNC 1.6.5 - http://znc.in)
08:32:19*thor77 joined #nim
08:41:16*PMunch joined #nim
08:46:11*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:46:51*sendell joined #nim
08:48:43*Trustable joined #nim
08:49:14*pvn1 joined #nim
08:59:31*Ven`` joined #nim
09:05:14*yglukhov joined #nim
09:09:04*jaco60 joined #nim
09:09:21*yglukhov quit (Ping timeout: 248 seconds)
09:19:55*xet7 quit (Ping timeout: 265 seconds)
09:25:51*yglukhov joined #nim
09:30:33*yglukhov quit (Ping timeout: 265 seconds)
09:32:50*xet7 joined #nim
09:37:30*xet7 quit (Ping timeout: 255 seconds)
09:44:11*r3d9u11 quit (Ping timeout: 256 seconds)
09:50:27*xet7 joined #nim
09:58:46*floppydh joined #nim
10:24:18*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:33:43*SenasOzys joined #nim
10:39:43*Ven`` joined #nim
11:14:57*yglukhov joined #nim
11:17:32Yardanicoare there any aes implementations in Nim except nimAES ?
11:22:20*floppydh quit (Ping timeout: 256 seconds)
11:22:49*couven92 joined #nim
11:26:50*smt_ joined #nim
11:27:52*vlad1777d joined #nim
11:31:06*smt` quit (Ping timeout: 268 seconds)
11:41:13*jaco60 left #nim ("Textual IRC Client: www.textualapp.com")
11:41:40*vlad1777d quit (Ping timeout: 240 seconds)
11:47:41*MJCaley joined #nim
11:57:42*MJCaley quit (Quit: MJCaley)
11:59:51PMunchYardanico, nimssl has some AES stuff
12:00:01*SenasOzys quit (Ping timeout: 248 seconds)
12:01:03PMunchAnd there is a wrapper for libsodium
12:01:07PMunchWhich I think have AES
12:01:40*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:02:22*Snircle joined #nim
12:03:06*floppydh joined #nim
12:06:34*SenasOzys joined #nim
12:07:41federico3it does
12:14:35*arnetheduck quit (Ping timeout: 240 seconds)
12:14:59*arnetheduck joined #nim
12:19:55*Ven`` joined #nim
12:20:14*nsf quit (Quit: WeeChat 2.0.1)
12:22:39*douglascorrea joined #nim
12:28:09*yglukhov quit (Remote host closed the connection)
12:34:10PMunchHmm, why doesn't this work: http://ix.io/UuT/
12:34:16PMunchError: cannot generate VM code for int32
12:41:09PMunchWhat I want to have is a lookup table that I can access to get the type related to some input type for when I want to generate Nim code from it
12:41:31PMunchSo if something is of type "sint32" in the input I want to map it to a "int32" in my output
12:41:49PMunchBut I can't simply use strings as I need to support e.g. "seq[uint8]"
12:42:14PMunchHuh, with a let it worked fine
12:42:19PMunchBug?
12:45:17*athenot quit (Ping timeout: 276 seconds)
12:46:15*smt_ is now known as smt
12:54:05*DarkArctic joined #nim
13:01:50*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:05:02*Ven`` joined #nim
13:27:59dom96PMunch: seems like it
13:29:39PMunchLike a bug?
13:33:08*rokups joined #nim
13:36:46PMunchhttps://github.com/nim-lang/Nim/issues/7317
13:40:08*dddddd joined #nim
13:40:36*Ven`` quit (Read error: Connection reset by peer)
13:41:06*Ven`` joined #nim
13:51:00*yglukhov joined #nim
13:55:12*yglukhov quit (Ping timeout: 245 seconds)
13:58:51*athenot joined #nim
14:09:16*douglascorrea quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
14:20:20FromGitter<krux02> PMunch isn't a const section in a static section a bit overkill?
14:20:40*douglascorrea joined #nim
14:31:29*tiorock joined #nim
14:31:29*rockcavera is now known as Guest19164
14:31:29*Guest19164 quit (Killed (moon.freenode.net (Nickname regained by services)))
14:31:29*tiorock is now known as rockcavera
14:32:16*yglukhov joined #nim
14:36:57*yglukhov quit (Ping timeout: 256 seconds)
14:41:03*floppydh quit (Quit: WeeChat 2.0.1)
14:56:24*SenasOzys quit (Ping timeout: 260 seconds)
14:59:25*r3d9u11 joined #nim
15:04:12*SenasOzys joined #nim
15:13:30*yglukhov joined #nim
15:17:40*yglukhov quit (Ping timeout: 240 seconds)
15:19:20*PMunch quit (Ping timeout: 276 seconds)
15:24:28*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:25:58*PMunch joined #nim
15:31:22*Ven`` joined #nim
15:58:56*miran joined #nim
16:08:17FromGitter<krux02> @Temperance: my minimal CMakeLists.txt example is the most stared github project that I have :P
16:21:46*Jesin joined #nim
16:38:37*xkapastel joined #nim
16:42:26FromGitter<samdmarshall> is there an easy way to check when a method call was introduced into the stdlib? the docs pages don't seem to list when it became available
16:42:46*natrys joined #nim
16:43:43*arecacea1 quit (Remote host closed the connection)
16:44:05*arecacea1 joined #nim
16:44:45FromGitter<samdmarshall> also what is the best way to debug a SIGSEV i'm getting from the compiler? :(
16:45:33*arnetheduck quit (Remote host closed the connection)
16:46:13mirancan you show us the part of the code that raises sigsegv?
16:46:22*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:46:59PMunchsamdmarshall, if you can find it in the source you can always run a git blame on it
16:47:21PMunchThat will give you a commit number which you can use to find the first tag with that commit in it
16:47:53Araqkoch temp c foo.nim
16:47:58Araqto get a stack trace
16:48:14*Ven`` joined #nim
16:48:16*Ven`` quit (Client Quit)
16:48:37FromGitter<samdmarshall> @araq thanks, will do that, just a sec
16:54:16*Jesin quit (Quit: Leaving)
16:55:39FromGitter<samdmarshall> @Araq https://gist.github.com/samdmarshall/d0367b71bd3a75f497a10f0f912220ba
16:57:49*PMunch quit (Quit: Leaving)
17:00:12*Faster-Fanboi quit (Quit: ZNC 1.7.x-git-876-42939c9 - https://znc.in)
17:00:57FromGitter<zacharycarter> I effing hate terraform
17:01:04FromGitter<zacharycarter> and aws really
17:03:27*Trustable quit (Remote host closed the connection)
17:16:25Araqsamdmarshall, never seen this one before
17:16:37Araqplease report it properly with an example program that triggers it
17:19:23FromGitter<samdmarshall> ok, i'll try to narrow down what i'm doing that is causing it
17:21:31*PMunch joined #nim
17:31:32FromGitter<krux02> @zacharycarter I now use glad to generate the opengl binding. This is much more flexible than the official opengl bindings, because I can choose what extensions I want to be generated and much more important, I can check at runtime if a function/extension is available.
17:32:19FromGitter<krux02> this allowed me to put in much better handling of fallback solutions for MacOS wich only has this very old 4.1 context.
17:32:43FromGitter<krux02> So maybe you can soon try out my library on mac if you want. But not right now it is still all on the branch glad-test
17:32:49*r3d9u11 quit (Ping timeout: 248 seconds)
17:33:02FromGitter<krux02> tell me if you are interested, for now I have to go.
17:37:45FromGitter<zacharycarter> sure I am! @krux02 - I'm using BGFX again in my re-write of frag - but I'd be interested to try out opengl playground for sure
17:42:24FromGitter<data-man> @krux02: And do not thank me! :-D
17:46:19*sendell quit (Remote host closed the connection)
17:54:48FromGitter<samdmarshall> @Araq hmmm, so I've narrowed it down to performing a `.filter()` on some data, but i'm having trouble reproducing the same thing in an example. changing my filter code to a for loop instead does allow it to compile successfully, do you have any recommendation on how I could further debug this?
17:58:12Araqhmm no, we need a small program to reproduce it. or a longer one if you don't mind submitting it
17:59:38FromGitter<samdmarshall> ok, if i cannot get it narrowed down further then i'll just submit the code it happens on -- it is already public code so i don't mind
17:59:45Araqok
17:59:58Araqcan't help to have larger examples in the test suite
18:00:04Araq*can't hurt
18:00:21Araqon the other hand
18:01:06FromGitter<samdmarshall> the only downside is i don't know if it is related to a third-party library in addition to my code :(
18:01:27Araqwell I think I know
18:01:42Araqyou're capturing a variable that is destructured
18:01:59*couven92 quit (Quit: Client disconnecting)
18:02:09Araqseems easy to fix but a test program would be nice
18:02:25Araqunlikely that a third-part lib is to blame here
18:02:37FromGitter<samdmarshall> ok
18:48:00*xkapastel quit (Quit: Connection closed for inactivity)
19:24:02ieatnerdsis there a best way in nim to get cpu usage? it seems like the psutil library hasnt been touched in over a year and cpu usage was never completed.
19:24:38ieatnerdsim on linux, so right now im just using two readings from /proc/stat, but it feels like ther should be a better way
19:25:50FromGitter<zacharycarter> https://stackoverflow.com/questions/3769405/determining-cpu-utilization - should be easy to reproduce in Nim
19:30:37ieatnerds seems like the accepted answer is what im already doing. ill just work on optimizing my code. might make my own port of psutil and update it too.
19:32:40ieatnerdsfork* not port
19:35:26Araqthe stdlib has some support for it, it's cpuinfo.nim iirc
19:35:57AraqNim's thread pool measures CPU usage to determine whether to spawn new threads
19:36:52Araqin retrospect a pretty bad idea for deterministic runs but hey, it's multithreaded :-)
19:39:30ieatnerdsThank you Araq!
19:39:48Araqmy bad it's in lib/pure/concurrency/cpuload.nim
19:40:09Araqand the interface is not what you want, but copy&adapt the code
19:40:14AraqPRs are welcome too
19:40:58Araqoh and it has no implementation for the inferior OSes for now
19:41:20Araq(OSX and the LSDs)
19:41:57ieatnerdsI'll take a look after my lunch. Again thank you!
19:42:35ieatnerdsalso while I'm at it, thank you for such a beautiful language. I've been in love since I found nim and have been getting all my friends to use it too
19:43:24Araqcool. I hope you have more friends than me then. XD
19:43:56Araq("than I have" is probably better English)
19:44:14ieatnerdsI think both work fine
19:59:42Araqok, well. Thank you too, you're welcome.
20:11:56*arecacea1 quit (Remote host closed the connection)
20:12:22*arecacea1 joined #nim
20:32:31FromGitter<zacharycarter> I just got a new macbook pro and I've installed nim on it
20:32:39FromGitter<zacharycarter> I'm gettting - cannot open 'compiler/ast' when I try to use any compiler module
20:32:40FromGitter<zacharycarter> any ideas?
20:32:42*Vladar quit (Quit: Leaving)
20:32:51FromGitter<zacharycarter> I also ran ./koch tools
20:32:53Araqnimble install compiler ?
20:33:08FromGitter<zacharycarter> ah - didn't realize I needed to do that, thanks Araq
20:33:10Araqor inside nim/compiler
20:33:15Araqnimble develop
20:33:24Araqwhich is probably the better option
20:33:25FromGitter<zacharycarter> gotcha thanks
20:34:09FromGitter<zacharycarter> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5aa2efc0e4ff28713a13a20f]
20:34:11FromGitter<zacharycarter> I'll go with the former
20:35:16FromGitter<Araq> maybe cd ..
20:35:40FromGitter<zacharycarter> yeah - that worked, thanks!
21:11:24*athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:12:30*athenot joined #nim
21:14:37*athenot quit (Client Quit)
21:17:41*xkapastel joined #nim
21:19:03*Trustable joined #nim
21:29:44*rokups quit (Quit: Connection closed for inactivity)
21:58:40*cspar joined #nim
22:02:26*gokr joined #nim
22:02:57*gokr left #nim (#nim)
22:16:10shashlickdom96: merged all packages PRs into one - was using nimble publish since it's so easy :D
22:16:15*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
22:17:25dom96shashlick: thanks :)
22:17:51shashlickare there any other major C libs that could do with a nim wrapper?
22:18:05dom96seems that the tests failed though
22:19:29*miran quit (Quit: Konversation terminated!)
22:20:03dom96oh, not related to the PR
22:20:57*Snircle joined #nim
22:21:14shashlickis the lib page showing all unofficial packages? not for me https://nim-lang.org/docs/lib.html
22:21:47shashlickhttps://nim-lang.org/docs/nimblepkglist.js <= 404
22:25:45*JacobEdelman quit (Quit: Ping timeout (120 seconds))
22:26:03*JacobEdelman joined #nim
22:27:55*dashed_ joined #nim
22:28:25*LyndsySimon quit (Ping timeout: 256 seconds)
22:29:00*dashed quit (Ping timeout: 256 seconds)
22:29:00*dashed_ is now known as dashed
22:30:13FromGitter<zacharycarter> I think I'm going to start on a graphql implementation for Nim
22:30:29*LyndsySimon joined #nim
22:35:09*rauss quit (Quit: WeeChat 2.0.1)
22:36:45*noonien joined #nim
22:37:47*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
22:44:34FromGitter<zacharycarter> well - I guess the first step - is wrapping: https://github.com/graphql/libgraphqlparser
22:44:41FromGitter<zacharycarter> I was unaware of its existence until just now :D
22:45:55*Snircle joined #nim
22:49:24shashlick@zacharycarter: would be cool if you could try using nimgen for that
22:50:51FromGitter<zacharycarter> shashlick: link plz?
22:51:23shashlickhttp://github.com/genotrance/nimgen
22:51:49FromGitter<zacharycarter> thx
22:53:59*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
23:01:20shashlickit's only OSX or Linux
23:01:31FromGitter<zacharycarter> that's fine - I'm on osx
23:05:12Araqwhat? why? what's platform specific about nimgen?
23:05:39*natrys quit (Quit: natrys)
23:05:41FromGitter<zacharycarter> well that was extremely easy using nimgen (assuming it works)
23:05:46FromGitter<zacharycarter> the code produced I mean
23:08:36*PMunch quit (Quit: leaving)
23:10:11*Snircle joined #nim
23:11:51*Snircle quit (Remote host closed the connection)
23:30:10FromGitter<zacharycarter> running into this problem with nimgen now - fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
23:30:19FromGitter<zacharycarter> when trying to prepare in the cfg with a git repo
23:32:28*vlad1777d joined #nim
23:34:46FromGitter<zacharycarter> I don't know - I think I find c2nim easier to use than nimgen - nimgen is nice but being more familiar with c2nim makes me biased I think - I know how to control things more in c2nim vs nimgen and the default nimgen / naive setup isn't working for me
23:39:48*aziz joined #nim
23:40:00*aziz quit (Client Quit)
23:48:34*Snircle joined #nim
23:50:26shashlickmakes sense
23:50:53shashlicknimgen is more about automation of c2nim
23:51:04FromGitter<zacharycarter> yeah
23:52:47shashlickcheck out nimssh2, it will be similar to this lib
23:53:02shashlickI can help if you are interested in continuing with it
23:56:34shashlickaraq: I meant the graphql parser is only on OSX and Linux
23:56:45shashlicknimgen can run anywhere
23:56:51shashlickit's pure nim
23:57:18Araqoh ok