<https://github.com/OShane-McKenzie/IdleOS/tree/ma...
# webassembly
o
https://github.com/OShane-McKenzie/IdleOS/tree/master I have been trying out Kotlin/Wasm for the past couple of weeks to see how much I can do with it, there were some issues that definitely needs ironing out, some I had to figure out on my own, but it was still usable. I created a simulated desktop environment using it, check it out.
🔥 4
b
Good job!
Have you chance to report issues you faced?
It looks like you deployed unoptimized/dev distribution.
e
@bashor the .wasm file is 15.7 MB, how much would it be with optimizations more or less?
o
@bashor About uploading the dev version, it is the only on that will run due to the following error: Import #10 "js_code" "kotlin.wasm.internal.intToExternref": function import requires a callable LinkError: WebAssembly.instantiate(): Import #10 "js_code" "kotlin.wasm.internal.intToExternref": function import requires a callable
I do not know if it is something I am doing wrong or it's a bug in k/w
So only the dev version work, not the production
b
@O'Shane McKenzie could you please try to clean and rebuild? If issue still there please file an issue. Also, out of curiosity, please share the size of the wasm file with the prod build.
o
Will do the clean and rebuild. The file size is 15.7mb
@bashor
b
The file size is 15.7mb
Looks like it’s size of dev build
o
@bashor oh, for the prod build. OK, going to check it. 15.7mb is indeed the dev build
@bashor Production build size is 3.7mb. After clean rebuild, production seems to be working. 😕 Strange, I tried that before and it made no difference.
👍 1
🙏 1
b
After clean rebuild, production seems to be working.
Then, sounds like something that fixed recently, we’ll double check it.
🙂 1
o
Would it be possible to run production locally on a bare minimum Linux install using chrome koisk mode? @bashor
b
Yeah, should work.