Releases: racket/racket
Racket v9.0
- Racket supports parallel threads. For more information see the new
blog post on the topic.- Parallel threads can be created using the
#:poolargument to
thread creation. - Threads created with
#:keepset to'resultswill record their
results for later retrieval withthread-wait.
- Parallel threads can be created using the
- The
black-boxwrapper prevents the optimizing compiler from
optimizing away certain computations entirely. This can be helpful
in ensuring that benchmarks are accurate. - The
decompile-linkletfunction can map linklets back to
s-expressions. - When using BC Racket, the
processor-countfunction is changed to
always return the parallel count. - We now distribute "natipkg" packages for AArch64, useful for
package-build and package-testing infrastructure. - Check Syntax tracks identifiers more deeply nested in the "origin"
field of syntax objects. - The
mathlibrary includes Weibull distributions. - There are many other repairs and documentation improvements!
The following people contributed to this release:
Alexander Shopov, Anthony Carrico, Bert De Ketelaere, Bogdan Popa,
Cadence Ember, David Van Horn, Gustavo Massaccesi, Jade Sailor,
Jakub Zalewski, Jens Axel Søgaard, jestarray, John Clements, Jordan
Johnson, Matthew Flatt, Matthias Felleisen, Mike Sperber, Philip
McGrath, RMOlive, Robby Findler, Ruifeng Xie, Ryan Culpepper, Sam
Phillips, Sam Tobin-Hochstadt, Sebastian Rakel, shenleban tongying,
Shu-Hung You, Stephen De Gabrielle, Steve Byan, and Wing Hei Chan.
Racket v8.18
- The racket-lang.org website no longer distributes Racket BC bundles,
but it includes pre-built bundles for two flavors of ARM linux,
AArch64 and 32-bit ARMv6 VFP. - XML structures are serializable.
- Scribble's HTML generation conforms better to modern standards.
- Racket uses Unicode 16.0 for character and string operations.
- The
redex-checkdefault generation strategy always uses random
generation to supplement the enumerator. - DrRacket supports the use of shift-tab to go backward to previous
indentation positions. - The macro stepper supports the string-constants library, allowing
internationalization of the stepper itself. - The
structform supports#:properties prop-list-expr, making it
more convenient to attach multiple property values to a structure
type. - Build-system improvements support containers registered at Docker
Hub to build for all platforms that have downloads from the main
Racket download site; improvements also support Unix-style builds
for Mac OS in the style of MacPorts. - The
exptfunction produces a more accurate result when its first
argument is a flonum and its second argument is an exact integer
that has no equivalent flonum representation than it did in prior
versions. - TCP ports use
SO_KEEPALIVEcorrectly. - Unsafe code can use “uninterruptible mode” instead of “atomic mode”
to allow futures to run concurrently while preventing interruptions
from other threads. - The
net/imaplibrary supports IMAP'smoveoperation. - There are many other repairs and documentation improvements!
The following people contributed to this release:
Bob Burger, Bogdan Popa, Brad Lucier, Carl Gay, Chloé Vulquin, D.
Ben Knoble, Gustavo Massaccesi, Jacqueline Firth, Jade Sailor,
Jarhmander, Jason Hemann, Jens Axel Søgaard, Joel Dueck, John
Clements, jyn, Jörgen Brandt, Mao Yifu, Marc Nieper-Wißkirchen,
Matthew Flatt, Matthias Felleisen, Mike Sperber, Noah Ma,
paralogismos, Pavel Panchekha, Philip McGrath, Robby Findler, Ryan
Culpepper, Sam Tobin-Hochstadt, Shalok Shalom, Stephen De Gabrielle,
Steve Byan, Vincent Lee, Wing Hei Chan, and ZC Findler.
Racket v8.17
- The new
drracket-corepackage provides a version of drracket with
a smaller set of dependencies. - Typed Racket has support for treelists.
- The package manager computes checksums for packages when required,
allowing the use and automatic upgrade of packages without them. - The
bitwise-first-bit-setfunction returns the smallest bit that
is set in the twos-complement representation of the given number. - The updated
dynamic-requirefunction makes it easier to use syntax
bindings by allowing a syntax-thunk (or 'eval) to be used for them. - The
error-module-path->string-handlerparameter allows the
customization of the display of module-paths in error messages. - Precision of certain numeric functions (
sin,cos, and others) is
improved on Windows platforms by using the MSVCRT/UCRT libraries. - The
string-appendfunction has improved performance and reduced
memory use for long lists of strings in the Racket CS
implementation. Differences are clearly noticeable for lists of
length 1 million. - TCP ports use
SO_KEEPALIVE, instructing the kernel to send
periodic messages while waiting for data to check whether the
connection is still responsive. - Racket code using a terminal in Windows can receive mouse events as
virtual terminal characters after using SetConsoleMode. (This is
also already possible on macOS and Linux.) See the tui-term package
for related example code. - The
#:replace-malformed-surrogate?keyword can be used to specify
a replacement for malformed unicode surrogates in JSON input - The http-client module no longer sends "Content-Length: 0" for
requests without a body. - The demodularizer (
compiler/demod) can prune more unused
assignments. - Several judgment rendering forms in Redex are replaced by functions,
allowing more convenient abstraction. - When a distribution includes no teaching languages, DrRacket’s
language-dialog configuration moves into the preferences dialog and
the “Language” menu disappears. - The math library has better support for block-diagonal matrices,
including both Racket and Typed Racket. - The math library contains improved implementations of acos and
matrix-(cos-)angle. - The stepper again works for
big-bangprograms. - There are many other repairs and documentation imprevements!
The following people contributed to this release:
Alexander Shopov, Andrei Dorian Duma, Bert De Ketelaere, Bob Burger,
Bogdan Popa, Bogdana Vereha, Cameron Moy, Chung-chieh Shan, Cutie
Deng, D. Ben Knoble, Dario Hamidi, Dominik Pantůček, Gustavo
Massaccesi, halfminami, Jacqueline Firth, Jason Hemann, Jens Axel
Søgaard, Joel Dueck, John Clements, Jordan Harman, Marc
Nieper-Wißkirchen, Matthew Flatt, Matthias Felleisen, Mike Sperber,
Noah Ma, owaddell-ib, Philippe Meunier, Robby Findler, Ryan
Culpepper, Ryan Ficklin, Sam Phillips, Sam Tobin-Hochstadt, Shu-Hung
You, sogaiu, Sorawee Porncharoenwase, Stephen De Gabrielle, Vincent
Lee, and Wing Hei Chan.
Racket v8.16
- Racket has expanded support for immutable and mutable treelists:
- A variety of new treelist utility functions are available:
treelist-filter,treelist-flatten, et cetera. - The
mutable-treelist-prepend!function allows prepending to
mutable treelists. - Mutable treelists are serializable.
- A variety of new treelist utility functions are available:
- The
serialize-structsmodule allows the minimization of
dependencies by providing only a handful of core forms. - The
flbit-fieldfunction allows access to the binary
representation of IEEE floating-point numbers. - The top-left search box in the documentation works once more.
- The XML reader is 2-3x faster on inputs with long CDATA and
comments, and avoids some internal contract checks to obtain a 25%
speedup on large documents generally. - The pregexp syntax includes "\X" to match a grapheme cluster),
following Perl and PCRE. - The
read-json*andwrite-json*functions allow customization of
the Racket representation of JSON elements, eliminating the need for
a separate "translation" pass. - Racket has new port I/O functions:
- The
open-input-nowherefunction creates an empty input port. - The
pipe-port?function makes it possible to determine whether a
port is created bymake-pipe. - The
port-file-statfunction allows gathering information about the
file that is the source or target of a file-stream port.
- The
- A revised representation of pointers improves the performance of
foreign function calls. As a result,ptr-refandptr-set!are
substantially faster. - In anticipation of the fifteenth RacketCon, the
fifteenthfunction
returns the fifteenth element of a list. - Racket has an improved multi-line convention for error messages.
- The
dblibrary allowsprepareon virtual statements. - The
student-tdistribution is part of themath/distributions
library. - Expeditor supports customizing the prompt, using the
#:prompt
keyword argument tocall-with-expeditor. - There is a guide to adding internationalization for a new (human)
language. - Optimizations to racket/profile improve asymptotic speed for very
large call graphs. - The
#lang htdp/asllanguage incorporates Graphical Debugger
support. - There is lots of new documentation, and many defects repaired!
The following people contributed to this release:
a11ce, Alex Knauth, Alexander Shopov, Alexis King, Andrew
Mauer-Oats, Anthony Carrico, Bert De Ketelaere, Bob Burger, Bogdan
Popa, D. Ben Knoble, David Van Horn, Gustavo Massaccesi, halfminami,
Hao Zhang, Jacqueline Firth, Jinser Kafka, JJ, John Clements, Jörgen
Brandt, Kraskaska, lafirest, Laurent Orseau, lukejianu, Marc
Nieper-Wißkirchen, Matthew Flatt, Matthias Felleisen, mehbark, Mike
Sperber, Noah Ma, Onorio Catenacci, Oscar Waddell, Pavel Panchekha,
payneca, Robby Findler, Sam Phillips, Sam Tobin-Hochstadt, Shu-Hung
You, Sorawee Porncharoenwase, Stephen De Gabrielle, Wing Hei Chan,
Yi Cao, and ZhangHao.
Racket v8.15
- Documentation search results are ordered, with visual cues
indicating what their source is (core, main-distribution, etc.).
These results are also grouped by language family (Racket, Rhombus,
etc.). (See https://docs.racket-lang.org/search/index.html?q=second
.) - DrRacket offers to restore previously open files when starting,
which can be made the default. - In DrRacket, Picts can be saved by right-clicking.
raco pkgintroduces theuninstallcommand as the opposite of
install. Theremovename for this functionality is retained for
compatibility. (See
https://docs.racket-lang.org/pkg/cmdline.html#%28part._raco-pkg-uninstall%29
.)raco pkgimproves the handling of--cloneand--unclone. (See
https://docs.racket-lang.org/pkg/cmdline.html#%28part._raco-pkg-update%29
.)- iOS is a compilation target, distinct from macOS.
- Racket supports falling back to IPv4 during hostname resolution when
IPv6 fails. - Memory allocated using the ffi/unsafe library can be initially
zeroed, using the'zeroed-atomicand'zeroed-atomic-interior
flags. (See
https://docs.racket-lang.org/foreign/foreign_pointer-funcs.html#%28idx._%28gentag._11._%28lib._scribblings%2Fforeign%2Fforeign..scrbl%29%29%29
.) - Many other bugs are fixed and documentation has been improved!
The following people contributed to this release:
Alec Mills, Alex Knauth, Alexander Shopov, Ashlynn Anderson, Ashton
Wiersdorf, Ben Greenman, Benjamin Yeung, Bob Burger, Bogdan Popa,
Breck Yunits, Carl Gay, Claes Wallin (韋嘉誠), CooperCorad, Crystal
Jacobs, D. Ben Knoble, Dexter Santucci, Eduardo Cavazos, Emil
Szpakowski, evelynmitchell, Greg Hendershott, Gunnar Ahlberg, Gwen
Weinholt, Idiomdrottning, Ikko Eltociear Ashimine, Jacqueline Firth,
Jarhmander, Jay McCarthy, Jens Axel Søgaard, Jimmy McNutt, jinser,
Jinser Kafka, John Clements, lukejianu, Marc Nieper-Wißkirchen,
Matej Fandl, Matthew Flatt, Matthias Felleisen, Michael Ballantyne,
Mike Sperber, olopierpa, Paul Morris, Phil Nguyen, Philip McGrath,
Robby Findler, Ronald Garcia, Ryan Culpepper, Sam Phillips, Sam
Tobin-Hochstadt, Siddhartha Kasivajhula, Sorawee Porncharoenwase,
Stephen De Gabrielle, Syntacticlosure, Taylor Allred, Tomas Fabrizio
Orsi, Wing Hei Chan, and Yafei Yang.
Racket v8.14
-
64-bit ARM Windows is one of the standard pre-built downloads.
-
The
compiler/demodlanguage integrates demodularization into the
program rather than an external tool. Using the language approach
cooperates with other Racket tools and allows demodularization to be
used on libraries. Additionally, demodularization handles submodules
and can prune definitions, significantly shrinking the size of some
programs. -
The
contract-inform enables contracts to be specified in an
importing module. -
The
#%declareform supports the#:flatten-requiresand
#:unlimited-compilekeywords -
Identifiers such as
case-λ,match-λandλare equivalent to
their Latin-alphabet equivalents (case-lambda,match-lambda, and
lambda) in more contexts, including uses ofmatch. -
The
hash-filterfunction allows the use of a predicate to select a
sub-table of a hash table. -
The module browser can perform filtering on submodules.
-
The
raco testcommand-line form respects the
current-test-invocation-directoryparameter, and shows well-formed
module paths in its output. -
Racket CS allows the use of in-memory boot files.
-
The
raco/testingcollection brings together a variety of testing-
related functions and forms. -
This release also includes many bug-fixes and documentation updates!
-
NOTE: This release (and version 8.13) have a known build problem that
affects the builtpkgs source bundle on Windows. In order to avoid this
problem, use a pre-built bundle or build using a source bundle other
than the "builtpkgs" one. Nightly builds do not suffer from this
problem.
The following people contributed to this release:
Alex Knauth, Alexander Shopov, Ben Greenman, Bert De Ketelaere, Bob
Burger, Bogdan Popa, Cadence Ember, Carl Gay, D. Ben Knoble, Gregory
Rosenblatt, Gustavo Massaccesi, John Clements, John Sullivan, Jordan
Johnson, luistung, Matthew Flatt, Matthias Felleisen, Noah Ma, Philip
McGrath, Robby Findler, Ryan Culpepper, Sam Tobin-Hochstadt, Sergey
Fedorov, Sorawee Porncharoenwase, Wing Hei Chan, and ZhangHao.
Racket v8.13
- The racket/treelist and racket/mutable-treelist libraries provide
list-like containers that support many operations in effectively
constant time, including appending and extracting sub-lists without
mutating the given list. Treelists are implemented as RRB Vectors,
invented by Stucki, Riompf, Ureche, and Bagwell.
(see https://docs.racket-lang.org/reference/treelist.html#(part._treelist)
and https://dl.acm.org/doi/abs/10.1145/2784731.2784739 )
- The
hash-filter-keysandhash-filter-valuesfunctions allow users
to filter hashes using a predicate on either keys or values.
- The
vector-extendandvector*-extendfunctions provide a way
to pre-populate the prefix of a newly allocated vector using the elements
of an existing vector.
-
Command-line raco setup, package update, and package installation use
terminal control (when available) to show what they are working on
more compactly and with a progress bar. -
Racket v8.13 uses Unicode 15.1 for character and string operations.
-
Machine-specific cross-module optimization allows improved support for
static generation of foreign-function bindings. -
The scribble/acmart language uses v2.01, which avoids errors
concerning the hyperref package in some latex installations.
The following people contributed to this release:
Alec Mills, Ben Greenman, Bob Burger, Bogdan Popa, dr-neptune, Fred Fu,
Gustavo Massaccesi, Jason Hemann, Jay McCarthy, John Clements, Jordan
Johnson, Justin Dhillon, Mao Yifu, Matias Eyzaguirre, Matthew Flatt,
Matthias Felleisen, Mike Sperber, olopierpa, Oscar Waddell, Pavel
Panchekha, Philip McGrath, Robby Findler, Sam Phillips, Sam
Tobin-Hochstadt, Siddhartha Kasivajhula, Sorawee Porncharoenwase,
Stephen De Gabrielle, Tim Standen, William E. Byrd, and Wing Hei Chan.
Racket v8.12
-
The "Die Macht der Abstraktion" language levels are no longer present,
replaced by the "Schreibe dein Programm" language levels which have been
available for several years. (see https://www.deinprogramm.de/sdp/ ) -
The release fixes a problem with the binding structure of the
for/fold
form in the rare situation when an iteration clause identifier shadowed
an accumulator identifier. This change may break code that depends on
the old binding structure. (see https://docs.racket-lang.org/reference/for.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._for%2Ffold%29%29 ) -
Racket automatically sets the close-on-exec flag when opening a file, on
systems where this is available. This change lowers the cost of avoiding
problems that can occur when file descriptors become accidentally shared
between processes. (see https://docs.racket-lang.org/reference/file-ports.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._open-input-file%29%29 ) -
Match includes
hashandhash*patterns. (see https://docs.racket-lang.org/reference/match.html#%28form._%28%28lib._racket%2Fmatch..rkt%29._match%29%29 ) -
The
vector-set/copyfunction allows creation of a new vector that differs
at only one index. This change also addsvector-appendandvector-copy
primitives. (see https://docs.racket-lang.org/reference/vectors.html#%28def._%28%28lib._racket%2Fvector..rkt%29._vector-set%2Fcopy%29%29 ) -
The
pregexp-quotefunction brings the functionality ofregexp-quote
to pregexps. (see https://docs.racket-lang.org/reference/regexp.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._pregexp-quote%29%29 ) -
The C FFI convention-based converter supports
PascalCaseandcamelCasein
addition to an underscore-based convention. (see https://docs.racket-lang.org/foreign/Defining_Bindings.html#%28form._%28%28lib._ffi%2Funsafe%2Fdefine%2Fconventions..rkt%29._convention~3ahyphen-~3ecamel.Case%29%29 ) -
The
racket/caselibrary allowscase-like forms that use different
equality comparisons, such aseq?andequal-always?. (see https://docs.racket-lang.org/reference/case.html#%28form._%28%28lib._racket%2Fcase..rkt%29._case%2Fequal%29%29 ) -
Scribble rendering to HTML adds linking and information buttons when
hovering over heading titles. -
The
interval-mapdata structure supports iterator functions in the style
ofgen:ordered-dict. (see https://docs.racket-lang.org/data/Orders_and_Ordered_Dictionaries.html#%28def._%28%28lib._data%2Forder..rkt%29._gen~3aordered-dict%29%29 )
The following people contributed to this release:
Alex Harsányi, Alex Knauth, Alex Muscar, Alexis King, Ben Greenman, Bert
De Ketelaere, Bob Burger, Bogdan Popa, Chris Payne, Fred Fu, J. Ryan
Stinnett, Jamie Taylor, Jared Forsyth, Jarhmander, Jens Axel Søgaard,
Joel Dueck, John Clements, Jordan Johnson, Ken Harris, Laurent Orseau,
Mao Yifu, Marc Nieper-Wißkirchen, Matteo d’Addio, Matthew Flatt,
Matthias Felleisen, Micah Cantor, Mike Sperber, naveen srinivasan, Oscar
Waddell, Philip McGrath, Philippe Meunier, Robby Findler, Rocketnia, Sam
Phillips, Sam Tobin-Hochstadt, Sarthak Shah, Shu-Hung You, Sorawee
Porncharoenwase, Stephen De Gabrielle, Tom Price, ur4t, Wing Hei Chan,
and ZhangHao
Racket v8.11.1
Racket version 8.11.1 is now available from https://racket-lang.org/
This bug-fix release repairs a problem with building from source when using the "builtpkgs" source distribution.
Feedback Welcome
Racket v8.11
Racket version 8.11 is now available from
https://racket-lang.org/
As of this release:
-
Match clauses can include a #:do option to allow evaluation of code
and bindings before a following #:when clause. Cf. https://docs.racket-lang.org/reference/match.html#%28form._%28%28lib._racket%2Fmatch..rkt%29._match%29%29 -
JSON Serialization supports indentation with an #:indent option to
write-json. Cf. https://docs.racket-lang.org/json/index.html#%28def._%28%28lib._json%2Fmain..rkt%29._write-json%29%29 -
An
initiate-sequencefunction simplifies the creation of sequences.
Cf. https://docs.racket-lang.org/reference/sequences.html#%28def._%28%28lib._racket%2Fsequence..rkt%29._initiate-sequence%29%29 -
The
:do-inform allows an inner definition sequence. Cf. https://docs.racket-lang.org/reference/for.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._~3ado-in%29%29 -
The
redex-defineform allows pattern-matching in PLT Redex using a
define-like syntax. Cf. https://docs.racket-lang.org/redex/reference.html#%28form._%28%28lib._redex%2Freduction-semantics..rkt%29._redex-define%29%29 -
Racket and Chez Scheme use Robert L. Smith's "Algorithm 116" for
division of complex numbers. Cf. https://dl.acm.org/doi/10.1145/368637.368661 -
DrRacket has indentation guides that provide visual cues indicating
how code is indented and grouped, accessible by using
(<menu-key>-shift-i). -
"Comment-out" menu items can be specific to the #lang used by the
current file. Cf. https://docs.racket-lang.org/framework/Text.html#%28def._%28%28lib._framework%2Fmain..rkt%29._text3aindent-guides3c253e%29%29 -
Unused identifiers have a tooltip indicating that they have no bound
occurrences. -
Quickscript includes a new form of scripting in the form of "hook"
functions that can be attached to existing events. Cf. https://docs.racket-lang.org/quickscript/index.html#%28part._.Hooks%29 -
Plots include
plot-insetandplot-legend-paddingparameters to
control the amount of space left unused around the plot edge and plot
legend. Cf. https://docs.racket-lang.org/plot/params.html#%28def._%28%28lib._plot%2Fmain..rkt%29._plot-inset%29%29 -
There are many other documentation improvements, optimizations, and
bug fixes!
Thank You
Thank you to the people who contributed to this release:
Alex Harsányi, Ben Greenman, Bogdan Popa, Cameron Moy, Camille
d’Alméras, D. Ben Knoble, Efraim Flashner, Eric S. Raymond, Fred Fu,
Greg Hendershott, Gustavo Massaccesi, Jay McCarthy, jim, Joel Dueck,
John Clements, Jon Eskin, Laurent Orseau, Lucas Sta Maria, mAdkins, Mark
Hedlund, Matteo d’Addio, Matthew Flatt, Matthias Felleisen, Mike
Sperber, Noah Ma, Oscar Waddell, Philip McGrath, Qifan Wang, Robby
Findler, Ross Angle, Ryan Culpepper, Sam Tobin-Hochstadt, shenleban
tongying, Shu-Hung You, Sorawee Porncharoenwase, Stephen De Gabrielle,
Wing Hei Chan, xxyzz, and ZhangHao