News for hackers. Stuff that matters.

anlsh

Re:A Million Falcons Went Missing. Here’s How They Were Found on Saturday September 05, 2026 @10:24PM (#49582714)
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
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
Re:Lunar Flyby on Thursday April 09, 2026 @12:35AM (#47699300)
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
Re:Lunar Flyby on Wednesday April 08, 2026 @02:24AM (#47686116)
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

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
Re:Magit Is Amazing on Tuesday October 21, 2025 @03:03PM (#45660123)
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.

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.

Re:Bitwarden introduces mandatory 2FA for new devices on Tuesday January 28, 2025 @11:53AM (#42854594)
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
Re:NASA: Mystery of Life's Handedness Deepens on Sunday December 01, 2024 @10:48PM (#42292929)
Not at all, think about it
Re:NASA: Mystery of Life's Handedness Deepens on Monday November 25, 2024 @01:12AM (#42233704)
A very plausible explanation is that the separation was biotic
Re:You Can Now See the Code That Helped End Apartheid on Friday October 18, 2024 @08:54PM (#41884781)
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?

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

Nah you're either trolling or an idiot. Replicating the situation we have with null pointers, except now with the exceptional value being a perfectly valid element of the set, is a fantastically stupid idea
Your idea that your program should just spit out an incorrect answer when it runs into an unexpected condition? That's really stupid
Re:The NSA is just days away from taking over the internet on Wednesday April 17, 2024 @07:05AM (#40062900)
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
Re:The original magic Emacs garbage collection hack (2019) on Wednesday January 31, 2024 @12:01AM (#39200146)
Who actually has issues with gc pauses? I've never noticed them on modern hardware. Are they an issue on embedded systems or something?
Re:Tire Dust Makes Up the Majority of Ocean Microplastics on Sunday October 01, 2023 @05:26PM (#37731008)
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?
Re:Tire Dust Makes Up the Majority of Ocean Microplastics on Sunday October 01, 2023 @12:52PM (#37727886)
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.
Re:Tire Dust Makes Up the Majority of Ocean Microplastics on Sunday October 01, 2023 @12:45PM (#37727808)
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.
Re:Are the Americans Awake? on Monday July 10, 2023 @12:13PM (#36668452)
9am on the west coast and it's still at 54%- pretty sure it's broken
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 :)
Re:Named Booleans prevent C++ bugs and save you time on Saturday February 18, 2023 @11:37AM (#34848221)
In any sane language you can just do this using a lambda. Unfortunately C is just broken so :(
Re:Debunking Seymour Hersh's Alta-Class Claims on Friday February 17, 2023 @02:36AM (#34831932)
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...
Re:Japan Has Changed a Lot on Thursday January 26, 2023 @04:49AM (#34529709)
> 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

Re:Buy Hi-Resolution Satellite Images of Any Place on Earth on Saturday January 21, 2023 @02:07PM (#34469213)
I think I'm going to vomit :(
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.

Re:Why do bees die when they sting you? on Monday December 26, 2022 @12:25PM (#34139663)
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:)
Re:The Era of Visual Studio Code on Tuesday September 22, 2020 @09:17PM (#24561943)
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 :/