anyone have any guidance on using wasm? I am just ...
# kotlin-native
s
anyone have any guidance on using wasm? I am just trying to learn kotlin native/wasm and just want to print something to the console. I've tried this WASM tutorial https://superkotlin.com/kotlin-and-webassembly/, but am having trouble modifying it (windows maybe?)
n
Very difficult to see what is going on in the code/markup samples since there is no syntax highlighting being applied.
Kotlin Native 0.6.2 is being used in the article even though it isn't explicitly mentioned.
Noticed that the article is using MacOS even though it isn't explicitly mentioned.
Are you using Windows on your PC?
Didn't realise that Kotlinx has a DOM lib for Kotlin Native 😀.
Is the source available for the high level Kotlinx WASM libs?
s
@napperley the article has a link to all his source code, I just checked out his library and tried modifying it, but it didn't work. The source code for the kotlinx wasm stuff doesn't seem to actually contain any 'real code'
I'm using windows, but I could try it on a mac.
Though, if it's different depending on the platform, that kinda defeats the purpose of WASM/js in the first place.
n
Shouldn't be the case. At the end of the day WASM files are delivered from a Web server, not from the Web Browser. Doesn't matter which OS is used by a client (Linux, MacOS, Win, Android, iOS etc).
s
Yes, but you were asking what platform I was using, which theoretically shouldn't matter.
o