!IFyJJdyoPgkXwWtwDH:matrix.org

elvish

8 Members
Deprecated Elvish chatroom, use #users:elv.sh instead3 Servers

Load older messages


SenderMessageTime
26 Dec 2020
@mesajor:matrix.orgmesajor [zzamboni(telegram)] šŸ˜Š 14:52:16
@mesajor:matrix.orgmesajor [Ian(telegram)] Like I said, it is technically experimental so we canā€™t complain too much šŸ˜‚ 15:42:46
@mesajor:matrix.orgmesajor [zzamboni(telegram)] Maybe itā€™s a good opportunity to rewrite alias in terms of eval instead of -source 15:44:40
@mesajor:matrix.orgmesajor [zzamboni(telegram)] Actually that was not too hard a change. Only disadvantage is that things within eval run within their own scope, so alias:new no longer can define the new function on the fly, always has to be done on startup 16:31:10
@mesajor:matrix.orgmesajor [zzamboni(telegram)] Question: is there some way to determine we are running interactively or from within rc.elv? 16:31:37
@mesajor:matrix.orgmesajor [zzamboni(telegram)] Done - alias is now upgraded to use eval instead of -source, so it works with the latest Elvish. It wasnā€™t even much of a change. I also cleaned up the code a bit :) 16:51:07
@mesajor:matrix.orgmesajor [Ian(telegram)] That was fast 16:55:31
@mesajor:matrix.orgmesajor [zzamboni(telegram)] It was a really simple change, only one function, and in fact the change made it simpler. Only downside is that it can no longer load the new alias in the current session, since eval works only within its own scope. 17:00:34
@mesajor:matrix.orgmesajor [Ian(telegram)] Generally pretty easy to just exec though 17:01:21
@mesajor:matrix.orgmesajor [zzamboni(telegram)] Indeed 17:01:35
@mesajor:matrix.orgmesajor [zzamboni(telegram)] Also cleaned up the code a bit, this was one of my first Elvish modules so parts of it were a bit wonky :) 17:05:24
@mesajor:matrix.orgmesajor [Ian(telegram)] I know that feeling. 17:06:25
@mesajor:matrix.orgmesajor [Ian(telegram)] Just did a bit of that at work this past week, lots of cursing the idiot who wrote the original code šŸ˜‚. 17:07:08
@mesajor:matrix.orgmesajor [zzamboni(telegram)] šŸ˜‚ 17:07:17
@mesajor:matrix.orgmesajor [xiaqqaix(telegram)] I found the repro condition for b.elv.sh/1202. Itā€™sā€¦ quite interesting. 22:06:26
@mesajor:matrix.orgmesajor [krader1961(gitter)] FWIW, I donā€™t use -source; not even indirectly since I donā€™t use zzamboniā€™s alias module. So itā€™s not obvious the scenario you outlined in your update accounts for the panic Iā€™m seeing. 22:12:54
@mesajor:matrix.orgmesajor [xiaqqaix(telegram)] @krader1961 do you mind filing another issue for the panic you saw? judging from the stack trace, itā€™s almost certainty a different issue 22:15:45
@mesajor:matrix.orgmesajor [krader1961(gitter)] Sure. On the other hand perhaps what you found does account for the panic Iā€™m seeing. I do use @zzamboniā€™s ā€œutilā€ module for its electric-delimiters function. And that module uses -source. Yet if I remove that from my rc.elv I still see a panic. Iā€™ll try to narrow it down to a small reproduction and open an issue if itā€™s clear itā€™s not related to -source. 22:21:46
@mesajor:matrix.orgmesajor [xiaqqaix(telegram)] sounds good, thanks! 22:22:35
28 Dec 2020
@mesajor:matrix.orgmesajor [krader1961(gitter)] The panic Iā€™m seeing from recent changes to the namespace code is related, but not due, to the -source command. See https://github.com/elves/elvish/issues/1204. Specifically, the panic Iā€™m seeing is due to the conditional import trick popularized by @hhanche; e.g., nop (and $platform:is-unix (use unix)). 03:57:21
@mesajor:matrix.orgmesajor [krader1961(gitter)] While this is technically a bug in the implementation it illustrates why using ā€œtricksā€ of that nature tend to be problematic. 03:58:38
29 Dec 2020
@mesajor:matrix.orgmesajor [xiaqqaix(telegram)] thanks for filing this bug. iā€™ll try to fix it before 2021 :) 14:24:29
@mesajor:matrix.orgmesajor [xiaqqaix(telegram)] isnā€™t raku (formerly perl6) lovely: 14:26:01
@mesajor:matrix.orgmesajor [xiaqqaix(telegram)] ~> perl6
To exit type ā€˜exitā€™ or ā€˜^Dā€™

my $name = ā€˜file1.txtā€™
file1.txt
++$name
file2.txt

14:26:04
@mesajor:matrix.orgmesajor [xiaqqaix(telegram)] i've been reading ā€œusing rakuā€ btw: https://andrewshitov.com/using-raku/ 14:26:57
@xiaq:matrix.org@xiaq:matrix.org changed the room topic to "Deprecated Elvish chatroom, use the native Gitter bridge instead: #elves_elvish:gitter.im" from "Elvish user group https://elv.sh/".14:36:09
@xiaq:matrix.org@xiaq:matrix.orgThis room is no longer synchronized with other Elvish chatrooms. Use #elves_elvish:gitter.im instead14:36:43
30 Dec 2020
@josh:klar.sh@josh:klar.sh joined the room.05:07:55
@josh:klar.sh@josh:klar.sh left the room.05:08:22
@notramo:grin.hu@notramo:grin.hu joined the room.14:48:36

Show newer messages


Back to Room ListRoom Version: 5