-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Experimental example application without AWT implementation #2825
Comments
Thought of sharing this here as compose-jb team is exploring the AOT compilation. Dynamic linking of AWT libraries are now available on Windows and Linux GraalVM native images (changes are merged last week) - oracle/graal@f375678 . I think they are now working on the mac os support and is tracked as part of this issue - oracle/graal#4921 |
It would be interesting to see whether this issue JetBrains/skiko#580 which I originaly reported to bellsoft bell-sw/LibericaNIK#14 here will be fixed by these changes once they land on the mac. |
Any updates ? I'd really prefer Kotlin Native since that'll bring direct native support and sometimes just interacting with OS gets hard in JVM, e.g opening a folder selection dialog |
It is very interesting experimental research. |
When it will to continue i think we can check skiko+(GLFW or SDL) as backend for support native target.
|
Is Kotlin/WASI support also planned/experimented with? |
@Laxystem Do you mean Compose with Wasm? |
I mean, Kotlin supports two Wasm targets, Kotlin/WasmJS (for the web) and Kotlin/WasmWASI (for everything else, via the WASI libraries). Afaik Compose/Wasm only compiles to Kotlin/WasmJS. Is compose also experimenting with supporting Kotlin/WasmWASI? |
I think at the moment there is no way to get the user interface of the application. This is not part of wasi. Depending on the difference in the runtime implementation, it may work with the imported functions. |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Desktop target of Compose Multiplatform uses AWT/Swing under the hood. It adds many advantages, but also adds many issues.
Investigate:
We can:
Note, that AWT/Swing implementation will still be needed for Swing interop (needed for IDEA interop).
P.S. We have one very simple example without AWT here: https://github.com/JetBrains/compose-jb/tree/master/experimental/lwjgl-integration
The text was updated successfully, but these errors were encountered: