News for hackers. Stuff that matters.
Re:Using Rust in Non-Rust Servers to Improve Performance by marcosdumay on Monday October 28, 2024 @11:49AM (#41972387)
There are plenty of reasons. They are just not intrinsic to the isolation, instead they come from complications rooted deeply on the underlying system.

If you rebuild Linux from the ground up with isolation in mind, you will be able to do it more efficiently. People are indeed in the process of rewriting it, but it's far from complete (and moving back and forward, as not every Linux dev cares about it).

Re:Using Rust in Non-Rust Servers to Improve Performance by btilly on Monday October 28, 2024 @12:26PM (#41972965)
Unless you can be concrete and specific about some of those reasons, you're just replacing handwaving with more vigorous handwaving.

What is it specifically about JavaScript's implementation of data isolation that, in your mind, helps cause the excessive memory usage?

Re:Using Rust in Non-Rust Servers to Improve Performance by marcosdumay on Monday October 28, 2024 @12:43PM (#41973195)
Just a day or two ago, there was an article here about problems implementing a kind of read-only memory constraint that Javacript benefited from in other OSes.
Re:Using Rust in Non-Rust Servers to Improve Performance by btilly on Monday October 28, 2024 @01:35PM (#41973803)
I must have missed that article. Can you find it?

Unless you can come up with a specific reference, it seems unlikely that this would explain the large memory efficiency difference. By contrast it is simple and straightforward to understand why keeping temporary garbage until garbage collection could result in tying up a lot of memory while continually running code that allocates memory and lets it go out of scope. If you search, you'll find lots of references to this happening in a variety of languages.