Better HN
topnewbestaskshowjobs
Log inSign up

mcronce

1,005 karma · joined Mar 31, 2020 (6y ago) · 374 submissions

Submissions

comment 4y ago · link · parent

In the context of a discussion about programming languages, no, it really doesn't. Not all slopes are slippery.

comment 4y ago · link · parent

> simpler, more concrete, more standard code.

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

> You still don't "require generics", you might require more performance than idiomatic Go offers, but in this case you're also excluding everything slower than C/C++/Rust irrespective of whether or not the language supports generics.

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

Considering the alternative is often either "copy and paste a bunch of code with a type changed in a bunch of places and commit the result" or "vtable dynamic dispatch", it's perfectly fair for a person to say that they require that feature.

Generics also aren't the only useful feature that Go lacks (or, as of today, lacked).

comment 4y ago · link · parent

While true, that doesn't really change the situation for the individuals who require <missing feature>

comment 4y ago · link · parent

> So, for those of you who are willing to explore the part of this that goes beyond a simple rational analysis and criticism of language design, whats bugging you?

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

A few companies ago, we were (essentially) a TSDB marketed toward network performance in particular. We had some large telecom companies as customers. We stored all the time-series in UTC, but the analytics data shifted by an hour twice a year. This caused a whole lot of false alarms for about a week following both time changes.

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

Do you have sufficient battery capacity to power your grid through a 90th percentile worst case scenario solar outage? 95th? 99th? How long can it go without running coal and gas?

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

Without significantly more information, it doesn't really point out nuclear being uneconomical. It points out artificial roadblocks, regulatory and otherwise, imposed on nuclear generation that aren't imposed on other forms of generation.

Other forms of generation that require GHG-emitting backup generation.

comment 4y ago · link · parent

It takes a lot less time than rewriting [component] in Rust

comment 4y ago · link · parent

The most critical thing I do is to make sure I'm not the only one who knows something. Warm handoffs, writing docs, wrapping up tasks, etc. Other than that I work as normal, minus taking on new work, so as I handoff/finish tasks, the workload dwindles. Usually the last day or three I have essentially nothing left to do.

comment 4y ago · link · parent

You're absolutely right that projects like these are silly as anything more than a fun tinkering exercise, but that 100-150W number is a low estimate. I'm fairly small and out of shape and can produce 180W for an hour. In-shape amateurs can do better than that.

Still not enough to be even remotely practical as a generation method, but substantially more than 100-150W

comment 4y ago · link · parent

Or natural gas...which has disastrous methane emissions all throughout the supply chain

comment 4y ago · link · parent

HashiCorp has in general been fairly quick to adopt young/young -ish languages as they gain popularity (looking at Go and Rust) so it seems plausible - I'm curious as well

comment 4y ago · link · parent

Honestly it's pretty clear from your weirdly large number of negative comments on here that you've never taken a serious look at using the language for a real project. You just have some weird axe to grind with it.

That's cool, I guess, but also not particularly interesting.

comment 4y ago · link · parent

Assuming those instances all need shared access to that storage, you would have to build some sort of shared storage on top of the ZFS solution. This might mean NFS shares, or a relational database, etc, depending on the nature of the shared data. You still end up with a single point of failure at the storage layer, and a potential performance bottleneck.

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

Hell, I bet the number of people who have even had a lawsuit successfully filed for advice on the Internet is very very small. A potential plaintiff would need contact info, for starters...

comment 4y ago · link · parent

I wouldn't actually characterize "Wordle in Rust", "xyz in Go", etc for the sake of learning a language as "rewrites for the sake of rewrites", though - I would characterize them as rewrites for the sake of learning and there's nothing wrong with that. Coming up with a new idea and implementing it with technology you don't know is a lot harder than implementing an existing idea.

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

Honestly it was really great until it wasn't. I was there for almost ten years. The pay left a bit to be desired, but for the most part, everything else was so awesome that it was cool.

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

That's not really consistent with my experience in the Rust community at all. Memes aside, rewrites for the sake of rewrites are typically discouraged. When language comparisons are made, they tend to clearly highlight objective and subjective pros/cons.

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

At my previous job, we used reiserfs. We generally referred to it internally as murderfs.

Not that I think that's good rebranding, but it did amuse us.

comment 4y ago · link · parent

For me, it's mostly about being able to stream it over a poor quality 4G connection in a speeding car/train. I could care less about the storage; I've got over half of a 120TB array unused, but halving the bandwidth requirement for crappy client connections without having to deal with transcoding is nice.

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

Until getting the ? operator in Rust, I always thought I really liked exceptions. After all, what was the alternative? `if err != nil { return nil, err }` everywhere just to propagate errors up and probably ultimately have the process panic when there's an error? "How obnoxious", I thought; the vast majority of the time I'd rather crash and be restarted than attempt to recover and risk severely corrupting state.

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

https://en.wikipedia.org/wiki/John_Harvey_Kellogg#Views_on_s... is a solid tl;dr. He invented cornflakes thinking that that was a food that would inhibit libido and cause people to have less sex.

comment 4y ago · link · parent

The software suite is part of the work environment, _especially_ in a remote world. If a work environment is obviously going to make me miserable, and I'm able to identify that _before I even start_, I'm not going to take that job.

I would just decline the offer without explanation. If pressed for an explanation, be honest but diplomatic about it.

comment 4y ago · link · parent

I mentioned this elsewhere, but I've never had a headphone cable fail. Including a cheap pair of airport earbuds that were used weekly for air travel (tightly wrapped, basically a worst case scenario for cable strain) for multiple years, and the detachable cable that sees daily use on my 598Cs.

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

What were you doing with your headphone cables? I've been using the same one with my current pair since I bought them three years ago. Prior to switching to cans, I used the same set of cheap wired earbuds for five years - and they're still working

comment 4y ago · link · parent

> Especially more since it "forgot" to mention that Facebook intended to enhance the "Linux kernel network stack to rival or exceed that of FreeBSD." Did they succeed over these 8 years ?

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.

comment 4y ago · link · parent

Exactly right, and that's why we have regulations. Even in a situation where _nobody_ wants to e.g. dump all their waste in the river, if you're allowed to do it, it's essentially mandatory to do it if you want to compete.
1
910111213