Giter Club home page Giter Club logo

gluonvm's Introduction

THE NEXT BIG small THING™

Gluon Erlang Abstract Machine

A configurable and small virtual machine which runs Erlang BEAM bytecode. Many simplifications have been made to keep code small at the cost of speed. The goal is to go smaller than several tens of kilobytes (oh well, under megabyte would be cool).

Features used in code can be configured at compile time when you want to squeeze VM into a particularly small platform.

emulator/

C++ implementation of minimalistic BEAM virtual machine. Has simple configurable feature settings in include/g_FEATURES.h (like distribution, float, bignum support etc).

Requires CMake, Clang (probably will work with GCC too?).

Run make in emulator/ directory. CMakeLists.txt work with QtCreator as IDE not to mention cmake supporting host of other IDEs.

Features (Done)

  • Processes, heaps and stack (no GC yet)
  • Reductions and scheduling
  • Message passing and infinite receiving (no timers and timed receive yet)
  • Some BIFs (ever growing amount)
  • Many opcodes, BEAM file loading and code path search

TODO

  • Exceptions
  • Process links, monitors
  • Simple GC
  • Binaries
  • Floats maybe?

Deprecated

apps/asm, apps/emuemu and apps/prototype

Few apps which are currently out of use, but were created to help me learn BEAM universe: A simple beam-to-something-else assembler, a high level interpreter for GluonVM intermediate representation (IR), which simulates properties of Erlang VM (memory, instruction set, etc) and processes (registers, stack, process execution state).

apps/prototype is based on github.com/tonyrog/beam (owe a beer to Tony!).

gluonvm's People

Contributors

kvakvs avatar

Watchers

James Cloos avatar  avatar

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.