cretz/asmble
View on GitHub ↗ ★ 659 Kotlin
Compile WebAssembly to JVM and other WASM tools
31 mentions on Hacker News by 11 people: 4 stories, 27 comments · first 2017-04-17 · latest 2024-08-30
20082026
-
Not to mention that you can Compile JVM bytecode to Wasm https://github.com/cretz/asmble or Run the JVM on Wasm https://cheerpj.com/docs/overview Now is always the great time to be using JVM tech.
comment by sitkack · 2024-08-30 · in CIEL Is an Extended Lisp -
> I was curious if there was a WASM to JVM and it seems there is one on GitHub [...] https://github.com/cretz/asmble While it works well, this was mostly a fun project for me and I no longer really maintain it. I hope that the ideas and…
comment by kodablah · 2023-11-03 · in Bringing garbage collected programming languages efficiently to WebAssembly -
…to define an API as stable as POSIX. 1: https://www.oilshell.org/blog/2022/02/diagrams.html 2: https://github.com/cretz/asmble
comment by samsquire · 2023-11-03 · in Bringing garbage collected programming languages efficiently to WebAssembly -
I wrote https://github.com/cretz/asmble which has an AOT compiler and interpreter for WASM. Haven't worked on it for a while though.
comment by kodablah · 2023-05-09 · in CheerpJ 3.0: a JVM replacement in HTML5 and WASM to run Java on modern browsers -
Sure, compile to WASM and then use https://github.com/cretz/asmble to convert to JVM bytecode.
comment by AndrewDucker · 2023-05-05 · in Ask HN: Why are there no traditional language compilers that target the JVM? -
…applies no more to the JVM than to Wasmer. There exists WASM to JVM bytecode transpilers [0]. [0] - https://github.com/cretz/asmble
comment by gravypod · 2019-09-12 · in Dissatisfied with Docker -
…on the JVM [0], C in the browser, etc with decent performance because of those characteristics. 0 - https://github.com/cretz/asmble/tree/master/examples/rust-re...
comment by kodablah · 2019-08-21 · in WebAssembly Interface Types: Interoperate with All the Things -
…has to occur somewhere. 0 - http://www.graalvm.org/docs/getting-started/#running-llvm-in... 1 - https://github.com/cretz/asmble
comment by kodablah · 2018-12-07 · in Nginx on Wasmjit -
https://github.com/cretz/asmble
comment by kodablah · 2018-07-20 · in The future of WebAssembly – A look at upcoming features and proposals -
That line is labelled with https://github.com/cretz/asmble
comment by DougBTX · 2018-07-06 · in A graph of programming languages connected through compilers -
> incorrectly labeled as targeting Java Bytecode https://github.com/cretz/asmble The name of that tool is even labelled in the graph!
comment by chrisseaton · 2018-07-06 · in A graph of programming languages connected through compilers -
…:-) There's even an example using Rust regex on the JVM to get speedups in some cases [1]. 0 - https://github.com/cretz/asmble 1 - https://github.com/cretz/asmble/tree/master/examples/rust-re...
comment by kodablah · 2018-07-06 · in A graph of programming languages connected through compilers -
…many of uses are siloed by the frontend compilers. I think we can do better than libc+posix. 0 - https://github.com/cretz/asmble 1 - https://github.com/sunfishcode/wasmstandalone 2 - https://github.com/Cretonne/cretonne
comment by kodablah · 2018-03-14 · in Making WebAssembly better for Rust and for all languages -
See http://webassembly.org/docs/non-web/ . Portability. For example, I can use Rust on the JVM: https://github.com/cretz/asmble/tree/master/examples/rust-re...
comment by kodablah · 2018-03-03 · in WebAssembly architecture for Go -
Yup: https://github.com/cretz/asmble
comment by kodablah · 2018-03-03 · in WebAssembly architecture for Go -
…in JS, I got decent performance with Rust's regex engine compiled to WASM then compiled to the JVM: https://github.com/cretz/asmble/tree/master/examples/rust-re... . And that's without any extreme optimization on the JVM side.
comment by kodablah · 2018-01-20 · in WebAssembly and Rust: performance analysis -
Yup, I use those unsigned methods, e.g. https://github.com/cretz/asmble/blob/3cb439e887245f23bf876e8... . Luckily WASM only has 32/64 bit integer arithmetic.
comment by kodablah · 2018-01-05 · in TeaVM – Ahead-of-time transpiler of Java bytecode to JavaScript or WebAssembly -
There seems to be a good deal of info in the README: https://github.com/cretz/asmble#compilation-details I haven't dug deeply but it seems from the documentation that the project is trying to do things the 'right' way (mapping instructions…
comment by wging · 2018-01-05 · in TeaVM – Ahead-of-time transpiler of Java bytecode to JavaScript or WebAssembly -
For the reverse, I wrote a WASM-to-JVM compiler: https://github.com/cretz/asmble . I think WASM has the ability for us to finally cross the language boundaries without marrying ourselves to C/C++ ABI. But at this early stage, there's no…
comment by kodablah · 2018-01-05 · in TeaVM – Ahead-of-time transpiler of Java bytecode to JavaScript or WebAssembly -
…you can use these ones instead to actually write WASM. https://github.com/WebAssembly/wabt https://github.com/cretz/asmble
comment by pjmlp · 2017-12-16 · in WebAssembly Raytracer -
…you not require the "Cpu" instance as a static singleton but instead instantiate it as needed. 0 - https://github.com/cretz/asmble/blob/master/examples/rust-re...
comment by kodablah · 2017-12-14 · in Writing a CHIP-8 Emulator with Rust and WebAssembly -
…the JVM [0]. The core test suite, which I use and comply with 100%, is available to all [1]. 0 - https://github.com/cretz/asmble/ 1 - https://github.com/WebAssembly/spec/tree/master/test
comment by kodablah · 2017-12-12 · in WebAssembly, an executable format for the web -
In many ways, the JVM bytecode is a superset of WASM. That's why I wrote https://github.com/cretz/asmble .
comment by kodablah · 2017-09-22 · in Bringing the web up to speed with WebAssembly -
…makes the impl handle it. I had to account for this and other differences in my compiler [0]. 0 - https://github.com/cretz/asmble#control-flow-operations
comment by kodablah · 2017-07-12 · in Doppio: JVM written in JavaScript -
…[1] (disclaimer, I'm the author of the latter) 0 - https://github.com/konsoletyper/teavm 1 - https://github.com/cretz/asmble
comment by kodablah · 2017-06-28 · in ThinScript, an experimental programming language that can compile to WebAssembly -
…where I can easily have platform specific pieces. Kotlin is almost there[2], but not quite yet. 0 - https://github.com/cretz/asmble 1 - https://gist.github.com/cretz/2a49514b18914ef09b7c518db6db11... 2 -…
comment by kodablah · 2017-05-18 · in Learn Kotlin in Y Minutes -
…the binary form doesn't have a lot of these shortcuts, but overall it is very straightforward. 0 - https://github.com/cretz/asmble/blob/e9cdfc3b0feafc3d4f76b9d... 1 - https://github.com/cretz/asmble/blob/e9cdfc3b0feafc3d4f76b9d...
comment by kodablah · 2017-05-15 · in Understanding WebAssembly text format