Lua

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Lua

Post 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.
cg123
Member
Member
Posts: 41
Joined: Wed Sep 27, 2006 2:34 pm

Re: Lua

Post by cg123 »

Sure, it could work. Might be awfully slow, though.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Lua

Post 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
meh
Member
Member
Posts: 52
Joined: Sun Oct 21, 2007 4:30 pm

Re: Lua

Post 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.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Lua

Post by Love4Boobies »

Lol. I've never even heard of it before... *goes through wiki*
What's your first?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Lua

Post 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!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply