News for hackers. Stuff that matters.
Re:Swift Concurrency Roadmap by pjmlp on Saturday October 31, 2020 @11:50AM (#24952405)
Yeah, which then ends up in incompatible runtimes, no thanks.
Re:Swift Concurrency Roadmap by pornel on Saturday October 31, 2020 @06:59PM (#24955909)
You're confusing it with runtimes for Futures executors. Separating runtimes from the basic concept of thread-safety is the whole point.

Everything around Send/Sync is perfectly interoperable, because it's a rule for static analysis, not a runtime.

Re:Swift Concurrency Roadmap by son_ngu on Saturday October 31, 2020 @12:07PM (#24952573)
What do you mean by incompatible runtimes, can you give an example?
Re:Swift Concurrency Roadmap by pjmlp on Saturday October 31, 2020 @03:07PM (#24954281)
Yes,

https://blog.logrocket.com/a-practical-guide-to-async-in-rus...

> Some libraries require you to use a specific runtime because they rely on runtime internals to provide a solid API for you to use or wrap their own API around an existing runtime. One example is the actix_web web framework, which wraps its own API around tokio.

So if you want to use two libraries that follow this approach, now you have faced with the hurdle to combine two async/await runtimes into the application.

Even C++ knows better in this regard.

Re:Swift Concurrency Roadmap by Matthias247 on Sunday November 01, 2020 @05:45PM (#24963219)
We had this discussion before. Please don't repeat wrong statements over and over. C++ is in no ways different from Rust in this regard - they all just provide a coroutine transformation and future type, but not a builtin executor. And there is nothing more interoperable about C++ solution than about Rusts.

Actually Rust ones might even be better, since there is at least a well-defined interface that executors should follow (through the `Waker` type). The C++ executor interface discussion is probably older than the coroutines proposal, but afaik there still hasn't happened any standardization.