ENGINEERING 136 upvotes 2018

Why we rewrote Lua in JS (2017)

136 pts
Hacker News Signal
2018 · Shared by @polm23
Why we rewrote Lua in JS (2017) by @polm23

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2018), @polm23 shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (43 total discussions):

YI @yiransheng Peer Contributor
ER @erikpukinskis Peer Contributor
SH @Shank Peer Contributor
WI @willvarfar Peer Contributor

I really had to double-check the date to see that it wasn't an April Fools joke :)

Historically, programming languages claiming rewrites in some other 'competing' language have been April Fools fodder e.g. Emacs in Perl https://www.gnu.org/fun/jokes/gnuemacs.en.html ↗

KZ @kzrdude Peer Contributor

Is Lua 5.x stable and reliable? Maybe it is, or promises to be now?

On the whole, Lua seems prone to redesign itself and make relatively big changes, like the env changes from Lua 5.1 to 5.2.

I think that works well, since Lua is often embedded and version locked by the application that uses it, but it is the opposite of a cautious and stable evolution of the language.

HISTORICAL ERA Cloud & Mobile Era (2014–2019)
COMMUNITY SCORE 136 points
TOTAL DISCUSSIONS 43 comments
TOPICS & TECH STACK: