elagabalus
v1.2.3
Published
Elagabalus is optimizing Brainfuck interpreter made using Emscripten and ASM.js
Downloads
19
Maintainers
Readme
Elagabalus ⚡🧠
Elagabalus is swift Brainfuck interpreter written in JavaScript
What is Elagabalus?
Elagabalus is quick Brainfuck interpreter employing optimalization to speed up execution exposing simple API. It's written using asm.js, to guarantee higher execution speed compared to unoptimized interpreters written in C or Assembly!
Install
npm install --global elagabalus
Usage
const bf = require("elagabalus");
bf.elagabalus("+[-[<<[+[--->]-[<<<]]]>>>-]>-.---.>..>.<<<<-.<+.>>>>>.>.<<.<-.", "Program Input");
// If second argument is equal to "", input will be read
// when needed, from stdin.
// => "hello world"
Note
This Brainfuck interpreter was written as alternative to modified bff4 version to speed up execution process even more.