Better HN
topnewbestaskshowjobs
Log inSign up

mcronce

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

Submissions

comment 4y ago · link · parent

It sounds like you're referring to exceptions. While I would take exceptions over the stringly-typed nightmare that is Go errors, you should know that there are far better error handling schemes out there.

comment 5y ago · link · parent

FWIW, https://www.mailaletter.com can do certified w/ return receipt, and there's also a service called Trim (https://www.asktrim.com) that can do cancellations for you. In my experience, some companies have explicit policy to not accept cancellation requests on your behalf from Trim, but it works for many.

comment 5y ago · link · parent

It took me seven years to cancel Planet Fitness after I moved a hundred miles away. Letter after letter, nothing...finally made a trip back home one day and had time to stop and deal with it.

Fuck gyms. I can run on the sidewalk for free.

comment 5y ago · link · parent

It's not entirely accurate to say that Vitess "doesn't have" foreign keys. It doesn't enforce FK constraints cross-shard, but it can use FKs to group referential data together within a shard, and the MySQL backing that shard can enforce FK constraints.

comment 5y ago · link · parent

> Rust, for one, but will test out some more when I’m not on a bus

You can impl Mul for your own types. The operands' types don't need to match.

comment 5y ago · link · parent

Their CI story was also a lot better until Github added Actions

comment 5y ago · link · parent

What exactly do you think the winds are carrying that would motivate them to place nuclear reactors based on that pattern?

comment 5y ago · link · parent

Only as long as you ignore CO2/methane emissions from the gas plants and supply chain required to provide backup to the renewables

comment 5y ago · link · parent

The Rust community is by a wide margin the most welcoming and positive Internet community I've personally seen.

In no small part because they don't make comments like this one.

comment 5y ago · link · parent

It was not intentional, thanks for asking...very unfortunate typo ;)

Go doesn't give you control over inline vs indirect allocation, instead relying on escape analysis, which is notoriously finicky. Seemingly unrelated changes, along with compiler upgrades, can ruin your carefully optimized code.

This is especially heinous because it uses a GC; unnecessary allocations have a disproportionately large impact on your application performance. One or the other wouldn't be nearly as bad.

Time and time again we see reports from organizations/projects with perfectly fine average latency, but horrendous p95+ times, when written in Go - some going as far as to do straight-up insane optimizations (see Dragph) or rewrite in other languages.

comment 5y ago · link · parent

It's not really suitable for latency-critical applications.

EDIT: Fixed unfortunate typo

comment 5y ago · link · parent

Catching a bunch of bugs at compile time without having to write tests for them is real nice
1
910111213