News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance by anonymoushn on Tuesday February 28, 2023 @04:31AM (#34967400)
I've used open(2) and the io_uring openat :)

I use generic readers and writers every day, but they don't have any runtime dispatch. The question was "Why would you do anything except vtables and runtime dispatch?" One answer is that my code that uses generic readers and writers and gets monomorphized gets to also be generic over async-ness.

Re:“Clean” Code, Horrible Performance by vore on Tuesday February 28, 2023 @04:33AM (#34967415)
There you go, actually: you can have your clean code cake and eat it too if you have the right language abstractions (like parametric polymorphism).
Re:“Clean” Code, Horrible Performance by saagarjha on Tuesday February 28, 2023 @04:33AM (#34967411)
Except in the kernel, of course.