This repository is for development of Whippet, a new garbage collector implementation, initially targetted for use in Guile Scheme.
Whippet is an embed-only C library, designed to be copied into a program's source tree. It exposes an abstract C API for managed memory allocation, and provides a number of implementations of that API.
See the documentation.
mmc collectors)bdw, which has a polyfill)mmc or always with bdw)mmc or always with semi / pcc)bdw)mmc, always with bdw)semi)semi)semi, bdw, pcc, and the
different flavors of mmc).As of October 2025, Whippet is feature-complete, in the sense that it is
ready to replace Guile's use of the
Boehm-Demers-Weiser collector; see the wip-whippet integration
branch.
We hope to incrementally merge this branch of Guile over to the main
Guile branch over the next months.
In the near future, Whippet's internal collectors need to add support for MacOS and Windows, and to test on AArch64.
There are all kinds of new collector designs that it would be fun to experiment with, but we are mostly in a getting-into-production phase at the moment. Feel very free to fork the repo to try out any ideas you might have!
It sounds better than WIP (work-in-progress) garbage collector, doesn't it? Also apparently a whippet is a kind of dog that is fast for its size. It would be nice if the Whippet collectors turn out to have this property.
Copyright (c) 2022-2025 Andy Wingo
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Note that some benchmarks have other licenses; see
benchmarks/README.md for more.
C
96.2%
Makefile
1.7%
M4
1.1%
This repository is for development of Whippet, a new garbage collector implementation, initially targetted for use in Guile Scheme.
Whippet is an embed-only C library, designed to be copied into a program's source tree. It exposes an abstract C API for managed memory allocation, and provides a number of implementations of that API.
See the documentation.
mmc collectors)bdw, which has a polyfill)mmc or always with bdw)mmc or always with semi / pcc)bdw)mmc, always with bdw)semi)semi)semi, bdw, pcc, and the
different flavors of mmc).As of October 2025, Whippet is feature-complete, in the sense that it is
ready to replace Guile's use of the
Boehm-Demers-Weiser collector; see the wip-whippet integration
branch.
We hope to incrementally merge this branch of Guile over to the main
Guile branch over the next months.
In the near future, Whippet's internal collectors need to add support for MacOS and Windows, and to test on AArch64.
There are all kinds of new collector designs that it would be fun to experiment with, but we are mostly in a getting-into-production phase at the moment. Feel very free to fork the repo to try out any ideas you might have!
It sounds better than WIP (work-in-progress) garbage collector, doesn't it? Also apparently a whippet is a kind of dog that is fast for its size. It would be nice if the Whippet collectors turn out to have this property.
Copyright (c) 2022-2025 Andy Wingo
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Note that some benchmarks have other licenses; see
benchmarks/README.md for more.
C
96.2%
Makefile
1.7%
M4
1.1%