News for hackers. Stuff that matters.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by rowanG077 on Friday June 03, 2022 @08:29AM (#31607324)
> Having a complex programming language which limits you and controls how you use it does not sound appealing to those who need a feature done, fast.

This sounds as insane to me as a carpenter who works with power tools saying. "Having safety measures which limits you and controls how you you have to do certain things does not sound appealing to those who need a house build, fast."

Re:Rust Is Hard, Or: The Misery of Mainstream Programming by LaGrange on Friday June 03, 2022 @09:17AM (#31607810)
I mean, while my understanding of the construction market is rudimentary at best - isn't it actually the case that construction often _does_ end up rushed, or compromised at design level, exactly because of that?

It's not good, and when a bridge falls over the results are a bit more... dramatic and undeniable - but it's not really my impression that other branches of engineering are particularly immune from corner-cutting and deliberate under-estimation.

Edit: though I'll say, just having someone "at random" say they expect better in their industry is an anecdotal evidence that it is at least a bit better. Also, you get to work outside. Truly, grass is greener on the other side of the road.

Re:Rust Is Hard, Or: The Misery of Mainstream Programming by WuxiFingerHold on Friday June 03, 2022 @01:20PM (#31611115)
Or use a GC language with a great typesystem and have both safety and fast efficient development cycles.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by crabbygrabby on Friday June 03, 2022 @02:56PM (#31612250)
That is an option, or if you don't want to deal with a GC because it's eating 70% of your clock cycles under load you can use rust get performance gains and still be writing safe code...
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by adgjlsfhk1 on Saturday June 04, 2022 @01:39AM (#31617345)
if your GC eats 70% is your clock cycles, your language has a broken GC. in modern Java/C#, GC time is rarely more than 10%
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by nimrody on Sunday June 05, 2022 @02:54PM (#31633807)
To get to a low GC overhead in Java (and perhaps other languages too) you have to pay with an increase in memory consumption. Sometimes as much as 100% additional RAM to avoid frequent full GC scans.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by adgjlsfhk1 on Monday June 06, 2022 @01:19AM (#31637431)
That's true, but malloc/free based systems also have a relatively high memory overhead due to fragmentation and programmers being worse at inserting frees than the GC. It's not at all clear that the C/C++ model of memory management has lower than 100% overhead for long running programs.
Re:Rust Is Hard, Or: The Misery of Mainstream Programming by ssokolow on Tuesday June 07, 2022 @10:49PM (#31662642)
> but malloc/free based systems also have a relatively high memory overhead due to fragmentation

In case you haven't seen it, there's been some interesting progress on that front:

https://www.youtube.com/watch?v=c1UBJbfR-H0