Re: pretty-print for 1+

2013-09-17 Thread Chaos Eternal
yet there is another interesting thing: (symbol? 'a) => #t (symbol? '+a) => #t (symbol? '-a) => #t (symbol? 'b) => #t (symbol? '+b) => #t (symbol? '-b) => #t BUT: (symbol? 'i) => #t (symbol? '+i) => #f (symbol? '-i) => #f In guile-scsh, user would like the guile recognize -i as symbols rather t

Re: Doctest for guile

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 20:45, Dmitry Bogatov writes: > $2 = ((name . foo) (foo . bar) (baz . qux)) > As you can see, I am missing arity. Is it git patch? Probably you're using master. I think arity is not a property there, but instead accessed using other accessors. Regards, Andy -- http:/

Re: Doctest for guile

2013-09-17 Thread Dmitry Bogatov
Andy Wingo writes: >> I it will be found useful enough, I will gladly work on patch to integrate >> doctest in Guile guild script. > > I was going to write exactly this! "guild doctest '(foo)'" sounds > sensible to me. > > Note also that the compiler will residualize other properties in > addit

Re: Doctest for guile

2013-09-17 Thread Ian Price
Dmitry Bogatov writes: > Hello! > I am glad to offer implementation of doctest in Guile --- way to declare > and check tests in function docstring. In most simple way, if in > docstring you write following: > > +++ (foo 1 2 3) > --- 6 I have to admit, I really don't like these sorts of m

Re: Interpreting statprof

2013-09-17 Thread Dmitry Bogatov
Andy Wingo writes: >> Today I tried to statprof my toy application, that uses htmlprag >> since it is too slow (4 sec on one page) vs 0.5 with Python. >> Statprof says, that most of time takes `eval` function, but I checked >> htmlprag source --- it does not use eval. So question is where is it >

Re: is (web client) ready for use even for the simplest task?

2013-09-17 Thread Andy Wingo
On Tue 10 Sep 2013 11:19, Mark H Weaver writes: > Darren Hoo writes: > >> OK, let's add something to the body >> >> (http-post "http://www.google.com/"; #:body "") >> >> Howcome the request now becomes an http GET request: >> >> GET / HTTP/1.1 >> Content-Type: text/plain;charset=utf-8 >> Host: w

Re: Interpreting statprof

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 18:14, Dmitry Bogatov writes: > Hello! > > Today I tried to statprof my toy application, that uses htmlprag > since it is too slow (4 sec on one page) vs 0.5 with Python. > Statprof says, that most of time takes `eval` function, but I checked > htmlprag source --- it does not u

Re: guile-figl - Any plans for an initial release?

2013-09-17 Thread Andy Wingo
Hi! On Sat 14 Sep 2013 16:43, David Thompson writes: > I'm hoping to make a 0.1 release guile-2d soon (maybe by the GNU 30th > anniversary?), but I would like to wait until guile-figl has made a > release so that I can point users to a release tarball rather than > asking them to compile from gi

Re: The status of statprof

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 14:37, Panicz Maciej Godek writes: > So my question is: what is the status of the statprof? It's fine :) > (define (increase x) > (sleep 1) > (1+ x)) > > (begin > (statprof-reset 0 500 #t) > (statprof-start) > (let loop ((i 0)) > (if (< i 10) > (loop (increase i)) > i)) > (st

Re: Doctest for guile

2013-09-17 Thread Andy Wingo
On Wed 11 Sep 2013 17:03, Dmitry Bogatov writes: > $ guile doctest.scm '(foo)' Neat! > + Your ideas? > > I it will be found useful enough, I will gladly work on patch to integrate > doctest in Guile guild script. I was going to write exactly this! "guild doctest '(foo)'" sounds sensible to me

Re: Interpreting statprof

2013-09-17 Thread Andy Wingo
On Tue 17 Sep 2013 18:14, Dmitry Bogatov writes: > Hello! > > Today I tried to statprof my toy application, that uses htmlprag > since it is too slow (4 sec on one page) vs 0.5 with Python. > Statprof says, that most of time takes `eval` function, but I checked > htmlprag source --- it does not u

Re: The status of statprof

2013-09-17 Thread Ludovic Courtès
Panicz Maciej Godek skribis: > I've been trying to run the statprof that's > shipped with guile-2.0 with the following > code, but it reports "no samples taken". That probably means that the code being profiled runs too fast compared to the sample rate. The ‘with-statprof’ macro allows you to s

Interpreting statprof

2013-09-17 Thread Dmitry Bogatov
Hello! Today I tried to statprof my toy application, that uses htmlprag since it is too slow (4 sec on one page) vs 0.5 with Python. Statprof says, that most of time takes `eval` function, but I checked htmlprag source --- it does not use eval. So question is where is it called and what can I do

Re: pretty-print for 1+

2013-09-17 Thread Ludovic Courtès
Brian Killian skribis: > On Thu, Sep 12, 2013 at 6:04 PM, Ludovic Courtès wrote: > >> Brian Killian skribis: >> >> > Using guile 2.0.9 and the ice-9 pretty-print module, when I apply: >> > >> > (pretty-print '(1+ 1)) >> > >> > I get: >> > >> > (#{1+}# 1) >> > >> > I was expecting: >> > >> > (1+

The status of statprof

2013-09-17 Thread Panicz Maciej Godek
Hi, I've been trying to run the statprof that's shipped with guile-2.0 with the following code, but it reports "no samples taken". The issue started with another project that I wanted to profile, and there it worked, but didn't count the calls (reported 0 to all of them). So I decided to see that