This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#| | |
exec racket -qu "$0" ${1+"$@"} | |
|# | |
#lang racket | |
(require (planet stamourv/sexp-diff)) | |
(define (read-and-expand file) | |
(with-input-from-string ;; read-syntax won't work with #lang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
rustc rtinstrument.rs | |
rustc foo.rs -L . | |
./foo | racket rust-visualizer.rkt & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require slideshow unstable/gui/slideshow) | |
(define points | |
(for/list ([i 10]) | |
(disk 10))) | |
(define named-points | |
(for/list ([p points] [i (in-naturals)]) |