investigate slow
parent
84f3dd2c28
commit
5891d1b09d
@ -1,21 +0,0 @@
|
||||
#lang debug br
|
||||
(require pict racket/draw)
|
||||
|
||||
|
||||
(dc (λ (dc dx dy)
|
||||
(define old-brush (send dc get-brush))
|
||||
(define old-pen (send dc get-pen))
|
||||
(send dc set-brush
|
||||
(new brush% [style 'fdiagonal-hatch]
|
||||
[color "darkslategray"]))
|
||||
(send dc set-pen
|
||||
(new pen% [width 3] [color "slategray"]))
|
||||
(define path (new dc-path%))
|
||||
(send path move-to 0 0)
|
||||
(send path line-to 50 0)
|
||||
(send path line-to 25 50)
|
||||
(send path close)
|
||||
(send dc draw-path path dx dy)
|
||||
(send dc set-brush old-brush)
|
||||
(send dc set-pen old-pen))
|
||||
100 100)
|
@ -1,5 +1,7 @@
|
||||
#lang quad/typewriter
|
||||
|
||||
◊quad[#:fontsize "11"]{◊quad[#:link "http://beautifulracket.com"]{An expression that} is not a value can ◊quad[#:fontsize "22"]{always} ◊quad[#:fontsize "7"]{be partitioned} into}
|
||||
◊quad[#:fontsize "11"]{Hello}
|
||||
|
||||
◊;quad[#:fontsize "11"]{◊quad[#:link "http://beautifulracket.com"]{An expression that} is not a value can ◊quad[#:fontsize "22"]{always} ◊quad[#:fontsize "7"]{be partitioned} into}
|
||||
|
||||
◊;quad[#:fontsize "11"]{◊quad[#:link "http://beautifulracket.com"]{An expression that} is not a value can ◊quad[#:fontsize "22"]{always} ◊quad[#:fontsize "7"]{be partitioned} into two parts: a redex, which is the part that changed in a single-step simplification (highlighted), and the continuation, which is the evaluation context surrounding an expression. In (- 4 (+ 1 1)), the redex is (+ 1 1), and the continuation is (- 4 []), where [] takes the place of the redex. That is, the continuation says how to "continue" after the redex is reduced to a value."}
|
Loading…
Reference in New Issue