Better HN
topnewbestaskshowjobs
Log inSign up

90s_dev

1,788 karma · joined Mar 13, 2025 (1y ago) · 921 submissions

Submissions

comment 1y ago · link · parent

About 15 years ago I made a custom MIT or BSD license that added:

"You agree to think carefully and always reflect about what you do and why you do it" or something to that effect. I thought I was so clever at the time.

comment 1y ago · link · parent

The only keyboard thing similar to that I ever used was the full keyboard cover that came with the Flintstones PC game.

comment 1y ago · link · parent

Yeah in retrospect it's identical to what JavaScript does with string literals. I don't know what I was thinking.

comment 1y ago · link · parent

Your library looks great. But a tangential rant about t-strings, using lexical scope for placeholder lookup is just a terrible, terrible design. It should be explicitly passed in a dictionary. I'm not sure why they made this decision.

comment 1y ago · link · parent

Yeah I can't imagine any scenario where it's not just a value or an array of values that happens to have only one value right now.

comment 1y ago · link · parent

Tic80 is great but Pico8 is better if you can afford it.

And yeah, for a while I avoided strings in QBasic because I didn't have any clue how thread or yarn or whatever had anything to do with writing programs.

comment 1y ago · link · parent

Word Perfect!!! I'm almost positive that was the editor they taught me in the early 1990s in grammar school! (We called it grammar school back then, for it was the 1800s.) And yet I had never seen or used it since. This brings back so many memories. I was sitting next to a girl named Dana, the only Dana I ever met.

comment 1y ago · link · parent

When I was a kid, my dad upgraded our home computer from DOS 5 or 6 to Windows 3.11 for Workgroups. It was the first GUI that I ever used, and it was amazing comparitively. Every app was mysterious and innovative and wonderful.

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

Yeah Lua optimizes array tables for performance as long as they're arrays. That's the only optimization I'm aware of. I get why they didn't just add arrays, to keep the syntax and semantics clean, simple, and unambiguous. I just don't like it. If you take that to its extreme, you get Lisp. Natural human languages are messy and full of warts, but they work despite that, or perhaps because of that, because human life is messy and warty. "Pure" languages never can or do catch on. My favorite language right now is unironically TypeScript despite all its baggage.

comment 1y ago · link · parent

Not with type erasure like TypeScript does. Then it would just be type checking hints as to how the table is used, not a different kind of table. Teal does this.

comment 1y ago · link · parent

It's also a very old embeddable language, which is probably most of why it's so often chosen for that purpose. Many similar languages have been written from scratch inspired by Lua over the last 10-15 years, some of them almost definitely better than Lua in many respects, but they get no traction because Lua has all the steam. Unfortunate, because the authors of Lua are fairly happy with semantic and syntactic decisions that many of us are very unhappy with.

comment 1y ago · link · parent

I meant that I have a sort of affection for Lua, so it gets preferential treatment in my book, and therefore Teal ought to get the name above another relatively random project with the same name.

comment 1y ago · link · parent

Let's just go back to system wide skins. Let users make everything look as boring or fun as they want.

comment 1y ago · link · parent

We've been collectively designing GUIs for what 50 years now? Yet we're re-asking the same questions every decade, always starting from scratch. Do none of the Google engineers behind this remember the Compiz reaction to Windows 95 and subsequent Windows Vista overreaction?

comment 1y ago · link · parent

I guess all of this means Lua has "flavors" more than "versions".

comment 1y ago · link · parent

Appealing to intuition doesn't work. The way DHH thinks is the complete opposite of people like me who love TypeScript but could never make heads or tails of Rails.

comment 1y ago · link · parent

Docs https://github.com/pallene-lang/pallene/blob/master/doc/manu...

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

> It was believed that in the absence of any sort of audience reaction, American viewers could not differentiate between a comedy or drama.

Ha. There are literally tiktoks joking about this, proving this is still true even today.

comment 1y ago · link · parent

> Douglass used a keyboard similar to that of a typewriter to select the corresponding style, gender and age of the laugh as well as a pedal to time the length of the reaction. Inside the machine was a wide array of recorded chuckles, yocks and belly laughs: 320 laughs on 32 tape loops, ten to a loop. Each loop contained up to ten individual audience laughs spliced end-to-end, whirling around simultaneously waiting to be cued up.

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

Every time someone says this about JavaScript, their favorite language turns out to be something like APL or Ada.

comment 1y ago · link · parent

> Teal replaces Lua's tables - the language's signature single, highly-flexible data structure - with separate arrays, tuples, maps, records and interfaces

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

Stroustrup once said

> "There's a great language somewhere deep inside of C++"

or something to that effect.

comment 1y ago · link · parent

Every language has warts. Even Lua.

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

That's the inherent tension, though, isn't it?

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

Tuples: {number, string}

Arrays: {number}

How does it disambiguate it? Are single-element tuples just never used in practice? To be fair, maybe the only time I've had to use them in TypeScript is via Parameters<T>

comment 1y ago · link · parent

Seconded.

comment 1y ago · link · parent

It's nothing like C, and that's so much of its charm.

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

> The core compiler has no dependencies and is implemented as a single tl.lua file which you can load into your projects. Running tl.loader() will add Teal support to your package loader, meaning that require() will be able to run .tl files.

Genius design.

comment 1y ago · link · parent

I'm so relieved to see more types being added to good languages.

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.

1
222324
31