guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Benchmarks of guile-www against HB's Guile module.


From: Alejandro Forero Cuervo
Subject: Re: Benchmarks of guile-www against HB's Guile module.
Date: Wed, 13 Feb 2002 11:54:39 -0500
User-agent: Mutt/1.2.5i

Hey.  :)

       What do you mean?  "Use hb-file instead of hbfile"?
    
    more something like: "*hbfile*".

So the standard  is that hb-related procedures should be  given the name
hb-XXXX and hb-related variables the name *hb-file*, right?

    (defmacro define-hb-callback (name-sym proc)           ;;; provided by hb
      (let ((name-string (symbol->string name-sym)))
        `(hb-register *hbfile* ,name-string ,proc)))
    
    (define-hb-callback main (lambda () ...))      ;;; user code

This idea has two improvements  over my initial implementation: not only
the user no  longer has to pass the *hbfile*  parameter explicitly but I
like the idea of letting him use a symbol instead of a string to specify
the name of his callback function.

I like this.  :)

The fact that the  *hb-file* symbol still has to be  defined is not that
significant.

Thanks.  :)

Alejo.
http://bachue.com/alejo

--
The mere formulation of a problem is far more essential than its solution.
      -- Albert Einstein.

$0='!/sfldbi!yjoV0msfQ!sfiupob!utvK'x44;print map{("\e[7m \e[0m",chr ord
(chop$0)-1)[$_].("\n")[++$i%77]}split//,unpack'B*',pack'H*',($F='F'x19).
"F0F3E0607879CC1E0F0F339F3FF399C666733333CCF87F99E6133999999E67CFFCCF3".
"219CC1CCC033E7E660198CCE4E66798303873CCE60F3387$F"#Don't you love Perl?

Attachment: pgpPrGr5uehVD.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]