Michał Górny (he/they) ∞🙀🚂🐧 on Nostr: #RustLang is the perfect language for the "move fast, break things" era. No, I'm not ...
#RustLang is the perfect language for the "move fast, break things" era. No, I'm not implying it encourages you to break stuff. All I'm saying is that all these modern languages are specifically designed for that mindset. They optimize for corporate greed — nicely dressed as "valuing developer's time".
Developers aren't supposed to slow down and think things over. They should finish feature after feature, project after project, profit after profit. When things break, that's bad for profit. However, putting an effort to prevent things from breaking is not cost-effective.
People love to point out memory safety problems with C. However, there are two other important problems affecting C libraries — ABI and API stability. An uncontrolled ABI breakage means that existing programs suddenly breaks. An uncontrolled API breakage means that programs don't build anymore. Combine both and you're in a tight fit.
There are reasonably good solutions to both these problems. However, they require conscious effort, they require thinking — and that is costly. There are also cheap workarounds. If you link libraries statically, you don't need to worry about their ABI changes. If you vendor dependencies, you don't even need to worry about API changes. That's much cheaper for the company — though in reality, it just moves the burden down the line, to distribution developers and users, who end up fighting old, broken or even vulnerable vendored dependencies.
The problem with Rust and #Cargo is that it embraces these hacks into glorified 20M+ executables. Everything is linked statically, everything is vendored. You can move fast without actually breaking things — at least for the significant majority of users. To the minority, you always have the usual excuse — "we're sorry, we're just volunteers, we can't spend more energy on this, and you should get newer hardware anyway". Not that doing things better wouldn't benefit all users.
#Gentoo
Published at
2024-03-05 20:04:14Event JSON
{
"id": "93bf25279b904ea488622d40740a184d1d3fc44cabc32455b3961477b4ee0376",
"pubkey": "1965bb696fe873e595ad4b29318e173f83fe08cbc8452070b186176b707c9bdc",
"created_at": 1709669054,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"t",
"cargo"
],
[
"t",
"gentoo"
],
[
"proxy",
"https://social.treehouse.systems/users/mgorny/statuses/112044871179518134",
"activitypub"
]
],
"content": "#RustLang is the perfect language for the \"move fast, break things\" era. No, I'm not implying it encourages you to break stuff. All I'm saying is that all these modern languages are specifically designed for that mindset. They optimize for corporate greed — nicely dressed as \"valuing developer's time\".\n\nDevelopers aren't supposed to slow down and think things over. They should finish feature after feature, project after project, profit after profit. When things break, that's bad for profit. However, putting an effort to prevent things from breaking is not cost-effective.\n\nPeople love to point out memory safety problems with C. However, there are two other important problems affecting C libraries — ABI and API stability. An uncontrolled ABI breakage means that existing programs suddenly breaks. An uncontrolled API breakage means that programs don't build anymore. Combine both and you're in a tight fit.\n\nThere are reasonably good solutions to both these problems. However, they require conscious effort, they require thinking — and that is costly. There are also cheap workarounds. If you link libraries statically, you don't need to worry about their ABI changes. If you vendor dependencies, you don't even need to worry about API changes. That's much cheaper for the company — though in reality, it just moves the burden down the line, to distribution developers and users, who end up fighting old, broken or even vulnerable vendored dependencies.\n\nThe problem with Rust and #Cargo is that it embraces these hacks into glorified 20M+ executables. Everything is linked statically, everything is vendored. You can move fast without actually breaking things — at least for the significant majority of users. To the minority, you always have the usual excuse — \"we're sorry, we're just volunteers, we can't spend more energy on this, and you should get newer hardware anyway\". Not that doing things better wouldn't benefit all users.\n\n#Gentoo",
"sig": "e226254e278309e0a35208c4bee62f3e815457951901a7eddbb6c180e8cfb4080a5ddee82266c1d715e896758c911f0d57f2c68f6128230b92229fa71ae16b6e"
}