HNHacker News
TopNewBestAskShowJobs

ErikCorry

1,091 karma · joined April 21, 2011

submissionscomments
ErikCorry··on C++26: Trivial infinite loops are no longer undefined behaviour
> [The C rule was rejected for C++ because it] could inhibit useful optimizations

If be curious if these are the sorts of optimizations I would find useful to the point where I would be happy to pay the price of this annoying new behaviour.

Or are they just the sorts of optimizations that a compiler writer finds useful who is engaged in a multi year career-defining pissing contest with a competing team?

Don't get me wrong, I have myself engaged in a multi year career-defining pissing contest with a competing team. It's fun. But let's not kid ourselves that it's for the users' sake.

ErikCorry··on The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library
I don't know if you are the author but he wrote:

The only things that can easily go wrong now are:

The compiler turns out to be evil and introduces an “optimization” that I don’t anticipate

The V8 developers turn out to be evil and modify how this logic works and break my assumptions in a future release

ErikCorry··on The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library
Read the whole thing, but OK you didn't accuse anyone of being evil yet. But let me clarify that even if a later optimization breaks your constant time property that still wouldn't be evil.
ErikCorry··on The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library
Nobody was evil you just tried to rely on a property that V8 never promised.

Wasm doesn't promise it either but there's a much better chance you get what you want there.

ErikCorry··on Don't Wordle
Theoretically, you could still win today's if there were 8 steps. The ninth is the word you have to avoid.

I haven't found a way to win today with 9 steps.

https://gist.github.com/erikcorry/b21723a0ba49c044b03a6030dc...

Edit: Using some of your words you can get to 9 steps (10 including the word you have to avoid): https://gist.github.com/erikcorry/d55d263b129eb7a56c8c212296...

ErikCorry··on How does IKEA come up with names for its products?
Could also be Vietnamese, they are big on diacritics.
ErikCorry··on How does IKEA come up with names for its products?
The toilet seat is named after the strait between Denmark and Sweden. https://youtu.be/ajBN0Xypi0I
ErikCorry··on Changes at Google DeepMind: Demis Hassabis from CEO to Chair, Jeff Dean departs
?? Of course there's a CEO of YouTube.
ErikCorry··on How many branches can your CPU predict?
Yeah performance counters
ErikCorry··on Micropayments as a reality check for news sites
I like the coins idea. I don't subscribe because I know I'll forget about it and it will turn into a recurring charge on my credit card. But I would buy $10 of coins, knowing the paywall just comes back if I don't buy more, and if I lose interest it won't keep costing me anything.

When I see the "$1 introductory offer" I just think they are trying to trick me.

ErikCorry··on Micropayments as a reality check for news sites
$13/month is less than many of those sites cost individually, but I get them all for that price?
ErikCorry··on The story of Squeak, a practical Smalltalk written in itself (1997) [pdf]
A lot of it went into V8 too.
ErikCorry··on Help, My Java Object Vanished (and the GC Is Not at Fault)
I'm actually pretty surprised if the JVM uses malloc to allocate the heap. V8 uses mmap, never malloc.
ErikCorry··on Perl's decline was cultural
Larry should be remembered for the development of "patch" more than perl. Without the concept of fuzzily applying patches to modified source files you can't have "git rebase" or "git merge".
ErikCorry··on Perl's decline was cultural
The syntax problems are just surface. There are some real problems underneath:

Poor performance of the single implementation.

A single implementation.

Leaky ref counted GC, but 'luckily' the syntax for references is so clunky that nobody does anything complicated enough that it really matters.

Bolted on object oriented features that never got the love they needed at a time when oo languages were sweeping the world.

Most of the wizards decamping to a new language (Perl6) that was 'developed' for years without an actual implementation to keep them grounded.

ErikCorry··on Help, My Java Object Vanished (and the GC Is Not at Fault)
Nice!

Why malloc? Surely this is an on-heap object, not malloc allocated?

ErikCorry··on GCC SC approves inclusion of Algol 68 Front End
Yeah if you ever wondered why the fields in a lot of Posix APIs have names with prefixes like tm_sec and tm_usec it's because of this misfeature of early C.
ErikCorry··on Cloudflare outage on November 18, 2025 post mortem
You could always manually build the same thing as lambda with a class and you had the same problem.
ErikCorry··on V8 Garbage Collector
The C++ GC is not for V8 code, it's for the users of the V8 API eg. Chrome (Blink). It's not being used for big internal systems like the compilers or GC.

V8 has its first module in Rust and I'm sure more are coming, but it's not necessarily an easy integration.

JS is a GCed language. Are there good examples of Rust interacting well with a GCed language runtime where it is able to free unreachable cross domain pointer cycles? Like a JS object that has a reference to a Rust object, which itself has a reference to a JS object. Add more steps and hopefully you can see that collecting such cycles is a hard problem. This is the problem the C++ GC solves.

By the way you can't always break cycles with weak pointers. The browser standards have semantics you have to adhere to.

ErikCorry··on Vitamin D reduces incidence and duration of colds in those with low levels
That sounds like a lot:

To help prevent vitamin D toxicity, don't take more than 4,000 international units (IU) a day of vitamin D unless your healthcare professional tells you to. Most adults need only 600 IU of vitamin D a day https://www.mayoclinic.org/healthy-lifestyle/nutrition-and-h...

ErikCorry··on Vitamin D reduces incidence and duration of colds in those with low levels
Most vitamins are a waste of time and money, some are even harmful[1], but there are a lot of people with D deficiency, especially in winter[2].

1 https://www.mdpi.com/2072-6643/17/17/2744#:~:text=highest%20...

2 https://www.abs.gov.au/articles/vitamin-d#edit-group-image--...

ErikCorry··on Weekend projects: Chicken Squisher 3000
IME ducks don't go into the coop at dusk so they will get trapped on the wrong side.
ErikCorry··on Weekend projects: Chicken Squisher 3000
Is that why it doesn't work?
ErikCorry··on Peanut allergies have plummeted in children
[Citation needed] for a pesticide connection.

Unless you are an insect, most pesticides are harmless for you. And for those that are not, nobody has proved a connection to allergies.

ErikCorry··on Peanut allergies have plummeted in children
Miasma is a very bad idea because https://news.ycombinator.com/item?id=45647737
ErikCorry··on Peanut allergies have plummeted in children
Eating peanuts reduces allergies, but getting peanuts on your skin increases allergies.

https://www.sciencedirect.com/science/article/pii/S009167491...

Or maybe in your lungs.

https://pmc.ncbi.nlm.nih.gov/articles/PMC8429226/#R7

ErikCorry··on United MAX Hit by Falling Object at 36,000 Feet
Classic Azimov plot line
ErikCorry··on RFCs: Blueprints of the Internet
Forgotten? No mention of why we should think they are forgotten outside the headline.
ErikCorry··on Steve Jobs and Cray-1 to be featured on 2026 American Innovations $1 coin
That's coming in 2026: https://san.com/cc/us-money-cant-feature-living-people-why-t...
ErikCorry··on The cost of turning down wind turbines in Britain
I guess I'm using 'Nimby' in the wider sense to include all the red tape that slows down or blocks every building project in the UK. A project doesn't have to be individually targeted by Nimbies to be slowed down, they have enough regulatory quicksand to stop building wholesale. Then when you get through that, they can target your individual project.

And Nimby is politics, so I don't see a distinction between Nimby and 'purely politics'.

Page 1 of 14Next →