Modern C [pdf]
51–60 of 396 posts
Re: Modern C [pdf]
#52Re: Modern C [pdf]
#53Another day for the HN crowd to express their distaste for C :)
Re: Modern C [pdf]
#54Re: Modern C [pdf]
#55Re: Modern C [pdf]
#56Another day for the HN crowd to express their distaste for C :)
Re: Modern C [pdf]
#57Another day for the HN crowd to express their distaste for C :)
Yeah, again and again. it's like blaming a hammer for the potential of breaking your finger when you use it, and proposing the use of a spoon, instead.
Re: Modern C [pdf]
#58Earlier quoted context omitted.
> Would anyone choose C for a new systems project with no legacy baggage or dependencies, in a world with Rust and Go? I imagine it is easier to hire C programmers than Rust programmers, at the moment, especially in fields like embedded development.
Also Rust doesn't support compiling to certain architectures like the Xtensa ISA used in the popular ESP8266 and ESP32 wi-fi chips.
Last time I checked the compiler didn't support bare-metal and resource constrained builds without using crazy hacks. Although the situation may have improved since then.
Re: Modern C [pdf]
#59I've had no luck learning a language on its own. But I've had a lot of luck learning languages as part of something bigger. Like C# via. Unity, Swift via. 2D game dev in XCode. Any suggestions on what I should apply C to as a way to learn it?
POSIX.
I learned C by implementing my own versions of popular unix commands, starting with echo then cat and so on...
Re: Modern C [pdf]
#60I did find it useful to apply rules like only use uint32_t, double & bool as primitives.
My main wish is that it would be possible to opt into automatic const & restrict, as a compiler flag or pragma, so that something like
https://github.com/maedoc/sddekit/blob/master/doc/C.md#alias...
would be easier to do.