Page 1 of 1

Lua

Posted: Thu Oct 30, 2008 2:34 pm
by meh
I know it might sound dumb, but I was wondering if it would be a good idea to write an operating system that runs Lua programs only. I was also wondering if the drivers can be written in Lua too.

Re: Lua

Posted: Thu Oct 30, 2008 3:30 pm
by cg123
Sure, it could work. Might be awfully slow, though.

Re: Lua

Posted: Fri Oct 31, 2008 4:56 am
by jal
AusZero wrote:I know it might sound dumb, but I was wondering if it would be a good idea to write an operating system that runs Lua programs only. I was also wondering if the drivers can be written in Lua too.
Afaiu, the idea with Lua is that it is tied in to a layer below it, e.g. a gaming engine when used for game scripting (like on WoW). So if you provide Lua with a proper API to your OS (which probably cannot be written in Lua, at least not fully), driver coding should be possible. Notice however that Lua was never intended for fully fledged app development, so you may run into problems along the way.

If you do decide to use Lua for everything, you may also want to consider writing a JIT for it, which will dramatically improve performance.


JAL

Re: Lua

Posted: Fri Oct 31, 2008 8:44 am
by meh
Thank you for the information.

I won't use Lua. I just thought I might do it, because Lua is my second favorite programming language.

Re: Lua

Posted: Fri Oct 31, 2008 5:59 pm
by Love4Boobies
Lol. I've never even heard of it before... *goes through wiki*
What's your first?

Re: Lua

Posted: Fri Oct 31, 2008 6:10 pm
by Troy Martin
It's a great scripting language for games and other engines, but just not designed for low-level stuff. It's not a "portable assembly" like C.

Still, it's fun! :P

EDIT: Third star!