On Son 27.04.2008 11:49, Nicolas Cannasse wrote:
Aleksandar Lazic a écrit :
due the fact tha I'am not very good in lua nor in neko, are there any
comments about the thread?
Neko is using exceptions most of the time, so yes it could be possible
to use these to return to toplevel control.
However while some resources such as regexp or mysql connection are
correctly cleanup by the GC, some other ones such as files or sockets
are not. It could be done very easily, but it's not a good choice in
general to rely on the GC for this kind of thing.
As I said before, there are very few malloc() places where memory
could be checked which are currently not. It's not that much useful
right now since in general swap is used and the Neko toplevel can
catch signals and throw an exception instead.
BTW the vm/gc.c code is an experimental GC that is not used by Neko
(Neko uses boehm gc).
A complete Neko/Lua comparison can be found here : http://nekovm.org/lua
Thank you.
Aleks
--
Neko : One VM to run them all
(http://nekovm.org)