Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Q: Why was Stonehenge abandoned? A: It wasn't IBM compatible.


comp / comp.lang.scheme / Re: the FMITE processor

SubjectAuthor
* Re: the FMITE processorB. Pym
`- Re: the FMITE processorGeorge Neuner

1
Subject: Re: the FMITE processor
From: B. Pym
Newsgroups: comp.lang.scheme
Organization: A noiseless patient Spider
Date: Tue, 9 Jul 2024 17:17 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: NoSpam_762@not_there.org (B. Pym)
Newsgroups: comp.lang.scheme
Subject: Re: the FMITE processor
Date: Tue, 9 Jul 2024 17:17:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <v6jrbo$1fa88$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Date: Tue, 09 Jul 2024 19:17:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d6c6a8fe9d18727fccd44e33ccf67a81";
logging-data="1550600"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190CwwjEFRGfn2uHEuavoaV"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:n5koeA0yCy3hHDzt/XEZQf+bPts=
View all headers

hughag...@gmail.com wrote:

> There is no good reason to execute a lambda function after the
> parent function has gone out of scope.

The original poster was so ignorant that he knew nothing
whatsoever about Usenet; in fact, he may not have known that
he was posting to Usenet. Consequently, each paragraph in
his post was one gigantic line. I broke his line for him.

In this and other posts he has provided evidence that he
is ignorant about higher-level languages and higher-level
programming concepts. In fact, he has shown that he finds
high-level concepts difficult or impossible to grasp.

(define (make-fib-gen)
(let ((a 1) (b 1))
(lambda ()
(begin0 a
(set!-values (a b) (values b (+ a b)))))))

(define fib0 (make-fib-gen))
(define fib1 (make-fib-gen))

(do ((i 5 (- i 1))) ((zero? i))
(display (fib0)) (display " "))

===>
1 1 2 3 5

(do ((i 6 (- i 1)))
((zero? i))
(display (list (fib0) (fib1)))
(newline))

===>
(8 1)
(13 1)
(21 2)
(34 3)
(55 5)
(89 8)

(define (make-accumulator)
(let ((accum '()))
(lambda xs
(if (null? xs)
(reverse accum)
(set! accum (cons (car xs) accum))))))

(define odds (make-accumulator))
(define evens (make-accumulator))
(define all (make-accumulator))

(do ((i 9 (- i 1)))
((zero? i) (values (all) (odds) (evens)))
(let ((n (fib1)))
((if (odd? n) odds evens) n)
(all n)))

===>
(13 21 34 55 89 144 233 377 610)
(13 21 55 89 233 377)
(34 144 610)

Subject: Re: the FMITE processor
From: George Neuner
Newsgroups: comp.lang.scheme
Organization: i2pn2 (i2pn.org)
Date: Wed, 10 Jul 2024 16:02 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: gneuner2@comcast.net (George Neuner)
Newsgroups: comp.lang.scheme
Subject: Re: the FMITE processor
Date: Wed, 10 Jul 2024 12:02:06 -0400
Organization: i2pn2 (i2pn.org)
Message-ID: <lrbt8jpb7scln867mjhe6tq52nl6niner2@4ax.com>
References: <v6jrbo$1fa88$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="2814857"; mail-complaints-to="usenet@i2pn2.org";
posting-account="h5eMH71iFfocGZucc+SnA0y5I+72/ecoTCcIjMd3Uww";
User-Agent: ForteAgent/8.00.32.1272
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

On Tue, 9 Jul 2024 17:17:48 -0000 (UTC), "B. Pym"
<NoSpam_762@not_there.org> wrote:

> :
>The original poster was so ignorant that he knew nothing
>whatsoever about Usenet ...

Can we keep it civil? There is (mostly) no need to be calling people
names.

And you are correct - most people today who do post to Usenet do so
through web gateways. Being a gmail address, the poster probably was
on Google Groups. Thankfully GG has been shut down.

1

rocksolid light 0.9.8
clearnet tor