News for hackers. Stuff that matters.
Re:Using WebAssembly threads from C, C++ and Rust by staticassertion on Wednesday July 21, 2021 @11:01AM (#27907225)
The problem is that the current state of operating systems is terrible. There's almost no isolation, tons of complexity, tons of attack surface, lock-in, etc.

Browsers are a massive improvement as a platform for developing code, or at least they have the potential to be.

Re:Using WebAssembly threads from C, C++ and Rust by kllrnohj on Wednesday July 21, 2021 @05:53PM (#27912680)
Only if you define operating systems as "Windows, MacOS, and desktop Linux"

Otherwise mobile operating systems have had isolation and a robust native platform for years. It's kinda why mobile apps absolutely exploded and browsers have been desperately trying to keep up for almost a decade now.

Re:Using WebAssembly threads from C, C++ and Rust by staticassertion on Wednesday July 21, 2021 @05:58PM (#27912726)
Yeah, mobile platforms are moderately better.
Re:Using WebAssembly threads from C, C++ and Rust by pjmlp on Thursday July 22, 2021 @01:56AM (#27915856)
They also have proper graphical APIs, instead of trying to use an API that targets 2012 hardware in 2021.
Re:Using WebAssembly threads from C, C++ and Rust by andrewmcwatters on Wednesday July 21, 2021 @12:17PM (#27908225)
It’s almost like operating systems should keep up or something.
Re:Using WebAssembly threads from C, C++ and Rust by TillE on Wednesday July 21, 2021 @12:38PM (#27908507)
It's really unfortunate that multiple attempts at capability-based microkernels have basically failed to come to fruition.

There should be a FOSS OS with powerful OS-level security features, but it just hasn't happened.

Re:Using WebAssembly threads from C, C++ and Rust by TazeTSchnitzel on Wednesday July 21, 2021 @02:08PM (#27909845)
I think every major OS kernel (Windows NT, Linux, Darwin) actually has optional sophisticated security capabilities these days. I think the problem is that it's really hard to make these work nicely with legacy software? The whole classic UNIX-ish model sort of falls apart.
Re:Using WebAssembly threads from C, C++ and Rust by staticassertion on Wednesday July 21, 2021 @04:05PM (#27911411)
I assume by capabilities they mean specifically a capabilities-based security model.
Re:Using WebAssembly threads from C, C++ and Rust by colonwqbang on Wednesday July 21, 2021 @05:20PM (#27912368)
Well, doesn't Linux have that? Maybe you could go into more detail about what you feel is missing today.
Re:Using WebAssembly threads from C, C++ and Rust by staticassertion on Wednesday July 21, 2021 @05:45PM (#27912606)
What linux calls capabilities is a misnomer that isn't particularly effective - it's sort of splitting root up into smaller pieces.

This is totally different from the actual capabilities security model, which is closer to a "if you can name a resource you can access that resource". So, for example, imagine every file on your system has a path with a uuid, and there is no "ls" - you'd only be able to access files whose names had been told to you/ that you created yourself.

That's a capabilities model, and Linux does not have that.

Re:Using WebAssembly threads from C, C++ and Rust by nnamtr on Wednesday July 21, 2021 @12:48PM (#27908685)
I always thought that's what Fuchsia is about?