News for hackers. Stuff that matters.
Re:C’s Biggest Mistake (2009) by mhh__ on Saturday September 12, 2020 @05:49PM (#24456149)
That's because of sunk-cost rather than design.

Thanks to LLVM and GCC you can happily write embedded code in a higher level language, but the vendors don't bother supporting it because a lot of embedded coding isn't really what we would call software (no tests etc.)

Re:C’s Biggest Mistake (2009) by snovv_crash on Sunday September 13, 2020 @06:20AM (#24459825)
Toolchains are one side, but garbage collection and big standard libraries are also a big reason. Anything with under a MB of RAM has a choice of several modern languages, but it is still basically just C, C++, Rust, Lua or MicroPython.
Re:C’s Biggest Mistake (2009) by mhh__ on Sunday September 13, 2020 @12:39PM (#24462021)
D works fine on microcontrollers.

I don't think anyone was going to write their fridge's code in Haskell anyway.

Re:C’s Biggest Mistake (2009) by unsatchmo on Saturday September 12, 2020 @07:29PM (#24456810)
The higher level languages are kind of the problem though. I need things like the ability to know the layout of my structs.
Re:C’s Biggest Mistake (2009) by mhh__ on Saturday September 12, 2020 @07:30PM (#24456829)
Rust, D, Whatever let you control the layout of your struct.
Re:C’s Biggest Mistake (2009) by ComputerGuru on Sunday September 13, 2020 @12:02AM (#24458211)
Even C#, actually!