bastion icon indicating copy to clipboard operation
bastion copied to clipboard

Compilation to WASM runtime

Open vertexclique opened this issue 5 years ago • 6 comments

Make everything ready for WASM runtime. The executor should have single thread. This is requested by various people to incorporate Bastion to their projects.

vertexclique avatar Dec 15 '19 19:12 vertexclique

WASM should enable bastion-rs to offer something very similar to Erlang in terms of being able to distribute both code and data to distributed processes.

Erlang was designed to make functions serializable over the network allowing the persona of particular worker to evolve over time.

WASM allow you essentially do the same thing.

It seems inevitable to me that there will be WASM based Hadoop/Spark/Erlang replacement and Bastion seems like it's moving in that direction.

zmanian avatar Dec 29 '19 16:12 zmanian

Ok I have no idea how to do it, but I wanna give it a try.

o0Ignition0o avatar Jan 17 '20 13:01 o0Ignition0o

I'm working on a wasm executor in agnostik that we will need to add wasm support to bastion. It will be in the next agnostik release

Stupremee avatar Apr 01 '20 12:04 Stupremee

It is not possible until bastion package can be compiled solely for wasm target. Placing executor doesn't mean that it will compile to wasm.

vertexclique avatar Apr 02 '20 11:04 vertexclique

Yeah, I think the idea was executing WASM functions via the bastion runtime.

zmanian avatar Apr 02 '20 16:04 zmanian

Nice idea. Maybe provide the ability for the other script languages like Lua, python as the executing runtime.

like .with_exec_script("xx.py")

attila-lin avatar May 10 '20 06:05 attila-lin