Arkadii Ivanov
11/17/2023, 7:30 PMjs
target, renders DOM elements (like React).
2. Compose for Web - uses js
target, renders via canvas.
3. Compose for WASM - uses wasm
target, renders via canvas.
It would be really nice if Compose folks could mention all variants on various landing pages and READMEs. For instance, the main README says nothing about the variant #2. And the landing page mentions something called "Web" but redirects to the variant #3. WDYT?rocketraman
11/17/2023, 8:28 PMArkadii Ivanov
11/17/2023, 9:03 PMrocketraman
11/17/2023, 11:39 PMArjan van Wieringen
11/18/2023, 8:49 AMArkadii Ivanov
11/18/2023, 9:00 AMjs
target it's super easy and native. We can import and use any existing JS library, or freely use the APIs like document
, window
, etc. If with WASM we can do the same, then the only concern for me is its adoption by browsers.Robert Jaros
11/20/2023, 6:58 PMdynamic
type in K/Wasm). You might be interested in a project I'm working on - https://github.com/rjaros/kilua. It's similar to Compose HTML and supports both JS and WASM targets with the same application code. It's still an early phase and no artifacts are published, but it already has all the main features of Compose HTML.Igor Demin
11/21/2023, 6:03 PMArkadii Ivanov
11/21/2023, 6:16 PMczuckie
11/22/2023, 11:19 AM