Re

Rewriting Scratch 3.0 from scratch in Lua (browser-free native runtime)

Hacker News

Rewriting Scratch 3.0 from scratch in Lua (browser-free native runtime)

Built a native Scratch 3.0 runtime in Lua that runs .sb3 projects without a browser. Why? Browser sandboxing prevents access to hardware features (haptics, sensors, fine-grained perf controls). Native runtime gives you direct hardware access and lets you deploy to consoles, handhelds, embedded devices. Also means much smaller binaries (LÖVE is ~7MB vs 50-100MB for Electron). How it works: - Scratch blocks compile to IR, then optimize, then generate Lua - LuaJIT executes the compiled code - Coroutine-based threading for concurrent scripts - Lazy loading + LRU cache for memory management - SVG support via resvg FFI ~100% compatible with Scratch 3.0 blocks. Extensions that need JavaScript won't work (no Music, TTS, Video Sensing), but core blocks are there. Built on LÖVE framework, so it's cross-platform (desktop, mobile, gaming devices). Still rough around the edges (user input not implemented yet, cloud variables only work locally), but it runs real Scratch projects today.

Share card

Actual performance

7points
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: compatible · Missing: supports, reddit linkedin, podcasting
81%81% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: lua, ide, io · Missing: https docs, excited, just released
80%80% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: user, code · Missing: mac, agents, macos
77%77% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: platform · Missing: plus, intuitive, reviews
46%46% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: video · Missing: mobile apps, ios, personal
27%27% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
19%19% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ne
Nested VMs from Scratch in C66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Nested VMs from Scratch in C

Hacker News4
A
A debugger from scratch – part 166%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A debugger from scratch – part 1

Hacker News3
Ja
Javadoc Rewritten from Scratch61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Javadoc Rewritten from Scratch

Hacker News9
MM
MMOBomb 4.0 – I rebuild it from scratch61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MMOBomb 4.0 – I rebuild it from scratch

Hacker News1
GC
GCounter CRDT Implemented from Scratch in Golang56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GCounter CRDT Implemented from Scratch in Golang

Hacker News1
The CEO's Brainpan
The CEO's Brainpan27%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An itch that I can't quite scratch.

Indie Hackers24communication
Im
Implement a toy video encoder from scratch in browser65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Implement a toy video encoder from scratch in browser

Hacker News4
De
Debco – Build Debian Containers from Scratch Without Dockerfile62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Debco – Build Debian Containers from Scratch Without Dockerfile

Hacker News2
Po
Ponder – A minimalist browser scratch pad57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ponder – A minimalist browser scratch pad

Hacker News2
Im
Image-triangulation – Delaunay and Voronoi from scratch51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Image-triangulation – Delaunay and Voronoi from scratch

Hacker News63