Hacker News new | ask | show | jobs
by chaosprint 1334 days ago
Do you think rewriting pd in Rust can be a good solution?Async in Rust is one of its selling points:

https://rust-lang.github.io/async-book/

There are some good gui tools in Rust as well:

https://www.egui.rs/ https://github.com/setzer22/egui_node_graph

2 comments

No, I don't think that Rust would buy us anything in this regard.

"Async" in languages like Rust are meant for an entire different problem domain (mostly networking).

In my post above I'm talking about dispatching commands from the audio thread to a helper thread (pool) - and back. This has to be done in a realtime safe manner, so a general async framework won't be appropriate.

> There are some good gui tools in Rust as well:

I don't think GUI programming is exactly one of Rust's strengths :-)

I see. Was just thinking aloud.
(BTW, I did not downvote your comment. I know that you have actually written audio code in Rust and therefore assumed it was an honest question from your side :-)