<< 04-02-2018 >>

00:05:34*j_rod_s_ joined #nim
00:07:18*j_rod_s quit (Ping timeout: 240 seconds)
00:07:18*j_rod_s_ is now known as j_rod_s
00:08:16*yglukhov quit (Remote host closed the connection)
00:13:21*MJCaley joined #nim
00:37:06*yglukhov joined #nim
00:41:28*yglukhov quit (Ping timeout: 256 seconds)
01:23:45*user0_ joined #nim
01:26:55*j_rod_s quit (Ping timeout: 256 seconds)
01:37:12*vlad1777d joined #nim
01:46:41*vlad1777d quit (Ping timeout: 248 seconds)
01:52:38*user0_ quit (Quit: user0_)
02:16:51*tinAndi joined #nim
02:22:46*tinAndi quit (Ping timeout: 256 seconds)
02:27:18*chemist69 quit (Ping timeout: 256 seconds)
02:32:24*gangstacat quit (Ping timeout: 256 seconds)
02:35:37*gangstacat joined #nim
02:36:06*radagast joined #nim
02:39:54*arnetheduck joined #nim
02:41:21*chemist69 joined #nim
02:49:30*ftsf joined #nim
02:49:54*MJCaley quit (Quit: MJCaley)
03:08:16*user0_ joined #nim
03:12:14*user0_ quit (Client Quit)
03:23:25*user0_ joined #nim
03:49:30*yglukhov joined #nim
03:53:48*yglukhov quit (Ping timeout: 240 seconds)
03:56:34*user0_ quit (Quit: user0_)
03:56:54*j_rod_s joined #nim
04:18:38*dddddd quit (Remote host closed the connection)
05:00:24*Snircle_ joined #nim
05:02:18*Snircle quit (Ping timeout: 240 seconds)
05:37:44*yglukhov joined #nim
05:40:53*radagast quit (Quit: radagast)
05:41:40*yglukhov quit (Ping timeout: 240 seconds)
06:09:54*MightyJoe joined #nim
06:10:30AraqFOSDEM works, better error messages are about to arrive for Nim.
06:14:01*bozaloshtsh_ joined #nim
06:15:32*cyraxjoe quit (*.net *.split)
06:15:39*bozaloshtsh quit (*.net *.split)
06:18:20*stisa quit (Ping timeout: 260 seconds)
07:00:06*BitPuffin joined #nim
07:06:28*hogeland joined #nim
07:06:28*hogeland quit (Client Quit)
07:06:44*hogeland joined #nim
07:45:57Yardanicowow, it seems that I missed a lot :)
07:57:26arnetheduckwhat's the new lent/sink stuff? is there a description somewhere?
07:57:44arnetheducklooks like nlvm needs catching up again :/
08:05:46Yardanicoyou don't need it yet
08:05:57Yardanicolent/sink stuff is for nim v2
08:06:15Yardanicoarnettheduck: https://github.com/nim-lang/Nim/wiki/Destructors
08:06:21*solitudesf joined #nim
08:06:24Yardanico*arnetheduck
08:06:46arnetheduckit's all over the compiler innards
08:07:03arnetheduckthanks for docs
08:11:18*miran joined #nim
08:14:31*xkapastel quit (Quit: Connection closed for inactivity)
08:24:36*Vladar joined #nim
08:29:28FromGitter<mratsim> lent?
08:36:25*yglukhov joined #nim
08:39:54*yglukhov quit (Remote host closed the connection)
08:40:11Yardanico@mratsim: https://github.com/nim-lang/Nim/wiki/Destructors#lent-type
08:42:38FromGitter<Varriount> Araq: I was looking over some of the recent securehash changes. Doesn't SHA-1 have cryptographic vulnerabilities?
08:43:25Yardanicobut securehash was SHA1, it was only renamed :)
08:45:06*gangstacat quit (Quit: Ĝis!)
08:49:15*gangstacat joined #nim
08:49:53*yglukhov joined #nim
08:53:01*yglukhov_ joined #nim
08:54:18*yglukhov quit (Ping timeout: 240 seconds)
08:54:26*yglukhov joined #nim
08:56:46*yglukho__ joined #nim
08:56:55*miran quit (Remote host closed the connection)
08:57:04*sz0 joined #nim
08:57:18*yglukhov_ quit (Ping timeout: 240 seconds)
08:58:48*yglukhov quit (Ping timeout: 240 seconds)
09:01:40*yglukho__ quit (Ping timeout: 265 seconds)
09:02:36FromGitter<tim-st> @Varriount this was the thing about sha1: https://shattered.io/
09:02:50*gmpreussner quit (Ping timeout: 256 seconds)
09:04:37*miran joined #nim
09:04:50*gmpreussner joined #nim
09:10:54*yglukhov joined #nim
09:15:40*yglukhov quit (Ping timeout: 260 seconds)
09:57:24*derlafff quit (Remote host closed the connection)
09:57:40*derlafff joined #nim
10:01:30*rauss quit (Read error: Connection reset by peer)
10:02:12*arecaceae quit (Remote host closed the connection)
10:02:34*arecaceae joined #nim
10:04:12*rauss joined #nim
10:06:09*miran quit (Remote host closed the connection)
10:07:30*yglukhov joined #nim
10:09:50*derlafff quit (Remote host closed the connection)
10:10:04*derlafff joined #nim
10:11:57*yglukhov quit (Ping timeout: 240 seconds)
10:37:25*yglukhov joined #nim
10:41:44*yglukhov quit (Ping timeout: 252 seconds)
10:44:32*miran joined #nim
10:47:44*yglukhov joined #nim
10:58:40*chemist69 quit (Ping timeout: 240 seconds)
11:01:04*chemist69 joined #nim
11:01:37*radagast joined #nim
11:05:22*sz0 quit (Quit: Connection closed for inactivity)
11:06:29*yglukhov quit (Remote host closed the connection)
11:06:49*tinAndi joined #nim
11:08:28*yglukhov joined #nim
11:12:33*tinAndi quit (Ping timeout: 248 seconds)
11:12:48*yglukhov quit (Ping timeout: 240 seconds)
11:15:58*yglukhov joined #nim
11:20:18*yglukhov quit (Ping timeout: 240 seconds)
11:47:15*yglukhov joined #nim
11:49:00*yglukhov_ joined #nim
11:52:17*yglukhov quit (Ping timeout: 265 seconds)
12:05:45*miran quit (Quit: Konversation terminated!)
12:15:54*nsf joined #nim
12:17:34*radagast_ joined #nim
12:18:50*radagast quit (Ping timeout: 260 seconds)
12:18:50*radagast_ is now known as radagast
12:19:57*yglukhov_ quit (Remote host closed the connection)
12:22:14*yglukhov joined #nim
12:23:55*tinAndi joined #nim
12:27:05*yglukhov quit (Ping timeout: 265 seconds)
12:30:28*tinAndi left #nim (#nim)
12:31:27*ftsf quit (Quit: Leaving)
12:45:49*yglukhov joined #nim
12:50:04*yglukhov quit (Ping timeout: 252 seconds)
12:52:56*yglukhov joined #nim
12:56:58*vlad1777d joined #nim
12:57:32*yglukhov quit (Ping timeout: 265 seconds)
13:03:18*yglukhov joined #nim
13:07:35*yglukhov quit (Ping timeout: 240 seconds)
13:23:21*dddddd_ joined #nim
13:27:02*yglukhov joined #nim
13:28:13*yglukhov quit (Remote host closed the connection)
13:28:40*yglukhov joined #nim
13:31:15*yglukhov_ joined #nim
13:33:44*yglukhov quit (Ping timeout: 276 seconds)
13:35:43*yglukhov_ quit (Ping timeout: 265 seconds)
13:43:49*dddddd_ is now known as dddddd
13:46:02*yglukhov joined #nim
13:49:57*Vladar quit (Quit: Leaving)
13:53:21*yglukhov quit (Remote host closed the connection)
13:55:40*yglukhov joined #nim
13:59:48*yglukhov quit (Ping timeout: 240 seconds)
14:02:16*yglukhov joined #nim
14:07:08*yglukhov quit (Ping timeout: 265 seconds)
14:07:28*yglukhov joined #nim
14:07:35*vlad1777d quit (Ping timeout: 240 seconds)
14:16:05FromGitter<Ajusa> Hello everyone, is there any way in Nim to get the raw string passed in to the command line as arguments? For example, my program looks like `todo "a list item" add` and I want the arguments as `"\"a list item\" add"` ⏎ From what I have seen in the standard library, I lose the quotes when parsing. Is there a way to get the raw string, with the quotes inside?
14:18:58*solitudesf quit (Read error: Connection reset by peer)
14:21:26*solitudesf joined #nim
14:23:16yglukhovAjusa: iirc thats a system defined behavior. so the answer is "no" or "just like you would do it in any other language?" =)
14:29:49FromGitter<Ajusa> Okay, thanks!
14:33:14*dddddd_ joined #nim
14:33:20*dddddd quit (Ping timeout: 256 seconds)
14:37:35*dddddd_ is now known as dddddd
14:42:04*yglukhov_ joined #nim
14:45:48*yglukhov quit (Ping timeout: 265 seconds)
14:50:43*yglukhov_ quit (Remote host closed the connection)
14:51:23*yglukhov joined #nim
14:51:58*yglukhov quit (Remote host closed the connection)
14:52:24*yglukhov joined #nim
14:53:54*yglukhov_ joined #nim
14:54:53*yglukho__ joined #nim
14:57:08*yglukhov quit (Ping timeout: 256 seconds)
14:58:18*yglukhov_ quit (Ping timeout: 240 seconds)
14:59:18*yglukho__ quit (Ping timeout: 240 seconds)
15:02:14*dddddd quit (Ping timeout: 256 seconds)
15:05:18*dddddd joined #nim
15:37:43FromGitter<matrixbot> `ratherAnonymous` is nimedit already usable?
15:45:34*mgdelacroix[m] joined #nim
15:55:02*miran joined #nim
15:56:26Yardanicohmm, why are you using some "matrixbot"? there's a native bridge between matrix and freenode (I'm using it) :)
16:01:23shashlickIsn't that the discord bridge?
16:01:51*Trustable joined #nim
16:06:44mgdelacroix[m]I'm using the matrix bridge too, the other bridge seems to be the Gitter one
16:13:37*sz0 joined #nim
16:17:20YardanicoIt's not, discord bridge is GitDisc
16:17:28YardanicoGitter bridge is FromGitter
16:17:46Yardanicoalso there's a twitch bridge in #nim-offtopic - FromTwitch
16:23:54FromGitter<Quelklef> @Ajusa If you're making a commandline tool, try https://github.com/docopt/docopt.nim
16:26:03*cspar_ joined #nim
16:29:10*cspar__ quit (Ping timeout: 240 seconds)
16:31:13*yglukhov joined #nim
16:35:18*yglukhov quit (Ping timeout: 240 seconds)
16:38:08*MJCaley joined #nim
16:41:45*MJCaley quit (Client Quit)
16:47:34*nsf quit (Quit: WeeChat 2.0.1)
16:52:36shashlickyardanico: good point - we should probably add the matrix #nim link to the list on the website
16:57:43shashlickare #nim-offtopic and #nim-web active in any sense?
16:57:56shashlickhere's the matrix link to #nim: https://matrix.to/#/#freenode_#nim:matrix.org
16:58:33Yardanico#nim-offtopic is, and I don't know about #nim-web
17:01:31shashlickwould be nice to have a CLI client for matrix, all are really unstable
17:02:02shashlickriot is great but really takes a lot of ram
17:02:13shashlicksame with vscode, with three windows, it's a gig of ram almost
17:03:59*Trustable quit (Read error: Connection reset by peer)
17:04:23*Trustable joined #nim
17:14:57YardanicoI use nheko
17:15:29Yardanicoit's pretty simple matrix client - there's not a lot of features, but it's lightweight
17:19:18planetis[m]well I have doubts about that; mine consumes 240mb
17:19:24planetis[m]hi btw
17:22:07*Vladar joined #nim
17:24:29YardanicoMine does the same, but it's a lot less than riot and it's actually a bug :)
17:25:16*vlad1777d joined #nim
17:27:13planetis[m]thats good then :)
17:27:45planetis[m]btw you heard the news that status-im is partnering with matrix org to improve riot?
17:29:45planetis[m]is py2nim still being developed?
17:31:05shashlickI'll check out nheko. Stuck on Windows else I'd use weechat
17:31:12shashlickOther thing is I'm behind a proxy
17:37:00*natrys joined #nim
18:15:05*MJCaley joined #nim
18:15:31FromGitter<ZarsBranchkin> Uhmm, I can't find the documentation on `nim.cfg`. I suppose I should use `/etc/nim.cfg` as reference in case of linux?
18:15:47FromGitter<ZarsBranchkin> Kind of expected to find something on nim-lang.org
18:18:22FromGitter<ZarsBranchkin> alright, managed to scrap what I wanted
18:21:42*BitPuffin quit (Remote host closed the connection)
18:22:04*Ven`` joined #nim
18:23:27*sz0 quit (Quit: Connection closed for inactivity)
18:37:04FromGitter<Varriount> shashlick: Hence why I still use Sublime Text. :P
18:38:44shashlickI'm still on the fence on that, also keep considering going back to vim every few months
18:42:28*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:08:00*nsf joined #nim
19:10:40FromGitter<RichardMarks> what is the way to keep a reference to a procedure inside of an object instance? ⏎ I want to init my object with a reference to a procedure ⏎ and later call that procedure through the object's property ⏎ ⏎ something like obj.foo = fooProc ... [https://gitter.im/nim-lang/Nim?at=5a775ab07dcd63481f18ab4f]
19:13:00*Trustable quit (Remote host closed the connection)
19:33:28FromGitter<SolitudeSF> something like this? https://play.nim-lang.org/?gist=a7c6b234546027e141995095bf640e7c
19:41:05*sleepyqt joined #nim
19:45:57FromGitter<RichardMarks> okay that's cool @SolitudeSF ⏎ ⏎ is there a way to create like a C typedef for the procedure's "signature" so that I can avoid having to list all the params for each usage (will be a few hundred use-cases in the actual use of this pattern) ⏎ ⏎ `````` [https://gitter.im/nim-lang/Nim?at=5a7762f536de78850cee36fe]
19:46:18FromGitter<RichardMarks> ugh, ignore the last part I didn't mean to send it
19:48:28FromGitter<RichardMarks> was going to say ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5a77638ba3447aac753eb12b]
19:55:24*chemist69 quit (Ping timeout: 252 seconds)
19:55:47*chemist69 joined #nim
20:27:01*natrys quit (Quit: natrys)
21:05:25FromGitter<jamesalbert> is there anyway to poll in the background? I tried putting all the async code in a separate thread but I kept getting "call is not gc-safe" errors
21:05:47*nsf quit (Quit: WeeChat 2.0.1)
21:15:03FromGitter<mratsim> @Yardanico thanks for the lent link, that's actually quite cool. Though I expect that like Rust borrow checker and C++ rvalue, lvalue, xvalue, ... it will probably add a big barrier to entry to codebase that uses those heavily. But from a perf POV and power user it's great to have such a control on parameter passing
21:16:12FromGitter<mratsim> Will love to lent return variables as well.
21:48:36FromGitter<jamesalbert> nevermind, I guess making everything gc-safe works
21:48:59*Vladar quit (Quit: Leaving)
21:57:52*miran_ joined #nim
22:00:31*miran quit (Ping timeout: 248 seconds)
22:02:54*couven92 joined #nim
22:05:29*MJCaley quit (Quit: MJCaley)
22:14:23*solitudesf quit (Ping timeout: 248 seconds)
22:18:17*vlad1777d quit (Ping timeout: 276 seconds)
22:34:49*Ven`` joined #nim
22:38:39FromGitter<RichardMarks> Could someone please tell me what I would need to do in order to get this to work? ⏎ https://play.nim-lang.org/?gist=b3a6dc38a274c1db65149b0f3582c0e1 ⏎ ⏎ I'm not understanding the error that it gives me, and all my googling has been in vain. ⏎ I need the assistance of someone with more nim experience than I have (3 days) [https://gitter.im/nim-lang/Nim?at=5a778b6f7dcd63481f199339]
22:39:37*sleepyqt quit (Read error: Connection reset by peer)
22:48:28*Ven`` quit (Ping timeout: 256 seconds)
22:49:21*miran_ quit (Quit: Konversation terminated!)
22:52:33*dddddd quit (Ping timeout: 264 seconds)
22:52:34*dddddd_ joined #nim
22:52:46*dddddd_ is now known as dddddd
22:57:58FromGitter<Quelklef> Change to `[one.FP, two.FP]
22:58:17FromGitter<Quelklef> Dunno why that happens, but I've found I sometimes need explicit type conversion where I'd think it can be inferred
22:58:44FromGitter<RichardMarks> :O
22:58:50FromGitter<RichardMarks> thank you @Quelklef
22:58:54FromGitter<Quelklef> :)
22:59:19FromGitter<RichardMarks> wish I had thought of that 7 hours ago ...
23:00:28FromGitter<Quelklef> Haha, oh well. Just remember this for the future and you should be good
23:01:45FromGitter<RichardMarks> indeed
23:11:37*MJCaley joined #nim
23:13:01FromGitter<honewatson> @Quelklef did you get your concepts working?
23:26:28FromGitter<Quelklef> No :(
23:26:37FromGitter<Quelklef> Well, actually, maybe, hold on
23:28:59FromGitter<Quelklef> Nope, ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ Is complaining about all sorts of things [https://gitter.im/nim-lang/Nim?at=5a77973bac509d207dbae4c9]
23:30:13FromGitter<Quelklef> Hm.. Removed the `: Itr[Itr[int]]` from the `ar2d` declaration and
23:30:37FromGitter<Quelklef> Now it just complais that `result.add` is getting `(seq[seq[int]], int)` which isn't right...
23:32:11FromGitter<Quelklef> Used `var res: seq[int]` instead of `result` but it still things `add` is getting a `seq[seq[int]]` for some reason. Can someone confirm/deny this as a bug?
23:39:02*j_rod_s quit (Ping timeout: 256 seconds)
23:57:10*j_rod_s joined #nim