John O'Reilly
09/30/2023, 10:36 AMbashor
10/02/2023, 6:03 PM1.9.20*
and available at https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental
kotlinx-coroutines 1.7.2-wasm1
compose-multiplatform 1.5.1-dev-wasm01
kotlinx-serialization 1.6.0-wasm0
kotlinx-atomicfu 0.22.0-wasm1
kotlinx-datetime 0.4.0-wasm2
John O'Reilly
10/02/2023, 6:05 PMAn exception occurred applying plugin request [id: 'org.jetbrains.compose', version: '1.5.1-dev-wasm01']
> Failed to apply plugin 'org.jetbrains.compose'.
> Shared build service 'org.jetbrains.compose.internal.service.ConfigurationProblemReporterService' parameters have unexpected type: org.gradle.api.services.BuildServiceParameters
1.4.0-dev-wasm09
the right version of compose compiler to use?> Could not resolve all dependencies for configuration ':compose-web:wasmJsNpmAggregated'.
> Could not find org.jetbrains.kotlin:kotlin-stdlib:1.9.30-dev-460.
bashor
10/02/2023, 6:16 PMJohn O'Reilly
10/02/2023, 6:17 PMbashor
10/02/2023, 7:03 PMJohn O'Reilly
10/02/2023, 7:03 PM2.3.3-wasm0
still latest version of Ktor that supports wasm (from https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental/io/ktor/ktor/)?Could not find org.jetbrains.kotlin:kotlin-stdlib-wasm:1.9.20-Beta2.
this is due I guess to
if (requested.module.name.startsWith("kotlin-stdlib")) {
val kotlinVersion = project.property("kotlin.version") as String
useVersion(kotlinVersion)
}
bashor
10/03/2023, 4:52 PMisI think so, we don’t have new ktor yet (cc @Igor Yakovlev)still latest version of Ktor that supports wasm2.3.3-wasm0
do you think performance right now is somewhat expected given stage tech is at
or is it worth seeing if as mentioned there are perhaps some bottlenecks in the implementation?The performance mostly should be good — at least, comparable or better than JS. Definitely, there is room for improvement, there could be issues in specific libraries. Feel free to report perf issues as well.
John O'Reilly
10/03/2023, 5:13 PMorg.jetbrains.kotlin:kotlin-stdlib-wasm:1.9.20-Beta2
version right now?bashor
10/03/2023, 6:21 PMI think I saw something about that before (timers) but then was wondering about https://code.benco.io/chip8/web/ ...they seem to perform very well....but could likely of course be using different approachIDK, from first sight, I don’t feel a difference 🤷♂️
John O'Reilly
10/03/2023, 6:25 PMshould there be aI see there'sversion right noworg.jetbrains.kotlin:kotlin-stdlib-wasm:1.9.20-Beta2
1.9.20-dev-6845
version of that and a 1.9.20-Beta2
version of kotlin-stdilib-wasm-js
resolutionStrategy
to handle thosebashor
10/03/2023, 6:26 PMkotlin-stdilib-wasm-js
and kotlin-stdilib-wasm-wasi
since 1.9.20-Betakotlin-stdilib-wasm
John O'Reilly
10/03/2023, 6:29 PMkotlin-stdlib-wasm
+--- io.ktor:ktor-client-core:2.3.3-wasm0
| \--- io.ktor:ktor-client-core-wasm:2.3.3-wasm0
| +--- org.jetbrains.kotlin:kotlin-stdlib-wasm:1.9.0 -> 1.9.20-Beta2 FAILED
| +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.2-wasm0 -> 1.7.2-wasm1 (*)
bashor
10/03/2023, 6:31 PMmaven("<https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev>")
to reposJohn O'Reilly
10/03/2023, 6:32 PMbashor
10/03/2023, 6:33 PMorg.jetbrains.kotlin:kotlin-stdlib-wasm:1.9.0
with org.jetbrains.kotlin:kotlin-stdlib-wasm-js:1.9.20-Beta2
John O'Reilly
10/03/2023, 6:36 PMresolutionStrategy {
dependencySubstitution {
substitute(module("org.jetbrains.kotlin:kotlin-stdlib-wasm:1.9.0"))
.using(module("org.jetbrains.kotlin:kotlin-stdlib-wasm-js:1.9.20-Beta2"))
}
eachDependency {
if (requested.module.name.startsWith("kotlin-stdlib")) {
useVersion("1.9.20-Beta2")
}
}
}
e: There are still 2 unbound symbols at the end of IR linkage process:
Unbound public symbol IrSimpleFunctionPublicSymbolImpl: org.w3c.dom/WebSocket.addEventListener|-5832680268725389244[0]
Unbound public symbol IrSimpleFunctionPublicSymbolImpl: org.w3c.dom/WebSocket.removeEventListener|3589491163511314858[0]
bashor
10/03/2023, 7:46 PMJustin Salér
10/03/2023, 10:17 PMcompose = "1.5.1-dev-wasm01"
compose-compiler = "1.5.2.1-Beta"
kotlin = "1.9.20-Beta2"
ksp = "1.9.20-Beta2-1.0.13"
serialization = "1.6.0-wasm0"
When running the task compileProductionExecutableKotlinWasmJs I get the error:
Module "org.jetbrains.compose.ui:ui" has a reference to symbol kotlin/AllowDifferentMembersInActual.<init>|<init>(){}[0]. Neither the module itself nor its dependencies contain such declaration.
Anyone has any idea whether I am doing something wrong 😐?bashor
10/04/2023, 7:18 PMJustin Salér
10/05/2023, 12:54 PMconfigurations.all {
resolutionStrategy.eachDependency {
if (requested.module.name.startsWith("kotlin-stdlib")) {
useVersion(libs.versions.kotlin.get())
}
}
}
John O'Reilly
10/13/2023, 3:08 PMbashor
10/13/2023, 3:17 PM3.0.0-wasm0
I just waited updates for compose before sharing it. But, actually, this version of ktor should work with well with library versions mentioned above.John O'Reilly
10/13/2023, 3:18 PM3.0.0-wasm0
version now.....will try thatbashor
10/13/2023, 6:16 PM