Skip to content(if available)orjump to list(if available)

3 comments

·September 21, 2025

qsort

Ok, real talk. The implementation is very basic but it's fine, there isn't anything that's very wrong about it at a cursory glance. The choice of having "method style" calls as function pointers is extremely baffling though: you still have to pass a pointer to the vector explicitly (it's C, you have no automatic this), and you are allocating a pointer on the stack for each of the methods of this "class" as though they were virtual methods. What do we gain from this?

Retr0id

> Truly generic in C: type erasure via elem_size — no macros, no code generation, no void* arithmetic in user code.

Did an LLM write this?

chrsig

I'm coming to expect that most things you see on the internet are written by an LLM. I can't wait for all the de-LLM denoiser products that're sure to come out combating llm spam.