u/Public-Evidence-9354

▲ 7 r/EmuDev

I built an open-source SaaS that compiles TypeScript into Z80/6502 Assembly for GameBoy and NES natively in the browser.

Hi folks,

Writing homebrew games for the GameBoy or Mega Drive usually requires dealing with pure Assembly or very specific C toolchains. I wanted to see if I could bring modern web dev DX (Developer Experience) to retro consoles.

I built RE-trolab, a multi-stage compiler that runs 100% locally in your browser.

The Architecture:

  • You write strict TypeScript (AssemblyScript) or Lua in a Monaco editor on the web.
  • The core engine (written in Rust and compiled to WebAssembly) parses the AST (Abstract Syntax Tree).
  • It acts as a transpiler/compiler, emitting pure Z80 (for GameBoy/Master System) or 6502 (for NES) instructions.
  • It outputs the .gb or .nes ROM directly to a web-based emulator running right next to your code.

The best part? Since the Rust compiler runs in WASM, there are zero server costs to host this IDE. It also has a decentralized package manager for assets/sprites.

Is anyone here working with TS to Assembly translation? Would love feedback on the memory mapping approach.

Repo: https://github.com/bmcc-DEV/RE-trolab

reddit.com
u/Public-Evidence-9354 — 4 days ago
▲ 9 r/nostr

I "hijacked" the Nostr protocol to build a decentralized Serverless WASM cloud in Rust (Zero AWS costs)

Hey everyone,

My uncle recently told me I was wasting time not studying traditional finance. Out of pure spite, I spent the last week doing a hyper-focus sprint to build a decentralized Web3 infrastructure from scratch.

The coolest part I want to share with you is the VOID-COSMIC_VPS. It’s a distributed computing engine that essentially creates a serverless cloud out of thin air.

How it works:
Instead of TCP/Sockets or traditional message queues, I used Nostr as a global task broker. I created a custom event (Kind 31222).

  1. The client publishes a computational task to Nostr relays.
  2. The "Animus" worker node (written in Rust) listens to this event.
  3. It pulls the WebAssembly (WASM) payload via IPFS, executes it in a secure sandbox, and publishes the result back via Nostr (Kind 31223).

I'm getting around ~2s latency for remote WASM execution without a single centralized server.

Built entirely in Rust and WebAssembly. Would love to hear your thoughts on using Nostr relays as a global MapReduce queue!

Repo: https://github.com/bmcc-DEV/VOID-COSMIC_VPS

reddit.com
u/Public-Evidence-9354 — 4 days ago