https://github.com/oxide-byte/wasm-calculator
POC in implementing as many programming languages to WASM Modules as possible
https://github.com/oxide-byte/wasm-calculator
kotlin leptos rust typescript wasm webassembly webassembly-lang
Last synced: 2 months ago
JSON representation
POC in implementing as many programming languages to WASM Modules as possible
- Host: GitHub
- URL: https://github.com/oxide-byte/wasm-calculator
- Owner: oxide-byte
- License: mit
- Created: 2025-03-09T13:01:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-26T22:10:34.000Z (about 1 year ago)
- Last Synced: 2025-03-26T23:23:09.241Z (about 1 year ago)
- Topics: kotlin, leptos, rust, typescript, wasm, webassembly, webassembly-lang
- Language: Rust
- Homepage:
- Size: 2.53 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# One Ring to rule ...
or somehow a theatrical introduction would be.
Target of this POC is to demonstate how many programming languages are already WASM Compatible and could exchange modules from one to the other language.
In this case there is a Rust Leptos Frontend consuming mathematical operations provided from different languages.
To not install all the languages, the build is done with Docker Images and build Scripts.
*Build WASM modules* : docker-compose up --build
| *module* | *language* | | *module* | *language* | | *module* | *language* |
|--------------------|------------|----|----------|------------|----|-------------|------------|
| wasm-add | Typescript | | wasm-mul | Kotlin | | wasm-power | Python |
| wasm-sub | WAT | | wasm-div | Go | | wasm-mod | Dart |
| wasm-min | Rust | | wasm-max | Java | | wasm-concat | Swift |
| wasm-digit-counter | Zig | | | | | | |
executing the Leptos application, you need have installed Rust + Trunk
*Executing frontend* : trunk serve

Links:
https://www.assemblyscript.org/introduction.html#from-a-webassembly-perspective
https://wa2.dev/