1. async/await in Euphoria

Is Euphoria's next version going to have threads and/or async/await?

new topic     » topic index » view message » categorize

2. Re: async/await in Euphoria

euphoric said...

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: async/await in Euphoria

ghaberek said...
euphoric said...

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.)

new topic     » goto parent     » topic index » view message » categorize

4. Re: async/await in Euphoria

jimcbrown said...
ghaberek said...
euphoric said...

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.

grin

new topic     » goto parent     » topic index » view message » categorize

5. Re: async/await in Euphoria

euphoric said...
jimcbrown said...
ghaberek said...
euphoric said...

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 ...

new topic     » goto parent     » topic index » view message » categorize

6. Re: async/await in Euphoria

bruce_axtens said...

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu