ROBERTO ERLANG COMPILER STUDIO OTP MASTER MODE
Adaptive OTP Orbdrag · pulse · compile

PYTHON COMPILER STUDIO STYLE / ERLANG OTP

ERLANG
COMPILER
STUDIO

Wadah dibuat mengikuti gaya Python Compiler Studio: neon operations workspace, editor besar, output terminal, diagnostics, metrics, dan PWA. Fitur OTP Master diterapkan sebagai analyzer, simulator, source map, dan native erlc runner blueprint.

FAULT_TOLERANT_WORKER.ERL

Compiler Workspace

READY
fault_tolerant_worker.erlSAVED
BEAM / SHELL OUTPUTSIMULATED

        
Module-
Exports0
Functions0
OTP Hints0
Warnings0

OTP MASTER FEATURES

Behaviour Source Map

gen_server

Client-server behaviour scanner, callbacks, call/cast/info analysis, and state transition notes.

init/1 · handle_call/3 · terminate/2

supervisor

Restart strategy visualizer with one_for_one, one_for_all, rest_for_one and intensity/period hints.

child specs · restart policy

application

OTP application callback guide and .app.src validation for booting supervised systems.

start/2 · stop/1 · applications

erlc

Native compiler bridge blueprint for real BEAM compilation when deployed to a backend/container.

erlc -Wall *.erl

Included OTP Lite Snapshot

Selected files from the uploaded OTP source are included in otp-lite/: gen_server.erl, supervisor.erl, application.erl, README, and license. The full otp-master.zip is not bundled because it is too large for Pages asset upload.

FAULT TOLERANCE

Supervisor Tree Simulator

worker_sup
one_for_one
worker_server
gen_server
fault_tolerant_worker
process loop

    REAL COMPILER BACKEND

    Native erlc Runner Blueprint

    OPTIONAL
    docker build -t erl-runner native-runner
    
    docker run -p 8787:8787 erl-runner
    
    curl -X POST http://localhost:8787/api/compile \
      -H "content-type: application/json" \
      -d '{"filename":"worker_server.erl","source":"..."}'

    Static Pages cannot execute erlc directly. Use the included native runner on Node/Docker for real compilation, while this PWA gives instant syntax, OTP, and transcript simulation in the browser.

    GUIDE

    Compiler Actions

    Compile

    Checks module/export/functions, Erlang syntax markers, OTP behaviours, and generates BEAM-style output.

    Run Worker

    Simulates messages, factorial computation, mailbox response, and shell transcript.

    Crash + Restart

    Shows worker exit and supervisor restart flow for fault-tolerant design.

    OTP Master

    Maps your code to OTP behaviours and shows selected source snapshot references.