User avatar
neocat_polyproto polyproto federation protocol @polyproto@amazonawaws.com
3w
​​​​ ​:polyproto:​ ❤️​:WebAssembly:​ & ​:javascript:​

We have upgraded our polyproto Rust SDK into what is now the beginnings of a multi-language SDK! Using an early
WebAssembly facade around the Rust crate, we could harness the power of wasm-bindgen to make a very early first version of a reference polyproto JavaScript implementation that you could start using today to help you build polyproto applications for the Web!

codeberg.org/polyphony/polyproto-sdk

Simple language/TL;DR: The software written for polyproto to work in the programming language Rust now works in JavaScript too. A small helper lets the Rust code run in the browser. There's also an early JavaScript package that you can use to build polyproto web applications.
1
8
11
0

User avatar
neocat_polyproto polyproto federation protocol @polyproto@amazonawaws.com
3w
. FAQ (Frequently Asked Questions)
Why did you use WebAssembly to make a JavaScript package, instead of just writing JavaScript?
See the Architectural Concerns section of the polyproto-wasm README.
What about support for other languages, like Go, C, Zig, Python, etc.?
It has turned out that the architectural patterns used to make the WASM+JavaScript bindings is easier to do than anticipated. We will look into using this same pattern to make bindings for bindgen/cbindgen to create bindings to the Rust code for the C language. Since C is somewhat of a "universal standard" for programming language interoperability, these C bindings can then be used to generate libraries for ALL other programming languages. Note, that when we say "generate", we do NOT mean generative AI. There are programs, written by humans, that do this generation algorithmically and deterministically.
:ablobfoxbongohyper@app.wafrn.net:1❤️1
0
0
8
2