CharlieTap
08/05/2026, 3:10 PMJim Teichgräber
08/06/2026, 7:27 AMprintln, etc. But most likely, we'll just provide the core module as well, as the compiler output itself will remain a core module for the foreseeable future; feel free to follow KT-87723 on how we plan to get components from our core modules, from a tooling perspective.
> will there be a similar annotation for components
Providing that would be our preferred solution, but is way harder to do than it might sound. To actually be interoperable with other Wasm component tooling, runtimes, etc. (which is the whole point, after all), we will essentially have to map some subset of the Kotlin typesystem to WIT either automatically, or through user-provided annotations or some kind of DSL; if we don't provide that, no other tooling would know what the hell our high-level types are, and couldn't actually run the function.
To actually make components highly usable, we are planning on providing something of that sort, so that ideally, you don't have to know WIT to export something to a component. But that is a bit far away, as we first have to get to a stage where WIT itself does work properly and has nice support, so that you only have to provide the source and we generate the bindings for you automatically, etc.
> or is the expectation the user will need to provide their own WIT interface and bind to it?
So for now, enabling people to do this comfortably (basically hiding as many implementation details of the prototype that's currently available) is our main priority, as that will be necessary regardless :)CharlieTap
08/06/2026, 8:10 AM