Recent submissions

Comment · 11 days ago
Sure, but to be able to fulfill all the year's orders (expected to total 12,000) a single run would have to be on the first day of the year. Setup cost = 300. Now we have 12,000 components to store. If the orders come in steadily, the last component will be sold on the last day of the year. Average quantity stored over the whole year will be 6,000 components. So storage will cost 24,000. Total cost 24,300.

Doing one run each month (quantity = 1,000 a month) would entail setup costs of 3,600. And storage costs of 4 * average storage of 500 components = 2,000. For a total cost of 5,600.

All according to the given model, of course, but I think this is the general idea.

Comment · 29 days ago
Comment · 1 month ago
(Link worked for me ...)

This “Tier-1 language” engineering status for Rust means giving internal teams a paved path from local development to production: secure toolchain builds, productive developer tooling, quality workflows, deep platform integration, and compliance with the SDL requirements Microsoft software must meet.

Comment · 2 months ago
Susan Stepney's web page https://www-users.york.ac.uk/~ss44/cyc/p/fbug.htm describes a Fortran bug urban legend, in which

when DO I = 1.100 was used instead of DO I = 1,100

Mariner I, a spacecraft bound for Venus, was lost July 22, 1962 due to a combination of hardware failure and software error, https://en.wikipedia.org/wiki/Mariner_1#Cause_of_the_malfunc... . (I misremembered this as a similar Fortran error.)

Comment · 1 year ago
3 times as long (6 years for the Senate vs 2 years for the House)
Comment · 1 year ago
Alas, net zero carbon is not peak heat. It’s peak carbon dioxide. It’s peak rate of temperature change due to greenhouse gases. Global average temperatures will continue to rise past 2060 (or whenever we get net zero). I’m not sure what the models predict. Perhaps the total temperature rise could be 3.5 degrees by 2100.
Comment · 1 year ago
Edit: Two responses, https://news.ycombinator.com/item?id=44252450 and https://news.ycombinator.com/item?id=44252408, seem to be dupes. As rickydroll states, the time stamps and id numbers show it to be the first.
Comment · 2 years ago
Written or printed out at 3 digits per centimeter, 202 trillion digits would make a string about 670 million kilometers long -- or about the distance between Earth and Jupiter.
Comment · 2 years ago
Comment · 2 years ago
My oops too. The extra 1 argument belongs with range, as you have it here.
Comment · 2 years ago
Since the first element in range() will be 0, should the last line be ...?

    return prod(1,range(n+1))
Comment · 2 years ago
Solar-powered railgun accelerating rocks to lunar escape velocity in directions chosen to make the desired delta-v. Speed the moon up or slow it down or change whatever other orbital elements you please.

This would work better to change the orbit of a small asteroid. For the moon it would take (a lot) longer.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton