News for hackers. Stuff that matters.
Re:C and C++ Prioritize Performance over Correctness by memefrog on Friday August 18, 2023 @08:01PM (#37183827)
>I mmaped a `/dev/uio` from Python this morning.

You might want to go and have a look at the implementation of 'mmap' in CPython. Here's a clue: it's in the name 'CPython'.

Re:C and C++ Prioritize Performance over Correctness by kaba0 on Saturday August 19, 2023 @02:04AM (#37186006)
As it is for an OS written in C, sure it does have some helper C wrappers.

It is still “syscall”s at the end of the day, and many programming languages can output assembly just fine.

Re:C and C++ Prioritize Performance over Correctness by packetlost on Saturday August 19, 2023 @12:10PM (#37190206)
There's nothing special about C that makes it possible to use mmap. Just because CPython happens to be implemented in C doesn't mean anything in this context. I could do the same thing in Go or Hare, neither of which have any C in them and be able to do the same thing.