Lazar Prijović
03/05/2024, 12:41 PMkotlin { wasmWasi { ... }}
configuration), and I don't want to run kotlin-js
directly from the bash.
Sorry if it was asked here before, I couldn't find it in READMEs or by Slack search.Tóth István Zoltán
03/05/2024, 12:51 PMplugins {
kotlin("multiplatform") version "1.9.10"
id("hu.simplexion.z2") version "2024.02.27"
}
It is not particularly hard to set up the plugins but you have to do some investigation to do it.
Resources:
https://github.com/demiurg906/kotlin-compiler-plugin-template
https://github.com/ahinchman1/Kotlin-Compiler-Crash-Course/blob/master/README.md
https://github.com/JetBrains/kotlin/blob/master/docs/fir
https://github.com/JetBrains/kotlin/blob/master/plugins/fir-plugin-prototype
https://github.com/JetBrains/kotlin/blob/master/compiler/test-infrastructure/ReadMe.md
(a bit outdated but good intro):
https://bnorm.medium.com/writing-your-second-kotlin-compiler-plugin-part-1-project-setup-7b05c7d93f6cTóth István Zoltán
03/05/2024, 12:56 PMLazar Prijović
03/05/2024, 3:30 PMWhat do you want to achieve btw? Just curious.I’m curious about how Kotlin/Wasm works and what it takes to implement some of the missing Wasm opcodes, but I need to be able to build test project first. (I actually did it using raw
kotlinc-js
calls, but feels unhandy tbh)Tóth István Zoltán
03/05/2024, 6:21 PMLazar Prijović
03/06/2024, 12:08 PMLazar Prijović
03/06/2024, 12:44 PM