Hacker GitHub

← All repos

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

Mentions per year 31 mentions · busiest year 2018 (13)
20082026
  1. 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
  2. > 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…
  3. …to define an API as stable as POSIX. 1: https://www.oilshell.org/blog/2022/02/diagrams.html 2: https://github.com/cretz/asmble
  4. 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.
  5. Sure, compile to WASM and then use https://github.com/cretz/asmble to convert to JVM bytecode.
  6. …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
  7. …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...
  8. …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
  9. https://github.com/cretz/asmble
  10. That line is labelled with https://github.com/cretz/asmble
  11. > incorrectly labeled as targeting Java Bytecode https://github.com/cretz/asmble The name of that tool is even labelled in the graph!
  12. …:-) 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...
  13. …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
  14. 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
  15. Yup: https://github.com/cretz/asmble
    comment by kodablah · 2018-03-03 · in WebAssembly architecture for Go
  16. …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
  17. Yup, I use those unsigned methods, e.g. https://github.com/cretz/asmble/blob/3cb439e887245f23bf876e8... . Luckily WASM only has 32/64 bit integer arithmetic.
  18. 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…
  19. 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…
  20. …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
  21. …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...
  22. …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
  23. In many ways, the JVM bytecode is a superset of WASM. That's why I wrote https://github.com/cretz/asmble .
  24. …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
  25. …[1] (disclaimer, I'm the author of the latter) 0 - https://github.com/konsoletyper/teavm 1 - https://github.com/cretz/asmble
  26. …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
  27. …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