[00:37] *** human-blip left
[00:39] *** human-blip joined
[00:40] <SmokeMachine> I've been playing with the idea of a TUI rest tester (ResTUI): https://usercontent.irccloud-cdn.com/file/ZHCpvgTP/CleanShot%202026-06-04%20at%2001.31.17.gif

[00:40] *** topnep left
[00:40] *** topnep joined
[00:44] <SmokeMachine> at some point I'll replace a .json file with a .http/.rest file, as in https://neovim.getkulala.net/docs/usage/http-file-spec/

[00:51] <japhb> SmokeMachine: Looks like Selkie for the terminal engine?

[01:20] *** hulk joined
[01:20] *** kylese left
[01:26] <SmokeMachine> japhb: yes, that’s Selkie::UI…

[02:15] *** hulk left
[02:15] *** kylese joined
[03:26] *** vasko4535586 left
[03:26] *** vasko4535586 joined
[03:43] *** lichtkind__ joined
[03:46] *** lichtkind_ left
[04:40] *** dg left
[04:41] *** dg joined
[05:07] <Voldenet> a bit late to the party I am, but on linux you can simply do

[05:07] <Voldenet> m: .say for "/dev/stdin".IO.lines;

[05:07] <camelia> rakudo-moar f7576048d: OUTPUT: «»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
[05:15] <Voldenet> but it's extremely hairy

[05:15] <Voldenet> 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

[05:15] <Voldenet> m: my $x = open :r :bin, "/dev/stdin"; $*IN.close; say $x.native-descriptor; $x.read().say; .say for lines

[05:15] <camelia> rakudo-moar f7576048d: OUTPUT: «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…»

[05:16] <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> rakudo-moar f7576048d: OUTPUT: «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…»

[05:16] <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

[05:16] <camelia> rakudo-moar f7576048d: OUTPUT: «Failed to open file /dev/stdin: No such file or directory␤  in block <unit> at <tmp> line 1␤␤»

[05:22] <Voldenet> ah, it's a symlink to /proc/self/fd/0 so I bet it's not even guaranteed to work on linux

[05:24] <Voldenet> it's very useful though, because it's a regular path, unlike '-'

[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
[07:50] *** lizmat joined
[07:51] *** dakkar joined
[08:03] *** lichtkind__ left
[08:27] *** Inline joined
[09:00] *** shareable6 left
[09:00] *** topnep left
[09:00] *** topnep joined
[09:03] *** shareable6 joined
[09:42] *** librasteve_ joined
