Hacker News new | ask | show | jobs
by simonw 26 days ago
I like this statement:

> The web browser is very, very, very powerful software for applications, and the cost of accessing that power is going down seemingly every day.

It's wild how much easier it is to build things that harness web technology these days. I'm building features on top of three.js and offline storage and SSE and WebAudio and WebAssembly multiple times per week these days. I used to tinker with some of those maybe once or twice a year.

5 comments

I built a voice-command driven kitchen assistant demo with webkit speech to text and WebAudio, and that was 10 years ago!

would be fun to revisit and see what v2 would look like today, I have a feeling I wouldn't be manually recording voice lines this time around ha

https://github.com/pathouse/kitchen_assistant

Why three.js? Your LLM will do fine without it and be able to optimize further for your particular use case without being stopped by three.js architecture that may or may not fit your project.

Ask your LLM, "Can we remove three.js so that we can re-architect the graphics system to be more optimized for our specific use case?" and see what it comes back with.

OK, this comment convinced me to give that a shot.

Here's a thing I made in Three.js this morning - a Nudibranch themed Faberge Egg: https://static.simonwillison.net/static/2026/Hidden-Reef-Egg... (77KB)

I just asked Claude (Opus 5.5 Medium running in regular Claude Chat) to port that to Vanilla JS, in the same thread where it had built it, and got this: https://static.simonwillison.net/static/2026/Hidden-Reef-Egg... (98KB)

They aren't identical - you can see what Claude said about that in the transcript (I don't fully understand why it differed): https://claude.ai/share/e56d163e-2793-4677-aa11-191d5058b414

But yeah, it turns out Claude Opus 5.5 is perfectly capable of 3D modeling in Vanilla JS + WebGL without Three.js.

In eyeballing the code I find the Three.js slightly easier to understand myself, but I rarely look at the code for these 3D projects so that isn't a particularly big deal.

I don't know your prompt but I'd suggest also adding things like "use best GPU practices" and "use techniques AAA games use to achieve the best performance and best visuals", "make it beautiful like a AAA game" etc...

Also, comparing, the three.js version downloaded 395k representing 1.6meg of data. The raw version downloaded 109k representing 200k of data. You listed the three.js version is as smaller but it's not smaller, it had to download three.js

The performance got way better on my machine, 120ms (Vanilla) VS 504ms (Three.js) INP[0].

[0]: https://web.dev/articles/inp

Note that some features have been removed in the vanilla version (eg. glow effect, glass - see transcript posted earlier).
I made an app+DSL for making 3D things with Opus 5 that did a pretty good job without three.js: https://fab.ooer.com/ (setting the depth of field to about 0.3 and then switching Quality to 'traced' looks really nice.)
Three.js egg : 2,61 Mo

Vanilla : 173,4 ko

Vanilla gets way better FPS on my M1.

I had Claude do a raymarched game with rust-gpu (initially Futhark) + webgpu + wasm. It definitely ran terribly, but it was surprisingly good at modeling with SDFs

https://github.com/badly-drawn-wizards/wizard-vibes

That's my experience too, except that I'm not using three.js, just WebGL. At this very moment I'm trying to elicit an in-browser machine-vision app that records go games on a go board if you mount your cellphone on a tripod over the board, with the idea of integrating it with an Emscriptened KataGo to give kibitzers real-time feedback. This would have been insanely ambitious for me three months ago, and now I'm hoping I have it in good enough shape to test at the go club tonight.
It's wild how much more difficult it is to actually use things that harness web technology these days.
Between web 2.0 and now I though the web would be finished. I think i got it wrong and the web is just getting started!