Remix.run Logo
▲ nice_byte 6 hours ago

I've tried doing this for a few years and it just sucks ass. Just use c++ and templates if you need proper generic data structures. C is a defective language.

▲uecker 4 hours ago | parent | next [-]

I start to like my experimental macro containers: https://codeberg.org/uecker/noplate/

Examples: https://godbolt.org/z/hecqs78xs https://godbolt.org/z/YnrcjKrEn

Not perfect, but also not really inferior to C++ in my opinion.

▲loeg 4 hours ago | parent | prev | next [-]

Or, in 2026, Rust (or Zig, I don't care).

▲0xbadcafebee 4 hours ago | parent | prev [-]

Can't be all that defective if it underpins most of the technology in the world

▲sophacles 3 hours ago | parent | next [-]

It absolutely can. See for example: lead.

▲jeltz 2 hours ago | parent [-]

We really should lock up the inventor of lead.

▲esafak 3 hours ago | parent | prev [-]

When has that ever stopped a shit language? Just let it die already.

▲0xbadcafebee 21 minutes ago | parent [-]

Never gonna happen. As soon as you kill it off, someone's going to realize they need a very minimal fast "unsafe" language for something, and reinvent C, probably poorly