Coder Social home page Coder Social logo

hailelagi / erlangrt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kvakvs/erlangrt

0.0 0.0 0.0 1.64 MB

Erlang Replacement Therapy. Another attempt to make Erlang runtime (BEAM emulator) in Rust. Good news: I know what to do. Bad news: I have no clue how to Rust

License: MIT License

Python 2.77% Erlang 6.73% Rust 90.00% Makefile 0.49%

erlangrt's Introduction

image

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%

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

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.