Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
90s_dev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
631.
▲
by
90s_dev
1y ago
Yeah in retrospect it's identical to what JavaScript does with string literals. I don't know what I was thinking.
632.
▲
by
90s_dev
1y ago
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
633.
▲
by
90s_dev
1y ago
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.
634.
▲
by
90s_dev
1y ago
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.
635.
▲
by
90s_dev
1y ago
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
636.
▲
by
90s_dev
1y ago
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 Bo
637.
▲
by
90s_dev
1y ago
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
638.
▲
by
90s_dev
1y ago
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.
639.
▲
by
90s_dev
1y ago
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
640.
▲
by
90s_dev
1y ago
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.
641.
▲
by
90s_dev
1y ago
Let's just go back to system wide skins. Let users make everything look as boring or fun as they want.
642.
▲
by
90s_dev
1y ago
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 9
643.
▲
by
90s_dev
1y ago
I guess all of this means Lua has "flavors" more than "versions".
644.
▲
by
90s_dev
1y ago
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.
645.
▲
by
90s_dev
1y ago
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.
646.
▲
by
90s_dev
1y ago
> 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.
647.
▲
by
90s_dev
1y ago
> 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, yo
648.
▲
Laugh Track
(en.wikipedia.org)
3 points
by
90s_dev
1y ago
|
2 comments
649.
▲
by
90s_dev
1y ago
Every time someone says this about JavaScript, their favorite language turns out to be something like APL or Ada.
650.
▲
by
90s_dev
1y ago
> 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 spe
651.
▲
by
90s_dev
1y ago
Stroustrup once said > "There's a great language somewhere deep inside of C++" or something to that effect.
652.
▲
by
90s_dev
1y ago
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
653.
▲
by
90s_dev
1y ago
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 st
654.
▲
by
90s_dev
1y ago
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>
655.
▲
by
90s_dev
1y ago
Seconded.
656.
▲
by
90s_dev
1y ago
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 unambiguou
657.
▲
by
90s_dev
1y ago
> 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 fi
658.
▲
by
90s_dev
1y ago
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 type
659.
▲
by
90s_dev
1y ago
See also https://www.redblobgames.com/pathfinding/a-star/introduction... One of the first games I ever played was Warcraft I, and it was one of the games I always wanted to make but never could. One of the missing
660.
▲
by
90s_dev
1y ago
I don't know why SQL has always been so confusing to me. When he puts it this way, joins make perfect sense. But before reading this guide and this SO answer[1], they just felt like black magic. I don't understand why. [1] https:
More ›