News for hackers. Stuff that matters.
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by phh on Tuesday May 27, 2025 @03:43AM (#44104765)
Which implies you get pretty much 3M syscall per second. Which is a good order magnitude to know
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by nasretdinov on Tuesday May 27, 2025 @04:53AM (#44105119)
I don't believe puts is performing unbuffered I/O though. It's a libc function, not a direct syscall. Correct me if I'm wrong of course
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by lieks on Tuesday May 27, 2025 @07:38AM (#44105917)
The write(2) libc function is just a C wrapper for the syscall. It's the functions from stdio.h that are buffered.
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by nasretdinov on Tuesday May 27, 2025 @08:26AM (#44106261)
Ah ok sorry I got confused by the comments nesting level. I thought we were talking about the OpenBSD's version which uses puts