3 ms·
It always boggles my mind how people on HN keep claiming that websites are slow because of JS when every 10th headline is about raytracing in WebGPU at 60fps or
by jupp0r 3y ago
It always boggles my mind how people on HN keep claiming that websites are slow because of JS when every 10th headline is about raytracing in WebGPU at 60fps or running LLM inference locally in the browser or similar.
Let me open your mind up to the possibility that no language can prevent unperformant applications being written in it and that the vast majority of web apps don't treat performance as their primary concern as long as it's good enough for their particular definition of "good enough".
If you are so motivated, creating high performant web apps is easy. The tooling to make improvements is among the best for all programming languages.
- satvikpendem 3y agoThose examples are both using...the GPU. No wonder you can make websites fast if you offload everything to a separate processing unit. Which unironically is one reason why people are pushing for WASM and GPU rendering for canvas as an application platform.
- jupp0r 3y agoModern browsers use GPUs extensively in their rendering engines. Here's a nice overview presentation on Chrome's rendering pipeline, for example: https://docs.google.com/presentation/d/1i1Brb5FTmjStDpnUeKBphKZOJVjZzpM_rv5Wb3TMMtU/mobilepresent?slide=id.g3c8accb579_0_0 https://docs.google.com/presentation/d/1i1Brb5FTmjStDpnUeKBp...