Ask HN: Why is Google in love with purposely-impaired languages like Go, Dart?
On the languages side Go and Dart seem like the epitome of "Blub languages" in PG's essay lingo. Even modern Java seems flexible and featurefull in comparison with them. Compared to Go, Rust looks like Common Lisp looked like to a Java programmer of old. Compared to Dart, Kotlin and Swift look like Smalltalk probably looked to a 90's C++ programmer...
Where is this attitude coming from? Is Google's philosophy that most programmers, including their own, are either stupid and/or irresponsible and shouldn't be trusted with powerful tools that can increase their productivity when used right? I mean, software is their business, they're not churning ecommerce infrastructure CRUDhorrhea... they should be capable of leveraging powerful programming language features to massively increase developer productivity, right?
[+] [-] dexterlagan|6 years ago|reply
[+] [-] nnq|6 years ago|reply
All the respect for Rob Pike, but that makes no sense: learning ANY new language should be even easier for someone fresh out of school, and I imagine they set a high enough hiring bar to be sure that new engineers can adapt to whatever they are thrown at. All programming languages are easy to learn...
The harder part is figuring out process that are repeatable and result in high velocity and code quality, but I'd imagine that this is what an organization like Google is good at!
[+] [-] wtetzner|6 years ago|reply
Wow, way to put down your engineers. What is the famously high hiring bar at Google for?
[+] [-] LocalMan|6 years ago|reply
I once had the misfortune of changing from an Algol environment to a Cobol environment. After a year I'd gotten over my revulsion and became fluent and productive in Cobol.
It's like saying English has lots of irrationalities to it, which is true. But if it's your mother tongue and you're fluent that doesn't matter.
Go is not impaired. Go involves a set of sophisticated choices for software engineering, not for computer science research. If you're going to have many millions of lines of code and some shifting around in your staff, you don't want tricky code that takes a long time to figure out, or that obscures functionality, or that obscures bugs.
[+] [-] codegladiator|6 years ago|reply
I prefer Go over other languages. I like the part that there is no cleverness around it.
But why are you bothered about what google thinks of its engineers ? You can write everything in Haskell, why stop at Java/Rust ?
[+] [-] nnq|6 years ago|reply
2. Google "sets the intellectual trend/fashion", whether we like it or not, their attitude get copied... there was quite a bit of experimentation in the 1995 - 2015 decades, we saw stuff like real macros coming to mainstream programming languages (Julia, Scala, Rust), we saw advanced type systems become liked and used (see even TypeScript which basically supports "poor man's ADTs" now), but the "new wave" which seems inspired by G's language design trends seems to be all about throwing it all away, we're scared s'less of complexity and unmaintainabilty that using anything more that string substitutions for code generation when we really-really-really have to seems heresy.
The trends seems to have creeped even into languages like Haskell where nobody's talking about template Haskell anymore and everyone or adding dependent types or whatever, it's all about focusing on package managers and limiting new features and building more tools... Python has a growth spur with 3.0 - 3.6 but that's also freezing in a way, no bold new additions coming without endless discussions.
[+] [-] jimsmart|6 years ago|reply
Here you are claiming that leveraging powerful language features can massively increase developer productivity, but you offer no evidence to back up that claim.
[+] [-] nnq|6 years ago|reply
- powerful features -> more general abstractions -> more code reuse -> less new code written -> less bugs
It's not that simple, but it's good to start with the core assumption that less code -> less bugs and what more powerful languages offer you is ability to solve problems with less code while at the same time keeping that more compact code readable.
Or maybe big software-focused companies like G don't see "# of LOC" as a liability and don't try to reduce it while at the same time as trying to do more? Is this the core difference between a large corporation and a small startup that tries to do more with less?
[+] [-] sullyj3|6 years ago|reply
[+] [-] dexterlagan|6 years ago|reply
[+] [-] frou_dh|6 years ago|reply
[+] [-] nnq|6 years ago|reply
If a powerful language allows you do the same thing with 10x less code, you'll also have up to 10x fewer bugs (in practice maybe only 2x fewer, but that would still be huge).
[+] [-] karmakaze|6 years ago|reply
[+] [-] jart|6 years ago|reply
[+] [-] nnq|6 years ago|reply
...could you elaborate what you mean by that?
[+] [-] rcaught|6 years ago|reply
[+] [-] nnq|6 years ago|reply
[+] [-] airbreather|6 years ago|reply
For example - https://en.wikipedia.org/wiki/One_instruction_set_computer.
[+] [-] Jweb_Guru|6 years ago|reply
[+] [-] jonathanstrange|6 years ago|reply
[+] [-] sudeepj|6 years ago|reply
[+] [-] tomlock|6 years ago|reply
So to me it feels like they did something right.
I guess maybe there just sometimes being a way to do something right only one way, makes searching for solutions, easier. I contrast that with another language I love, Ruby, where it can sometimes feel like there are so many ways to do things that the language isn't opinionated at all.
[+] [-] antisemiotic|6 years ago|reply
Python is notoriously bad at both these things though, so it's not a very high bar. I think a more meaningful comparison would be to languages like Clojure, Erlang/Elixir, Rust, or any other that has concurrency as one of the top priories, but makes different tradeoffs.