News for hackers. Stuff that matters.
Re:Lua Criticism Is Unwarranted by cies on Thursday October 26, 2023 @09:37AM (#38025329)
I've built something with Lua because the lovely Love2D game lib prescribed it. I hated almost everything about it (globals, stdlib, silly typing discipline, debugging, syntax). Rewrote the whole thing (when it was small) to Kotlin and libKDX (a wrapper over libGDX). Experience was so much better it's not even funny.

Lua felt like JS and PHP had a secret child they abandoned and somehow survived up growing up in a dumpster.

I know I should not bash open source software: I know it takes a lot of work to build/maintain it. I'm merely reacting to this post.

Re:Lua Criticism Is Unwarranted by jacknews on Thursday October 26, 2023 @10:08AM (#38025789)
tbh they seem like two completely different worlds, and if you're experienced in the java ecosystem (or have a C/C++ mentality), then this makes perfects sense.

But I'm not sure java is exactly without criticism either.

Lua and Love2D (and with Fennel on top) makes for a good teaching setup, IMHO.

Re:Lua Criticism Is Unwarranted by caligian on Thursday October 26, 2023 @09:43PM (#38033748)
While attempting to teach callbacks to a room full of C# devs i figured lua was the easiest for creating readable examples. The language has very good teachable aspects. I'd pick lua over python as a teacher to teach data structures
Re:Lua Criticism Is Unwarranted by cies on Thursday November 02, 2023 @12:42PM (#38116262)
I'm experienced across many languages. Including Haskell (professionally), Rust (for fun) and Ruby/Python/TypeScript.

When you say "fennel on top", sure that makes all the difference! I've argued in favour of using a LISP/Scheme for teaching students in the local uni i'm active in, but the businesses requesting "give us close to Java/C# certified graduates" won.

Edsgar Dijkstra wrote a nice piece on this.

https://www.cs.utexas.edu/users/EWD/transcriptions/OtherDocs...

Re:Lua Criticism Is Unwarranted by caligian on Thursday October 26, 2023 @09:41PM (#38033743)
I agree with your criticism. I could not properly use lua without creating my own set of table utils and structs (they are faster than classes)