https://kotlinlang.org logo
#webassembly
Title
# webassembly
s

Sam

07/22/2019, 12:50 AM
What makes LLVM not suitable for wasm? Isn’t that what Rust is using? I was under the impression that it worked very well for it.
g

gildor

07/22/2019, 4:10 AM
Depends on use case. If you have existing native project, that already uses some C libs etc, and you want run it on wasm, it's fine of course But in general idea to compile to bit code which is like CPU abstraction and than compile it back to wasm which is essentially bytecode and has nothing to do with CPU is not really efficient (it's like compile for JVM using llvm), if you can compile to wasm directly So it may work for some projects, but it will be slow and not so efficient imo
s

Sam

07/23/2019, 5:32 PM
Isn’t that as it applies to GC’d languages and not so much against ones that use other techniques like reference counting?
g

gildor

07/23/2019, 11:31 PM
There are also compile time and generated wasm size factors
2 Views