1,788 karma · joined Mar 13, 2025 (1y ago) · 921 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
I tried Borland C++ and it was absolutely confusing, but I was probably just too young. Even QBasic was deeply confusing for a long time, but eventually I finally made a simple, terribly written and horribly broken Bomberman clone.
Those looking to experience something similar to that feeling should buy pico8.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Looks similar to Teal.
This is relatively exciting.
Also, called it!
Disappointed that it maintains syntactic Lua compatibility. Would have been a good time for a clean slate on the shoulders of hindsight.
comment 1y ago · link · parent
Guy was clearly an inventor at heart.
680.
Laugh Track(en.wikipedia.org ↗)
3 points · by 90s_dev · 1y ago · 2 comments
comment 1y ago · link · parent
They're all just Lua tables with specialized type checking for specific behavior.
I really wish the Lua authors would add official types to Lua. The time has come.
comment 1y ago · link · parent
Like another commenter said, using . instead of : is maybe the most common mistake, too easy to make. And Lua offers no help preventing or checking it.
TypeScript is a great language. So is Lua. So is C.
When used carefully to avoid their warts. Learning how to do that for any language takes time and practice though.
comment 1y ago · link · parent
A programmer wants the compiler to accept code that looks like a stupid mistake when he knows it's not.
But he also wants to have the compiler make sure he isn't making stupid mistakes by accident.
How can it do both? They're at odds.
comment 1y ago · link · parent
Semantically, Lua is almost identical to the core of JavaScript. Metatables are a genius alternative to prototype chains.
Lua's syntax is beautifully simple and unambiguous, but at the cost of being moderately inconvenient in 2025 unfortunately. It could benefit from an ESNext-style renewal.
I get why they made the C API that way, but in practice it's very easy to get wrong.
I'm not sure how fast vanilla Lua is today compared to similar languages. I think LuaJIT (and Luau?) are most often used when performance is needed.
comment 1y ago · link · parent
So Teal is to Lua as TypeScript is to JavaScript. Which means it automatically plays well with any Lua environment. Unlike luau and nelua which are also statically typed but have their own runtimes.
What version of Lua does it use? Lua gets new versions every few years so I don't know why so many impls don't continuously upgrade to the latest version.