On Jun 3, 2012, at 5:06 AM, Christian Kellermann wrote:
* Peter Danenberg p...@roxygen.org [120603 11:30]:
Quoth Christian Kellermann on Prickle-Prickle, the 8th of Confusion:
Which version of chicken is this? I get the arity error for both csi
and compiled version for chicken master.
It's
Peter Danenberg scripsit:
Stream-cons, stream-lambda, c. are so fucking verbose!
Only two letters longer than lazy-length, lazy-map, lazy-head, lazy-tail, etc.
Why not a macro with-lazy that rewrites car, cdr, lambda, cons, etc. within
its body?
--
Here lies the Christian,
On Sun, Jun 3, 2012 at 4:05 PM, John Cowan co...@mercury.ccil.org wrote:
Peter Danenberg scripsit:
Stream-cons, stream-lambda, c. are so fucking verbose!
Only two letters longer than lazy-length, lazy-map, lazy-head, lazy-tail, etc.
Why not a macro with-lazy that rewrites car, cdr, lambda,
Quoth Alex Shinn on Prickle-Prickle, the 8th of Confusion:
Now, if we have a whole program or library which consistently uses
lazy streams instead of lists, we can import srfi-41 renaming all
the stream-* bindings by removing the stream- prefix.
Interesting idea; the attached program will,
On Sun, Jun 3, 2012 at 5:31 PM, Peter Danenberg p...@roxygen.org wrote:
Quoth Alex Shinn on Prickle-Prickle, the 8th of Confusion:
Now, if we have a whole program or library which consistently uses
lazy streams instead of lists, we can import srfi-41 renaming all
the stream-* bindings by
Quoth Alex Shinn on Prickle-Prickle, the 8th of Confusion:
You mis-matched your parens - it should be:
(define (factorial n)
(ref (scan * 1 (from 1)) n))
^^^
Presumably you compiled to get a segfault - the interpreter gives an
arity error.
* Peter Danenberg p...@roxygen.org [120603 11:12]:
Quoth Alex Shinn on Prickle-Prickle, the 8th of Confusion:
You mis-matched your parens - it should be:
(define (factorial n)
(ref (scan * 1 (from 1)) n))
^^^
Presumably you compiled to get a
Quoth Christian Kellermann on Prickle-Prickle, the 8th of Confusion:
Which version of chicken is this? I get the arity error for both csi
and compiled version for chicken master.
It's a vanilla 4.7.0:
λ ~/prg/scm/aima-chicken/ master* chicken -version
(c)2008-2011 The Chicken Team
* Peter Danenberg p...@roxygen.org [120603 11:30]:
Quoth Christian Kellermann on Prickle-Prickle, the 8th of Confusion:
Which version of chicken is this? I get the arity error for both csi
and compiled version for chicken master.
It's a vanilla 4.7.0:
?? ~/prg/scm/aima-chicken/ master*
Alex Shinn alexsh...@gmail.com writes:
First, the srfi-41 vs. lazy-seq comparison in the
blog post was an apples to oranges comparison
of a clumsy letrec vs a compact named let. If we
rewrite the srfi-41 version in the same style as
the lazy-seq one, then we get:
(define multiples-of-three
Alex Shinn scripsit:
Now, if we have a whole program or library which consistently uses
lazy streams instead of lists, we can import srfi-41 renaming all the
stream-* bindings by removing the stream- prefix (this is where the
drop-prefix you like comes in handy).
Yes, it allows Scheme to
On Sun, Jun 3, 2012 at 8:31 PM, Moritz Heidkamp
mor...@twoticketsplease.de wrote:
Alex Shinn alexsh...@gmail.com writes:
First, the srfi-41 vs. lazy-seq comparison in the
blog post was an apples to oranges comparison
of a clumsy letrec vs a compact named let. If we
rewrite the srfi-41
Fellow Chickeneers,
a few weeks ago I (more or less silently) released the lazy-seq egg
which I hereby retroactively announce to the public. For a bit of
discussion on why I made it and how it compares to SRFI 41 streams, read
my blog article about it here:
This is great, Moritz; thanks!
I've missed the transparent laziness of seqs in Scheme, too; I never
use SRFI-41 because of the bizarre parallel-universe SRFI-1 that they
had to create.
In fact, SRFI-41 is a parallel Scheme due to the fundamental things
they had to re-implement: cons, lambda,
14 matches
Mail list logo