OS with Erlang VM

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
User avatar
narke
Member
Member
Posts: 119
Joined: Wed Dec 26, 2007 3:37 am
Location: France

OS with Erlang VM

Post 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?
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: OS with Erlang VM

Post 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!
My OS is Perception.
User avatar
steveklabnik
Member
Member
Posts: 72
Joined: Wed Jan 28, 2009 4:30 pm

Re: OS with Erlang VM

Post 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...
User avatar
narke
Member
Member
Posts: 119
Joined: Wed Dec 26, 2007 3:37 am
Location: France

Re: OS with Erlang VM

Post by narke »

Ok, thanks, I will go for a slab allocator.
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
Post Reply