| From | Sent On | Attachments |
|---|---|---|
| Aleksandar Lazic | Apr 20, 2008 2:34 pm | |
| Bedros Hanounik | Apr 20, 2008 3:21 pm | |
| Manlio Perillo | Apr 20, 2008 3:26 pm | |
| Cliff Wells | Apr 20, 2008 3:34 pm | |
| Cliff Wells | Apr 20, 2008 3:38 pm | |
| Aleksandar Lazic | Apr 21, 2008 12:46 am | |
| Aleksandar Lazic | Apr 21, 2008 12:50 am | |
| Aleksandar Lazic | Apr 21, 2008 1:27 am | |
| Aleksandar Lazic | Apr 21, 2008 1:29 am | |
| Kiril Angov | Apr 21, 2008 7:47 pm | |
| Kiril Angov | Apr 21, 2008 7:48 pm | |
| Kiril Angov | Apr 21, 2008 7:57 pm | |
| Igor Sysoev | Apr 21, 2008 11:13 pm | |
| Marcin Kasperski | Apr 22, 2008 1:18 am | |
| Manlio Perillo | Apr 22, 2008 3:23 am | |
| Igor Sysoev | Apr 22, 2008 3:38 am | |
| Manlio Perillo | Apr 22, 2008 3:54 am | |
| Manlio Perillo | Apr 22, 2008 4:07 am | |
| Igor Sysoev | Apr 22, 2008 4:18 am | |
| Marcin Kasperski | Apr 22, 2008 5:05 am | |
| Manlio Perillo | Apr 22, 2008 6:18 am | |
| Manlio Perillo | Apr 22, 2008 6:50 am | |
| Igor Sysoev | Apr 22, 2008 7:10 am | |
| Manlio Perillo | Apr 22, 2008 7:30 am | |
| Kiril Angov | Apr 22, 2008 7:42 am | |
| Cliff Wells | Apr 22, 2008 12:24 pm | |
| Manlio Perillo | Apr 22, 2008 1:25 pm | |
| Manlio Perillo | Apr 22, 2008 1:27 pm | |
| Francisco Valladolid | Apr 22, 2008 2:12 pm | |
| Cliff Wells | Apr 22, 2008 2:43 pm | |
| Sean Allen | Apr 22, 2008 3:10 pm | |
| Jay Reitz | Apr 22, 2008 10:13 pm | |
| Aleksandar Lazic | Apr 22, 2008 11:06 pm | |
| Aleksandar Lazic | Apr 22, 2008 11:09 pm | |
| Aleksandar Lazic | Apr 22, 2008 11:18 pm | |
| Mike Crawford | Apr 25, 2008 2:02 pm | |
| Igor Sysoev | Apr 25, 2008 10:46 pm | |
| Aleksandar Lazic | Apr 25, 2008 10:56 pm | |
| Igor Sysoev | Apr 25, 2008 11:53 pm | |
| Manlio Perillo | Apr 26, 2008 2:59 am | |
| Igor Sysoev | Apr 26, 2008 3:22 am | |
| Manlio Perillo | Apr 26, 2008 3:45 am | |
| Manlio Perillo | Apr 26, 2008 4:24 am | |
| Manlio Perillo | Apr 26, 2008 7:37 am | .c |
| Manlio Perillo | Apr 26, 2008 8:28 am | |
| Igor Sysoev | Apr 26, 2008 8:57 am | |
| Adrian Perez | Apr 26, 2008 9:52 am | |
| Manlio Perillo | Apr 26, 2008 10:42 am | |
| Mike Crawford | Apr 28, 2008 8:05 am | |
| Adrian Perez | May 4, 2008 10:40 am |
| Subject: | Re: OT: 'best' dynamic language | |
|---|---|---|
| From: | Igor Sysoev (is-G...@public.gmane.org) | |
| Date: | Apr 22, 2008 4:18:42 am | |
| List: | ru.sysoev.nginx | |
On Tue, Apr 22, 2008 at 12:55:17PM +0200, Manlio Perillo wrote:
Igor Sysoev ha scritto:
On Tue, Apr 22, 2008 at 12:23:26PM +0200, Manlio Perillo wrote:
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 module.
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 ;-)
Look:
http://lists.motion-twin.com/pipermail/neko/2008-April/thread.html
=> 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.
Well, but what can I do in exception handler ? Destroy a whole interpreter, leaving various leaks ?
With Lua you can supply you allocator function.
It does not resolve the problem. The interpreter internally must test result of EVERY function that may fail on memory allocations:
void * interpreter_function0() { p = interpreter_function1(); if (p == NULL) { some rollback operations return NULL; } }
-- Igor Sysoev http://sysoev.ru/en/






.c