Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
MasterDuke a -1 for one of the options means to leave it unchanged. i figured that'd be part of the rakudo implementation. i.e., `method chown(IO::Path:D: Int() $uid = -1, Int() $guid = -1) { nqp::chown(self, $uid, $guid) }` 00:00
and just as many files would have to change to add an op...
japhb Yeah, I know (about the files for adding an op) ... I'm just griping about reviewing machine generated diffs, which is a fool's game. 00:03
MasterDuke ha
japhb We could probably do something a little more Raku-ish for the interface than using a C-style magic value, but I'm glad to hear libuv supports the semantics at least. 00:05
(And certainly that's fine for the NQP interface, because NQP is allowed to be a halfway language.)
lizmat nine: re Well, /dev/tty is only correct if STDIN was connected to the terminal before. If it was a pipe or a file, you'd still be off. The correct way is to dup() the file descriptor before closing it and later dup2() it back to STDIN 11:33
how would one do that in Raku or nqp ?
nine I don't think MoarVM supports that directly, so it'd have to be NativeCall 16:41
lizmat so is the PIO not some libuv construct that you can't just dup ? 17:20
lizmat iow, shouldn't it be supported by libuv? 17:21
I guess not: github.com/libuv/libuv/issues/3448
jnthn For synchronous I/O at least, libuv isn't involved 21:28