Better HN
topnewbestaskshowjobs
Log inSign up

anlsh

130 karma · joined Sep 23, 2020 (6y ago) · 33 submissions

Submissions

comment 23h ago · link · parent

Damn, would have been really cool if it had been 2 :/

comment 4d ago · link · parent

I haven't read or understood the author's proof, but the "standard" proof probably goes like this (any corrections? anyways though, I have to admit this approach sucks all of the joy out of the blog post)

We take the standard definition of the reals as equivalence classes of Cauchy sequences.

Let a_n be the mixed-base number up to n digits, e.g. a_4 = 0.1234. Clearly it's Cauchy

Let b_n = 1 - a_n, e.g. b_4 - 0.00001

Obviously, lim n->inf (a_n + b_n) = 1

But since the sequences a and b are Cauchy, we can exchange limit and sum

1 = lim n->inf (a_n) + lim n -> inf (b_n)

But the second limit = 0, therefore the first = 1

comment 1w ago · link · parent

Well yes, but otoh https://physics.stackexchange.com/questions/266426/what-does...

comment 2mo ago · link · parent

Man what a beautiful bit if knowledge, reminds me a bit of the eel mystery. Thanks to the researchers doing this sort of work, and I hope their conservation efforts go well

comment 5mo ago · link · parent

This is a public service announcement: please stop barbecueing your jackfruits, this is a culinary crime beyond even boiled vegetables. Please, for the love of god, just eat something fresh for once in your life

comment 7mo ago · link · parent

wikipedia's explanation works for uniform bodies, yours doesn't. And since tidal bulges seem to be symmetric, there's no away to explain away the deformation as making one side heavier

comment 7mo ago · link · parent

I think the explanation is wrong: wikipedia offers a completely different explanation https://en.wikipedia.org/wiki/Tidal_locking.

Planets can become tidally locked to the sun- mercury is. Probably the timescale required for the other planets is just much longer

EDIT: Apparently mercury isn't actually tidally locked to the sun, TIL

comment 8mo ago · link · parent

Oh neat, a post I actually know something about! I worked a lot on userfaultfd performance for GCE's live migration post-copy a couple years ago. Or more specifically, I worked on mechanisms to avoid it entirely- due to lock contention in the kennel, faults become veeeerry slow as the number of vcpus scales, and as it happens VMs these days can have a lot of vcpus

comment 1y ago · link · parent

I've got [a bit of neovim config](https://github.com/anlsh/nvim/blob/8b61520a5ecd752427abffc45...) which sends you straight to `neogit` (which is basically equivalent as far as I use it) when a certain env var is set.

So in my .profile I've got

``` alias gg="NEOGIT_SLAVE=1 nvim" ```

It's definitely not perfect but it's good enough to work for basic committing/rebasing flows and it's faster than booting up emacs for the same purpose.

10.

There Never Was a West(theanarchistlibrary.org ↗)

1 points · by anlsh · 1y ago · discuss

comment 1y ago · link · parent

What an arrogant and slavish comment. Truth may be the first casualty of any war, yet here you are celebrating its demise so that war may be waged more thoroughly.

I wonder what it's like to be so convinced of your righteousness of your cause that reality itself is seondary. What a joke you are.

comment 1y ago · link · parent

If anyone works at bitwarden can you get your UI people to stop retheming for the upteenth time and instead make the "detailed view" of any entry read-only by default? Every time I need to access my notes on an entry I'm scared that I'll accidentally typo a letter into my password or a 2fa code or something

comment 1y ago · link · parent

Not at all, think about it

comment 2y ago · link · parent

A very plausible explanation is that the separation was biotic

comment 2y ago · link · parent

Why does a password-protected zip file reveal a list of the files within lol?

If I'm understanding this right, we'd have been hosed if the files had been TARd first?

comment 2y ago · link · parent

Ok now we're talking: important clarifications. Neat read on the type systems. But this part is extremely important:

> The idiomatic way to do it is to allow garbage inputs like negative numbers into your square root function, and return garbage outputs. It is in the theorems where one puts the non-negativity hypotheses.

The equivalent condition here would be for everyone to include "zero-ness" checks on their numeric inputs. But that's awful, because whereas everyone agrees that nullptr is a meaningless pointer, zero is in fact a perfectly good integer/float whatever. So now you have something worse than null pointers- which have course caused us a huge amount of pain ever since being inflicted on the world

So x / 0 = 0 is still a terrible, terrible, idea. But introduce something like the floating-point equivalent of NaN, and say x / 0 = NaN, and now your outputs will at least be obviously wrong, instead of just silently wrong

comment 2y ago · link · parent

Your idea that your program should just spit out an incorrect answer when it runs into an unexpected condition? That's really stupid

comment 2y ago · link · parent

A ridiculous fairy tale. Dictatorships need hardly interfere with the "stability" of a society which launches a bloody and monumentally expensive temper tantrum in response to 9/11 but allows thousands more to die each year for want of basic medicines

comment 2y ago · link · parent

Who actually has issues with gc pauses? I've never noticed them on modern hardware. Are they an issue on embedded systems or something?

comment 3y ago · link · parent

No. But we're talking about cars, not computers, and their novelty is just one among many strong pieces of evidence that a much less car-dependent society is possible, even desirable. Perhaps you can refute the existence billions of people on the planet who live without commuting via car, or the dense networks of public transit which they often rely on?

comment 3y ago · link · parent

Hah! Cars have been around for just a hundred years or so, and yet serious efforts to reduce our dependency on them are "near impossible." Talk about recency bias.

comment 3y ago · link · parent

Not much? Do you drive? Do you see the number of consumer vehicles on the road versus the number of trucks/delivery vehicles? If we could work towards a huge reduction in consumer vehicles on the road, even if we just replaced them all with busses, that'd be a huge improvement in gas consumption, traffic, (sub)urban sprawl, and more.

comment 3y ago · link · parent

9am on the west coast and it's still at 54%- pretty sure it's broken

comment 3y ago · link · parent

Weird to see huggingface in the news like this. I remember contributing some fix to it back in summer 2019 when it had 4k stars or something, and I thought it was a really popular project even then :)

comment 3y ago · link · parent

In any sane language you can just do this using a lambda. Unfortunately C is just broken so :(

comment 3y ago · link · parent

You're wrong. There was indeed never anything "official", but high-level diplomats (such as the US Secretary of State) did promise as much behind closed doors. See https://nsarchive.gwu.edu/briefing-book/russia-programs/2017...

comment 3y ago · link · parent

> Let me introduce you to wild idea that language is just tool and has nothing to do really with the country/culture

This is a wild idea because it's false. It's hard to be a part of any culture if you don't speak the language. All you've said is that knowing a language doesn't make you part of a culture, which nobody would disagree with in the first place

comment 3y ago · link · parent

I think I'm going to vomit :(
12