🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:37 human-blip left 00:39 human-blip joined
SmokeMachine I've been playing with the idea of a TUI rest tester (ResTUI): usercontent.irccloud-cdn.com/file/....31.17.gif 00:40
00:40 topnep left, topnep joined
SmokeMachine at some point I'll replace a .json file with a .http/.rest file, as in neovim.getkulala.net/docs/usage/http-file-spec/ 00:44
japhb SmokeMachine: Looks like Selkie for the terminal engine? 00:51
01:20 hulk joined, kylese left
SmokeMachine japhb: yes, that’s Selkie::UI… 01:26
02:15 hulk left, kylese joined 03:26 vasko4535586 left, vasko4535586 joined 03:43 lichtkind__ joined 03:46 lichtkind_ left 04:40 dg left 04:41 dg joined
Voldenet a bit late to the party I am, but on linux you can simply do 05:07
m: .say for "/dev/stdin".IO.lines;
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Am Mittelpfeiler.«
»Ich lösche die Flamm.«
»Ich mit«

»Ich komme vom Norden her.«
»Und ich vom Süden.…
05:12 acidsys left 05:14 acidsys joined
Voldenet but it's extremely hairy 05:15
my $x = open :r :bin, "/dev/stdin"; $*IN.close; say $x.native-descriptor; $x.read().say; .say for lines # native descriptor is a separate fd and you can close stdin
m: my $x = open :r :bin, "/dev/stdin"; $*IN.close; say $x.native-descriptor; $x.read().say; .say for lines
camelia 3
Cannot do 'lines' on a closed handle
in block <unit> at <tmp> line 1

Buf[uint8]:0x<C2 BB 57 61 6E 6E 20 74 72 65 66 66 65 6E 20 77 69 72 20 64 72 65 69 20 77 69 65 64 65 72 20 7A 75 73 61 6D 6D 3F C2 AB 0A 20 20 20 C2 BB 55 6D 20 64 69 65…
Voldenet m: my $x = open :r :bin, "/dev/stdin"; $*IN.close; say $x.native-descriptor; .say while $_ = $x.read() # the "new stdin works that way" but order of execution is important 05:16
camelia 3
Buf[uint8]:0x<C2 BB 57 61 6E 6E 20 74 72 65 66 66 65 6E 20 77 69 72 20 64 72 65 69 20 77 69 65 64 65 72 20 7A 75 73 61 6D 6D 3F C2 AB 0A 20 20 20 C2 BB 55 6D 20 64 69 65 20 73 69 65 62 65 6E 74 65 20 53 74 75 6E 64 E2 80 98 2C 20 61 6D 20 42 72 C3…
Voldenet m: $*IN.close; my $x = open :r :bin, "/dev/stdin"; say $x.native-descriptor; .say while $_ = $x.read() # because one stdin has to be open
camelia Failed to open file /dev/stdin: No such file or directory
in block <unit> at <tmp> line 1
Voldenet ah, it's a symlink to /proc/self/fd/0 so I bet it's not even guaranteed to work on linux 05:22
it's very useful though, because it's a regular path, unlike '-' 05:24
05:37 Sgeo left 05:55 vrurg_ left 05:59 Inline left 06:10 vrurg joined 07:06 maylay left 07:09 maylay joined 07:50 lizmat_ left, lizmat joined 07:51 dakkar joined 08:03 lichtkind__ left 08:27 Inline joined 09:00 shareable6 left, topnep left, topnep joined 09:03 shareable6 joined 09:42 librasteve_ joined 11:04 topnep left 11:07 topnep joined 12:50 vrurg left 12:51 vrurg joined 13:10 topnep left 13:11 topnep joined 13:35 lizmat left 13:44 lizmat joined
librasteve_ crag-of-the-day: `r 1e100; 1e122;` #1e122 is the entropy of our deSitter horizon btw 15:58
16:29 dakkar left 16:50 jjido joined 17:01 vrurg_ joined 17:03 vrurg left 17:28 jjido left 17:53 jjido joined 18:02 belluzj joined 18:16 Guest99 joined
Guest99 not sure where to bring this up, but I'm not able to connect to rakudo.org: ERR_SSL_PROTOCOL_ERROR 18:18
lizmat yeah... rakudo.org is being transferred to another registrar... 18:23
it may well be offline for 24hours or so :-(
18:34 jjido left
Guest99 ah, thank you for the information 18:39
18:39 Sgeo joined 18:44 Guest99 left 19:39 topnep_ joined 19:43 topnep left 20:29 jjido joined 20:38 belluzj left 22:11 Inline left 23:09 jjido left