r/java • u/Zardotab • Dec 29 '22
Could Java Applets have been done right? DOM is limiting [CrossPost Discussion]
/r/webdev/comments/zxel5o/could_java_applets_or_flash_have_been_done_right/
5
Upvotes
View all comments
Show parent comment
1
u/vprise Dec 30 '22
This isn't a typical and common scenario. A browser rendering pipeline is a deep and complex process. A desktop app has a similarly (albeit simpler) complex pipeline. You need to integrate both and you need to do that efficiently.
Y2K browser plugins were in a different world. GPUs back then were much simpler. You would use them mostly for flipping buffers. So an "Embed" was pretty easy. It still flickered and caused problems. But it it was all just double buffering to a surface.
Modern rendering uses shaders to anti-alias your vectors with subpixel precision. This is nuanced and different for each platform. It can be impacted by small environmental changes (e.g. rotating the monitor vertically). Now QT etc. solve these things but they solve them differently from the way the browser solves it. They solve it on their own event dispatch thread with their own complexities. Even if you were OK to limit your app to "one square" which isn't enough in a modern browser. It would still look "weird" and different to the rest of the browser. It will pay an overhead for just being in the browser with no justification. Might as well deploy and install the app. In which case I would bring back Java Web Start which was a far better direction (albeit broken as hell).