Skip to content

Release 2.7.0

Latest

Choose a tag to compare

@objecthub objecthub released this 25 Nov 23:21
  • 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.