1,005 karma · joined Mar 31, 2020 (6y ago) · 374 submissions
comment 4y ago · link · parent
All three of these things are subjective.
> in so many conversations I've had with Go critics esp over generics, the conversation eventually terminates at some variation of "Go forces me to think about programming differently than I'm used to"
At some sufficiently large number of people, you need to acknowledge that how they think isn't wrong, the language is.
comment 4y ago · link · parent
Performance only drives one of the two alternatives.
> Agreed, but it's foolish to frame language debates purely around the presence or absence of useful features. Many languages have too many features including a great many misfeatures which degrades the overall experience, and your analysis doesn't account for that. Further, there are costs associated with things like generics which your analysis similarly ignores. Further still, it ignores things like tooling, ecosystem, learning curve, etc. This is how you end up with C++.
This isn't an analysis. It's a counterpoint to a single individual on a social media website.
Go's ecosystem and learning curve are great. The best thing I can possibly say about its tooling is "it's better than C and C++". Seriously, how many dependency management paradigms have we gone through so far, and the best thing we can come up with is `go mod`?
comment 4y ago · link · parent
Generics also aren't the only useful feature that Go lacks (or, as of today, lacked).
comment 4y ago · link · parent
Error handling is a big one for me. This could be generalized to lack of expressivity; it takes an unreasonably large amount of code to accomplish anything. Generics will help with the general case, but they don't do anything for error handling.
Lack of sum types, as you already mention, are another.
Go really likes forcing you to either write a ton of tests or discover your errors in production. More expressive features (sum types, etc) effectively mean that compiler provides those tests to me for free. _Can_ I write them myself? Yes, obviously, but that brings us right back to having to write way too much code to accomplish anything.
Farther down the list is escape analysis. Rather than just giving me control over whether allocation happens inline or indirect, if I have some performance critical submodule, I have to sit there and box with escape analysis; this is not only time consuming, but extremely brittle.
https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-... is a good read for fairly specific issues that _mostly_ haven't directly impacted me, but on the rare occasion they have, they've been infuriating.
comment 4y ago · link · parent
This was a solid ten years ago. I don't think the problem was ever solved in the general case. We wrote them a script that support would manually run and shift all the analytics forward or back by an hour.
comment 4y ago · link · parent
Nuclear works when you want it to. Solar and wind work when they want to. That's a very big difference when you're producing the electricity people rely on to live their daily lives.
comment 4y ago · link · parent
Other forms of generation that require GHG-emitting backup generation.
comment 4y ago · link · parent
comment 4y ago · link · parent
Still not enough to be even remotely practical as a generation method, but substantially more than 100-150W
comment 4y ago · link · parent
That's cool, I guess, but also not particularly interesting.
comment 4y ago · link · parent
If the data they need shared access to is immutable (for example, the static files served by a webserver) I would much sooner bake them into a versioned container image and share that. It'll perform better by virtue of being on unshared local storage and eliminate the single point of failure/bottleneck.
Another option for eliminating the single point of failure and performance bottleneck is a distributed filesystem like cephfs or glusterfs.
comment 4y ago · link · parent
Blog posts about them are often interesting simply because you get a new perspective on the tools you use frequently.
I'm talking about the types of things where a rewrite is done not for the purpose of learning, or because a specific set of issues is identified in the existing project, etc...but because "this language is better so I'm rewriting X in it"
comment 4y ago · link · parent
Then after some management changes, everything that made it great melted away and we were left with a job that underpays, has poor work-life balance, doesn't appreciate employee time/contributions, etc. It was still a pretty difficult decision to leave; management issues notwithstanding, the group of coworkers I actually worked with every day were - and still are - really great.
comment 4y ago · link · parent
In particular, the referenced AWS article is typically called out as a bad "study"
Maybe it was different a few years ago, but this is what I've seen since late 2019ish.
comment 4y ago · link · parent
The storage savings are relevant when I consider cached audio on my phone, but... I'm not really sure how relevant.
comment 4y ago · link · parent
Turns out I strongly prefer explicit errors over exceptions, I just also strongly prefer error handling not consuming 75% of the lines on my screen.
And in the cases where I really do prefer a panic, there's always `.unwrap()`
comment 4y ago · link · parent
comment 4y ago · link · parent
I would just decline the offer without explanation. If pressed for an explanation, be honest but diplomatic about it.
comment 4y ago · link · parent
And I can buy a lot of $17 wired earbuds for the price of one set of AirPods. At my rate of failure, literally a lifetime supply.
comment 4y ago · link · parent
I don't know about Facebook-driven efforts specifically offhand, but I recall attending a talk at LinuxCon 2015 _specifically_ about optimizing the network stack. Given by a Red Hat employee, IIRC.