Re:I can no longer compile my first Flash game
by rendall on Monday March 07, 2022 @04:49AM
(#30585910)
"Comparatively small" is doing a lot of lifting, there. What about Flash was "comparatively small" compared with Safari, and why does that let Safari of the hook for its vulnerabilities compared with Flash?
[ Parent
| on HN ]
Re:I can no longer compile my first Flash game
by bjoli on Monday March 07, 2022 @05:13AM
(#30586045)
I spelunked through the Firefox source code about 10 years ago.
A modern browser is an amazingly complex piece of software. A gazillion parsers with the ability to handle malformed content that should give anyone nightmares. Multiple JITs and interpreters. Layout handling with incremental grid calculation algorithms that gave me vertigo - before I understood that it was done asynchronously.
There is no way in hell flash is anywhere near as complex.
Re:I can no longer compile my first Flash game
by rendall on Monday March 07, 2022 @05:42AM
(#30586221)
Your "no way in hell" is not really an answer, and any response will just devolve into "Uh huh!" "Nuh uh!"
Browsers now are very complex. At the time, we were still dealing with IE6 and JavaScript 3.
Flash could do literally everything that browsers at the time did, and more. Load and display multimedia files, animate them, interpret ActionScript, and do it cross platform, cross browser, in a performant, relatively secure manner.
Re:I can no longer compile my first Flash game
by gmueckl on Monday March 07, 2022 @03:12PM
(#30592740)
"No well in hell" is a very good answer. Just the HTML DOM and layouting code in KHTML before it was forked into WebKit was an enormously complex piece of code. Then there is the JS implementation (including compiler - JS gets transferred as source code), the SVG DOM and renderer and other goodies that were integral parts of browsers already back then that I'm probably not thinking about.
Re:I can no longer compile my first Flash game
by bjoli on Tuesday March 08, 2022 @03:03AM
(#30597629)
Just adding to this: the attack surface of a web browser is humongous compared to that of a relatively small runtime, even in 2008. In 2011 when I had a look through the FF codebase, there were already 2 JITs for JavaScript, one which had been in for years (but I don't remember if it was in use).
Re:I can no longer compile my first Flash game
by bjoli on Monday March 07, 2022 @07:27AM
(#30586953)
You compiled to flash. Content served that were run by the flash runtime were valid or didn't work at all. The amount of code dealing with malformed content in browsers is staggering. A browser deals with everything that flash did, but in more complex ways, while also doing a LOT more.