Skip to content
프로젝트

소개

Erlang Replacement Therapy. Rust로 Erlang 런타임(BEAM 에뮬레이터)을 만들려는 또 하나의 시도입니다. 좋은 소식은 무엇을 해야 할지 안다는 것입니다. 나쁜 소식은 Rust를 어떻게 작성하는지 전혀 모른다는 것입니다.

게임 및 에뮬레이션

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original
https://app.fossa.io/api/projects/git%2Bgithub.com%2Fkvakvs%2FErlangRT.svg?type=shield

ErlangRT - Runtime

Erlang Replacement Therapy. This is an attempt to make Erlang runtime (BEAM emulator) in Rust. This is not the first attempt so I kinda know what I'm doing.

Progress to the Proof of Concept

  • Term library 80% (remaining 80% are in progress)
  • External Term Format (decoder 70%, encoder 0%)
  • BEAM Loader - mostly done
  • VM and processes 40%
  • VM loop and opcodes 45% (74 of 168)
  • Some basic BIFs <15%
  • Binaries, sub-binaries, binary heap, binary opcodes: <20%
Trying to run ``init:boot/1``

Tests in priv/test2.erl work. Running make test tries to run init:boot/1 and produces the output above.

Compiling

  • The source assumes that you have Erlang OTP 22+ source in a Git submodule in otp/, and the stdlib and preload BEAM files are compiled and ready. Makefile takes care of it.

  • Install latest Rust and Cargo via Rustup

  • Run make and with the magic of Bash autocomplete see which targets it supports. You might like:

    • make run - runs the executable with test args, whatever set by the developer, do not expect it to show any magical tricks;
    • make doc - builds doc pages in target/doc/erlang_rt/
    • make test - runs the tests
    • make build and make build-rel - builds but does not run the debug and the release target respectively

Currently the emulator expects to have preloaded BEAM modules from OTP 22+ located in otp/ Git submodule (Makefile takes care of it).

Editing and Code Navigation

I am using and strongly recommend IntelliJ IDEA CE (free version) with IntelliJ-Rust plugin (available in repositories tab inside IntelliJ).

Reference Material

Contributing

See CONTRIBUTING.rst

License Inspection

https://app.fossa.io/api/projects/git%2Bgithub.com%2Fkvakvs%2FErlangRT.svg?type=large

관련 프로젝트 살펴보기

불러오는 중…