|
|
Subscribe / Log in / New account

Herman: Shipping Rust in Firefox

Herman: Shipping Rust in Firefox

Posted Jul 13, 2016 13:49 UTC (Wed) by jezuch (subscriber, #52988)
In reply to: Herman: Shipping Rust in Firefox by oever
Parent article: Herman: Shipping Rust in Firefox

> Java and C# avoid memory corruption but still allow plenty of ways to make simple errors.

I don't know about C#, but: more specifically, Java was (like, 20 years ago) advertised as having concurrency built-in but it doesn't really have any real safeguards against improper use of concurrency. It's all synchronization primitives or classes like ConcurrentSkipListMap which don't really make it hard to create race-free programs. You have to think hard, and I mean *hard* about concurrency and synchronization and races. Java 8's parallel Streams are much, much better in this regard, though (streams are similar to what in Rust is called iterators, and parallel streams are what the rayon crate implements).

I can only imagine that in C++ it's even worse :)


to post comments

Herman: Shipping Rust in Firefox

Posted Jul 19, 2016 8:49 UTC (Tue) by marcH (subscriber, #57642) [Link]

> I can only imagine that in C++ it's even worse :)

Despite[*] being much older, C and C++ got a proper [shared] memory model defined in their respective standards 7 years *after* Java did.

[*] or... because of it?!


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds