News for hackers. Stuff that matters.
Re:WASM Is the New CGI by nox101 on Thursday October 10, 2024 @12:20PM (#41800412)
yes you're missing something. Java applets and flash outside of any security and they ran the users code in that insecure environment

WASM, in broswers, runs entirely inside a secure environment with no access to the system.

    js->browser->os
     |
     +--Flash/java-->os

vs

    wasm->browser->os

further. WASM and Js are in their own process with no os acesss. they can't access the os except by rpc to the broswer

flash/java tho, ran all user code in the same process with full access to the os

Re:WASM Is the New CGI by kaba0 on Thursday October 10, 2024 @04:43PM (#41803376)
Seems like a trivial thing to fix though, it was a lack of will over an explicit design tradeoff. At Applet’s time there was simply no such API surface to attach to and make useful programs.
Re:WASM Is the New CGI by nox101 on Friday October 11, 2024 @08:05PM (#41815175)
it's not a trivial thing to fix. It took apple, Mozilla, and google years to refsctor their broswers to isolate user code in its own process and then effiently ipc all services to other processes.

chrome started with that but also started without GPU based graphics and spent 2-3 years adding yet another process make it possible. mozilla and safari took almost 10 years to catch up.