1. async/await in Euphoria
- Posted by euphoric (admin) Oct 01, 2019
- 1410 views
Is Euphoria's next version going to have threads and/or async/await?
2. Re: async/await in Euphoria
- Posted by ghaberek (admin) Oct 01, 2019
- 1402 views
Is Euphoria's next version going to have threads and/or async/await?
No. This kind of feature requires a pretty big change to the back end. Anyone's welcome to explore how it might be implemented and report back though.
-Greg
3. Re: async/await in Euphoria
- Posted by jimcbrown (admin) Oct 28, 2019
- 1295 views
Is Euphoria's next version going to have threads and/or async/await?
No. This kind of feature requires a pretty big change to the back end. Anyone's welcome to explore how it might be implemented and report back though.
-Greg
I made an experimental version some years ago. It had true multithreading, but it basically gave each thread a copy of its own runtime to avoid non-threadsafe access within the runtime library itself. It has some serious limitations (being limited to *nix for example), but you can still view it at https://github.com/OpenEuphoria/euphoria/tree/dlmopen-multithreaded
(And no, it's definitely not ready to merge into the mainline. Not even close.)
4. Re: async/await in Euphoria
- Posted by euphoric (admin) Oct 28, 2019
- 1273 views
Is Euphoria's next version going to have threads and/or async/await?
No. This kind of feature requires a pretty big change to the back end. Anyone's welcome to explore how it might be implemented and report back though.
-Greg
It had true multithreading...
I guess it's time to give Euphoria a C++ backend.
5. Re: async/await in Euphoria
- Posted by bruce_axtens Oct 30, 2019
- 1192 views
Is Euphoria's next version going to have threads and/or async/await?
No. This kind of feature requires a pretty big change to the back end. Anyone's welcome to explore how it might be implemented and report back though.
-Greg
It had true multithreading...
I guess it's time to give Euphoria a C++ backend.
Or LLVM? Or Rust? Or ...
6. Re: async/await in Euphoria
- Posted by ghaberek (admin) Oct 31, 2019
- 1131 views
Or LLVM?
I've spent hours pouring over the LLVM docs trying to figure out the best way to make use of it for Euphoria.
It would certainly open up a wider range of options and features, as a lot of the backend stuff has been polished and battle-tested far more than Euphoria ever has.
But it would also be a lot of work and we might end up scrapping a vast majority of the existing codebase.
-Greg