OT: 'best' dynamic language
manlio_perillo at libero.it
Tue Apr 22 14:23:26 MSD 2008
Igor Sysoev ha scritto:
> On Mon, Apr 21, 2008 at 09:50:58AM +0200, Aleksandar Lazic wrote:
>> On Son 20.04.2008 15:38, Cliff Wells wrote:
>>> On Mon, 2008-04-21 at 00:26 +0200, Manlio Perillo wrote:
>>>> I'm very interested in developing a module for lua (or io), mostly
>>>> for testing the best possible integration with the Nginx event
>>> I'd like to see Lua as a replacement/alternative for Nginx's Perl
>>> module. Unlike most dynamic languages, Lua was originally designed to
>>> be embedded. I find its syntax much cleaner than Perl and it
>>> undoubtedly has a much smaller memory footprint.
>> I prefer nekovm (http://www.nekovm.org/) for this ;-)
>> => NGinx and NekoVM
> It seems that Neko as well as Lua, perl, etc do the same in memory
> allocation failure case: exit() or nothing, i.e., segfault.
From what I can see, Lua (as Python) throws an exception in case of
memory allocation failure.
Python uses a statically allocated object for the Memory Error exception.
Lua uses _longjmp/_setjmp, with integer representing error codes.
It only calls exit if no exception handler is installed.
More information about the nginx