[Ecls-list] Executing lisp in custom C REPL, require stops eval

Louis Höfler louis.hoefler at gmx.de
Wed Jul 28 12:33:47 UTC 2010


Ah, yes I’m sorry I forgot that.

 

If I simply do (terpri) then everything is printed.

If I try (finish-output), which I read, is the

equivalent to fflush in c, nothing is printed.

Well that’s something I find out by myself,

since I wasted mail traffic with my last question.

But, if at least one of you knows an answer right away,

I would be grateful for a solution.

 

Spinning sounds not really good.

To be true, I am aware of the problem.

I also have a dozens of ideas why this happens.

 

In a week or two, before the release,

I will create a stress test for the module

to see what happens if it servers

1000 different request at once,

and what happens if all of that

virtual users reload their page.

 

GNU gcc/gdb are powerful tools to do that.

 

Thank you for helping me out, Louis.

 

Von: Juan Jose Garcia-Ripoll [mailto:juanjose.garciaripoll at googlemail.com] 
Gesendet: Mittwoch, 28. Juli 2010 12:57
An: Louis Höfler
Cc: ecls-list at lists.sourceforge.net
Betreff: Re: [Ecls-list] Executing lisp in custom C REPL, require stops eval

 

Add a FORCE-OUTPUT at the end of your code. Since you do not have a REPL
nothing is flushing the I/O cache of your lisp.

BTW, your module does not handle reloading of pages gracefully. If I use
Firefox' reload button, the server just keeps spinning.

Juanjo

On Tue, Jul 27, 2010 at 5:24 PM, Louis Höfler <
<mailto:louis.hoefler at gmx.de> louis.hoefler at gmx.de> wrote:

Hello everyone, I compiled the cl-who
package and installed it within ecl.
I try to execute the following lisp code

(require 'cl-who)
(use-package 'cl-who)
(with-html-output (*standard-output*)
 (loop for (link . title) in '((" <http://zappa.com/> http://zappa.com/" .
"Frank Zappa")
                               (" <http://marcusmiller.com/>
http://marcusmiller.com/" . "Marcus
Miller")
                               (" <http://www.milesdavis.com/>
http://www.milesdavis.com/" . "Miles
Davis"))
       do (htm (:a :href link
                 (:b (str title)))
               :br)))

But the only thing wich is printed out is
;;; Loading #P"/usr/lib/ecl-10.4.1/cl-who.fas"

It looks like the evaluation stops after
the (require 'cl-who) statement.
If I execute the above code within ecl directly
in the console, everything works
without problems, and I also get this line
<a href=' <http://zappa.com/> http://zappa.com/'><b>Frank Zappa</b></a><br
/><a
href=' <http://marcusmiller.com/> http://marcusmiller.com/'><b>Marcus
Miller</b></a><br /><a
href=' <http://www.milesdavis.com/> http://www.milesdavis.com/'><b>Miles
Davis</b></a><br />

Does someone know what I am doing wrong?
My code is here:
 
<http://mod-ecl.git.sourceforge.net/git/gitweb.cgi?p=mod-ecl/mod-ecl;a=blob_
p>
http://mod-ecl.git.sourceforge.net/git/gitweb.cgi?p=mod-ecl/mod-ecl;a=blob_p
lain;f=mod_ecl/mod_ecl.c;hb=25616ed97bbf0485a4d0bba9bfac6d6813dc7cb9

Thank you for the help, Louis Hoefler.


----------------------------------------------------------------------------
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
 <http://ad.doubleclick.net/clk;226879339;13503038;l>
http://ad.doubleclick.net/clk;226879339;13503038;l?
 <http://clk.atdmt.com/CRS/go/247765532/direct/01/>
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Ecls-list mailing list
 <mailto:Ecls-list at lists.sourceforge.net> Ecls-list at lists.sourceforge.net
 <https://lists.sourceforge.net/lists/listinfo/ecls-list>
https://lists.sourceforge.net/lists/listinfo/ecls-list




-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain) 
 <http://juanjose.garciaripoll.googlepages.com>
http://juanjose.garciaripoll.googlepages.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100728/735cbefa/attachment.html>


More information about the ecl-devel mailing list