HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
vvanders
wasm_lua
C2017–2021
vvanders / wasm_lua

wasm_lua

Lua VM running in a WASM environment

5Distinct people
10Mentions
0Explicit recommenders
804GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Lua VM running in a WASM environment

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year10 dated mentions

Observed mentions: 2017-03-18 04:06:09 UTC to 2021-04-24 22:55:52 UTC.

02462017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 6 mentions; 1 submissions, 5 comments20172018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC615
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC202
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC101
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101

What Hacker News says

10 sources
Can confirm that Lua does run in WASM in the browser: https://github.com/vvanders/wasm_lua I sometimes wonder what the world would be like if Lua had zero based indices and saw a bit broader adoption. It's such an easy language to embed/extends although QuickJS looks like it's going to give it a run for the money in the long term given the similar goals on ease of embedding. I wonder if anyone has compiled QuickJS to WASM and run it in the browser.
In Wasm3 compiles itself (using LLVM/Clang compiled to WASM)
I mean Lua[1] exists, predates Javascript[2], is incredibly fast[3] and can be easily embedded[4]. I've personally shipped production game titles where the whole game state + logic was inside a 400kb block on a PSP where you only had 8MB of system ram, and this was before LuaJIT. Sadly, developer familiarity and ecosystem/mindshare sometimes dominate technical constraints, at least that's how we ended up with Javascript everywhere. [1] https://en.wikipedia.org/wiki/Lua_(programming_language) [2] https://en.wikipedia.org/wiki/JavaScript [3] https://luajit.org/ [4] https://github.com/vvanders/wasm_lua
In Hermes – A small JavaScript engine optimized for running React Native on Android
Sounds like you're yearning for WebAssembly. With WebAssembly you can write your solution in any language it just needs to be compiled to WebAssembly. Every major browser is backing WebAssembly. As a result (and for example) Microsoft is making it possible to write front-end code in C# which is compiled with a small .NET runtime into the browser with WebAssembly. In theory efforts could be (and likely have been) made to compile Lua to WebAssembly. Quick search reveals at least two results: https://scriptinghelpers.org/lua https://github.com/vvanders/wasm_lua
In Why we rewrote Lua in JS (2017)
Looks like a great guide to get started with coding with Minecraft. There have been some efforts over the years, but this looks really complete. One obstacle for schools to get started with this however, is buying all the Minecraft licenses. To this end, I've been toying around a bit with an open source Minecraft clone called Minetest lately [1][2]. It's surprisingly complete, and could also have great uses in (programming) education. It has a C++ core based on the Irrlicht 3D engine, but many of the game mechanics are implemented in Lua. Modifications like the examples in Teachcraft can also be built in Lua. For example, this [3] is a mod to spread flowers and mushrooms around the map. The Lua language isn't used much currently in the education environment, which is mostly focused around Scratch, Python and sometimes Javascript. Then aga
Read the rest
in, seeing different languages and noticing their similarities can be educational in itself. Finally, I've been wondering how hard it would be to port something like Minetest to Emscripten. Irrlicht seems to be compatible already [4]. The non-JIT version of Lua is compatible as well [5]. Obstacles in Minetest that I can identify would be the heavy use of the filesystem, the use of UDP sockets and memory sharing between threads. Would anyone know more about how hard porting something like this would be? [1] https://github.com/minetest [2] http://www.minetest.net [3] https://github.com/minetest/minetest_game/blob/master/mods/f... [4] http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=51... [5] https://github.com/vvanders/wasm_lua
In Show HN: Teachcraft – Learn Python through Minecraft

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.