r/lua • u/[deleted] • Nov 11 '20
Luajit Based OS
https://github.com/dlannan/ljos
Im working on building a Luajit based OS. Hence the name. Currently, it happily runs in qemu, and will also boot on my laptop and run as well (from a USB). It is an "in-memory" single user mode kernel at the moment (this will change).
It uses some excellent packages like Luajit, ljsyscall, FBGraphics, kilo, lummander, sdl2, cairo and more. I am currently working on the graphical side of things and getting sdl2 and cairo to operate without issue, as well as integrating my old UI that uses cairo.
Happy to get feedback, suggestions and ideas. Note: This is a "barebones" OS, the full OS will be based around a new style of UI system called mitree.


55
Upvotes
1
u/[deleted] May 01 '26
Got it booting fine 😄 Well done. Nice little Luajit sandpit.
Can make you a bootable iso if you want. I used a simple ultra base x86_64 kernel to launch it. Seemed fine.
Made a couple of scripts for making an initramfs (for easy booting) and a qemu launcher. Works well. Can send some PR's if youd like.