News for hackers. Stuff that matters.
Re:Curl is C (2017) by scoutt on Thursday February 18, 2021 @12:16PM (#26182559)
> undefined behavior in C compilers

My unpopular opinion is that UB fear is greatly exaggerated these days, especially by folks who want to capture developers for their languages. Somehow, they bring it up every time they can. Is like every time you want to jump into your car, I jump from behind a bush just to tell you "remember car accidents!".

I write C for a living, for the past ~20 years (mostly for embedded/kernel/drivers). I can't recall my last UB problem (if any). It's true. Though, I did find myself reading the ASM output just to discover that some instruction was omitted or does weird things (compiler bug).

Don't forget that the world runs on C.

Re:Curl is C (2017) by Jweb_Guru on Friday February 19, 2021 @06:58PM (#26199693)
Unless you are better than every other C programmer on the planet, I am quite confident I could easily find UB in your code as long as you worked with a team larger than a couple of people. If not in the stuff you wrote (though that's unlikely), then in other people's code that called yours without respecting invariants.
Re:Curl is C (2017) by whatshisface on Thursday February 18, 2021 @02:37PM (#26184429)
The world also runs on fossil fuels, politics and processed foods. ;)
Re:Curl is C (2017) by gens on Friday February 19, 2021 @03:35AM (#26190900)
We can lower the fossil fuel consumption by writing more efficient software, in a more efficient programming language like C. It gets less processed as well. Don't have an idea for politics.
Re:Curl is C (2017) by pif on Thursday February 18, 2021 @12:53PM (#26183108)
Just for the record, you share you unpopular opinion with me.
Re:Curl is C (2017) by foobiekr on Thursday February 18, 2021 @04:27PM (#26185845)
100% agree.