News for hackers. Stuff that matters.
Re:The Browser's Main Thread Is Expensive by fxd on Thursday September 03, 2026 @09:03AM (#49549437)
Why would a regular React site be so huge?

Maybe they had bundled fonts and images.

The bundle is just the lib plus your files minified.

You want to bundle vs hitting dozens of requests just to get files.

It’s not like React/webpack is a black box doing things I don’t know or want.

Performance: I challenge you to build a complex 3D game in vanilla threejs vs using r3f. useFrame alone is worth it

Re:The Browser's Main Thread Is Expensive by pjmlp on Thursday September 03, 2026 @09:10AM (#49549494)
What a joke of challenge, there is still no browser 3D game that is a match to Infinity Blade, that Apple used to demo OpenGL ES 3.0 hardware in 2011.

Anyone serious about 3D gaming on the Web has to do streaming.

Re:The Browser's Main Thread Is Expensive by StilesCrisis on Thursday September 03, 2026 @09:37AM (#49549774)
https://playcanv.as/p/MflWvdTW/

This isn't new at all, just one of the first things I found by googling "webgl demo."

WebGPU of course goes even further.

I think the real gap is just that people by-and-large aren't building real games on top of Safari. It's more lucrative to use the app store with its low-friction payment system.

Re:The Browser's Main Thread Is Expensive by pjmlp on Thursday September 03, 2026 @10:17AM (#49550228)
At the same level, as a commercial game, not a tech demo scene.
Re:The Browser's Main Thread Is Expensive by StilesCrisis on Thursday September 03, 2026 @11:57AM (#49552159)
There are business-level issues with web based AAA games, as I was alluding to before. Apple has a two-click payment system. If you failed a Candy Crush level and you needed to get up from the couch and get your credit card out of your wallet to buy more turns, no one would ever do it.
Re:The Browser's Main Thread Is Expensive by pjmlp on Thursday September 03, 2026 @03:03PM (#49555020)
One thing doesn't prevent the other, yet most Web 3D is hardly any better than Flash games, with worse tooling.
Re:The Browser's Main Thread Is Expensive by simpleintheory on Thursday September 03, 2026 @11:22AM (#49551522)
I made a project a while back to port Minecraft's desktop version to the web and it runs decently-ish on a good computer with WebGPU (but takes a really long time to load)

[1]: https://owlcraft.raymondjxu.net

Re:The Browser's Main Thread Is Expensive by pjmlp on Thursday September 03, 2026 @11:37AM (#49551780)
Which, again, aren't Infinity Blade graphics.

Kudos on the work though.

Re:The Browser's Main Thread Is Expensive by mrguyorama on Thursday September 03, 2026 @04:17PM (#49556243)
This was functionally enabled by default by Minecraft being java, including the part where it was popularized by a java applet of a very early version.

That ran well back in 2012 on shit hardware.

Re:The Browser's Main Thread Is Expensive by groundzeros2015 on Thursday September 03, 2026 @09:47AM (#49549880)
ES 2.0
Re:The Browser's Main Thread Is Expensive by pjmlp on Thursday September 03, 2026 @10:17AM (#49550226)
Correct, my mistake.
Re:The Browser's Main Thread Is Expensive by fxd on Thursday September 03, 2026 @09:51AM (#49549913)
Thought experiment was React vs Not React - welcome to it!

I don’t think anyone doubts C outperforms JavaScript.

Edit: instead of acknowledging his mistake, pjmlp downvoted my original after reading this comment. Haha! This site is so lame. The highest karma people on HN are nontechnical egomaniacs

Re:The Browser's Main Thread Is Expensive by pjmlp on Thursday September 03, 2026 @10:16AM (#49550219)
Prove that I was the one down voting before writing such shitty reply!