Slava Kuzmich
Slava Kuzmich
Hey, I just wanted to explore the project, downloaded the code but IDE is unable to index it because newer Gradle 6.4 is incompatible with it. So now I have...
I really like how this proposal allows exposing structs and arrays to JS without wrappers, yet you can fully customize its JS appearance by adding custom methods and hiding private...
I think we should make virtual calls in Kotlin-like languages efficient at runtime and in terms if code size. We would get a lot of value having a simple type-check...
Use-case for multi-memory: Flutter Web Engine linking with wasm-compiled skia (C++) and ICU4X (Rust)
We have a similar use-case of linking with skia in Kotlin Compose UI framework. We also see interest from the Kotlin community in linking to external modules that use linear...
Custom build that traps (unreachable) instead of throwing: [kotlin-wasm-gc-no-eh.zip](https://github.com/WasmEdge/WasmEdge/files/10982537/kotlin-wasm-gc-no-eh.zip) Tested with SpiderMonkey jsshell-mac-2023-03-04-09-52-24-mozilla-central with `--no-wasm-exceptions` flag: ``` $ js --no-wasm-exceptions --wasm-gc --wasm-function-references --module=./index.mjs exports.add(10, 20) -> 30 exports.sumNumbers(10) -> 55...
`fb07` is a `struct.new` You can find the opcode we use at https://github.com/JetBrains/kotlin/blob/1.8.20/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/Operators.kt#L352 This encoding can be found in https://docs.google.com/document/d/1DklC3qVuOdLHSXB5UXghM_syCh-4cMinQ50ICiXnK3Q/edit#. It works in V8 and SpiderMonkey. Spec encoding is likely...
I assume Wasm expects toolchains to deal with 8 and 16-bit types. > What that means in practice is that a host language's overloaded APIs cannot be distinguished by the...
> It can only be done at compile time if there is a whole-program analysis (i.e. linking). I would argue that mangled names are used exactly to avoid that. Compilers...
I don't have a concrete additional encoding in mind. But anyway, now I think you would want to have indirection in string object for both slots, because alternative is preallocating...
> Do you know how the JVM solves this? Major JVM implementations use array with custom field prefix inherited from Object, without indirection. JVM languages have to use this String...