Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's created with javascript in the browser, which is not efficient.


JavaScript is very efficient. It compiles to native on the fly in v8 engines. The DOM itself, however, has a lot of foot guns for performance.


That's a distinction without a difference. Running JS is slower than native. The user of JS cares about the real world speed of emulating a quadra machine, which is shown as very slow at this webpage.


This conversation went on a tangent. It started off with people complaining about modern GUIs then moved onto Outlook and then someone rushes to blame JavaScript / Electron. JS runs 50-80% as fast as native, which is more than fast enough thanks to Moore's law, for virtually any GUI application. The web has a reputation for being slow, thanks to a traditional lack of GPU acceleration as well as 25 years of legacy code attached to its Document Object Model, that are pretty gnarly for browser vendors to deal with. That has nothing to do with JS itself.

JS can run full GPU accelerated graphics with WebGL (and soon WebGPU), with shaders, complex geometries, textures, etc at 60 FPS: https://threejs.org/examples/#webgl_animation_keyframes.

The MacOS 9 demo as shown, is impressive, but it is far from optimized, given that it is a side project. But it's impressive all the same that it's emulating a full Mac environment in the browser. Read the developer's own comments on it: https://blog.persistent.info/2022/03/blog-post.html


> This conversation went on a tangent.

The discussion was to answer, "And why is everything just so slow!"

> The web has a reputation for being slow, thanks to a traditional lack of GPU acceleration as well as 25 years of legacy code attached to its Document Object Model, that are pretty gnarly for browser vendors to deal with. That has nothing to do with JS itself.

That's not exactly true, though, as many discussions here on HN have demonstrated. The web is not slow due to, "a traditional lack of GPU acceleration." The DOM is the execution environment of JS in the browser. This isn't a discussion about JS in any other environment.

While you may have a vested interest in JS, that doesn't change its properties. Please, let's get back to the actual discussion.




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

Search: