Aleksandar Lazic a écrit :
On Fre 25.04.2008 23:28, Nicolas Cannasse wrote:
Aleksandar Lazic a écrit :

Ok, thanks ;-).
have you any plans to add such a thing or is this totaly of your
scope?

It could be done if that's the only thing needed for nginx
integration. I need to get confirmation for nginx author before
looking into it.

You can find the answer of Igor here:

http://thread.gmane.org/gmane.comp.web.nginx.english/4611/focus=4618

after that there was some discussion about lua and neko memory handling

http://thread.gmane.org/gmane.comp.web.nginx.english/4611/focus=4625
http://thread.gmane.org/gmane.comp.web.nginx.english/4611/focus=4628

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

Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to