News for hackers. Stuff that matters.
Re:Speed of Rust vs. C by bluejekyll on Saturday March 13, 2021 @06:42AM (#26445940)
You have made this claim multiple times. Why do you see this as a language issue and not an OS issue? It becomes an even bigger problem when we talk about distributed systems and distributed resources. Is there a language that handles this?

These issues about multiple processes and distributed systems are framework and OS level concerns. Rust helps you build fast concurrent solutions to those problems, but you’re correct that it can not solve problems exterior to the application runtime. How is that a deficiency with Rust?

Re:Speed of Rust vs. C by pjmlp on Saturday March 13, 2021 @06:55AM (#26445991)
Fearless concurrency sales pitch.

Yes languages like Erlang and runtimes like Coyote and Orleans.

Re:Speed of Rust vs. C by bluejekyll on Saturday March 13, 2021 @07:25AM (#26446110)
Erlang has a great concurrency model with higher overhead than Rust, but similar cross thread safety, doesn’t do anything about exterior resources to the application.

I’ve not worked with Coyote, but if it is the system for .net, it describes itself as a framework, “Coyote provides developers a programming framework for confidently building reliable asynchronous software on the .NET platform”.

Orleans similarly describes itself as a framework, “Orleans is a cross-platform software framework for building scalable and robust distributed interactive applications based on the .NET Framework.”

Rust is a language, similar frameworks are being built with it, the point your making does not appear to be about the language.

Re:Speed of Rust vs. C by zelphirkalt on Saturday March 13, 2021 @12:13PM (#26447973)
If I understand correctly, the Erlang point was, that you can have a distributed system by using Beam to scale to multiple machines and have them communicate via message passing, which is all possible and encouraged, because of how you structure and write code in Erlang, as actors with mailboxes, isolating actors from each other, except for the messages, that are passed.

You say, that the Erlang concurrency model has higher overhead than Rust. In Rust there are probably multiple projects going on right now (one of them is Bastion, but I guess there are probably others), which try to provide Erlang like concurrency. What do you mean by overhead of a concurrency model (that of Erlang) being higher than the overhead a programming language (Rust)? As far as I know Erlang's lightweight processes are about as lightweight as you can get. Is there a Rust framework for Erlang like concurrency, which reduces the footprint of lightweight processes even more?

Re:Speed of Rust vs. C by bluejekyll on Saturday March 13, 2021 @12:57PM (#26448397)
That wasn’t meant to be a snide comment about Erlang in any way. All I meant by the comment about higher-overhead was that the language itself generally has more costs to run, i.e. runtime, memory usage, garbage collector, interpreted, etc, than Rust.

The “process” model of Erlang is about as lightweight as you can get, agreed.

In terms of capabilities of beam across systems, point taken. Though we start stretching some of the understanding of where languages end and runtimes begin... Rust and C make those boundaries a little more clear.

Re:Speed of Rust vs. C by fulafel on Saturday March 13, 2021 @07:32AM (#26446137)
How could an OS adapt its processes functionality to help Rust here?
Re:Speed of Rust vs. C by ben0x539 on Saturday March 13, 2021 @08:17AM (#26446345)
Capabilities would probably be helpful :V
Re:Speed of Rust vs. C by acje on Saturday March 13, 2021 @11:05AM (#26447434)