-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for coroutines? #11
Comments
Thank you :) Yes there are. I had even started implementing something like this. I wanted to map Aff in ps to coroutines in kotlin, but I got stuck at implementing a runtime for Aff. |
My attempts at implementing Aff using coroutines can be found here: https://github.com/csicar/pskt-foreigns/tree/coroutines ATM I'm not looking at trying again, but I'd be happy to get PRs for it ;) |
@csicar Am I understanding correctly by a runtime for Aff essentially you're just interpreting all of the "base" functions in If so, what are the current open problems with this approach? No guarantees in terms of when I'd actually have the time to dig into it -- but I'd be happy to contribute time permitting. |
As a somewhat related question: Have you thought at all about supporting interop with |
Sorry for the late response.
Yes, that's right.
I'm not sure there are any. The problem is just, that a understand neither If you'd like to have a try at implementing
Yes, I think |
Yes, very much. AFAIK Jetpack Compose unfortunately does not use a vdom, but instead does compile-time analysis of your code to insert update to the ui calls at the appropriate places. That could prove challenging to implement in the FFI. There is also an early attempt at implementing a vdom for normal android widgets, which can be found here: https://github.com/csicar/purescript-android-todomvc/blob/master/ps/src/Main.purs |
Hello! First off, I'd just like to say: Thank you for this great project. As someone who loves Kotlin, but also occasionally wants to do some pure-script style things on Android, this is great!
I was just wondering: Are there any plans to support a representation of Kotlin-specific types like
suspend
functions on the pure-script side? I suppose this could be something like aAsyncEff
orSuspendEff
function on the purescript side that gets converted into a suspend fun in the backend.The text was updated successfully, but these errors were encountered: