Replies: 1 comment 1 reply
-
So basically you want something similar to Python's async, right? A single threaded application with a cooperative scheduler of light weight tasks. It could be doable, but I'm not sure. Right now async is out of scope as it's lots of work and no obvious big advantage in the general case. The reason for generating C++ is that C++ has more similarities to Python than C does. Classes, exceptions, etc. If Mys is successful the transpiler could be redesigned to generate C code instead, given that there are good reasons for it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know the goal is to fully AOT, but thinking of embedded and micropython/wapy and especially wasm in its current form it could be an interesting option to have hooks around(in?) C++ functions ( c++ and parser newbie here so just silly asking) to do something like:
the compute block can be left and re entered any time.
an almost normal AOT call from mys suitable for running in an OS
A call from top of a VM.
I don't know how easy it's to write coroutines or do bare metal RT with C++, but i would highly appreciate the ability to write RT modules for wapy-micropython-pycopy with mys, as it's not that hard to do it in C99 + not using c-stack i have some hope for C++, what do you think ?
Beta Was this translation helpful? Give feedback.
All reactions