Better HN
topnewbestaskshowjobs
Log inSign up

pjscott

9,802 karma · joined May 23, 2010 (16y ago) · 2,889 submissions

Submissions

comment 2w ago · link · parent

One of the dictionary definitions of “sedentary” refers to living in the same spot and not traveling, usually used in anthropology to talk about non-nomadic populations.

comment 2w ago · link · parent

> always-running daemon

This is completely tangential to your point, but I'd bet that this daemon isn't always running. Apple is fond of putting as much system functionality as possible into daemons that (a) can be spun up quickly when needed in response to Mach IPC messages, (b) can be killed safely at any time to free up memory, including with SIGKILL if necessary, and most importantly (c) operate in the tightest, most locked-down sandbox they could devise.

For background computational tasks like this one, it can also be helpful for getting thread prioritization right. If some computation doesn't need to happen quickly, a daemon can easily make sure that it gets assigned to efficiency-optimized CPU cores, tell the OS scheduler to give priority to more important stuff, reduce precision of timers to coalesce wakeups, and make sure that any thermal throttling affects the background stuff before it slows down anything the user will notice. It's a pretty slick system.

comment 1mo ago · link · parent

Egypt Urnash is the pen name of a cartoonist and illustrator. Her art style is quite impressive, and I've admired it for years. Enjoy:

https://egypt.urnash.com/

comment 2mo ago · link · parent

A contract represents a set of (quantity, month) tuples, where quantity is an integer greater than zero; that number of yellow onions will be delivered in the corresponding month to the current holder of the contract. The mass of each onion is unspecified, as is the mean and variance of the underlying onion-mass distribution from which they are drawn.

comment 2mo ago · link · parent

> but Musk still needs to send it out of orbit without explosions, so here's hoping

The Falcon Heavy has made 12 launches and all of them have been successful. It's built using the same engines as the Falcon 9, which has become the boringly reliable workhorse of space launch, and the rocket cores are very similar in design. I'd bet on a successful launch, and probably on a successful landing of the side boosters.

(Do we really need to politicize launch vehicles, of all things?)

comment 3mo ago · link · parent

There are school shootings and they’re certainly awful. Similarly, people sometimes get struck by lightning, and this is awful too. But if your goal is to prevent deaths, rather than to focus on the things that make for the most lurid news stories, then there are boring things like road safety that loom much larger in the numbers than they do in the public imagination. Here are some numbers on causes of death for children and adolescents in the US, reported by the CDC:

https://pmc.ncbi.nlm.nih.gov/articles/PMC6637963/

Figures for deaths from school shootings are harder to come by, since it seems like all the sources are trying to push some political narrative or other, but the highest numbers I could find were in the low double digits per year (on average). Preventing those doesn’t strike me as a high-priority use of limited death-prevention resources.

comment 4mo ago · link · parent

They're going for an orbital height of 600–800 km, or about 2-3 light-milliseconds from Earth's surface. A lot of people think of satellites as being necessarily high-latency because of intuition drawn from satellites in geosynchronous orbit – but those are about 50x farther away from earth and have correspondingly longer ping times.

comment 5mo ago · link · parent

From Google's spokesperson, quoted in the article: "This is a short-term, timely agreement to ensure we have bridge capacity to meet surging customer demand for our agent platform, Gemini Enterprise, which has been even higher than we expected."

Google wants a lot of compute sooner rather than later, and they're willing to pay a premium for speedy delivery of that compute. SpaceX has the capacity already built and ready to go. Hence the high price.

comment 5mo ago · link · parent

Musk made big investments in building AI data centers starting in 2024, continuing through the present. SpaceX got those assets from xAI, spun off from X, via an acquisition. More details:

https://en.wikipedia.org/wiki/Colossus_(supercomputer)

comment 5mo ago · link · parent

Even then, the numbers don't even remotely work out. Consider this "Elon Bezos" person; the combined net worth of Elon Musk and Jeff Bezos is about $1.3 trillion or so, and the "Top 0.1%" category in the Fed's data has a net worth of about $25 trillion. This is not a small difference.

comment 6mo ago · link · parent

You're right, of course, but "those in government" aren't a single entity. There's always an incentive for one corrupt part of government to take more than their fair share of the loot, and then for the next part to take more, and so on... until their combined cut is over the revenue-maximizing percentage, and they make less than they could have if they had coordinated better.

(I want to call this "the tragedy of the commons," but that phrase doesn't sound quite dark enough.)

comment 7mo ago · link · parent

It doesn't track cost of living? The way it's calculated is all about cost of living!

In the US, the official inflation numbers are based on a "basket of goods" meant to be representative of a typical person's spending. Housing currently makes up about a third of the basket, while luxury items are a fairly small percentage. Here's a pretty well-written summary, albeit with numbers from 2022:

https://www.pewresearch.org/short-reads/2022/01/24/as-inflat...

Changes in housing prices have a large effect on the BLS's inflation figures. Downward changes in the price of luxury goods have a small (and bounded) effect. Even if all luxury goods became free, the reduction in inflation wouldn't be all that much.

comment 7mo ago · link · parent

The wording was a bit unclear. The previous paragraph mentions wanting something cheaper than "those pesky XORs and multiplications". The multiplication is the expensive part; the (very cheap) XORs are just mildly annoying because you have to think about what they're doing.

comment 8mo ago · link · parent

> I’d like to know the memory profile of this. The bottleneck is obviously sort which buffers everything in memory.

That's not obvious to me. I checked the manuals for sort(1) in GNU and FreeBSD, and neither of them buffer everything in memory by default. Instead they read chunks to an in-memory buffer, sort each chunk, and (if there are multiple chunks) use the filesystem as temporary storage for an external mergesort.

This sorting program was originally developed with memory-starved computers in mind, and the legacy shows.

comment 8mo ago · link · parent

If money ever starts looking particularly illusory, try thinking in terms of the underlying resources that markets allocate.

That's 'resources' viewed as expansively as possible, everything from the specialized labor-hours of people who know how to do quality control on bulk-manufactured photovoltaics to the ore used to make ball bearings in the factory all the way to the guy in charge of managing a grain elevator that was involved in making the bread for the sandwich one of the janitors had for lunch. The web of collaboration between all these far-flung people who mostly don't know each other, too vast and intricate to fit in any living mind, is how we currently get most of our material stuff.

... And in a conventional market system, the core of how those people coordinate their efforts is money. The price that each person is willing to buy something for or sell it for sends a signal about how much they care about it relative to other things. And markets are one popular way of aggregating that information, helping guide society's cooperative efforts in the direction of what people care about.

There are various allocation systems that don't involve money, both theoretical and historical. Community-based mutual reciprocity with a reputation mechanism to discourage freeloading, for example, can be found all over the place in pre-modern history because it worked – as long as your community was small enough that you can realistically all know each other. Or, back in the 20th century, there were a number of efforts to scale up operations research toward the level of nations, since suddenly we had computers fast enough to handle e.g. non-trivial linear programming. (The successes and failures were both instructive.)

--

Coordination problems are hugely underrated in political discourse. So when I hear people say things like "The economic system is the ideology holding us back", I always have to wonder: how carefully has this person thought about a what a viable alternative would look like?

"I dislike the current system" is only the first and most trivial part of a real reform agenda; the next part has to be "... and here is how to meaningfully change it in a way that doesn't result in disaster, with a detailed discussion of mechanism design and a look at relevant historical prior attempts. [Insert essay or hyperlink here.]"

comment 9mo ago · link · parent

So it looks to be just the latency improvement that's noteworthy, then. Thank you!

comment 9mo ago · link · parent

If you're familiar with the technical specs, I'd be interested in hearing what size of objects the star trackers can sense and at what range. In theory the fancier star trackers can see objects around 10 cm diameter hundreds of kilometers away, without needing to worry about a pesky atmosphere [1], but I don't know how sensitive the sensors on Starlink's current generation satellites are, and this web site isn't saying.

They're mostly touting the improvement in latency over existing tracking, from delays measured in hours to ones measured in minutes. Which is very nice, of course, but the lack of other technical detail is mildly frustrating.

[1] https://www.mit.edu/~hamsa/pubs/ShtofenmakherBalakrishnan-IA...

comment 9mo ago · link · parent

Honestly, these two paragraphs are one of the most compelling things they could possibly say in a press release:

> Stargaze already has a proven track record in its utility for space safety. In late 2025, a Starlink satellite encountered a conjunction with a third-party satellite that was performing maneuvers, but whose operator was not sharing ephemeris. Until five hours before the conjunction, the close approach was anticipated to be ~9,000 meters—considered a safe miss-distance with zero probability of collision. With just five hours to go, the third-party satellite performed a maneuver which changed its trajectory and collapsed the anticipated miss distance to just ~60 meters. Stargaze quickly detected this maneuver and published an updated trajectory to the screening platform, generating new CDMs which were immediately distributed to relevant satellites. Ultimately, the Starlink satellite was able to react within an hour of the maneuver being detected, planning an avoidance maneuver to reduce collision risk back down to zero.

> With so little time to react, this would not have been possible by relying on legacy radar systems or high-latency conjunction screening processes. If observations of the third-party satellite were less frequent, conjunction screening took longer, or the reaction required human approval, such an event might not have been successfully mitigated.

Looks like a non-trivial upgrade to previous systems, and they're making Stargaze's data available to other satellite operators free of charge. Nice!

comment 9mo ago · link · parent

Slowing the adoption of much-safer-than-humans robotaxis, for whatever reason, has a price measured in lives. If you think that the principle you've just stated is worth all those additional dead people, okay; but you should at least be aware of the price.

Failure to acknowledge the existence of tradeoffs tends to lead to people making really lousy trades, in the same way that running around with your eyes closed tends to result in running into walls and tripping over unseen furniture.

comment 11mo ago · link · parent

It's a tale as old as schlock journalism: an article seems interesting... until it talks about something you actually know about personally, at which point it suddenly starts saying obvious nonsense.

comment 11mo ago · link · parent

I'm not too familiar with the JVM so perhaps I'm missing something here: how would that help? The file is tiny, just a few bytes, so I'd expect the main slowdown to come from system call overhead. With non-mmap file I/O you've got the open/read/close trio, and only one read(2) should be needed, so that's three expensive trips into kernel space. With mmap, you've got open/stat/mmap/munmap/close.

Memory-mapped I/O can be great in some circumstances, but a one-time read of a small file is one of the canonical examples for when it isn't worth the hassle and setup/teardown overhead.

comment 11mo ago · link · parent

As with all the ahead-of-time compiled languages that I checked, the answer is that it generates non-SIMD code for the hot loop. The assembly code I see in godbolt.org isn't bad at all; the compiler just didn't do anything super clever.

comment 11mo ago · link · parent

The common element is that they're written with the most obvious version of the code, while the ones in the faster bucket are either explicitly vectorized or written in non-obvious ways to help the compiler auto-vectorize. For example, consider the Objective C version of the loop in leibniz.m:

  for (long i = 2; i <= rounds + 2; i++) {
      x *= -1.0;
      pi += x / (2.0 * i - 1.0);
  }
With my older version of Clang, the resulting assembly at -O3 isn't vectorized. Now look at the C version in leibniz.c:

  rounds += 2u; // do this outside the loop
  for (unsigned i=2u; i < rounds; ++i) // use ++i instead of i++
  {
      double x = -1.0 + 2.0 * (i & 0x1); // allows vectorization
      pi += (x / (2u * i - 1u)); // double / unsigned = double
  }
This produces vectorized code when I compile it. When I replace the Objective C loop with that code, the compiler also produces vectorized code.

You see something similar in the other kings-of-speed languages. Zig? It's the C code ported directly to a different syntax. D? Exact same. Fortran 90? Slightly different, but still obviously written with compiler vectorization in mind.

(For what it's worth, the trunk version of Clang is able to auto-vectorize either version of the loop without help.)

comment 11mo ago · link · parent

The delta there is because the Rust 1.92 version uses the straightforward iterative code and the 1.94-nightly version explicitly uses std::simd vectorization. Compare the source code:

https://github.com/niklas-heer/speed-comparison/blob/master/...

https://github.com/niklas-heer/speed-comparison/blob/master/...

comment 11mo ago · link · parent

They have very limited power these days. They advise the House of Commons, as more or less a hereditary think tank. They can delay the passage of bills, though this has been limited to a maximum delay of one year since 1949 (less for some types of bills) and there are some checks on this ability. They have a few other things they can do that are (IMO) too boring to warrant much thought unless you're a member of parliament.

The idea of a House of Lords does strike me as a bit odd, but it's not really the big deal it used to be.

comment 1y ago · link · parent

They do, technically, allow JIT. You need a very hard-to-obtain entitlement that lets you turn writable pages into executable read-only pages, and good luck getting that entitlement if (for some reason) your name isn’t “mobilesafari”, but the capability exists.

comment 1y ago · link · parent

It may comfort you to hear that the Starlink satellites are tiny in comparison to the vastness of their orbit – the visualization makes them appear larger than they are, so you can see them clearly – and that they’re low enough that they’ll naturally de-orbit and burn up in the atmosphere after about 15 years even without using their maneuvering thrusters.

They’re providing worldwide rural broadband, and according to the FAA they’re doing so in a way that’s careful and responsible about space debris and collision avoidance. Is disgust truly warranted in this case?

comment 1y ago · link · parent

I’m also introverted, and I also found this article overwhelming – if I tried to do it all at once, which seems so laughably unrealistic for me that I just wouldn’t try. Instead, probably the best way to read this is as something to approach gradually. Try just one thing on the list, or two if you’re feeling ambitious. Go for a delta that you can manage. And see if it’s working for you, because often the advice that works wonders for one person completely falls flat for another.

(On a slightly funny personal note, the thing that helped me most with social skills was watching the first few seasons of Buffy the Vampire Slayer in my first year of college. The actors emoted so clearly that even I could understand what feelings they were trying to convey, and that’s how I learned to do body language and appropriate vocal tones. This took me from unapproachable to merely awkward, a huge step up in the world.)

12345
97