niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » *nix » BSD » NetBSD
(let ((C call-with-current-continuation))
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Don Saklad
*nix forums beginner


Joined: 09 Aug 2005
Posts: 3

PostPosted: Fri May 26, 2006 6:20 pm    Post subject: (let ((C call-with-current-continuation)) Reply with 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)))))
Back to top
Julio Uehara
*nix forums beginner


Joined: 03 Apr 2005
Posts: 21

PostPosted: Sat May 27, 2006 10:04 am    Post subject: Re: (let ((C call-with-current-continuation)) Reply with quote

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

PostPosted: Sat May 27, 2006 10:47 am    Post subject: Re: (let ((C call-with-current-continuation)) Reply with quote

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

PostPosted: Sat May 27, 2006 3:06 pm    Post subject: Re: (let ((C call-with-current-continuation)) Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2014 11:43 pm | All times are GMT
navigation Forum index » *nix » BSD » NetBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts What is current status of frameworks? Which to choose? Marek Zawadzki PHP 1 Fri Jul 21, 2006 1:05 pm
No new posts can I call a internal function directly? minrobin@gmail.com shell 2 Fri Jul 21, 2006 2:17 am
No new posts SOAP::Lite and complex client call parameter gelbeiche Perl 0 Thu Jul 20, 2006 7:37 pm
No new posts socket read modifies third parameter after the call: Very... jainarunk@gmail.com networking 1 Thu Jul 20, 2006 3:47 pm
No new posts socket call does not read full content jainarunk@gmail.com networking 5 Tue Jul 18, 2006 3:27 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Privacy Policy
[ Time: 0.0503s ][ Queries: 16 (0.0214s) ][ GZIP on - Debug on ]