Le 13/07/2012 17:19, Konstantin Tcholokachvili a écrit :
Hello,
I'm planning to write a hobby OS.
I already hacked a little kernel which needs to be rewritten.
The idea is to be able to write most parts in my preferred languages
such as Python and Mythryl.
The core (memory allocation, etc) will be in C and asm.
I started Python to neko and Mythryl to neko projects but they aren't
yet complete.
So, NekoVM is the cooler VM I found, I plan to integrate it in the
kernel level, but one thing makes me wonder: is the use of GC really
mandatory? Or this is just to avoid memory allocation related errors?
Because instead to port NekoVM + GC, for me it would be much easier to
make a neko compatible interpreter, say in flex & bison.
Thus reducing the size of the binary.
As you are experienced with NekoVM, what's your opinion?
Interesting project :)
I would be happy to write in Haxe/Neko to target the OS.
I think that the GC is important for the VM, a lot of area require it
(thus as floats calculus which uses boxing) but you can write you own GC
by simply hooking another one.
We don't make so much calls to Boehm GC , most (all?) of them are in
vm/alloc.c so it shouldn't be very hard, especially if you're not
performance-oriented.
Best,
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)