Dr. Poof, on 09 December 2014 - 01:34 PM, said:
I remember at least getting basic IDE harddrive and keyboard input working.
But yeah, the codebase was a complete mess. I literally learned code organization and formatting skills as I went.
I'll probably rewrite the codebase entirely.
Anyways, to anyone who wants to try: it's really not that difficult. The low-level (assembly) stuff you pretty much get out of the way immediately, and from there you can just write in C or C++.
Running luac inside of the kernel really wasn't that difficult: just port over newlib into kernel space, then drop the lua source code into your codebase.
luac is meant to be used as a library, so it's not really too difficult to do or use. The only problem was that I think the self-written memory manager the OS used as not very efficient, so when I tried running something that wasn't
a simple "hello world" program, the whole OS choked, froze, and died. But fixing that would be simple: just write another one that's better. Or get an existing one that works well.