Better HN
topnewbestaskshowjobs
Log inSign up

mcronce

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

Submissions

comment 4y ago · link · parent

I saw that episode and imitated with my Milwaukee cordless drill. It's very very good.

comment 4y ago · link · parent

Honestly, as somebody who does pourovers that take like fifteen minutes between grinding the beans, heating the kettle, pouring, and finally drinking...sometimes I do yearn for just a Keurig-like fast-shitty-cup-of-coffee experience without all the plastic waste.

comment 4y ago · link · parent

It reduces transmission.

comment 4y ago · link · parent

You weren't unable to attend anything. You had an option to attend the event - get vaccinated. You chose to not attend the event. The only thing "keeping you" from it is you.

comment 4y ago · link · parent

> long after covid is any sort threat whatsoever

People dying and people with - and still getting- long COVID would probably disagree with that statement.

comment 4y ago · link · parent

If you've got a thread running one event loop, how could you signal to it to temporarily break out of that loop and run a different event loop for a while?

comment 4y ago · link · parent

This assumes that people only use Rust for the performance. I don't think that's strictly true.

95% of what I write isn't performance-critical or even, really, performance-relevant. I still choose Rust for the vast majority of projects for ergonomic and correctness reasons.

comment 4y ago · link · parent

If your function is fallible, your function is fallible - it's up to you to decide whether that means returning Result or panicking. If you want your function to be infallible, while itself calling a fallible function, you have to handle the error cases from your callees - you have `.unwrap_or_default()`, `.unwrap_or_else()`, `.unwrap_or()`, and simple `match` all in your toolbox to do this.

comment 4y ago · link · parent

I agree with you. My general rule of thumb is that I use `unwrap()` for cases where the panic should be unreachable, and is at least reasonably easy to prove it's unreachable.

Otherwise, `?` in 90% of code, with panics far up the stack, e.g. in `main()`

comment 4y ago · link · parent

I use Rust for more or less everything these days, but I found the learning curve to be fairly tough up front. That was in 2019, though; maybe it's easier today with all the improved compiler diagnostics and new books and whatnot.

> if the end goal is software that works correctly, getting there definitely isn’t harder with rust. It’s the complete opposite :/.

Strongly agree with you here. It takes me a lot less time to put something that functions correctly together with Rust than it does with Python or Go. Maintenance also gets a lot easier as the codebase grows.

I recently started a job at a Python shop, and the kinds of bugs/regressions we hit are super annoying because a compiler with a type system would have had them simply be build errors up front.

comment 4y ago · link · parent

The bar I frequent uses straws made of biodegradable material derived from sugarcane - they last a lot longer than paper straws, but ultimately are water soluble and will dissolve after a day ish if submerged. They obviously cost a lot more than plastic, but the user experience is just as good without the forever waste.

comment 4y ago · link · parent

To be fair, the smokey flavor you get from barbeque is primarily carbon

comment 4y ago · link · parent

https://customerservice.costco.com/app/answers/detail/a_id/7...

AmEx not listed anywhere.

Maybe yours does something different, or it's an AmEx branded debit card, or you're not in the US and they do something different abroad, but no Costco I've been to since the switch has accepted any credit card that isn't a Visa.

comment 4y ago · link · parent

Good point. I'm going to start allocating tens of megabytes of random data all over my address space at the beginning of execution so that I too can gain this advantage :)

comment 4y ago · link · parent

You actually can - https://llvm.org/docs/CommandGuide/lli.html

LLVM's original purpose was something analogous to the JVM, but it's obviously evolved to be more of a compiler platform, debugging toolchain, etc these days

(No direct hardware support, though, as cool as that sounds)

comment 4y ago · link · parent

They used to be AmEx only. They're now Visa only.

comment 4y ago · link · parent

You just listed two very good reasons: Intermediate values can't be named, and error messages are awful.

comment 4y ago · link · parent

Go's issues are mostly not performance related, so more monomorphization will really not solve a significant portion of them.

comment 4y ago · link · parent

What's the definition of "success" here? Popularity?

comment 4y ago · link · parent

I agree. The rule of thumb I follow is that if the list comp doesn't fit on one line, whatever I'm doing is probably too complicated for a list comp.

comment 4y ago · link · parent

> Storage is cheap.

And yet it's solar being built all over the world, not storage.

comment 4y ago · link · parent

> reliable

This is not usually a word that one uses to describe something that works when it wants to, as opposed to things that work when you want them to

comment 4y ago · link · parent

This is an ... interesting argument. "I can't write this 200LOC component of a large codebase in safe Rust, so what's the point in Rust?"

comment 4y ago · link · parent

I think their point is that there are a lot of people for whom $300 is a great payment - essentially, defending the maintainers for offering what the parent seems to be implying is too little.

Personally, I'm a senior dev making more than triple what I did when I started my career, and if it were five minutes of work (or even ten, or an hour) I'd be extremely happy with $300.

comment 4y ago · link · parent

I was thinking about busy servers running mixed workloads. I would think that, with the CPU running a bunch of workloads on different cores, context switching, etc, it wouldn't be a practical attack. Maybe that's incorrect.

Mostly idle servers are a different story, obviously.

comment 4y ago · link · parent

At some point you have to accept that if you want to know something, you have to learn it. At one point, you didn't know grep, awk, sed, etc... And then you learned them.

Or you can just stick with the old tools if you prefer not learning a new thing - that's a perfectly valid option.

comment 4y ago · link · parent

I would not describe latency as "excellent" in Go, unless you're measuring average or p90.

comment 4y ago · link · parent

I stand corrected then, this would probably be a great fit
1
789
13