Page 1 of 1

OS with Erlang VM

Posted: Thu Feb 19, 2009 5:06 am
by narke
hello,

I am coding an operating system (called Versatile) in C which will be extensible with Erlang.
My idea is to have the kernel running in ring0 and load Erlang VM so that it will be possible to make the OS development in Erlang.

I already coded GDT (with Flat Memory model), IDT, interrupts, exceptions, VGA and keyboard drivers.
Now I'm working on memory management (paging, allocation, free).

I need to define strategies for the memory manager and the scheduler.

I would like to know which memory management strategy (slab allocator, firs fit, best fit) will be the best to execute Erlang Virtual Machine in ring0.

And the threading model: one process with multiple threads or multi-threading?

What do you think?

Re: OS with Erlang VM

Posted: Thu Feb 19, 2009 8:24 pm
by AndrewAPrice
I would recommend a slab allocator, possibly buddy allocation.

I'm all for using alternative languages for OS development. Especially in a microkernel environment where your servers run as normal programs, which you could implement in a high level applications language. e.g. with a bit of runtime support you could have a VFS written in PHP!

Re: OS with Erlang VM

Posted: Fri Feb 20, 2009 6:10 pm
by steveklabnik
MessiahAndrw wrote:e.g. with a bit of runtime support you could have a VFS written in PHP!
*shudder*



I do like the idea of a microkernel with lots of higher-level services. Hmm...

Re: OS with Erlang VM

Posted: Mon Feb 23, 2009 9:17 am
by narke
Ok, thanks, I will go for a slab allocator.