this post was submitted on 09 Feb 2026
216 points (97.0% liked)
Linux
12244 readers
215 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It does sound interesting, but I was mostly joking just to extend the copypasta.
I don't know enough about programming to know whether it's even suitable for writing a kernel. As far as I'm aware, Lua is mostly used for embedding scripts like in games, but the engines themselves are better written in C or Rust. I would assume a similar concept applies for writing a Kernel.
Perhaps it would have made more sense if I said Fortran or PS-Algol. It would have been more clear that it was a shitpost
Lua doesn't have capabilities for direct access to the memory and such, and those would need to be added by either embedding Lua in C or modifying the interpreter, which is, of course, written in C. So it's indeed mostly for scripting. Although there's a game engine/framework Löve, where the entire game can be written in Lua.
I expect it's not suited for kernel, yeah, but it sounds like a fun thing to try other than for kernel stuff
I agree