Skip to content

Commit d1a8594

Browse files
committed
v6.0 notes
bump version, add short note to docs, also fix docs to avoid 'compiled' benchmark directory if it happens to exist
1 parent 225f7d9 commit d1a8594

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

info.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(define deps '("base" "typed-racket-lib" "typed-racket-more" "require-typed-check"))
44
(define build-deps '("scribble-lib" "racket-doc" "rackunit-lib" "typed-racket-doc" "at-exp-lib" "gtp-util" "pict-lib" "scribble-abbrevs" "syntax-sloc" "with-cache"))
55
(define pkg-desc "Gradual typing benchmark programs")
6-
(define version "5.2")
6+
(define version "6.0")
77
(define pkg-authors '(ben))
88
(define scribblings '(("scribblings/gtp-benchmarks.scrbl" () ("Benchmarks"))))
99
(define compile-omit-paths '("benchmarks" "utilities/sample-gtp-measure-manifest.rkt"))

scribblings/gtp-benchmarks.scrbl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ See also the GitHub release notes:
108108
@url{https://github.com/bennn/gtp-benchmarks/releases}
109109

110110
@itemlist[
111+
@item[
112+
@history[#:changed "6.0"
113+
@elem{@bold{Major Release}.
114+
Edited all benchmarks to match up typed and untyped code.
115+
Typed code now uses @racket[assert] instead of @racket[cast]
116+
and untyped code uses an untyped version of the same
117+
predicate function.
118+
Reordered functions / methods so that a per-file diff lines
119+
up; the only differences between files now should be
120+
types and @racket[require] forms.
121+
122+
After, @bm{lnm} has lower overhead because of new asserts
123+
in untyped code.
124+
Both @bm{quadU} and @bm{quadT} have higher overhead,
125+
possibly because Typed Racket fixed a soundness hole in
126+
the meantime (@hyperlink["https://github.com/racket/typed-racket/commit/1643443502a54d557e4043de0d7e0b9a5e41ba7c"]{1643443}).}]]
111127
@item[
112128
@history[#:changed "5.0"
113129
@elem{(1) Remove an unused call to @racket[format] in the typed

scribblings/util.rkt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@
8787
(map md5sum (glob (build-path dir "**" "*.rkt"))))
8888

8989
(define BENCHMARK-NAME*
90-
(for/list ((x (in-list (directory-list benchmarks-path))))
91-
(string->symbol (path->string x))))
90+
(for/list ((x (in-list
91+
(map (compose1 string->symbol path->string)
92+
(directory-list benchmarks-path))))
93+
#:unless (eq? 'compiled x))
94+
x))
9295

9396
(define benchmarks-key*
9497
(sort BENCHMARK-NAME* symbol<?)
@@ -427,7 +430,10 @@
427430
(void
428431
(clean-directory! src))
429432
(define udir (build-path src untyped-name))
430-
(make-modulegraph (glob (build-path udir "*.rkt"))))
433+
(define rkt* (glob (build-path udir "*.rkt")))
434+
(unless (pair? rkt*)
435+
(raise-argument-error 'get-modulegraph "directory with .rkt files" udir))
436+
(make-modulegraph rkt*))
431437

432438
(define (clean-directory! dir)
433439
(log-gtp-benchmarks-info "cleaning directory '~a'" dir)

utilities/modulegraph.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
(complete-path->exported-identifiers
1212
(-> path-string? (listof symbol?)))
1313
(make-modulegraph
14-
(-> (listof path-string?) modulegraph?))
14+
(-> (and/c pair? (listof path-string?)) modulegraph?))
1515
(modulegraph->num-modules
1616
(-> modulegraph? natural?))
1717
(modulegraph->modules

0 commit comments

Comments
 (0)