Scheme (R7RS)

This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot Scheme (R7RS) — released July 2013 · lifecycle current

Family Scheme — shelf: Education

The language exists mainly to teach programming. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory Scheme (1975 — first implementation) · R7RS (July 2013 — current standard)

Tags

Use — Application, Education

Paradigm — Functional

Platform — Native

Lifecycle — Current

Memory — Managed (GC)

Typing — Dynamic

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to Scheme (R7RS); an unmarked link is the current reference for the language.

Landing page

Specification and reference

API documentation

Tutorial

1 Assessment

This page assesses Scheme in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 70.6/100 · Ecosystem coupling 92.2/100 · Engineering readiness 42.7/100

1.1 Core coupling

1.1.1 Type

  • ❌ No static type check: A binding has no declared type and a call is resolved when it runs, so a type error is reported at run time rather than at load time (T1)
  • ❌ Dispatch is dynamic: An application checks its argument count and its operands’ types when it executes, so an over-application or an under-application is an error then (T3)
  • ❌ No sum types and no generics in the core: An alternative is a tagged list whose tag the code must test by hand, and a reusable procedure accepts any object and documents its expectation in a comment (T4, T5)
  • ⚠️ + and the other arithmetic procedures are ordinary bindings: A redefinition changes what (+ a b) means, so an expression can invoke code the syntax does not show (T8)
  • ✅ Hygienic macros decouple a macro from its use site: syntax-rules renames the identifiers a template introduces, so a macro cannot accidentally capture a name from the caller
  • ✅ Lexical scope is one small rule: A lambda binds its parameters and its internal definitions, and nothing else is visible

1.1.2 Construction

  • ✅ Constructors are ordinary procedures: A record constructor or a lambda that returns a list is built with the same mechanism, so construction does not couple to a class system
  • ✅ define-record-type declares the shape once: The R7RS form generates the constructor, the type predicate, and the field accessors from one declaration
  • ✅ Proper tail recursion is a language guarantee: A tail call reuses the current frame, so a loop written as a tail-recursive procedure runs in constant stack space
  • ✅ let confines a binding to its body: A construction can build its state inside a let and expose only what it returns
  • ⚠️ set! lets a construction mutate a captured binding: A closure can change state that its caller still holds, so a value built by a procedure is not automatically immutable
  • ⚠️ A plain program has one top-level environment: R7RS define-library with explicit export confines a set of bindings, but a program’s top-level defines share a single scope
  • ❌ One value, many names: pairs are shared, and set! mutates every name that reaches the cell (C6)

1.1.3 Memory

  • ❌ A garbage collector reclaims memory: The implementation chooses the collector, and the program cannot free an object or predict when it dies (M2)
  • ❌ No RAII or scope-exit destructor: A resource is released by an explicit call, and dynamic-wind can wrap that call in a dynamic extent, but nothing runs automatically at the end of an arbitrary scope (M3)
  • ❌ No ownership or borrow model: A reference is an untracked alias, and the collector alone knows when an object is unreachable (M4)
  • ✅ No manual deallocation: There is no free operation in the language, so a program cannot release a live object by mistake
  • ✅ dynamic-wind binds a release to the dynamic extent: Its after thunk runs on every exit, including a non-local one
  • ✅ R7RS pairs acquisition with release in the common cases: call-with-port, with-input-from-file, and with-output-to-file close what they open
  • ❌ The undeclared class has no catch: recursion crashes the implementation below the handler surface (the implementation’s stack is not a declared failure) (Er6)

1.1.4 Error

  • ❌ A failure is raised and is not described by a signature: A procedure promises nothing about the conditions it may raise, so the failure set is not readable from the call (Er2)
  • ✅ guard gives a structured handler: An R7RS guard clause names a condition and a recovery expression, and the handler returns a value to the guard
  • ✅ with-exception-handler installs a handler for a dynamic extent: The handler is bound where it is installed, not at the raise point
  • ✅ Condition types form a small hierarchy: error-object?, file-error?, and read-error? distinguish a raise by kind
  • ✅ error carries a message and irritants: The offending values travel with the condition
  • ⚠️ raise and raise-continuable differ: A non-continuable raise does not return to the raise point, so a handler must transfer control explicitly
  • ❌ A fault ends the program: the standard leaves toplevel recovery to the implementation and declares no recoverable unit (Er5)

1.1.5 Concurrency

  • ✅ The core defines no shared-memory concurrency: R7RS specifies no threads, so the standard makes no promise about a race the language does not create
  • ✅ Continuations separate control flow from the call stack: call/cc captures the current continuation as a procedure, so a coroutine, a generator, or a backtracking search is a library over it
  • ⚠️ Parallelism is an implementation extension: SRFI-18 supplies threads and SRFI-21 supplies synchronisation, and an implementation may support neither
  • ⚠️ A thread extension fixes no memory model: SRFI-18 defines a mutex and a condition variable, but the report it extends states no ordering guarantee for a shared object
  • ✅ A cooperative scheduler is expressible in the language: A queue of continuations plus a trampoline gives green threads without a runtime thread

1.1.6 Platform

  • ✅ No single implementation owns the language: The language is a published report, and Chez, Guile, Racket, CHICKEN, Gambit, MIT, and Chibi all implement it
  • ✅ define-library is the portability unit: An R7RS library with explicit import and export moves between implementations with its source
  • ✅ The core is small enough for a small runtime: The report’s language fits a microcontroller interpreter and an embeddable one
  • ✅ A program runs under several evaluation strategies: A compiler such as Chez and a simple interpreter both accept the report’s subset
  • ⚠️ The standard is a family of reports, not one: R5RS, R6RS, and R7RS are not fully compatible, so the name “Scheme” alone does not say which report a program targets
  • ⚠️ The library set beyond R7RS-small is the implementation’s: Each dialect ships a different collection, so portability in practice follows the chosen implementation

1.1.7 Trade-offs (not coupling)

  • The minimalist core is a deliberate trade: The report defines a small language and leaves libraries to the SRFIs, so a program chooses its extensions
  • The report split is a standards history: R5RS, R6RS, and R7RS followed a disagreement about how large the language should be
  • Dynamic typing is a design choice: No type declaration is required, so the discipline is the programmer’s
  • call/cc is a powerful and uncommon operator: Full continuations make control flow harder to reason about, and the expressiveness is the return
  • The REPL-first workflow is a choice: A program is developed at the prompt, which suits exploration and is not required by the language
  • Niche adoption is a scope outcome: The language targets education and research rather than industry

1.2 Ecosystem coupling

1.2.1 Performance

  • ✅ Native compilers are available: Chez Scheme, Gambit, and CHICKEN compile Scheme to native code, so a program need not be interpreted
  • ✅ The core is small enough to compile well: A compiler sees the whole language, so a straightforward optimiser covers it
  • ✅ Tail calls do not consume stack: A recursive loop compiles to a jump
  • ✅ Numeric code is fast in the strong implementations: A fixnum loop compiles to machine operations when the compiler proves the operands are fixnums
  • ⚠️ Performance varies significantly by implementation: The same program can be fast under Chez and much slower under a simple interpreter
  • ⚠️ A dynamically typed call is a checked call: The compiler inserts checks the program did not write, and their cost depends on how well it can eliminate them

1.2.2 Ecosystem

  • ❌ The ecosystem is small and spread over implementations: R7RS-small ships no library set, and the shared material is the SRFI collection plus each implementation’s own packages (Ec3)
  • ✅ The SRFIs are a portable library standard: A program requests a library by number, and an implementation reports the SRFIs it supports
  • ✅ The implementation distributions are mature and maintained: Guile, Chez, Racket, Gambit, and CHICKEN are long-lived projects with their own package collections
  • ✅ snow and the implementation indexes collect R7RS libraries: A portable library can be published for several implementations at once
  • ⚠️ Package management is implementation-specific: raco pkg, chicken-install, and Guix each serve one dialect, and the report fixes no package manager
  • ⚠️ A library that uses a dialect extension is not portable: A program written against one implementation’s collection usually needs editing for another

1.2.3 Evolution

  • ✅ SRFIs extend the language without changing the report: A new facility arrives as a numbered request, and each implementation adopts it independently
  • ✅ A program written to R7RS-small keeps its meaning: The small report is stable, so its subset does not move under the program
  • ✅ define-library localises a change to its importers: An exported name is the interface, and a change inside a library is invisible to the code that imports it
  • ⚠️ Three reports are in circulation and they differ: R5RS, R6RS, and R7RS disagree on libraries, on the details of syntax-rules, and on some standard procedures
  • ⚠️ An improvement reaches a program when an implementation adopts it: There is no single body that ships the language, so the timing is the implementation’s decision

1.2.4 Domain

  • ✅ Excellent as a teaching language: A dozen special forms cover the core, and SICP uses the language as a complete course
  • ✅ Excellent for programming-language research: A small core with hygienic macros and first-class continuations is a substrate for experiments
  • ✅ A real scripting and extension language: Guile is the extension language of GNU packages, including the Guix package manager
  • ✅ Embedding is a real use: A small Scheme interpreter is embedded in applications for configuration and scripting
  • ⚠️ Commercial application work is rare: Adoption is niche, so a team that picks Scheme for a product finds few precedents

1.2.5 Learning

  • ❌ The distinctive abstractions take real effort: call/cc, continuation-passing style, and hygienic macro writing are each a skill that takes time (L1)
  • ✅ The core is small enough to learn quickly: The special forms are few, and a complete course in them exists
  • ✅ A REPL returns the value immediately: The read-eval-print loop gives feedback on each expression
  • ✅ The report is precise about the language it defines: The specification states the required behaviour of each procedure
  • ⚠️ The report is a specification, not a tutorial: A beginner needs a text such as SICP alongside it
  • ⚠️ A continuation is easy to use outside its intended extent: Control that re-enters a captured continuation can surprise the programmer

1.2.6 Syntax

  • ✅ The syntax is uniform: A program is a sequence of S-expressions, so there is almost no grammar to learn
  • ✅ Prefix notation removes precedence rules: (+ 1 (* 2 3)) states the order in brackets, so no operator-precedence table is needed
  • ✅ Quasiquotation makes a template readable: `(a ,b ,@c) builds a list with holes at the point of use
  • ✅ The reader recognises the literal syntaxes directly: #\a is a character, #(1 2) is a vector, and #; comments out the next datum
  • ✅ A macro can add a readable form: define-syntax with syntax-rules introduces surface syntax without changing the core
  • ⚠️ A deeply nested expression needs the editor’s indentation: The reader balances the brackets, and the human eye follows the layout

1.2.7 Testing

  • ✅ SRFI-64 defines a portable test framework: test-begin, test-equal, and test-end run under any implementation that supports the SRFI
  • ✅ error makes a check cheap to write: (unless test (error "..." x)) fails a check and reports the offending value
  • ✅ The REPL is the first test loop: An expression is evaluated and its value is compared at the prompt
  • ✅ The implementation supplies a tracer and a debugger: Chez, Guile, and Racket each expose a trace facility and an inspector
  • ⚠️ No test framework is in the standard: A project depends on its implementation’s SRFI coverage rather than on the report
  • ⚠️ A test exercises the paths it runs: An unexecuted branch is unchecked, and a dynamic error in it appears only when the branch is reached
  • ❌ No monotonic reading published: the standard’s current-second is the wall; the program’s durations have no published clock (G4)

1.2.8 Security

  • ✅ The implementation manages memory: The language exposes no pointer and no manual free, so a buffer overflow or a use-after-free is not expressible in Scheme source
  • ✅ Hygienic macros remove a class of capture defect: A macro cannot bind a name it did not intend to bind
  • ✅ The core has no unsafe memory operation: The report defines no pointer arithmetic and no address
  • ⚠️ eval and read execute data as code: (eval (read port)) runs whatever the input contains, so untrusted input must never reach it
  • ⚠️ A continuation can cross an intended check: A continuation captured before a permission test can be re-entered after it
  • ⚠️ A foreign-function interface leaves the safe subset: An FFI in an implementation reaches native code, and the memory-safety guarantee stops there

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
source library source no Each implementation loads source and compiles it on the target

1.3 Engineering readiness

1.3.1 Reproducibility

  • ❌ No contract the implementation reads: the R7RS import system names libraries, not versions, and no machine-read manifest ships (Y18)

1.3.2 Supply chain

  • ❌ Scheme library channels carry no signed provenance. (Y3)
  • ❌ The library registries are flat name spaces. (Y4)
  • ❌ No advisory feed covers Scheme libraries. (Y16)

1.3.3 Observability

  • ❌ No tracing standard exists in the language. (Y5)
  • ❌ display and write carry no structure. (Y6)
  • ❌ An error lands in the REPL with no post-mortem artifact. (Y15)

1.3.4 Feedback

  • ❌ No debugger ships with the standard toolchain. (Y13)

1.3.5 Interop

  • ❌ The artifact runs where its implementation runs. (Y10)

1.3.6 Governance

  • ✅ The Scheme Steering Committee runs the process in the open. (Y11)
  • ✅ The R7RS-small report is published. (Y12)
  • ✅ The R6RS test suite is published for independent implementations. (Y17)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ✅ Compiles to native code: the fastest class in the language energy and time benchmarks [5], [6]. A causal re-analysis attributes the difference to execution time [7].

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ❌ Sparse training data: models write it unreliably [8].

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ⚠️ No certified or standards-qualified path for safety-critical systems.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language ✅ −15
T2 weak static language — 0
T3 dynamic/duck dispatch language ✅ −8
T4 no sum types language ✅ −4
T5 no generics language ✅ −4
T6 no namespaces language — 0
T7 type erasure/reflection language — 0
T8 operator overloading language ✅ −4
T9 inheritance required for polymorphism language — 0
T10 no null-safety language — 0
T11 no module boundary language — 0
T12 no effect tracking language ✅ −8
T13 async/sync colouring language — 0
T14 unchecked foreign boundary language ✅ −4
T15 chars are encoding units language — 0
Type cost −13.4 (−47)
Construction C1 global mutable state by default language — 0
C2 no immutability by default language — 0
C3 constructors coupled to allocation language — 0
C4 no constructor/validation language — 0
C5 unpinned collection order language — 0
C6 aliasing by default language ✅ −8
C7 undeclared control transfer language — 0
C8 no source-visible init order language — 0
Construction cost −2.3 (−8)
Memory M1 manual deallocation runtime — 0
M2 GC non-deterministic pauses runtime ✅ −8
M3 no RAII language ✅ −4
M4 no ownership model language ✅ −8
M5 uninitialized reads language — 0
M6 unchecked reinterpretation language — 0
Er6 uncatchable runtime fault language ✅ −8
M7 reference cycles leak runtime — 0
Memory cost −8.0 (−28)
Error Er1 no structured path language — 0
Er2 unchecked exceptions only language ✅ −8
Er3 errors ignored/non-exhaustive language — 0
Er4 no composable result type language — 0
Er5 no isolation unit for a fault runtime ✅ −8
Error cost −4.6 (−16)
Concurrency K1 GIL/no parallel runtime — 0
K2 shared mutable state default language — 0
K3 manual sync no race detection runtime — 0
K4 no structured concurrency language ✅ −4
K5 no primitives language — 0
K6 thread-per-task cost runtime — 0
Concurrency cost −1.1 (−4)
Platform P1 cannot function outside one vendor/domain context — 0
P2 single-vendor but other uses context — 0
P3 legacy/discontinued platform context — 0
P4 poor domain fit context — 0
Platform cost 0

Core coupling score: 70.6/100 — 103 of the 350 inventory points are present, so the axis cost is 100 × 103 ÷ 350 = 29.4 and the score is 100 − 29.4. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime — 0
R2 GC pauses runtime — 0
R3 JIT warmup runtime — 0
Performance cost 0
Ecosystem Ec1 no package manager context — 0
Ec2 fragmented tooling context — 0
Ec3 small/niche/discontinued context ✅ −8
Ec4 proprietary context — 0
Ec5 platform-locked tooling context — 0
Ec6 monoculture context — 0
Ec7 legacy burden context — 0
Ec8 unpromised binary boundary context — 0
Ec9 unpromised data boundary context — 0
Ecosystem cost −3.1 (−8)
Evolution V1 breaking changes language — 0
V2 frozen context — 0
V3 discontinued context — 0
V4 glacial standards context — 0
V5 silent default drift runtime — 0
V7 build-variant state space context — 0
Evolution cost 0
Domain D1 domain/vendor lock-in context — 0
D3 framework forces architecture context — 0
Domain cost 0
Learning L1 steep context ✅ −8
L2 large surface/multi-paradigm context — 0
L3 sparse docs context — 0
Learning cost −3.1 (−8)
Syntax S1 verbose language — 0
S2 inconsistent language — 0
S3 punctuation-heavy language — 0
Syntax cost 0
Testing G1 weak tooling context — 0
G2 poor debugging context — 0
G3 runtime-only errors context — 0
G4 no published monotonic clock runtime ✅ −4
Testing cost −1.6 (−4)
Security Q1 memory-unsafe language — 0
Q2 dynamic/weak typing risk language — 0
Q3 known vulnerability/injection context — 0
Q4 silent integer overflow language — 0
Security cost 0

Ecosystem coupling score: 92.2/100 — 20 of the 256 inventory points are present, so the axis cost is 100 × 20 ÷ 256 = 7.8 and the score is 100 − 7.8. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context ✅ −15
Y2 dependencies not pinned context ✅ −8
Y14 no toolchain version pin context ✅ −8
Y18 no machine-read project contract context ✅ −8
Reproducibility cost −22.8 (−39)
Supply chain Y3 no signed provenance context ✅ −15
Y4 registry without namespacing context ✅ −4
Y16 no advisory feed context ✅ −8
Supply chain cost −15.8 (−27)
Observability Y5 no stable tracing standard context ✅ −8
Y6 no structured logging context ✅ −4
Y15 no post-mortem diagnostics runtime ✅ −8
Observability cost −11.7 (−20)
Feedback Y7 slow build context — 0
Y8 no fast in-editor analysis context — 0
Y13 no bundled debugger context ✅ −8
Feedback cost −4.7 (−8)
Interop Y9 no foreign-function interface language — 0
Y10 no portable target context ✅ −4
Interop cost −2.3 (−4)
Governance Y11 single-vendor governance context — 0
Y12 closed specification context — 0
Y17 no conformance mechanism context — 0
Y19 no published parser context — 0
Governance cost 0

Engineering readiness score: 42.7/100 — 98 of the 171 inventory points are present, so the axis cost is 100 × 98 ÷ 171 = 57.3 and the score is 100 − 57.3. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: Scheme’s minimalist, orthogonal core keeps language-imposed coupling low, and its platform cost is moderate. Proper tail recursion removes stack growth from a recursive loop, hygienic macros prevent name capture, first-class continuations separate control flow from the call stack, and define-library confines a set of bindings behind explicit exports. The core score is held down by dynamic typing, absent sum types and generics, garbage-collected memory with no ownership model or RAII, and unchecked exceptions. Main weakness: the ecosystem is small and the standard is fragmented across R5RS, R6RS, and R7RS.


The formal development. The definitions, theorems, and proofs behind this page are published in:

All published papers

References

[1]
Y. Loth, “On the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, “Coupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, “On the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]
A. Shinn, J. Cowan, and M. Sperber, “Revised7^7 report on the algorithmic language Scheme.” Scheme Reports, revised 7, 2013.
[5]
R. Pereira et al., “Energy efficiency across programming languages: How do energy, time, and memory relate?” in Proceedings of the 10th ACM SIGPLAN international conference on software language engineering (SLE), 2017, pp. 256–267. doi: 10.1145/3136014.3136031.
[6]
R. Pereira et al., “Ranking programming languages by energy efficiency,” Science of Computer Programming, 2021, doi: 10.1016/j.scico.2021.102609.
[7]
N. van Kempen, H.-J. Kwon, D. T. Nguyen, and E. D. Berger, “It’s not easy being green: On the energy efficiency of programming languages,” in Proceedings of the 40th IEEE/ACM international conference on automated software engineering (ASE), 2025. doi: 10.1109/ASE63991.2025.00131.
[8]
S. Joel, J. J. Wu, and F. H. Fard, “A survey on LLM-based code generation for low-resource and domain-specific programming languages,” ACM Transactions on Software Engineering and Methodology, 2025, doi: 10.1145/3770084.