| Author |
Message |
Don Saklad *nix forums beginner
Joined: 09 Aug 2005
Posts: 3
|
Posted: Fri May 26, 2006 6:20 pm Post subject:
(let ((C call-with-current-continuation))
|
|
|
What does this mean?...
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l)))))) (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k))))))) '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline))))) |
|
| Back to top |
|
 |
Julio Uehara *nix forums beginner
Joined: 03 Apr 2005
Posts: 21
|
Posted: Sat May 27, 2006 10:04 am Post subject:
Re: (let ((C call-with-current-continuation))
|
|
|
Don Saklad <dsaklad@nestle.csail.mit.edu> wrote:
| Quote: | What does this mean?...
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l)))))) (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k))))))) '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))
|
Wow! Where did you get this? Don't know nothing about programming languages,
but it looks the kind of script you use in your .emacs or .gnus configuration
file. In that case, the emacs or gnus NG could be more appropiate.
-- Julio |
|
| Back to top |
|
 |
gdt@work.lexort.com *nix forums beginner
Joined: 09 May 2006
Posts: 4
|
Posted: Sat May 27, 2006 10:47 am Post subject:
Re: (let ((C call-with-current-continuation))
|
|
|
Julio Uehara <julueh@nobita.discovery.net> writes:
| Quote: | Don Saklad <dsaklad@nestle.csail.mit.edu> wrote:
What does this mean?...
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l)))))) (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k))))))) '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))
Wow! Where did you get this? Don't know nothing about programming languages,
but it looks the kind of script you use in your .emacs or .gnus configuration
file. In that case, the emacs or gnus NG could be more appropiate.
|
It's a fragment of Scheme, using an interesting language feature.
This has nothing to do with NetBSD, except that there may be a
cultural affinity for Scheme in the NetBSD crowd. Scheme is the
cleanest language that I'm aware of, and has a ~50 page language
specification, which includes complete (non-normative) denotational
semantics in the lambda calculus.
Grok the following:
http://www.schemers.org/
http://mitpress.mit.edu/sicp/
http://www.schemers.org/Documents/Standards/R5RS/
and you will be enlightened. If you're at MIT, take 6.001 and 6.821
(graduate programming languages class)
http://www.psrg.lcs.mit.edu/6821/
--
Greg Troxel <gdt@work.lexort.com> |
|
| Back to top |
|
 |
Richard Tobin *nix forums Guru
Joined: 22 Mar 2005
Posts: 372
|
Posted: Sat May 27, 2006 3:06 pm Post subject:
Re: (let ((C call-with-current-continuation))
|
|
|
In article <t163bewsl4p.fsf@nestle.csail.mit.edu>,
Don Saklad <dsaklad@nestle.csail.mit.edu> wrote:
| Quote: | What does this mean?...
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l)))))) (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k))))))) '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))
|
What have things come to, that people with csail addresses post Scheme
riddles in comp.unix.bsd.netbsd.misc?
-- Richard |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|