unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: rm@fabula.de
Cc: guile-user@gnu.org
Subject: Re: integrating guile in an apache module
Date: Tue, 29 Jul 2003 13:35:32 +0200	[thread overview]
Message-ID: <20030729113532.GD4273@www> (raw)
In-Reply-To: <1059475468.1685.25.camel@sith>

On Tue, Jul 29, 2003 at 01:44:28PM +0300, George Moschovitis wrote:
> Hello everybody!
> 
> I am trying to code an apache2.0 module that uses guile for scripting
> dynamic html pages. My problem is that i have to enclose the main loop
> of the application in the scm_boot function for the gc to work according
> to the manuals. 

What version of Guile do you intent to use? Recent version do not
need to wrap the application's 'main()' function (using other means
to detect the bottom of the stack) -- have a look at the documentation
for scm_init_guile() vs. scm_boot_guile().

> When writing an apache module I do not have control over the main loop,
> the http server just calls the handler method. Is there a way to
> overcome this problem? Has anyone tried something similar (mod_guile
> perhaps?)

Well, with Apache2 you might encounter other, more severe, problems as
well. Apache2 might run in multithreaded manner and hence there's a 
high chance for several modules to execute in parallel. AFAIK guile
is'nt meant to be run in parallel (only one thread can use guile).

> Any info will be appreciated!

Hope that helps. BTW, are your trying to write an Apache2 mod_guile?


 Ralf Mattes
> 
> 
> regards,
> George Moschovitis
> 
> --
> Navel
> 
> 
> 
> _______________________________________________
> Guile-user mailing list
> Guile-user@gnu.org
> http://mail.gnu.org/mailman/listinfo/guile-user


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2003-07-29 11:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-29 10:44 integrating guile in an apache module George Moschovitis
2003-07-29 11:35 ` rm [this message]
2003-07-30  3:21   ` Sergey Dolin
2003-07-30  8:34     ` tomas
2003-08-03  6:11   ` Per Bothner
2003-07-29 12:19 ` Dale P. Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030729113532.GD4273@www \
    --to=rm@fabula.de \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).