Release 2.7.02026-11-26
- Performance: the new benchmark suite in folder Benchmarks runs in 72% less time than before, i.e. about 3.5 times faster.
- Lower runtime overheads in the virtual machine: no dynamic exclusivity checks on hot paths, cheaper access to the heap and to global variables, and constant-time reuse of slots in the managed object pool.
- Generic arithmetic (+, -, *, /, =, <, >, <=, >=) as well as vector-ref and vector-set! compile into VM instructions with fast paths for fixnums and flonums. Generic arithmetic is now as fast as the fx and fl operations.
- Named let forms in tail position compile into loops, and local variables mutated by set! are kept on the stack unless they can be captured.
- eq?, eqv?, equal?, and hashing process long lists iteratively and no longer overflow the stack. Faster string access (string-ref, string-length, string->list, ...) and faster padding of non-ASCII strings.
- Bug fixes:
- R7RS conformance: comparisons between exact and inexact numbers are exact (and thus transitive), nested quasiquotes track their nesting level, cond and case don't treat locally bound else and => as keywords, syntax-rules matches literals by identifier rather than by name, write-shared labels objects referenced more than once, and do loops bind their variables anew in every iteration.
- Numbers: fixed crashes involving the smallest fixnum, floor/ and modulo for a zero remainder and a negative divisor, and division of bignums and rationals by exact zero. Requires NumberKit 3.0.1.
- string-copy! no longer fails if the target is longer than the source.
- (srfi 1): any and every with several lists, list-index without match, and dotted-list? for non-pairs.
- (lispkit clos): slot initializers provided by compute-accessors methods were assigned to the wrong slots.
- (lispkit system keychain): make-keychain and keychain-set! (and variants) decided about iCloud synchronization based on the access policies instead of the sync argument.
- (lispkit text-table): row cells of the documented form ("content" align) were rejected.
- New LispKit libraries:
- (lispkit foundation-model): large language models via Apple's FoundationModels framework (macOS 27 and iOS 27 or newer), with sessions, text and structured generation, response streams, tools written in Scheme, and transcripts. Models from other vendors are provided by (lispkit foundation-model claude) (Anthropic's Claude), (lispkit foundation-model gemini) (Google's Gemini), and (lispkit foundation-model gpt) (OpenAI's GPT). (lispkit foundation-model tool) provides Apple's native OCR, barcode, and Spotlight tools (macOS only).
- (lispkit natural-language): Apple's NaturalLanguage framework with language identification, tokenization, tagging, sentiment analysis, word, sentence, and contextual embeddings, gazetteers, custom text models, and training of text classifiers.
- (lispkit data-frame): immutable data frames based on Apple's TabularData framework, with CSV and JSON support, filtering, sorting, joins, grouping, and aggregation. New procedure data-frame->text-table in (lispkit text-table).
- (lispkit yaml): reading, querying, changing, and writing YAML 1.2 data, based on YamlKit.
- (lispkit system search): Spotlight search for files and for the application's own Core Spotlight index, as well as indexing.
- (lispkit system util): manage-credential for accessing and storing credentials such as API keys.
- (lispkit draw chart line) for line and area charts and (lispkit draw chart pie) for pie and donut charts. New procedure draw-legend in (lispkit draw chart).
- (lispkit sequence): uniform iteration over sequences with for loops and comprehensions such as for/list, for/fold, and for/hash.
- (lispkit list util): commonly used list procedures (flatten, shuffle, group-by, permutations, ...) and a selection of SRFI 1 procedures.
- (lispkit cmdline): table-driven command-line parsing with generated help text.
- (lispkit pretty-print): pretty printing of data and source code based on SRFI 272.
- Hyperbolic functions in (lispkit math util).
- New documentation for (lispkit clos) and (lispkit logic), each with a tutorial.
- New SRFI implementations:
- SRFI 25: Multi-dimensional Array Primitives
- SRFI 37: args-fold: a program argument processor
- SRFI 116: Immutable List Library; also as (scheme ilist)
- SRFI 117: Queues based on Lists; also as (scheme list-queue)
- SRFI 127: Lazy Sequences; also as (scheme lseq)
- SRFI 231: Intervals and Generalized Arrays
- SRFI 253: Data (Type-)Checking
- SRFI 272: Pretty Printing
- SRFI 273: Extensions to Data (Type-)Checking
- SRFI 275: URIs, IRIs, and basic paths
- (scheme red) now includes the procedures of (scheme ilist), (scheme list-queue), and (scheme lseq).
- New sample code: FoundationModels.scm, ImageUnderstanding.scm, DataFrames.scm, YAML.scm, DrawLineCharts.scm, DrawPieCharts.scm, TinyCLOS.scm, and TailCallTests.scm.
Release 2.6.42026-10-25
- Same code as 2.6.3. The tag of release 2.6.3 was moved after package managers (Homebrew) had picked up the original source archive, so its checksum changed. Please use 2.6.4 instead of 2.6.3.
- Copies of 2.6.3 obtained before this release (e.g. the Homebrew bottle) may be based on an earlier state of the code, which lacks the last fixes, e.g. for exit, the handling of errors at the top level, and the command-line parsing of LispKitRepl.
- For the changes since 2.6.2 see the notes of release 2.6.3 and the changelog.
Release 2.6.32026-10-25
- Significant extension of library (lispkit markdown):
- Complies with the CommonMark X specification
- Support for underlined text, strikethrough text, and task lists
- Support for typesetting LaTeX formulas
- Support for rendering Mermaid diagrams
- Loads images from the web
- Includes several parsers based on specified dialect: standard, extended, full, math and latex
- Supporting both structural and semantical comparisons of Markdown documents
- New procedures: markdown->pdf, markdown->pdf-data, save-markdown, markdown->source-string, normalize-markdown, markdown-equals?, markdown-block-equals?, markdown-list-item-equals?, markdown-inline-equals?, markdown->formatted-string, markdown-style-config, syntax-highlighting-theme and syntax-highlighting-themes
- Significant extension of library (lispkit http server):
- HTTP servers now listen on the loopback address by default
- Path parameter values are now percent-encoded, as sent by the client with the option to decode
- HTTP servers support persistent connections, answer HEAD and OPTIONS requests, and refuse requests that are too large or too slow
- Fixed vulnerability in share-directory-handler and browse-directory-handler
- Fixed JSON responses and a multi-threading-related crash
- New/extended procedures in library (lispkit draw): make-bitmap, bitmap-trim, mermaid->image, latex-math->image and EXIF metadata fully supported on iOS.
- New procedure in library (lispkit system): locale-sunday-first?
- New procedure in library (lispkit date-time): week->date-time
- Procedures of (lispkit vision) run in the background now; json-query returns matches in document order
- Fixes in libraries (lispkit json), (lispkit date-time), (lispkit object), shape-contains?
- Fixed exit (ends the whole program, also on other threads, and LispKitRepl uses the requested exit status), the handling of errors that are dealt with by a handler at the top level, data races in the thread runtime, and a compiler bug corrupting the stack
- New sample code: StyledMarkdown.scm, MarkdownTOC.scm, and Movies.scm
- Options -r, -f, -l, -a, and -i of LispKitRepl take exactly one value now but can be repeated
- Completed and updated library documentation
Release 2.6.22026-08-08
- New library for drawing function charts: (lispkit draw chart function)
- Support for turning Markdown into a textual representation to be displayed on ANSI terminals via library (lispkit markdown); new procedures markdown->string and markdown->styled-text
- Support aligning/padding based on display width in library (lispkit format) with procedures format-config-align-display and format-config-align-display-set!
- New procedure string-display-width in library (lispkit string)
- New procedures device-battery-level and device-battery-state in library (lispkit system)
- Fixed behavior of procedure string->number to return #f instead of raising an error for input that cannot be parsed as a number
- New sample code: DrawFunctionCharts.scm, Connect4.scm, AnsiMarkdown.scm
- Increased minimum platform requirements to macOS 14.6 and iOS 17.6
- Completed and updated library documentation
Release 2.6.12026-04-26
- Moved random number procedures from Prelude.scm into Examples/Math.scm
- Several bug fixes in library (lispkit image), especially related to preserving the orientation of images
- Fix Examples/MermaidDiagrams.scm
Release 2.6.02025-12-23
- Documentation for libraries is now included in this repository
- New library for handling locations: (lispkit location)
- New library for creating and editing PDF documents: (lispkit pdf)
- New library for solving computer vision problems: (lispkit vision); the library supports optical character recognition (OCR), shape detection, barcode recognition, and image classification.
- New libraries for processing/manipulating images, providing access to Apple's Core Image framework: (lispkit image), (lispkit image process)
- New library for drawing maps: (lispkit draw map)
- New library for making and drawing snapshots of web pages: (lispkit draw web)
- New exported definitions in library (lispkit draw): clip-drawing, bitmap-ppi, closed-polygon, inset-rect, size-ratio, rect-mid-point, rect-mid-x, rect-mid-y, zero-size, transpose. make-shape accepts a second optional argument freeze? which makes it possible to create a new shape from an existing one without introducing a dependency.
- Improvements for reading and writing images via (lispkit draw): PDF files can now be read via load-image, load-image-asset and bytevector->image also on iOS. New procedures save-image and image->bytevector support saving images as PDF. save-bitmap and bitmap->bytevector now support a "quality factor" which indicates how strongly an image should be compressed.
- New procedures in library (lispkit core): generate-uninterned-symbol, symbol<?
- New functionality for library (lispkit enum): procedure enum-tag-mapper and enum constructors without name (to return the enum type)
- Make it easier to generate date-time strings with procedure date-time->iso8601-string and parse date-time strings via string->date-time conforming with ISO 8601/RFC 3339.
- Fixes quasiquote for expressions involving array literals
- Fixes the (library ...) directive of cond-expand
- Fixes classes in library (lispkit object); generic procedure object->string was renamed to object-description
- New sample code: ImageComposition.scm, OCR.scm, MermaidDiagrams.scm, Pinterest.scm
Release 2.5.02024-11-21
- Support for all major JSON standards via libraries (lispkit json) and (lispkit json schema) supporting JSON Pointer \(RFC 6901\), JSON Path \(RFC 9535\), JSON Patch \(RFC 6902\), JSON Merge Patch \(RFC 7396\) and JSON Schema \(2020-12 Internet Draft specification\).
- Support for HTTP-based networking via libraries (lispkit http), (lispkit http oauth), and (lispkit http server), including support for OAuth 2.0 \(RFC 6749\) and simple HTTP servers.
- Deeper integrations into macOS and iOS operating systems via libraries (lispkit system keychain) and (lispkit system pasteboard).
- New library for handling URLs: (lispkit url)
- New concurrency features with support for atomic boxes via library (lispkit box) and thread-safe shared queues via library (lispkit thread shared-queue).
- Serialization of data into a binary representation for a subset of LispKit's data types via library (lispkit serialize).
- Support for drawing a variety of different types of bar codes via library (lispkit draw barcode)
- New procedure in library (lispkit thread): abort-running-threads
- New procedures in library (lispkit system): available-network-interfaces, region-continent, region-parent, and region-subregions
- New procedures in library (lispkit string): url-encode and url-decode
- New procedures in library (lispkit bytevector): bytevector-zip-header? and bytevector-gzip-header?
- New procedures in library (lispkit markdown): markdown->sxml, blocks->sxml, text->sxml, markdown->raw-string, and blocks->raw-string
- New/updated procedures in library (lispkit dynamic): error-object->string and error-object-message
- New special forms in library (lispkit control): if-let and when-let
- LispKitRepl now supports asynchronous libraries (libraries which need a run loop) via command-line argument -x
- New sample code: Keychain.scm, WebAPIs.scm, and Webserver.scm
Release 2.4.02024-01-16
- Ported universal formatting facility from Common Lisp and made it available via library (lispkit format)
- Library (lispkit records) now supports extensible records compatible to SRFI 131
- New procedures in library (lispkit system): available-region?, region-flag, available-language?, available-currencies, available-currency?, currency-name, currency-code, currency-numeric-code, and currency-symbol
- New procedures in library (lispkit port): display-format, write-formatted
- New procedures in library (lispkit bitset): fixnum->bitset, bitset->fixnum
- New procedures in library (lispkit system): terminal-size, make-uuid-string, make-uuid-bytevector
- New procedure in library (lispkit draw): clear-drawing
- New procedures in library (lispkit draw turtle): arc, turtle-x, turtle-y, turtle-angle, turtle-pen-down?
- New procedure load-program in library (lispkit core) supports executing programs in an empty environment
- Procedure type-of of library (lispkit type) now returns a list of type tags (from most specific to least specific type)
- Renamed library (lispkit system os) to (lispkit system call)
- Renamed object in library (lispkit type) to obj to prevent conflicts with other libraries
- Extend library (lispkit bytevector) with procedures bytevector=?, bytevector->hex, and hex->bytevector
- Reimplementation of procedure open-file in library (lispkit system) supporting custom application paths
- Enforce that imported (immutable) definitions cannot be mutated, unless it's in the REPL; export-mutable in library definitions enable mutability
- Allow configuration of REPL output via format config repl-format-config of library (lispkit format)
- Improved display of OS-level exceptions and errors in REPL
- New libraries: (lispkit format), (lispkit crypto), (lispkit archive tar), (lispkit list set), (srfi 239), (srfi 235).
- New sample code: Blockchain.scm
Release 2.3.22023-02-05
- Handle assets correctly in the LispKit REPL
- Improved R7RS regression tests
- Bugfixes in library (lispkit bytevector) for procedures bytevector-copy and bytevector-copy!
- Revamp of library (lispkit graph) with new procedures: graph-topological-sort, graph-weakly-connected-components, graph-strongly-connected-components, and graph-shortest-paths
- New libraries: (srfi 228), (srfi 233), and (srfi 236)
Release 2.3.12022-12-10
- Fixed bug leading to deadlocks when using text ports
- Fixed bug allowing to execute empty lists
- Fixed serious bug leading to an infinite loop when iterating through stack traces
- Limit stack size to prevent application crashes
- New procedure in library (lispkit thread): thread-max-stack