This document summarizes some of the key changes introduced in the R7RS revision of the Scheme programming language standard. These include:
1) The introduction of define-record-type, which provides built-in support for record types and objects, giving Scheme aspects of object-oriented programming.
2) Standardization of the library system notation, allowing libraries to be loaded consistently across implementations using import.
3) Inclusion of exceptions handling from SRFI-34, using with-exception-handler to catch and handle exceptions.
This document summarizes some of the key changes introduced in the R7RS revision of the Scheme programming language standard. These include:
1) The introduction of define-record-type, which provides built-in support for record types and objects, giving Scheme aspects of object-oriented programming.
2) Standardization of the library system notation, allowing libraries to be loaded consistently across implementations using import.
3) Inclusion of exceptions handling from SRFI-34, using with-exception-handler to catch and handle exceptions.
This document discusses implementing a CPU emulator in Scheme. It explains that Scheme is well-suited for this because it allows getting the current continuation and returning multiple values. State transitions can be expressed as tail calls, allowing pure state transitions. The document provides code samples and diagrams demonstrating how to represent hardware components like clocks and memory in Scheme. It concludes that Scheme is a hardware description language and implementing a CPU emulator in it is an interesting way to learn about programming with continuations.
MCPC is a circle to learn algorithms and teach programming. It will be held on February 6, 2013 from 12:00 at Senshu University by @nanikaka and @kazh98. The circle focuses on competitive programming and uses online resources like acm.timus.ru and moodle.org. Participants are encouraged to attend to improve their algorithm and programming skills.
This document discusses implementing a CPU emulator in Scheme. It explains that Scheme is well-suited for this because it allows getting the current continuation and returning multiple values. State transitions can be expressed as tail calls, allowing pure state transitions. The document provides code samples and diagrams demonstrating how to represent hardware components like clocks and memory in Scheme. It concludes that Scheme is a hardware description language and implementing a CPU emulator in it is an interesting way to learn about programming with continuations.
MCPC is a circle to learn algorithms and teach programming. It will be held on February 6, 2013 from 12:00 at Senshu University by @nanikaka and @kazh98. The circle focuses on competitive programming and uses online resources like acm.timus.ru and moodle.org. Participants are encouraged to attend to improve their algorithm and programming skills.
25. こんなコードも
function cons(a,b) {
return (function(s){ return s ( a, b ); });}
function car(c) {
return c (function(a,b){ return a; });}
function cdr(c) {
return c (function(a,b){ return b; });}
MCPC: a Competitive Programming Circle. 25
26. こう見えてくる!
(define (cons a b)
(lambda (s) (s a b)))
(define (car c)
(c (lambda (a b) a)))
(define (cdr c)
(c (lambda (a b) b)))
※個人の意見です
MCPC: a Competitive Programming Circle. 26