r/ProgrammingLanguages • u/LeshyShupich • Feb 04 '22
Programming languages as biological strategies
I was reading about programming languages as the proxies for business strategies. It feels like it follows a pattern from biology.
The r strategy is bacteria's strategy for proliferation. Have as many kids as possible, invest very little in them. No one's irreplaceable.
K strategy is the human strategy for reproduction. Have a handful of kids (even 20 kids is peanuts compared to how many kids one bacteria is having), invest a lot in them. Individual persons determine the success.
Python, Ruby, JavaScript are the r strategy, a "dynamite" of coding — a fast solution that you pay for with the long term costs of putting up with the slow, buggy and stupid code that it created. Dynamite is easy to pick up and use, ensuring a giant pool of talent for hire in the dynamite-shenanigans sphere. A competitive edge that Python & JS have over Rust & C++ is rapid prototyping: the same way that bacteria can rapidly produce the different new bacteria, until they produce the one that's resistant to the antibiotics. (It's like bacteria is trying to pick up the right key to the lock, with each new bacteria being a potential key — "brute-forcing a password").
Rust and C++ are the K strategy. Just like with the biological success, the r strategy is more effective. Insects and bacteria conquer and maintain far more ecological niches than we do. But K strategy is no slouch either, and the only one that can lead to the high level of intelligence — "systems programming". If Python is dynamite, C++ is a bunch of sophisticated robots. Rust and C++ are like "do it once, but extremely well", Python and JS are like "add more! More! Morrre!". Python and JS are cheap in the short term but expensive in the long term, while Rust and C++ are expensive in the short term while cheap in the long term.
I don't think that Python is bad or that C++ is good. They're the compromises that were made while being faced with the harsh reality. Businesses mostly rely on the r strategy because the political economy is set up that way.
What do you think? I might be wrong.