[erlang-questions] Erlang VM in Rust

Joshua Barney joshmbarney@REDACTED
Wed Sep 13 04:57:18 CEST 2017


Rust supports inline assembly https://doc.rust-lang.org/1.8.0/book/inline-assembly.html

Sent from my iPhone

> On Sep 12, 2017, at 9:47 PM, Thom Cherryhomes <thom.cherryhomes@REDACTED> wrote:
> 
> For a language that purports to be a replacement for low-level systems programming, Rust not having bitfields or unions, would be a real pain in the ass to do any intricate hardware driver work... I'm guessing that Rust is designed by 20-somethings who have never done a line of assembler in their lives?
> 
> sigh.
> -Thom
> 
>> On Tue, Sep 12, 2017 at 3:25 PM Dmytro Lytovchenko <dmytro.lytovchenko@REDACTED> wrote:
>> I tried to begin once.
>> 
>> Here's the catch:
>> Rust had no unions at the time of my experiments (added in 1.19 - July 2017)
>> 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 carefully :)
>> 
>> 2017-09-12 22:10 GMT+02:00 austin aigbe <eshikafe@REDACTED>:
>>> Hello,
>>> 
>>> Any consideration for implementing the Erlang VM in Rust?
>>> 
>>> Regards,
>>> Austin
>>> 
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>> 
>> 
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170912/c0a869fa/attachment.htm>


More information about the erlang-questions mailing list