Re: db and multiple processes

2008-12-01 Thread Alexander Burger
Hi Tomas,

> > They exist since picoLisp-2.3.3. Is there no "doc/refE.html#*Ext"?
> 
> I cannot find it even in picoLisp-2.3.3 or the testing version:-(

Well, then I'm rather worried. Something must be really wrong with the
distribution mechanism ;-)

If you look at line 31 of "doc/refE.html" (in 2.3.3 or later versions),
you should see *Ext. Is this not the
case?

I also announced it (with an example) in

   http://www.mail-archive.com/picolisp@software-lab.de/msg00097.html

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]


Re: readline()

2008-12-01 Thread Alexander Burger
Hi Boh Yap,

> On Mac OSX, it had problems locating the readline libs. Finally solved that
> by providing the correct path to PATH. (my readline was in
> '/usr/local/lib/readline/').

Another possibility might be to include it into the evironment variable
LD_LIBRARY_PATH. Strange that it is not found by default, as at least
the bash will use it.


> Then it encountered another error, something about
> MACOSX_DEPLOYMENT_TARGET=10.1,
> and hence dynamic links do not work. Setting
> MACOSX_DEPLOYMENT_TARGET=10.4 got it to work.

Not sure what the correct setting is. We had this discussion before, in
personal mails in the initial phase of porting to Mac OS, and also in
http://www.mail-archive.com/picolisp@software-lab.de/msg00053.html


> I added this to the readline.l file.
>
> PATH=/sw/include/readline:/usr/include/readline:/usr/local/lib/readline:$PATH
>export PATH

Where exactly? I would not expect this to have any effect.

I'd also be interested to get readline() to work, now that we have it
partially ;-)

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]


Unsubscribe

2008-12-01 Thread John Duncan
Good bye John Duncan <[EMAIL PROTECTED]> :-(
You are now unsubscribed


Changing my address!

John

-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]


Subscribe

2008-12-01 Thread John Duncan

Hello John Duncan <[EMAIL PROTECTED]> :-)
You are now subscribed


Changing my address!
Please subscribe this one: [EMAIL PROTECTED]

--
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]


Re: db and multiple processes

2008-12-01 Thread Tomas Hlavaty
Hi Alex,

> What I'd like to know first: Is it necessary here that they both
> share a common database, or would it also be conceivable that each
> has its own database, and they just exchange information?

yes, I managed to "export" data from the admin part (at suitable
times) for the 24/7 part so that no db sharing or ipc happens.

> If you go with a common database, I would do it like this: The parent
> process only loads "lib/http.l" and a common "er.l", defines a function

Yes, I understand now;-)

>> As the http server forks new child process for each request, does
>> not it mean that for each request I would have to load whole app 1
>> code depending whether the request is for "app 1 server" or "admin
>> 1 server" if the parent must be just the one above?
>
> I would expect the server to fork a new child process only upon the
> first connect. Then the app code is loaded, and a session is
> started.

Here was the problem, I forgot that when session starts there is no
more forking to handle a request:-(

>> Sorry, I am missing something, where can I find this 'ext' function
>> and '*Ext' global?
>
> They exist since picoLisp-2.3.3. Is there no "doc/refE.html#*Ext"?

I cannot find it even in picoLisp-2.3.3 or the testing version:-(

Thank you,

Tomas
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]