<< 16-04-2019 >>

00:01:10*Cthalupa joined #nim
00:19:26*shomodj joined #nim
00:40:04*shomodj quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:08:32*rnrwashere joined #nim
01:13:06*rnrwashere quit (Ping timeout: 268 seconds)
01:33:06*onionhammer joined #nim
01:45:47*smitop quit (Quit: Connection closed for inactivity)
02:07:06*banc quit (Quit: Bye)
02:28:08*banc joined #nim
02:35:19*[rg] left #nim (#nim)
02:58:58*I_Right_I quit (Remote host closed the connection)
03:06:55*a_chou joined #nim
03:06:57*a_chou quit (Remote host closed the connection)
03:27:19*[rg] joined #nim
03:45:55*dddddd quit (Remote host closed the connection)
03:49:19*rnrwashere joined #nim
04:21:07*nsf joined #nim
04:46:58*rnrwashere quit (Remote host closed the connection)
04:52:58*shomodj joined #nim
04:54:56*narimiran_ joined #nim
05:04:02*shomodj quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:09:59*[rg] quit (Quit: Leaving.)
05:14:07*leorize quit (Quit: WeeChat 2.3)
05:42:20*vlad1777d quit (Ping timeout: 246 seconds)
05:54:01*narimiran_ is now known as narimiran
05:57:57*kapil____ joined #nim
06:01:23*mosORadi joined #nim
06:01:54*jjido joined #nim
06:02:03*krux02 joined #nim
06:03:14*solitudesf joined #nim
06:06:57*fredrik92 joined #nim
06:07:34*couven92 quit (Disconnected by services)
06:07:41*fredrik92 is now known as couven92
06:08:02*fredrik92 joined #nim
06:25:30*LyndsySimon quit (Ping timeout: 257 seconds)
06:25:37*mosORadi quit (Ping timeout: 250 seconds)
06:30:09*r4vi quit (Ping timeout: 252 seconds)
06:31:03*mosORadi joined #nim
06:33:53FromGitter<Grabli66> Hi! Is it possible to copy memory from ref object to another ref object?
06:36:28*mosORadi quit (Ping timeout: 250 seconds)
06:39:52FromGitter<Varriount> @Grabli66 Yes. The best way would probably be of the following
06:40:20FromGitter<Varriount> `refOne[] = regTwo[]`
06:41:47*fanta7531 joined #nim
06:41:54FromGitter<Varriount> You use the dereference operator to automate the contents of one reference to another
06:45:47*zielmicha__ quit (Ping timeout: 240 seconds)
06:46:33*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:52:28*zielmicha__ joined #nim
06:55:07*mosORadi joined #nim
06:55:57*r4vi joined #nim
07:00:00*gmpreussner quit (Quit: kthxbye)
07:01:14*LyndsySimon joined #nim
07:01:52FromGitter<Grabli66> @Varriount Yes it works. But only if types of ref objects are the same. ⏎ But i have that situation: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5cb57de0a0790b29c9c536d4]
07:04:51*gmpreussner joined #nim
07:10:41Araqthat's a feature
07:14:57FromGitter<Grabli66> Ok. But may be there is a way to make it works? :)
07:29:04*leorize joined #nim
07:32:22*couven92 quit (Quit: Client Disconnecting)
07:34:30Araqiterate over the fields via fieldPairs
07:34:47Araqhttps://youtu.be/Ni9ywA0KvrE new video arrived
07:47:23*shomodj joined #nim
07:50:24*shomodj quit (Client Quit)
07:52:14Zevv\o/
07:58:14*Vladar joined #nim
08:02:53*solitudesf quit (Remote host closed the connection)
08:03:26*fredrik92 is now known as couven92
08:06:46*salewski joined #nim
08:08:45salewskimay the forum database be partly corrupted? Yesterday I was searching for a macro example linked here
08:08:50salewskihttps://forum.nim-lang.org/t/4696#29309
08:09:19*floppydh joined #nim
08:09:25salewskibut that link is https://forum.nim-lang.org/404#19038 is not working
08:09:43*hoijui joined #nim
08:09:53salewskiI think it was working when author wrote that post.
08:09:57Araqwell we delete spam
08:10:46salewskiShould be have not spam, he pointed to a macro example of you!
08:10:52*shomodj joined #nim
08:11:08*mosORadi quit (Quit: Connection closed for inactivity)
08:11:18Araqwell we need to investigate :P
08:11:59salewskiBut luckily he copied and extend your macro: https://forum.nim-lang.org/t/4696#29320
08:12:49Araqyour link is off though, the structure is https://forum.nim-lang.org/t/404#19038
08:12:54Araqand that points to some old thing
08:12:57salewskiSo its fine for me :-) But it would be sad if important posts get lost.
08:13:24Araqyour link is missing the /t directory
08:13:37Araqwith the "new" forum the link structure changed
08:13:48Araqwhere did you get that link from?
08:15:38salewskiLink was from https://forum.nim-lang.org/t/4696#29309 the yellow here text.
08:16:27Araqah hmmm
08:17:17Araqstrange indeed
08:17:25salewskiI think it was working that time. But OK, I see the t is missing, thanks.
08:17:37salewskiBye.
08:17:59Araqseems to be a forum redirect though
08:18:02Araqto 404
08:18:14Araqso that data item is gone
08:18:18Araq:-/
08:19:04*salewski quit (Quit: WeeChat 2.3)
08:20:33*shomodj quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:25:19*fanta7531 quit (Quit: fanta7531)
08:38:26*neceve joined #nim
08:38:38*solitudesf joined #nim
08:44:07*shomodj joined #nim
09:18:06*stefanos82 joined #nim
09:30:45*iLiquid joined #nim
09:35:07*dddddd joined #nim
09:51:10AraqGtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
09:51:27AraqGtk-WARNING: Theme parsing error: ...
09:51:39Araqso what is it? A warning or an error?
09:57:32*clyybber joined #nim
10:06:33*clyybber quit (Quit: WeeChat 2.4)
10:07:30*clyybber joined #nim
10:09:28*fanta1 joined #nim
10:23:42*fanta1 quit (Quit: fanta1)
10:24:19*lritter joined #nim
10:27:59*fanta1 joined #nim
10:29:05*iLiquid quit (Quit: iLiquid)
10:29:07Araqah I know why 'koch temp' fails :-/
10:29:56leorizewhat was the problem?
10:30:36*iLiquid joined #nim
10:30:59Araqthe destructor pass destroys global vars too early :P
10:31:40leorize:P
10:32:46leorizemain.nim(37, 12) Error: internal error: '=destroy' operator not found for type owned Node
10:32:58AraqI know, I know, working on that bug too
10:36:10*chickendan joined #nim
10:38:26*iLiquid_ joined #nim
10:39:55*iLiquid quit (Ping timeout: 250 seconds)
10:39:56*iLiquid_ is now known as iLiquid
10:40:30*iLiquid quit (Client Quit)
10:41:31*iLiquid joined #nim
10:45:00*leorize quit (Quit: WeeChat 2.3)
10:46:59clyybberAraq: I have reintroduced that overwrite optimization in https://github.com/nim-lang/Nim/pull/11036
10:48:11clyybberAraq: One could also check for `son.destructor == nil` in the for loop, but in my tests, that didn't make a difference for performance
10:49:02clyybberand if one were to do so, one would also have to skipTypes({tyGenericInst, tyAlias}) right?
10:50:29clyybberDoes it make sense to recurse through all the sons of a PType? Or should it suffice to only recurse through lastSon?
10:51:17clyybberThe issue seems to be fixed even when I only recurse through lastSon, though I'm not entirely sure that is correct.
11:01:54Araqclyybber, I'm still investigating myself too
11:02:11Araqbut now it's time for lunch.
11:16:55*abm joined #nim
11:33:47clyybberAraq: Oh yes it is. Just made myself schnitzel :D
11:48:57*dyce[m] joined #nim
11:49:55*seni joined #nim
12:05:24FromGitter<kaushalmodi> @narimiran Listening to the Nim devel update reminded me of the issue where the documentation of the modules broken out of system.nim has gone missing.
12:05:51FromGitter<kaushalmodi> https://github.com/nim-lang/Nim/issues/10972 (if you have already taken a note of this issue, my apologies).
12:06:18narimiran@kaushalmodi i'm/we're aware of it, but currently there's no easy/straightforward fix for it
12:08:50FromGitter<kaushalmodi> Understood
12:17:19*ArchieT[m] joined #nim
12:17:19*TheKing[m] joined #nim
12:17:19*xylef joined #nim
12:17:19*Connor[m] joined #nim
12:17:19*Demos[m] joined #nim
12:17:19*Manny8888 joined #nim
12:17:20*sendell[m] joined #nim
12:17:20*GitterIntegrati4 joined #nim
12:17:20*serialdev[m] joined #nim
12:17:20*k0mpjut0r joined #nim
12:17:22*jugash[m] joined #nim
12:17:23*gh0st[m] joined #nim
12:17:23*leorize joined #nim
12:25:07*couven92 quit (Quit: Client disconnecting)
12:27:03*hoijui quit (Ping timeout: 264 seconds)
12:28:18*cgfuh joined #nim
12:39:13*Calinou quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
12:39:28*Calinou joined #nim
13:04:03*flaviut[m] joined #nim
13:04:03*Miguelngel[m] joined #nim
13:04:13*federico3[m] joined #nim
13:04:14*narimiran[m] joined #nim
13:04:14*planetis[m] joined #nim
13:04:40*macsek1911[m] joined #nim
13:04:40*zielmicha[m] joined #nim
13:04:40*spymasterd[m] joined #nim
13:04:40*sg-james[m] joined #nim
13:05:02*forkbomb9[m] joined #nim
13:05:24*libman[m] joined #nim
13:05:30*xomachine[m] joined #nim
13:05:40*TheManiac[m] joined #nim
13:06:13*junk[m] joined #nim
13:06:26*lqdev[m] joined #nim
13:06:26*isaac[m]1 joined #nim
13:07:15*yglukhov[m] joined #nim
13:07:29*pqflx3[m] joined #nim
13:11:38*vlad1777d joined #nim
13:31:00*tobbez quit (Ping timeout: 258 seconds)
13:32:31*tobbez joined #nim
13:36:13*fanta1 quit (Quit: fanta1)
13:46:08*gangstacat quit (Ping timeout: 268 seconds)
13:56:49*nsf quit (Quit: WeeChat 2.4)
14:00:02*gangstacat joined #nim
14:05:37*GitterIntegrati4 quit (Read error: Connection reset by peer)
14:05:37*serialdev[m] quit (Read error: Connection reset by peer)
14:05:39*lqdev[m] quit (Read error: Connection reset by peer)
14:05:39*gh0st[m] quit (Read error: Connection reset by peer)
14:05:42*Demos[m] quit (Remote host closed the connection)
14:05:45*TheKing[m] quit (Read error: Connection reset by peer)
14:05:45*spymasterd[m] quit (Read error: Connection reset by peer)
14:05:48*junk[m] quit (Read error: Connection reset by peer)
14:05:48*dyce[m] quit (Remote host closed the connection)
14:05:51*narimiran[m] quit (Read error: Connection reset by peer)
14:05:51*planetis[m] quit (Read error: Connection reset by peer)
14:05:52*xylef quit (Read error: Connection reset by peer)
14:05:52*pqflx3[m] quit (Remote host closed the connection)
14:05:55*forkbomb9[m] quit (Read error: Connection reset by peer)
14:05:56*flaviut[m] quit (Read error: Connection reset by peer)
14:05:57*sendell[m] quit (Read error: Connection reset by peer)
14:05:58*leorize quit (Remote host closed the connection)
14:06:01*TheManiac[m] quit (Remote host closed the connection)
14:06:02*xomachine[m] quit (Remote host closed the connection)
14:06:02*k0mpjut0r quit (Read error: Connection reset by peer)
14:06:02*Connor[m] quit (Read error: Connection reset by peer)
14:06:02*Miguelngel[m] quit (Read error: Connection reset by peer)
14:06:03*isaac[m]1 quit (Read error: Connection reset by peer)
14:06:04*jugash[m] quit (Read error: Connection reset by peer)
14:06:04*Manny8888 quit (Read error: Connection reset by peer)
14:06:06*federico3[m] quit (Read error: Connection reset by peer)
14:06:12*ArchieT[m] quit (Write error: Connection reset by peer)
14:06:12*macsek1911[m] quit (Read error: Connection reset by peer)
14:06:12*zielmicha[m] quit (Read error: Connection reset by peer)
14:06:12*yglukhov[m] quit (Read error: Connection reset by peer)
14:06:12*libman[m] quit (Write error: Connection reset by peer)
14:06:12*sg-james[m] quit (Read error: Connection reset by peer)
14:16:00*Trustable joined #nim
14:26:24*clyybber quit (Quit: WeeChat 2.4)
14:32:12*dyce[m] joined #nim
14:38:59*Minimisthupper joined #nim
14:49:07*Minimisthupper quit (Quit: Konversation terminated!)
14:50:20*TheKing[m] joined #nim
14:50:20*xylef joined #nim
14:50:20*Connor[m] joined #nim
14:50:20*ArchieT[m] joined #nim
14:50:20*Demos[m] joined #nim
14:50:21*GitterIntegrati4 joined #nim
14:50:21*sendell[m] joined #nim
14:50:21*jugash[m] joined #nim
14:50:21*k0mpjut0r joined #nim
14:50:22*isaac[m]1 joined #nim
14:50:22*gh0st[m] joined #nim
14:50:22*serialdev[m] joined #nim
14:50:22*leorize joined #nim
14:50:27*TheManiac[m] joined #nim
14:50:27*Manny8888 joined #nim
14:50:27*federico3[m] joined #nim
14:50:27*forkbomb9[m] joined #nim
14:50:27*flaviut[m] joined #nim
14:50:28*junk[m] joined #nim
14:50:28*spymasterd[m] joined #nim
14:50:28*narimiran[m] joined #nim
14:50:28*Miguelngel[m] joined #nim
14:50:28*zielmicha[m]1 joined #nim
14:50:28*xomachine[m] joined #nim
14:50:28*yglukhov[m] joined #nim
14:50:28*sg-james[m] joined #nim
14:50:28*pqflx3[m] joined #nim
14:50:29*macsek1911[m] joined #nim
14:50:29*planetis[m] joined #nim
14:50:29*lqdev[m] joined #nim
14:50:30*libman[m] joined #nim
14:55:39*iLiquid quit (Quit: iLiquid)
14:56:35*nsf joined #nim
14:58:47*salewski joined #nim
14:59:55salewskiMy feeling is that currently Destructor docs can be found only by using Google...
15:00:44*shomodj quit (Ping timeout: 250 seconds)
15:00:51salewskiDestructurs are not in 0.19.9 manual, and Araqs musings and araqs Destructor RFC in wiki are hidden.
15:00:57salewskiIs that intended?
15:03:37*clyybber joined #nim
15:06:34*rnrwashere joined #nim
15:06:59*LyndsySimon quit ()
15:07:18*LyndsySimon joined #nim
15:10:18Araqsalewski, no, I'll add an appendix to the manual describing how they work
15:10:41Araqfor 0.20
15:11:12*rnrwashere quit (Remote host closed the connection)
15:11:13salewskiOK, fine.
15:12:38*salewski quit (Quit: WeeChat 2.3)
15:14:47clyybberAraq: What has replaced the {.unchecked.} pragma?
15:15:48Araqsystem.UncheckedArray[T]
15:16:02clyybberah, yeah. I don't have to define that myself anymore.
15:16:06clyybberthanks :)
15:23:26*r4vi quit ()
15:23:44*r4vi joined #nim
15:43:34*rnrwashere joined #nim
15:48:03*rnrwashere quit (Ping timeout: 264 seconds)
15:52:10*avitkauskas joined #nim
15:53:12*avitkauskas quit (Client Quit)
15:54:17FromGitter<brentp> @mratsim in what's the arraymancer equivalent of numpy's: `a[a < 0] = 0` ?
15:59:55FromGitter<brentp> looks like `mclamp` can do the trick
16:20:03FromGitter<brentp> another Q re arraymancer. I have 2 tensors of shape [$n] and I want the element-wise min of them the only way I can see is `concat(a, b, axis=0).reshape(a.shape[0], 2).min(axis=1).squeeze(1)`
16:20:09FromGitter<brentp> is there a better way?
16:22:35*floppydh quit (Quit: WeeChat 2.4)
16:37:30*rnrwashere joined #nim
16:37:40*rnrwashere quit (Remote host closed the connection)
16:42:15rayman22201Thanks for the new video core team! It was a pleasant thing to wake up to lol.
16:53:59*clyybber quit (Quit: WeeChat 2.4)
17:06:50dom96No tweet about the new video?
17:10:29*Jesin quit (Quit: Leaving)
17:11:29Araqdom96: oh I wasn't aware that we twitter regularly :-)
17:13:37shashlickguys, nice job with the nimble test suite, it is really helping ensure the nocompiler feature is done right
17:13:44dom96please tweet these kinds of things
17:13:56dom96it's important we keep people in the loop
17:16:44*hoijui joined #nim
17:20:11*hoijui quit (Remote host closed the connection)
17:29:49*Jesin joined #nim
17:48:42federico3I'd suggest doing blog posts that are automatically tweeted and tooted so that communication is not fragmented
17:49:07*Jesin quit (Quit: Leaving)
17:52:11*neceve quit (Remote host closed the connection)
17:54:16*Jesin joined #nim
17:58:24FromDiscord<treeform> PR is really hard, especially for a programming language.
17:58:28*flyx quit (Quit: ZNC - http://znc.in)
18:10:40shashlickdoes tables not work in nimscript?
18:11:11FromGitter<genotrance> ../../../home/gt/programming/nimdevel/lib/pure/collections/tables.nim(418, 18) hasKey ⏎ ../../../home/gt/programming/nimdevel/lib/pure/collections/tableimpl.nim(32, 24) rawGet ⏎ /home/gt/programming/nimdevel/lib/pure/collections/tableimpl.nim(32, 24) Error: index 34997357538 not in 0 .. -1
18:13:52*ng0 joined #nim
18:18:22*natrys joined #nim
18:25:44shashlicknever mind
18:30:11*jjido joined #nim
18:36:17*kapil____ quit (Quit: Connection closed for inactivity)
18:54:51*i7sDream joined #nim
19:01:02shashlick@Araq, @dom96 - looks like my nocompiler branch is passing all nimble tests now, so at least on Linux, we are looking good
19:05:54shashlickhttps://travis-ci.org/genotrance/nimble/builds/520913706
19:13:55*salewski joined #nim
19:15:06salewskiDo we have something like the pascal with statement in Nim?
19:15:12salewskihttps://www.freepascal.org/docs-html/ref/refsu62.html
19:15:58salewskiI guess thee was something, like a macro. But "with" is a bad google term -- and I do not really need it :-)
19:18:48shashlickhere's an example - https://github.com/nim-lang/Nim/blob/master/lib/system/nimscript.nim#L294
19:21:48salewskishashlick, that is not was pascal and modula3 has, see my link.
19:24:08FromGitter<brentp> finally realized the convenience of using builtin sets of enums. this is awesome!
19:24:29narimiransalewski: wasn't now deprecated {.this: self.} stuff about what you're looking for?
19:25:02shashlicksalewski: you can write a template to do what you want
19:27:41salewskiYes, this/self is similar, see
19:27:48salewskihttps://nim-lang.github.io/Nim/manual_experimental.html#automatic-self-insertions
19:28:01salewskiBye.
19:28:04*salewski quit (Quit: WeeChat 2.3)
19:28:57Araqshashlick, awesome. What do you think is left to do?
19:30:55narimiran@genotrace (shashlick?) was that table error maybe because you failed to initialize a table?
19:32:33*d10n-work joined #nim
19:32:33*narimiran quit (Remote host closed the connection)
19:32:59*narimiran joined #nim
19:33:49FromDiscord<exelotl> salewski: zevv was working on `with` macro but it's somewhat limited https://github.com/zevv/with
19:34:36*i7sDream quit (Quit: WeeChat 2.4)
19:35:07*i7sDream joined #nim
19:36:06FromDiscord<exelotl> it would be perfect if it also covered the 'routine applications are also rewritten' behaviour
19:37:38FromDiscord<exelotl> I haven't a clue how to implement something like that though :/
19:39:19*Trustable quit (Remote host closed the connection)
19:43:24*Vladar quit (Remote host closed the connection)
19:49:05shashlickAraq: I want to test on windows and osx as well
19:49:22shashlickRight now the tests only work on Linux so I need to fix the tests
19:50:14shashlickAlso, I want to test all the nimble packages in the Nim CI
19:50:32shashlicknarimiran yep
19:51:02narimiranshashlick: i have a PR for that, it should give a more informative error message
19:57:23shashlickNeat
19:57:29*nsf quit (Quit: WeeChat 2.4)
19:59:38Araqoh yeah, for 0.20 tables should just auto-init like seqs do
19:59:56narimiran+1
19:59:58Araqthis extra 'if' check won't kill us and it would make the language easier to use
20:00:33*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:06:01shashlickThat'll be nice
20:06:21shashlickSo one concern I have is that even if nimble CI passes, I could break Nim ci
20:06:29shashlickOnce this gets delivered
20:10:56*narimiran quit (Ping timeout: 268 seconds)
20:23:25*i7sDream quit (Quit: WeeChat 2.4)
20:23:43*lritter quit (Quit: Leaving)
20:28:12*rnrwashere joined #nim
20:46:31Araqshashlick, don't worry about that
20:47:18Araqwe'll figure out how to fix that
20:55:51dom96shashlick, yay, good job on getting the tests passing
20:56:54*rnrwashere quit (Remote host closed the connection)
21:04:59shashlickanyone know how to do the `PATH=x command` syntax on Windows?
21:05:54FromDiscord<citycide> salewski: I have a similar project to `with` called cascade, different goal but it's close https://github.com/citycide/cascade
21:08:30FromDiscord<citycide> slashlick: been a while but do you mean `setx path "%path%;<other_path>"`?
21:14:02*solitudesf quit (Ping timeout: 246 seconds)
21:14:41shashlickno, like on linux, you can set the variable and run a command in the same line
21:14:50shashlickonly that command will have that variable as part of the env
21:17:39rayman22201https://superuser.com/questions/223104/setting-and-using-variable-within-same-command-line-in-windows-cmd-exe
21:17:53rayman22201Windows doesn't "really" support that feature... it's kind of a hack
21:18:37*jjido joined #nim
21:20:11shashlickThanks rayman22201
21:20:20shashlickMight not work for nimble ci
21:20:54shashlickOk tests pass on osx
21:21:37rayman22201yeah. I thought CI would be your next request. sorry. good work on nimble btw. 👍
21:23:24shashlickOk need to jerry rig this new nimble with testament and run important packages
21:37:21*ng0 quit (Quit: Alexa, when is the end of world?)
22:01:21*chickendan quit (Quit: Quit)
22:21:37*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:37:37*crem quit (Ping timeout: 268 seconds)
22:39:16*crem joined #nim
22:48:51*natrys quit (Quit: natrys)
23:06:34*krux02 quit (Remote host closed the connection)
23:35:25*stefanos82 quit (Remote host closed the connection)
23:55:28*I_Right_I joined #nim