Re: LuaSet: good or terrible idea?

2012-07-25 Thread Bertrand Mansion
Iirc php has php_value and php_admin_value but they are used to override parameters set in the php.ini file so that's not the same. For apr and lua see peterodding.com/code/lua/apr/docs/ Bertrand Mansion Mamasam Le 24 juil. 2012 19:28, Daniel Gruno rum...@cord.dk a écrit : Dear dev@, I've

Re: ap_expr problems

2010-11-05 Thread Bertrand Mansion
Le 5 nov. 2010 à 16:21, Dan Poirier a écrit : On Thu. 2010-11-04 at 06:39 PM EDT, Stefan Fritsch s...@sfritsch.de wrote: On Thursday 04 November 2010, Dan Poirier wrote: Before we invent yet another expression language, should we consider using something that already exists? E.g. lua?

Re: How to parse POST arguments?

2009-04-17 Thread Bertrand Mansion
and support. So everyone ends up reinventing the wheel. On Fri, Apr 17, 2009 at 3:15 AM, Bertrand Mansion bmans...@mamasam.net wrote: On Thu, Apr 16, 2009 at 7:41 PM, Kevac Marko ma...@kevac.org wrote: 2009/4/16 Jérôme Renard j...@ez.no: You might find mod_form useful : - http://apache.webthing.com

Re: How to parse POST arguments?

2009-04-16 Thread Bertrand Mansion
dependency. -- Bertrand Mansion Mamasam

GSoC and mod_lua

2009-04-03 Thread Bertrand Mansion
Hi, I was looking at page http://wiki.apache.org/general/SummerOfCode2009 and saw no mention of mod_lua despite the proposal made by Peter Crawley [1] on this list. So I was wondering what was the status of this proposal ? Thanks, [1] http://corsix.org/gsoc/lua_apr.html -- Bertrand Mansion

Re: what is in modules vs what is in the core

2009-03-31 Thread Bertrand Mansion
module and just use require 'apache2.memcache' (or whatever) to do the linking.  This works really well with per thread lua states that are all loaded at startup... (hint, hint) OT, but will you contribute that to mod_lua ? :) -- Bertrand Mansion Mamasam

Re: Lua and memcache was Re: what is in modules vs what is in the core

2009-03-31 Thread Bertrand Mansion
/memcache.so Thank you :) That's probably the way support for apr_(date, file, dbd ...) will be added to mod_lua. Reading the comments in your code, it seems that mod_lua could benefit from a better error reporting ? -- Bertrand Mansion Mamasam Tel : +33 1 48 89 88 26 http://www.mamasam.com

Re: mod_lua: package.loaded == apache2 (bug)

2009-03-27 Thread Bertrand Mansion
). Now OK, DECLINED etc are accessible. I have patched my work repository: http://mamasam.indefero.net/p/modlua/source/tree/mansion/ -- Bertrand Mansion Mamasam

Re: mod_lua and GSoC 2009

2009-03-25 Thread Bertrand Mansion
and mentioning it in another email. -- Bertrand Mansion Mamasam

Re: mod_lua check for lua compilation error

2009-03-24 Thread Bertrand Mansion
On Tue, Mar 24, 2009 at 7:57 PM, Brian McCallister bri...@skife.org wrote: On Sat, Mar 21, 2009 at 10:54 AM, Bertrand Mansion bmans...@mamasam.net wrote: In order to be able to detect if a lua file fails to compile and get an informative error message like :  Error!  /web/localhost/htdocs

Re: mod_lua and GSoC 2009

2009-03-23 Thread Bertrand Mansion
, but I am not as fluent in Lua as you although I am improving :) -- Bertrand Mansion Mamasam

mod_lua check for lua compilation error

2009-03-21 Thread Bertrand Mansion
in Lua's lua.c interpreter. PS: I wish mod_lua was under a distributed SCM like Git or Mercurial, it would make things easier for me. It takes me forever to make a patch and I am not even sure it can be used. -- Bertrand Mansion Mamasam patch-lua-err.diff Description: Binary data

Re: patch for handling headers_in and headers_out as tables in mod_lua

2009-03-18 Thread Bertrand Mansion
On Sun, Mar 1, 2009 at 2:37 AM, Brian McCallister bri...@skife.org wrote: On Fri, Feb 27, 2009 at 2:55 AM, Bertrand Mansion bmans...@mamasam.net wrote: And I find it weird that, now, to get 'document root', you have to call r:document_root() instead of r.document_root as it was before

Re: patch for handling headers_in and headers_out as tables in mod_lua

2009-02-27 Thread Bertrand Mansion
, APL_REQ_FUNTYPE_LUACFUN, p)); It could be just: apr_hash_set(dispatch, document_root, APR_HASH_KEY_STRING, makefun(req_content_encoding_field, APL_REQ_FUNTYPE_STRING, p)); -- Bertrand Mansion Mamasam

Re: mod_wombat and mod_lua

2009-02-27 Thread Bertrand Mansion
...@force-elite.com wrote: 23-27 March 2009, Amsterdam: http://www.eu.apachecon.com/c/aceu2009/ I'll be there at least Ditto.  -- justin Hoping to be... -- Bertrand Mansion Mamasam

Re: mod_wombat and mod_lua

2009-02-25 Thread Bertrand Mansion
? Will it have to handle file uploads and creation of temporary files, and is there already some functions in APR that can help ? Did you think of an API ? Apreq2 does a bit too much IMO. -- Bertrand Mansion Mamasam

Re: mod_lua and libapreq2

2009-02-22 Thread Bertrand Mansion
On Sat, Feb 21, 2009 at 1:23 PM, Bertrand Mansion bmans...@mamasam.net wrote: Hello, I was wondering why support of libapreq2 was removed from mod_lua? The way mod_lua currently deals with cookies, querystring and POST data is not very robust nor complete. Actually it would be nice to have

mod_lua and libapreq2

2009-02-21 Thread Bertrand Mansion
by the perl bindings or the module, but the library itself would be very useful for mod_lua I think, unless you have better plans for this functionalities? -- Bertrand Mansion Mamasam

Re: [mod_lua] vm management

2009-02-06 Thread Bertrand Mansion
On Fri, Feb 6, 2009 at 3:09 PM, Brian Akins br...@akins.org wrote: On 2/6/09 8:09 AM, Bertrand Mansion bmans...@mamasam.net wrote: What do you call slow ? Do you have benchmarks ? Some round numbers: No Lua at all: 40k/sec Our hack version (based on older mod_wombat): 34k/sec New mod_lua

Re: [mod_lua] vm management

2009-02-06 Thread Bertrand Mansion
why it feels this way. I am not sure it is a good idea to have long lived lua states. Do you have an example of applications that could benefit from this ? Isn't this a way to shoot yourself in the foot ? - Bertrand Mansion Mamasam

Re: patch for handling headers_in and headers_out as tables in mod_lua

2009-01-13 Thread Bertrand Mansion
+1 Le 13 janv. 09 à 05:28, Brian McCallister bri...@skife.org a écrit : Nudge -- if there are no objections to the patch, would someone be kind enough to apply it? -Brian On Sun, Jan 11, 2009 at 8:20 PM, Brian McCallister bri...@skife.org wrote: The attached patch changes headers_in

Re: mod_lua headers_out

2009-01-12 Thread Bertrand Mansion
On Mon, Jan 12, 2009 at 5:23 AM, Brian McCallister bri...@skife.org wrote: Bertrand, I just send in a patch on the message with subject patch for handling headers_in and headers_out as tables in mod_lua which takes knowledge of setting headers_in, headers_out off the request which, with that

mod_lua headers_out

2009-01-11 Thread Bertrand Mansion
Hi, My name is Bertrand Mansion, I live in Paris, France, I have been mostly programming in PHP for the last few years and I am very excited about mod_lua since I consider Lua is superior in many ways. I have followed the development of mod_wombat and noticed that you changed the way headers_in