←back to thread

The provenance memory model for C

(gustedt.wordpress.com)
224 points HexDecOctBin | 5 comments | | HN request time: 0.419s | source
Show context
jvanderbot ◴[] No.44422693[source]
I love Rust, but I miss C. If C can be updated to make it generally socially acceptable for new projects, I'd happily go back for some decent subset of things I do. However, there's a lot of anxiety and even angst around using C in production code.
replies(6): >>44422779 #>>44423128 #>>44423371 #>>44423771 #>>44425323 #>>44433479 #
1. flohofwoe ◴[] No.44423128[source]
> to make it generally socially acceptable for new projects...

Or better yet, don't let 'social pressure' influence your choice of programming language ;)

If your workplace has a clear rule to not use memory-unsafe languages for production code that's a different matter of course. But nothing can stop you from writing C code as a hobby - C99 and later is a very enjoyable and fun language.

replies(3): >>44423284 #>>44424118 #>>44424932 #
2. xxs ◴[] No.44423284[source]
I was about the reply no amount of pressure can tell me how to program. C was totally fine for esp32
3. TimorousBestie ◴[] No.44424118[source]
> Or better yet, don't let 'social pressure' influence your choice of programming language ;)

It’s hard. Programming is a social discipline, and the more people who work in a language, the more love it gets.

replies(1): >>44425134 #
4. Y_Y ◴[] No.44424932[source]
I don't want to summon WB, but honest-to-god, D is a good middle ground here.
5. spauldo ◴[] No.44425134[source]
If you're on UNIX or working in the embedded space, C is still everywhere and gets lots of love. C tends to get lots of libraries anyway because everything can FFI to it.