Hacker Newsnew | past | comments | ask | show | jobs | submit | nayuki's commentslogin

You wrote ethanol (C₂H₆O), but do you mean ethylene/ethene (C₂H₄)? Polyethylene (PE) is a very common plastic, such as HDPE, LDPE, PET.

You're right, sorry, I thought of ethene.

Like here is a good review https://youtu.be/325HdQe4WM4


A neat dashboard. The usage of metric units can be improved:

> Corona ~1.2M K / Active Regions ~2M K / Hot Flares ~6.3M K / Flare Plasma ~10M K / Active Corona ~2.5M K / 10M K Hottest flare plasma

If "M" means "million", then it's correct but not the best way to express things. If "M" means "mega", then there must be a space after the number and no space before the unit of kelvin - it needs to be written as "1.2 MK" (megakelvins), "2 MK", etc.

> The Cosmos at a Glance / 1.4M km Solar diameter

If "M" means "million", then it's correct but really not the best way to express things. If "M" means "mega", then stacking prefixes is not allowed in metric - it needs to be written as "1.4 million km" (full number word), "1 400 000 km", or "1.4 Gm (gigametres)".

In general publications, any length unit bigger than the kilometre is extremely uncommon. But this aversion to large prefixes is weird because we are (forced to be?) routinely comfortable with megahertz, gigahertz, megabytes, gigabytes, terabytes, megapascals (material strength), megaohms (insulators), megavolts (the highest voltage transmission lines). I see no good reason to avoid megametres, gigametres, etc. But the unspoken convention is to write "thousand kilometres", "billion kilometres", etc.

> The Cosmos at a Glance / 3,000 km/s Fastest CME speed

This fact is given in kilometres-per-second, but a bunch of other facts are given in kilometres-per-hour. This makes it much harder to compare their relative magnitudes. It's similar to the problem of comparing airplane speeds in knots versus bullet speeds in feet per second. These units aren't wrong individually, but think carefully about when to switch units and when not to.

> The Sun facts / A dynamic sphere of plasma photographed by NASA’s SDO every 12 seconds in 12 wavelengths — from the 5,000 K surface to 10-million-degree flare plasma.

Don't switch units mid-sentence from kelvins to degrees (and which type of degree?). Compare "5 000 K" with "10 000 000 K". It's correct but less common to say "5 kK vs. 10 000 kK" (kilokelvins).

> The Sun facts / The Sun’s core burns at 15 million °C — hot enough to fuse 600 million tons of hydrogen into helium every second.

I would like to note that 600 million tons (megagrams) is 600 Tg (teragrams). But it's also an unspoken convention to avoid units of mass larger than kilogram, so it's rare to see megagrams, gigagrams, etc. in writing.

> The Sun facts / The Sun’s surface gravity is 28 times stronger than Earth’s. A 150-pound person would weigh 4,200 pounds there.

I would prefer not to see the unit of pounds in the discussion, and also the sentence conflates mass with weight. Reworded with extra notes: A 70-kilogram person (anywhere in the universe) would feel like they weigh 1900 kg on Earth (18.7 kilonewtons).

> The Sun facts / Sunspots are cooler regions — about 3,500°C compared to the 5,500°C surface — but are still incredibly hot.

You mostly used kelvins to talk about the Sun, but now you're using degrees Celsius for a few facts?

Before anyone accuses me of pedantry, please remember: Clarity matters in communication. We have spelling and grammar rules in English, and there are also rules in technical syntax such as expressing quantities using the metric system.

Also, people copy each other, so setting a good example is not just about the current reader, but also future writers and readers. To give an example, almost no one uses the unit "kelvin" correctly, and the bad usages keep getting propagated. Incorrect - "4000-Kelvin light bulb" (adjective form, uppercase), "temperature of 273 degrees kelvin". Correct - "4000-kelvin light bulb" (adjective form, lowercase), "temperature of 273 kelvins" (non-adjective form requires plural). The unit of kelvin must be treated no differently than joules, watts, newtons, etc.

The purpose of standards is to reduce the space of possibilities, which makes it easier for writers to choose what to write and easier for readers to understand the correct intended meaning. As an example, the symbol for metre is just "m", no others. Some ad hoc sloppy abbreviations for metre include: "M" (conflicts with mega), "mtr", "mtrs", "ms" (conflicts with millisecond). For writers and readers alike, it's much easier to learn the single symbol rather than four or more ways of expressing the same unit. Similarly, gram is "g", but I've seen supermarkets with labels like "gm"; kilometre is "km", but I've seen "kms" as an ad hoc plural.


Thank you for the detailed feedback, I did not take it as pedantic. It's important to be accurate and I would hate for this to be shown in a classroom somewhere and have incorrect data! I'll have the site updated today.

Just about everything should be updated now, thanks again!

I see the changes now - just incredible! You are probably the most responsive author I have ever interacted with in decades.

Oh wow well thank you! I appreciate feedback and am happy to incorporate it ASAP if I'm by the computer :D

You pay the read noise every time you read out the sensor and digitize the values. Also, you lose a tiny bit of time between exposures as the sensor resets itself. And you might have a bottleneck in moving the data off the sensor and saving the image. Furthermore, if you perform lossy compression on the video, then your digitally stacked image will differ significantly from analog stacking on the silicon sensor.

A bunch of refutations:

None of the prices are inflation-adjusted. That gives more sticker shock than reality.

> The Starter Home / No bidding war. / Gary just... bought it.

That was back when land was plentiful and cheap, and homes had fewer features and comforts. Now all the desirable land is taken, and existing homeowners don't want to increase density, so prices go up and newcomers get pushed farther out. NIMBYs and exclusionary zoning are a large part of the problem.

> The Pension / Your employer saved for your retirement.

I dislike the old-style "defined-benefit" pensions, because you are completely at the whim of your employer. They set the arbitrary terms of tenure (how much pension you receive in relation to how many years you work), pay-in, and payout. You're also reliant on your company staying solvent to pay you in retirement. Nope, I much prefer "defined-contribution" self-funded pensions where your account is segregated from everyone else, and usually you get to choose excellent low-cost broad-market index funds. In Canada, DC is RRSP, and I guess in the USA it's 401(k) and IRA. DC also allows you to job-hop much more easily because the amount you contributed to your retirement account is clearly yours and not a matter of company policy.

> One-Income Household / Dad worked. Mom stayed home.

I think that arrangement was bad for women's autonomy and rights, but someone more qualified than me can speak about it.

> National Park Vacation / Pay $5. No reservation required.

Well, the growth in parks didn't match population growth. Or there's a growth in domestic and international tourism in general.

> The Savings Account / The bank paid you 8% a year

I'm pretty sure that happened during a period when annual inflation was 10~15%, meaning that you lost money by "saving" cash. Also, interest is taxed at a much higher marginal rate than capital gains, so it's dumb to invest in cash instead of stocks. It is true, though, that in much of my adult life, the savings account interest rate is around 0~2%, making it a completely meaningless financial product to me.

> c. 1994 / The Family Computer / $2000

You can buy an entry-level laptop for about $500 since the year 2010. The barrier to entry in getting a computer went down gradually each year.

> c. 2000 / The $1 Slice / A massive, greasy slice of New York style pizza

I bought a $1 slice in NYC in the year 2019 and it was a decent size. I haven't visited afterward so I can't say.

> The DVD Collection / You owned your media.

You can still buy Blu-ray discs of your favorite movies. Most people choose not to out of short-term convenience.

> Flying / Free bags, shoes on

Those features aren't "free". It costs the airline money and opportunity cost to move your luggage (excess room can be used for paid cargo shipments). Those features have just been unbundled so that people who don't need the feature don't pay it, people who need it pay it, and you don't have the non-users subsidizing the users. That's like saying a $50 buffet is "free" even though you'd be equally satisfied with a $20 meal paid à la carte.

> 401k Matching / Free money

Lolno, there's no such thing as free money. "Employer pays" still affects how much the employer spends on you, which ultimately affects their calculation on who to hire and how much to pay them. It only affects the split of how much of the employer's money gets paid to you as an unrestricted salary versus restricted programs like healthcare insurance and pensions.

> The 99-Cent App / No accounts

I'm pretty sure you need an Apple or Google account to buy the app in the first place. After you bought the app, you can reinstall it for free on any newer phone that you buy.

> The Subsidized Smartphone

I heard that the old days were not good, because the 2-year contract forced you to buy a higher tier cellular service plan than if you brought in a fully paid-off phone. Also, there are significant fees for breaking the 2-year contract.

> Buying a House in a City / you could still buy a 2-bedroom in Austin for $210,000

Yeah, thank NIMBYs for that again. When residential construction can't keep up with demand (mostly due to regulatory reasons), prices go up.

> The Stimulus Check / Billionaires blame inflation on you buying groceries with it.

You don't believe that printing money causes inflation? WTF

> Remote Work / Your company saved millions on office real estate.

You make it sound bad. I think it was great - zero time spent commuting, access to amenities at home such as a kitchen, more privacy, better mood.

> The Subscription Everything / You own nothing.

Renting isn't necessarily worse than owning. There is a break-even point that is different for every person. Renting Netflix for $0.01/month would be awesome. Maybe most people will be happy to pay $10/mo to have access to an enormous media library. $100/mo would be unreasonable. Consider the alternative - how much per month does it cost to purchase physical media to derive the same amount of enjoyment from entertainment?

> The Tip Screen / barista ... ask you to subsidize their wages because the corporation won't

"The corporation" ultimately receives money from customers who pay for the product. If no customer paid tips, "the corporation" can't magically create money out of thin air to pay the employees more; the corp would need to raise prices on the menus (which I agree with).

No, the question isn't whether "the corporation pays", because that's nonsense; it's whether people are obliged to pay because it clearly says so on the menu price, or generous people "voluntarily" pay more towards the barista's wages because they are socially "expected to".

> The End. / You own nothing. You subscribe to everything. Your rent is higher than your parents' mortgage.

It's worth repeating: Renting is not necessarily worse than owning. For housing, many people have done the analysis and I can point you to a heap of YouTube videos explaining the situation. There are both financial and non-financial aspects (e.g. Realtor fees, breaking a mortgage) to this comparison.


Pretty much every DSLR/DSLM camera out there has a "bulb" mode that keeps the shutter open as long as you hold down the shutter button. I think my personal record is a 20-minute exposure.

As for actually holding down the button, you can either use an external wired shutter button that has a mechanical lock to hold it down, or you use a wired controller that has an electronic timer, or you use a software feature in the camera to set the bulb timer.


For anybody wondering, the reason not to do a single ultra-long exposures is noise.

There's an equilibrium between exposure duration, aperture, and ISO that gives the best results for the conditions with a minimum amount of sensor noise, and getting close to the equilibrium and stacking the images typically gives better results than one massive exposure.


I believe your claim about noise and long exposures is false. To start, I posit that there are three sources of noise:

0) Photon shot noise from the object that you want to photograph. This is an inherent and unchangeable quantum-mechanical fact.

1) Sensor read noise per photo taken. This increases with the number of subexposures.

2) Dark current noise per time and per temperature.

#0 and #2 only depend on the total exposure time, not the number of subexposures. #1 actually gets worse with more subexposures, but what you gain are the ability to reject satellite trails, bad mount tracking, cosmic rays, wind gusts, rolling clouds, and other transient artifacts. Whereas if you took a single hour-long exposure, it's essentially guaranteed to be ruined by something.

The trade-off in how many / how long subexposures to take has been analyzed and discussed to death by astro imagers. To cite a few videos I enjoyed: https://www.youtube.com/results?search_query=astrophotograph... , https://www.youtube.com/watch?v=T_k9B01AeFM , https://www.youtube.com/playlist?list=PLaDi49CzWbrYhWEKxWiwB... , https://www.youtube.com/watch?v=mj5zn_Jz3dE , https://www.youtube.com/watch?v=n1RbyswFUqs

As for ISO, it is very commonly misunderstood. ISO amplifies photon noise and dark current noise, and changing the ISO doesn't make your images better or worse in these aspects. ISO in the form of analog gain can help boost the signal above the analog-to-digital converter noise, and that's what it's useful for. The MinutePhysics video explains excellently: https://www.youtube.com/watch?v=ZWSvHBG7X0w . More and more sensors these days approach "ISO invariance", where analog amplifier gain has about the same effect as digital gain (i.e. multiplying the measured numbers on a computer).

Exactly what I'm refuting:

> exposure duration

In astronomy, more is better. Get as much total exposure time as you can afford (e.g. time being at a suitable location, time spent monitoring the equipment, time under clear skies).

> aperture

In astronomy, more is better. Buy the biggest aperture you can afford - obviously, subject to constraints such as cost, weight, mountability, focal length. Also, telescopes don't have adjustable aperture blades, unlike general photographic lenses. You could put a disc cut-out in front of the telescope to close down the aperture, but that's just a waste of light.

> minimum amount of sensor noise

You get the least amount of sensor noise by reducing the exposure time and reducing the temperature (dedicated astro cameras have Peltier cooling). Note that although noise increases with time, signal increases with time faster, so the signal-to-noise ratio is proportional to the square root of time. So 100× more exposure time gives you a 10× better SNR.

> stacking the images typically gives better results than one massive exposure

This is the main falsehood that I wanted to address. Taking multiple images actually gives more noise overall, even if it's a tiny bit. But multiple images gives you much more processing flexibility and the ability to selectively reject things.


Exposure time (in digital imaging) is directly related to sensor well saturation.

It does not mater how much water you pour into a full bucket.


Does Titan have enough oxygen to allow the combustion of hydrocarbons?

> Does Titan have enough oxygen to allow the combustion of hydrocarbons?

Titan's atmosphere "is a largely anoxic environment, with little oxygen to cause the termination of complex organic reactions" [1].

[1] https://pmc.ncbi.nlm.nih.gov/articles/PMC10961852/


No, otherwise the first meteorite to hit would have caused the whole thing to go up in a massive conflagration.

This would make a great plot point in a space opera.

When people see that binary-float-64 causes 0.1 + 0.2 != 0.3, the immediate instinct is to reach for decimal arithmetic. And then they claim that you must use decimal arithmetic for financial calculations. I would rate these statements as half-true at best. Yes, 0.1 + 0.2 = 0.3 using decimal floating-point or fixed-point arithmetic, and yes, it's bad accounting practice when summing a bunch of items and getting a total that differs from the true answer.

But decimal floats fall short in subtle ways. Here is the simplest example - sales tax. In Ontario it's 13%. If you buy two items for $0.98 each, the tax on each is $0.1274. There is no legal, interoperable mechanism to charge the customer a fractional number of cents, so you just can't do that. If you are in charge of producing an invoice, you have to decide where to perform the rounding(s). You can round the tax on each item, which is $0.13 each, so the total is ($0.98 + $0.13) × 2 = $2.22. Or you can add up all the pre-tax items ($1.98) and calculate the tax ($0.2548) and round that ($0.25), which brings the total to $0.98×2 + $0.25 = $2.21, a different amount. Not only do you have to decide where to perform rounding(s), you also have to keep track of how many extra decimal places you need. Massachusetts's sales tax is 6.25%, so that's two more decimal places. If you have discounts like "25% off", now you have another phenomenon that can introduce extra decimal places.

If you do any kind of interest calculation, you will necessarily have decimal places exploding. The simplest example is to take $100 at 10% annual interest compounded annually, which will give you $110, $121, $133.1, $146.41, $161.051, $177.1561, etc., and you will need to round eventually. Or another example is, 10% annual interest, but computed daily (so 10%/365 per day) and added to the account at the end of the month - not only is 10%/365 inexact in decimal arithmetic, but also many decimal places will be generated in the tiny interest calculations per day.

If you do anything that philosophically uses "real numbers", then decimal FP has zero advantages compared to binary FP. If you use pow(), exp(), cos(), sin(), etc. for engineering calculations, continuous interest, physics modeling, describing objects in 3D scene, etc., there will necessarily be all sorts of rational, irrational, and transcendental numbers flying around, and they will have to be approximated in one way or another.


When writing financial software, one almost always reaches for a decimal library in that language and ends up using that instead of the language's built-in floats. (Sometimes you can use ints, but you can't once you need to do things like described above.)

Overall, yes, results need to be rounded, but it's pretty much financial software 101 not to use floats.


The one advantage of decimal floating point is that high schoolers have a better understanding of where decimal rounding happens.


This is legitimately a great explanation.


Reminds me of PG's classic essay, "Taste for Makers" (2002): https://paulgraham.com/taste.html


> AI may be making us think and write more alike

Many technologies have been doing that for centuries. For example: The printing press making books available to the masses, standardized spelling in English (it was a mess before!), radio and TV broadcasting speech thus creating more uniform accents nationwide, the Internet spreading all kinds of information globally instantly, even memes (literally thinking and writing alike).


Yeah, that doesn't mean it's not a bad thing.


Well, that escalated quickly. From skimming the first few screenfuls of the page, I thought it was going to be about a beginner programmer's first time dissecting the low-level bit structure of floating-point numbers and implementing some of the arithmetic and logic from scratch using integer operations.

And then she writes about logic cells, hardware pipeline architectures, RTL (register-transfer level), ASIC floorplans, and tapeout. Building hardware is hard, as iteration cycles are long and fabricating stuff costs real money. That was quite a journey.

Her "about" page adds more context that helps everything make sense:

> Professionally, I have a Masters in Electrical and Computer Engineering, have previously worked as a CPU designer at ARM and an FPGA engineer at Optiver. -- https://essenceia.github.io/about/


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: