+1 to LÖVE, it's a capable rapid prototyping tool. I learned programming on QBasic, but if I were starting out today then LÖVE is the tool I would want to be handed.
Let’s not forget P5js which has a long and esteemed history of helping to teach kids and more to program. It’s browser based so it’s compatible with every OS and requires no install. FOSS with an active community of users and contributors. I personally taught some middle schoolers with zero programming experience how to make interactive monsters in 1 hour. It was awesome!
Shameless plug for my own offering in this area - Kojo (15 years old and still going strong!): https://www.kogics.net/kojo
It's based on Scala, supports turtle (imperative) graphics, picture (functional) graphics, gaming at different levels (imperative, functional, OO), and more...
I've been a fan of, and a hacker of LOAD81 since antirez released it, and have put it in tons of places in order to induce hackerdom on kids and adults, alike. Its one of my favourite projects to bust out when someone tells me they want a low-impact, easy way of learning programming.
And since then, I've helped a few of those aspiring programmers become Lua gods! LOAD81 is really a gateway to a lot of wonderful things .. easy/simple programming in Lua, to SDL .. to the Lua VM .. to exending LOAD81 .. to an introduction to antirez other cool projects (redis, lol!) and on it goes ..
So, thank you antirez, this is probably one of my most cloned repo's over the years. ;) I should probably clean up some of my PR's and give you a bit of a laugh to review, one of these days (I added sfxr for sound effects, joystick support, MIDI and a few other things along the way ..)
I was looking for something to teach 11-year-olds a couple of years ago, and ended up using Python with a turtle graphics library; this would have been another great alternative.
Programming using a language like Lua has the advantage over Scratch-like environments (which a friend suggested I use instead) that you can talk about your code more easily if it is based on keyboard entry of keywords and operators
rather than GUI events (such as moving graphical blocks by drag and drop) - although that is based on my intuition rather than backed up by any empirical study (please let me know if you are aware of one to support or refute this).
Lua as a teaching language’s got a strength for everyone - if you’re a pragmatic person, Lua offers a fantastic offramp to gamedev; if you’re a theoretically-inclined person, Lua’s an elegant language - and it’s wonderful to formative programming experiences with elegant languages. (I started with SICP Scheme.)
I've taught programming to beginners a fair bit, adults, teens, and children, in several languages, and lua is the worst of them.
The initial learning hump in programming is difficult and frustrating and lua does nothing to alleviate that. The main resource learners do have is curiosity, and usually an interest in some goal like making a game or website for a particular purpose.
Lua gets them bogged down in writing string manipulation functions that aren't in the standard library or whatever. One of the main things learners want to do is make an http request to an api, you need a library for that. There's no obvious & reliable way to get one, now your beginners are trying to configure luarocks or compile C modules.
To be clear lua is fine, great even, it's an incredible technical accomplishment. But the spiritual admiration experienced programmers have for the simplicity of implementation does not matter to a beginner. Its minimal standard lib and flexible distribution methods are a liability to teaching. I've never seen a language more reliably kill that learner's spark that is the best asset of someone new to coding.
This is somewhat alleviated if you're using it in a controlled environment for a specific goal, like roblox scripting or love. I've had success with that and would do it again. But as a general introduction to programming it's terrible.
> But as a general introduction to programming it's terrible.
It’s just a terrible language. Full stop.
Lua is touted by supporters as this orgasmic language.
But there’s a reason it’s relegated to the role of scripting language embedded in something else. It’s small, sure, but it *sucks* in literally every way other way from functionality, to tools, to libraries, to community.
In industrial settings we use ladder logic diagrams, a visual programming language based off of electrical ladder diagrams, and I wholeheartedly agree with this. It is so much easier discussing Python web scraping programs compared to explaining ladder logic. Though the latter was made easier with physical inputs/outputs some are located a good distance away from the PLC, and anything digital had to be shown to be effectively discussed.
Turtle graphics is one of the "batteries" included with Python; I used Python with the turtle library to introduce my nephew to some of the basics of programming a few years ago. Even got to show him function definitions by first coding each instance of a repeated part of the picture separately, and then saying "Now this is what programmers call 'refactoring'" and then pulling the repeated bit out into a function with different call sites and parameters.
He was excited enough about it to want to learn about robotics and aspire to be a programmer for Mars rovers and the like.
Anything like this should be compared to Love2D which is the gold standard. LuaJIT and lots of great libraries wrapped into extremely simple lua functions.
Hey, what about merging some of the pending PR's on LOAD81, one of these days? I've got a few more I'll clean up and send your way - SFXR support, for sound effects, joystick (already in the PR queue), MIDI, and a first pass at SVG ..
Title should say it's 13 years old and currently unmaintained.
BTW: a modern, maintained alternative (With Python instead of Lua) would be Pyxel (https://github.com/kitao/pyxel -> discussion: https://news.ycombinator.com/item?id=40899520).
There are several alternatives using Lua too, including for instance PICO-8 https://www.lexaloffle.com/pico-8.php
And TIC-80 (https://tic80.com/). It can be used with "lua, ruby, js, moon, fennel, scheme, squirrel, wren, wasm, janet or python".
Processing and LÖVE are also similar.
+1 to LÖVE, it's a capable rapid prototyping tool. I learned programming on QBasic, but if I were starting out today then LÖVE is the tool I would want to be handed.
It's good for final product too. Moonring is an excellent game by Fluttermind, and written in LÖVE
It's a labour of love - also add Balatro to that list.
[dead]
It has a few changes dinduring 2020. Were all of them reverted?
Let’s not forget P5js which has a long and esteemed history of helping to teach kids and more to program. It’s browser based so it’s compatible with every OS and requires no install. FOSS with an active community of users and contributors. I personally taught some middle schoolers with zero programming experience how to make interactive monsters in 1 hour. It was awesome!
https://p5js.org/
Isn't this in the spirit of LÖVE?
https://www.love2d.org/
Shameless plug for my own offering in this area - Kojo (15 years old and still going strong!): https://www.kogics.net/kojo
It's based on Scala, supports turtle (imperative) graphics, picture (functional) graphics, gaming at different levels (imperative, functional, OO), and more...
I've been a fan of, and a hacker of LOAD81 since antirez released it, and have put it in tons of places in order to induce hackerdom on kids and adults, alike. Its one of my favourite projects to bust out when someone tells me they want a low-impact, easy way of learning programming.
And since then, I've helped a few of those aspiring programmers become Lua gods! LOAD81 is really a gateway to a lot of wonderful things .. easy/simple programming in Lua, to SDL .. to the Lua VM .. to exending LOAD81 .. to an introduction to antirez other cool projects (redis, lol!) and on it goes ..
So, thank you antirez, this is probably one of my most cloned repo's over the years. ;) I should probably clean up some of my PR's and give you a bit of a laugh to review, one of these days (I added sfxr for sound effects, joystick support, MIDI and a few other things along the way ..)
I was looking for something to teach 11-year-olds a couple of years ago, and ended up using Python with a turtle graphics library; this would have been another great alternative.
Programming using a language like Lua has the advantage over Scratch-like environments (which a friend suggested I use instead) that you can talk about your code more easily if it is based on keyboard entry of keywords and operators rather than GUI events (such as moving graphical blocks by drag and drop) - although that is based on my intuition rather than backed up by any empirical study (please let me know if you are aware of one to support or refute this).
Lua as a teaching language’s got a strength for everyone - if you’re a pragmatic person, Lua offers a fantastic offramp to gamedev; if you’re a theoretically-inclined person, Lua’s an elegant language - and it’s wonderful to formative programming experiences with elegant languages. (I started with SICP Scheme.)
I've taught programming to beginners a fair bit, adults, teens, and children, in several languages, and lua is the worst of them.
The initial learning hump in programming is difficult and frustrating and lua does nothing to alleviate that. The main resource learners do have is curiosity, and usually an interest in some goal like making a game or website for a particular purpose.
Lua gets them bogged down in writing string manipulation functions that aren't in the standard library or whatever. One of the main things learners want to do is make an http request to an api, you need a library for that. There's no obvious & reliable way to get one, now your beginners are trying to configure luarocks or compile C modules.
To be clear lua is fine, great even, it's an incredible technical accomplishment. But the spiritual admiration experienced programmers have for the simplicity of implementation does not matter to a beginner. Its minimal standard lib and flexible distribution methods are a liability to teaching. I've never seen a language more reliably kill that learner's spark that is the best asset of someone new to coding.
This is somewhat alleviated if you're using it in a controlled environment for a specific goal, like roblox scripting or love. I've had success with that and would do it again. But as a general introduction to programming it's terrible.
> But as a general introduction to programming it's terrible.
It’s just a terrible language. Full stop.
Lua is touted by supporters as this orgasmic language.
But there’s a reason it’s relegated to the role of scripting language embedded in something else. It’s small, sure, but it *sucks* in literally every way other way from functionality, to tools, to libraries, to community.
Roblox and Pico-8 use LUA.
I taught a class where we began with Blockly compiling to Lua, and slowly shifted to just Lua as the kids' programs expanded.
In industrial settings we use ladder logic diagrams, a visual programming language based off of electrical ladder diagrams, and I wholeheartedly agree with this. It is so much easier discussing Python web scraping programs compared to explaining ladder logic. Though the latter was made easier with physical inputs/outputs some are located a good distance away from the PLC, and anything digital had to be shown to be effectively discussed.
Turtle graphics is one of the "batteries" included with Python; I used Python with the turtle library to introduce my nephew to some of the basics of programming a few years ago. Even got to show him function definitions by first coding each instance of a repeated part of the picture separately, and then saying "Now this is what programmers call 'refactoring'" and then pulling the repeated bit out into a function with different call sites and parameters.
He was excited enough about it to want to learn about robotics and aspire to be a programmer for Mars rovers and the like.
Another programming environment for kids with its own simple programming language: https://easylang.online/ide/
Awesome, I'm working on something similar: https://lua.civboot.org
Anything like this should be compared to Love2D which is the gold standard. LuaJIT and lots of great libraries wrapped into extremely simple lua functions.
What is antirez doing these days? His github history suddenly dropped to zero it seems.
Hi! Mostly writing, embedded programming and some AI stuff. Thanks for the interest :) and right now enjoying NYC.
Hey, what about merging some of the pending PR's on LOAD81, one of these days? I've got a few more I'll clean up and send your way - SFXR support, for sound effects, joystick (already in the PR queue), MIDI, and a first pass at SVG ..
He wrote a science-fiction book, then did some things with e-ink hardware and some with AI.
the dragonruby game engine looks similar.
https://dragonruby.itch.io/dragonruby-gtk
Did antirez receive any of the upsides from Redis commercialization? Or was that another group that took his code and ran with it?
I believe he sold his participation on the redis company far before the shit show.
[dead]
Submitting kids to Lua should be considered child abuse.
[flagged]
Please don't do programming language flamewar on HN. We've been trying since the beginning to avoid that here.
https://news.ycombinator.com/newsguidelines.html
nah, Lua's great.