3 ms·
If you are happy to pay the cost of a garbage collector, why C at all and not Java, C#, Go, Typescript, or any of the other fine options? They’re simpler langua
by josephg 11mo ago
If you are happy to pay the cost of a garbage collector, why C at all and not Java, C#, Go, Typescript, or any of the other fine options? They’re simpler languages with better tooling and cleaner syntax. I understand Fil-C for running legacy code. But for new code, the only reason I’d ever pick C is performance and Fil-C takes that benefit away.
- pjmlp 11mo agoFor legacy code that no one is going to rewrite, of course. For new code, I would go further than that, first of all languages can have a GC and have C like performance, it is a matter of implementation, algorithms, data structures and design application with mechanical affinity in mind. I would go for what the last OS designed by UNIX and C authors, C only gets to be used in the kernel, and some more low level drivers, everything else is managed, like Inferno and Limbo. Many fail to realise that UNIX and C authors moved on from their original creations, improving what they saw as flaws.