HNHacker News
TopNewBestAskShowJobs

anlsh

118 karma · joined September 23, 2020

submissionscomments
anlsh··on A Million Falcons Went Missing. Here’s How They Were Found
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
anlsh··on The Ticks That Cause Red-Meat Allergies Are Spreading Across the U.S.
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
anlsh··on Lunar Flyby
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
anlsh··on Lunar Flyby
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

anlsh··on Linux Page Faults, MMAP, and userfaultfd for faster VM boots
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
anlsh··on Magit Is Amazing
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.

anlsh··on NIST's DeepSeek "evaluation" is a hit piece
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.

anlsh··on Bitwarden is turning 2FA on by default for new devices
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
anlsh··on NASA: Mystery of Life's Handedness Deepens
Not at all, think about it
anlsh··on NASA: Mystery of Life's Handedness Deepens
A very plausible explanation is that the separation was biotic
anlsh··on Code that helped end Apartheid
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?

anlsh··on When Smart Ships Divide by Zer0 – Stranding the USS Yorktown (2018)
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

anlsh··on When Smart Ships Divide by Zer0 – Stranding the USS Yorktown (2018)
Your idea that your program should just spit out an incorrect answer when it runs into an unexpected condition? That's really stupid
anlsh··on The NSA is just days away from taking over the internet
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
anlsh··on The original magic Emacs garbage collection hack (2019)
Who actually has issues with gc pauses? I've never noticed them on modern hardware. Are they an issue on embedded systems or something?
anlsh··on Tire dust makes up the majority of ocean microplastics
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?
anlsh··on Tire dust makes up the majority of ocean microplastics
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.
anlsh··on Tire dust makes up the majority of ocean microplastics
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.
anlsh··on Are the Americans Awake?
9am on the west coast and it's still at 54%- pretty sure it's broken
anlsh··on Open source AI is critical – Hugging Face CEO before US Congress
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 :)
anlsh··on Named Booleans prevent C++ bugs and save you time
In any sane language you can just do this using a lambda. Unfortunately C is just broken so :(
anlsh··on Blowing holes in Seymour Hersh’s pipe dream
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...
anlsh··on Japan has changed in important and visible ways
> 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

anlsh··on Buy hi-resolution satellite images of any place on earth
I think I'm going to vomit :(
anlsh··on Ask HN: If you were designing Common Lisp today, what would you change?
Some sort of governing entity. The ANSI standard has left the language totally dead in the water, and is the single biggest thing holding back this really quite beautiful language

Package local nicknames. The situation that libraries like Alexandria are in is really sad.

Nested namespacing/packages.

The ability to alias imports, like in Python.

In the same vein, most symbols in the spec should be moved into a standard library.

A general equality predicate which can be specialized by the user.

Just replace multiple-value-returns with structs, they don't add anything useful.

Standardize some variant of arrow macros.

Every form which introduces a binding should be able to take a (optional) type specifier. It'd be great if compilers could use this option to remove generic dispatch in certain compilation modes.

anlsh··on Why do bees die when they sting you?
Great little refresher on how hymenopteran genetics advantages eusociality! I do wish that it made an effort to address why bees are different in this regard from other eusocial hymenopterans such as wasps though (ie, why do bees die when they string you?). But at least it's a neat little mystery to appreciate:)
anlsh··on The Era of Visual Studio Code
One area I have found where TRAMP really suffers is when you have a relatively high-latency connection. I'm living on the east coast right now and connect to a dev box in Washington to work, and tramp is basically unusable. Every time you enter a folder in a project, emacs will stall for 1-2 seconds (unless the folder has been entered and cached before: unfortunately every time you restart emacs you'll have to go through it all again). If you've forgotten to disable autocomplete in a remote shell buffer, the first character you type will cause emacs itself to hang forever. There's unacceptable lag when opening and even navigating files. Good luck ever running grep or magit.

With VSCode on the other hand, I have no issues at all: couldn't even tell the project was remote.

I still use emacs (emacs -nw via ssh), but it's nowhere near VSCode's responsiveness and now I cant use GUI emacs. It's definitely a source of frustration :/