News for hackers. Stuff that matters.
Re:qsort.h – Quicksort as a C macro (2019) by taneq on Sunday May 07, 2023 @12:32AM (#35847955)
Maybe they don't want to move to a more advanced language, maybe they want to mess around with the C preprocessor. :)
Re:qsort.h – Quicksort as a C macro (2019) by WalterBright on Sunday May 07, 2023 @12:43AM (#35848002)
If you want to show cleverness, by all means!

I still use some primitive tools, and know there are better alternatives, but I'm not going to defend sticking with them.

BTW, I did win the Obfuscated C contest one year, and (naturally) used the preprocessor:

https://www.ioccc.org/1986/bright/bright.c

Re:qsort.h – Quicksort as a C macro (2019) by rootw0rm on Sunday May 07, 2023 @01:51AM (#35848308)
just last night i was thinking how cool it would be for an IDE plugin that expands rust macros for easier grokking. now i need one for your #defines, lol
Re:qsort.h – Quicksort as a C macro (2019) by gdprrrr on Sunday May 07, 2023 @02:47AM (#35848585)
cargo expand?
Re:qsort.h – Quicksort as a C macro (2019) by taneq on Monday May 08, 2023 @11:21PM (#35869831)
Must... resist... being... nerdsniped... oh no too late, now I have to figure out what it's doing without looking it up. :D I've never entered the OCCC but I've read a bunch of past entries and always wanted to enter someday.