I think that Jetbrains has "left" the Compose/HTML...
# kilua
n
I think that Jetbrains has "left" the Compose/HTML project (no real progress recently, half-done or forever-experimental APIs, partial support for DOM APIs, etc.). So I'm thinking about migrating my internal Compose/HTML apps to Kilua. • Are there any recommendations/tips (or even tools) to start with the migration? :) • What about compatibility? Will I be able to use external libraries like routers? (I'm almost sure that I won't be able to use KobWeb's extensions like the
Modifier
system.) • Are there any features that are known to be missing compared to Compose/HTML? • What are the main differences? For example is state management exactly the same as in Compose HTML? Thanks.
r
Hello
Currently there are no tools to migrate from Compose HTML to Kilua. The API is a bit different, so manual work is required.
🙏 1
Kilua is not Compose HTML, so the libraries based on Compose HTML will not work. Kilua contains a routing module, which is almost 1 to 1 fork of https://github.com/hfhbd/routing-compose
👍🏻 1
n
which is almost 1 to 1 fork of https://github.com/hfhbd/routing-compose
Very fortunate is that I use this library for routing 😅
r
I don't know of any features missing in Kilua compared to Compose HTML. On the other hand Kilua gives you a lot of features Compose HTML don't have.
👍🏻 1
👍🏾 1
The state management is the same - it's the same Compose runtime.
👍🏻 1
Kilua's
@Composable
functions are extension functions on
IComponent
.
n
Kilua is not Compose HTML, so the libraries based on Compose HTML will not work
I think that my main problem is that I use KobWeb's
Modifier
system very extensively... It will be a huge work to migrate from it 😥
r
Probably. I wonder if Kilua could provide some migration helpers, but I'm not very familiar with Kobweb or Silk.
n
if Kilua could provide some migration helpers
I think it would be far from trivial... so if I'm the only person who needs such helper, it is not worth to develop one :)
Is there a Kilua alternative to StyleSheet? (Or KobWeb's CssStyle?)
r
d
@Robert Jaros feel free to hit me up if you ever want to discuss Kobweb classes (although my gut says that migration to Kilua would probably be a pain)