[erlang-questions] Erlang VM in Rust
Tue Sep 12 22:25:48 CEST 2017
I tried to begin once.
Here's the catch:
- Rust had no unions at the time of my experiments (added in 1.19 - July
- Rust has no bit fields (some libraries exist trying to alleviate this)
- Erlang process heap is created and maintained by abusing pointers and
bits in them. Casting integers to pointers and back i believe is possible
but will give you some pain.
- A really fast VM loop is done using C/C++ goto (void*) extension, in
Rust you will probably have to use old good switch/case (slower)
When you overcome these base problems, it should be possible to proceed
2017-09-12 22:10 GMT+02:00 austin aigbe <>:
> Any consideration for implementing the Erlang VM in Rust?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions