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