Scratch (3.0)
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 Scratch (3.0) — released 2 January 2019 · lifecycle current
Family Scratch — 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 Scratch (May 2007 — public launch) · 3.0 (2 January 2019 — current online version)
Tags
Use — Education
Paradigm — Object-oriented, Imperative, Concurrent
Platform — Browser
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 Scratch (3.0); an unmarked link is the current reference for the language.
Landing page
Specification and reference
- Scratch VM source (Scratch Team) this release
API documentation
Tutorial
1 Assessment
This page assesses Scratch 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.0/100 · Ecosystem coupling 80.5/100 · Engineering readiness 47.4/100
1.1 Core coupling
1.1.1 Type
- ❌ There is no static type check: A block accepts a value of any kind, and a mismatch appears only when the script runs (T1)
- ❌ No sum types: An alternative is not a declared type; the script tests a value with an
ifor a sensing condition (T4) - ❌ No generics: A list block is not parameterised by an element type (T5)
- ❌ One flat namespace for message names: Every message name is project-wide, so a name collision is a naming decision rather than a scope decision (T6)
- ❌ No null safety: A variable that was never set reads as an empty value, and a block that needs a value can run with none (T10)
- ❌ No module boundary: The project is one program, and a sprite exposes its blocks without a declared interface (T11)
1.1.2 Construction
- ❌ Global mutable state is the default: A variable created “for all sprites” is writable by every script in the project (C1)
- ❌ No immutability: A value in a variable can be changed by any script that names it (C2)
- ✅ A sprite is a self-contained unit: Costume, sound, and scripts live together, so one actor’s behaviour is defined in one place
- ✅ The event model separates the trigger from the action: The green flag, a key press, a sprite click, or a received message starts a script, and the script does not know who started it
- ✅ Cloning separates an instance from its definition:
create clone of myselfcopies a sprite’s scripts at run time, so a repeated actor is written once - ⚠️ A custom block is the only abstraction:
definegives a named sequence with inputs, and “run without screen refresh” is the one control over its granularity
1.1.3 Memory
- ✅ The runtime owns every object: No allocation and no deallocation block exists, and a sprite, a costume, or a clone is reclaimed automatically, so a script never names memory
- ✅ A clone can be deleted explicitly:
delete this clonebounds the number of live actors - ⚠️ The clone count is the practical limit: Scratch caps the number of clones, so a
foreverloop that clones without adeletereaches the cap rather than exhausting memory - ⚠️ The media assets are the project’s footprint: Costumes, backdrops, and sounds dominate the size and the load time of a project
1.1.4 Error
- ❌ There is no structured error path: No exception and no error value exists, and a failed block simply does not produce the expected effect (Er1)
- ❌ Nothing marks a failed operation: A block that cannot do what it says leaves the value unchanged or produces a placeholder, and the script continues (Er3)
- ❌ No composable result type: A block returns one value, and no value can carry the fact that an operation failed (Er4)
- ✅ The stage gives immediate feedback: An out-of-stage sprite is visibly off-stage, and a sensing block can test for a touch
- ⚠️ Debugging is by observation: There is no breakpoint, so the ordinary method is a variable monitor or a
sayblock
1.1.5 Concurrency
- ✅ Scripts are concurrent by default: Every hat block in the project runs in parallel, and no script starts or joins another by hand
- ⚠️ A broadcast is global: Any sprite can listen for any message, so a broadcast couples the sender to every listener in the project
- ✅ The scheduler is cooperative and single-threaded: The scripts advance one after another within a frame, so an interleaved update does not arise in the middle of a block
- ✅ A clone runs its own copy of the script:
when I start as a clonegives each instance an independent thread of control - ⚠️ A shared variable is updated by many scripts without a lock: Correctness depends on where each script yields, which the programmer must reason about
- ⚠️ One frame is the unit of timing: The green-flag scripts share the frame budget, so the loop rate is the scheduling contract
1.1.6 Platform
- ✅ The runtime is the same on every target: A project runs in the browser player and in the offline editor with the same blocks
- ✅ The sandbox bounds what a project can do: A project reaches no file system and no network, so its effect is confined to the runtime
- ✅ MIT Media Lab maintains the runtime and the community site: The editor, the player, and the sharing site come from one organisation
- ✅ The project file is an open document: A
.sb3project is a zip archive of JSON and assets, so a project can be read and converted - ⚠️ Cloud variables are a hosted service: They work only on the Scratch site, so a project that uses them depends on that host
- ⚠️ An extension changes the runtime’s surface: The Music, Pen, and video-sensing extensions, and the hardware extensions, add blocks the player must supply
- ❌ It is not usable for a production application: There is no file access, no network, no performance target, and no general library (P4)
1.1.7 Trade-offs (not coupling)
- Visual blocks trade expressiveness for legibility: The block shape carries the nesting rule, so a syntax error is not expressible — which is the design goal
- The block vocabulary is deliberately small: A small instruction set is the pedagogy, not an oversight
- The actor-based organisation mirrors the stage: A project is organised by sprite because the program is a scene
- The educational scope is a scope decision: The absence of files, network, and performance is the boundary of the design
- Sharing and remixing are community choices: The remix model is a policy of the site, not a property of the language
- Turbo Mode is an optional accelerator: It removes the frame wait, and the choice is the user’s
1.2 Ecosystem coupling
1.2.1 Performance
- ✅ The runtime executes the blocks directly: The player holds the block scripts and runs them, so there is no build step between the editor and the running project
- ✅ “Run without screen refresh” removes the frame yield: A custom block with that option runs to completion inside one frame, so a heavy computation can finish without waiting
- ✅ Turbo Mode removes the frame wait entirely: The option runs the project as fast as the runtime allows
- ⚠️ Animation is capped near the redraw rate: A loop yields each frame, so smooth motion is limited to the display rate
- ⚠️ A large script count degrades the frame: Every script shares one frame budget, so the project slows as the script count and the clone count grow
1.2.2 Ecosystem
- ❌ The ecosystem is the runtime and one community site: The blocks, the media library, and the sharing site are the whole environment, and there is no general package manager (Ec3)
- ✅ The adoption in education is very large: The project is used in K-12 classrooms worldwide
- ✅ A large public project corpus exists: Shared and remixed projects are a huge body of worked examples
- ✅ The media and sprite libraries are built in: Backdrops, costumes, and sounds ship with the editor
- ⚠️ Third-party players and add-ons are the extension point: TurboWarp, Scratch Addons, and the extension gallery live outside the official editor
- ✅ Stored projects cross on a documented path: Scratch 3 opens .sb and .sb2 projects and saves them in the current format [5] (Ec9)
1.2.3 Evolution
- ✅ The project format carries a version and a converter: An older project is converted when it is opened in the current editor
- ✅ MIT maintains the editor as a product: The runtime, the editor, and the site receive continuing updates
- ✅ The offline editor mirrors the online one: A project runs without a connection to the site
- ⚠️ A block set can change between editor releases: A removed or renamed block can leave an older project needing an edit
1.2.4 Domain
- ❌ The domain is one thing: teaching programming to beginners: The design goal is computational thinking, and everything outside it is out of scope (D1)
- ✅ The classroom fit is exemplary: Drag-and-drop, immediate feedback, and shareable projects match the teaching case
- ✅ It is the first language in many curricula: The adoption in schools is the evidence for the fit
- ⚠️ The move to a text language is the known gap: A learner must leave Scratch to continue, and the transfer is not automatic
1.2.5 Learning
- ✅ The curve is effectively zero: The interface is drag-and-drop, and there is no syntax to learn
- ✅ The block shape prevents the syntax error: A block that does not fit cannot be placed
- ✅ The stage returns immediate feedback: One click runs the project and shows the result
- ⚠️ The ceiling is low for a capable learner: After the core blocks there is little further depth
- ⚠️ “Run without screen refresh” is the one advanced idea: A heavy custom block must use it to finish inside a frame
1.2.6 Syntax
- ✅ The syntax is the block shape: An invalid nesting is impossible, because the editor accepts only a shape that fits
- ✅ The expression blocks nest visually: An operator block occupies an input slot, so the precedence is explicit without parentheses
- ✅ The blocks are named in the reader’s language: The editor localises the labels and the variable names
- ⚠️ A small computation becomes a tall column of blocks: The notation is compact per block and long per expression
- ⚠️ There is no text form in the editor: A script cannot be typed, searched, or diffed as text
1.2.7 Testing
- ❌ There is no test framework: No assertion and no runner exists, so a test is a manual run (G1)
- ❌ An error appears only when a script runs: A wrong block is found by executing the project (G3)
- ✅ The stage is a built-in observation harness: Motion, sound, and
sayshow the program state directly - ✅ A variable monitor exposes a value on the stage: Any variable can be shown and watched as it changes
- ⚠️ Verification is by inspection: The programmer checks the result by watching the project, not by a repeatable check
1.2.8 Security
- ✅ A project runs in a sandbox: No block opens a file or a socket, so a project reaches no file system and no network and its effect is confined to the runtime
- ✅ The runtime is the same for every project: A shared project cannot ship a native binary
- ⚠️ A cloud variable is shared global state: Every player of the project can write it, so a project that trusts it can be misled
- ⚠️ The community features are moderated, not secured: The safety of the sharing site is a policy of the site, not a property of the language
- ⚠️ A third-party player can add an unsafe surface: An alternative player or an add-on can extend the runtime beyond the sandbox
- ❌ Numbers are JavaScript doubles: integers above 2^53 change value in silence (Q4)
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 |
|---|---|---|---|
| script | script | no | The installed interpreter reads the source at run time; no compiled unit crosses a boundary |
1.2.10 Stored data formats
What the toolchain stores that outlives the program, and what the vendor publishes about reading it across a release boundary. Ec9 is present when one row carries a break: the reading promise published as broken, the writing direction published as unreadable elsewhere, or a break the probe harness has reproduced.
| Stored format | Reading promise | Writing promise |
|---|---|---|
| Project file — .sb, .sb2, .sb3 | yes — The Scratch project format is documented as readable by the Scratch editor, and the documented port path is the current release reading older files: a .sb or .sb2 project converts by opening it in Scratch 3 and saving it [5] | — |
1.3 Engineering readiness
1.3.1 Reproducibility
- ⚠️ Nothing is built; the project file and the editor state are the whole artifact.
1.3.2 Supply chain
- ❌ Shared projects and extensions carry no signed provenance. (Y3)
- ❌ No advisory feed covers community extensions. (Y16)
- ⚠️ Extensions are added by URL or palette pick, with no registry contract.
1.3.3 Observability
- ❌ No tracing standard exists in the language. (Y5)
- ❌ say and the variable pane carry no structure. (Y6)
- ❌ A script failure stops the sprite silently unless the project handles it. (Y15)
1.3.4 Feedback
- ❌ No in-editor analysis exists beyond the block palette. (Y8)
- ❌ No debugger ships with the editor. (Y13)
1.3.5 Interop
- ❌ Extensions run outside the language; no in-process interface exists. (Y9)
- ❌ The project runs in the Scratch editor or a compatible player. (Y10)
1.3.6 Governance
- ❌ Semantics rest on the shipped VM: the documentation describes the virtual machine’s behavior, and no conformance suite exists (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?
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 | — | 0 | |
T4 |
no sum types | language | ✅ | −4 | |
T5 |
no generics | language | ✅ | −4 | |
T6 |
no namespaces | language | ✅ | −8 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | — | 0 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | ✅ | −8 | |
T11 |
no module boundary | language | ✅ | −8 | |
T12 |
no effect tracking | language | ✅ | −8 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | — | 0 | |
T15 |
chars are encoding units | language | — | 0 | |
| Type cost | −15.7 (−55) | ||||
| Construction | C1 |
global mutable state by default | language | ✅ | −15 |
C2 |
no immutability by default | language | ✅ | −4 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | — | 0 | |
C5 |
unpinned collection order | language | — | 0 | |
C6 |
aliasing by default | language | — | 0 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | −5.4 (−19) | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | — | 0 | |
M3 |
no RAII | language | — | 0 | |
M4 |
no ownership model | language | — | 0 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | — | 0 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | 0 | ||||
| Error | Er1 |
no structured path | language | ✅ | −15 |
Er2 |
unchecked exceptions only | language | — | 0 | |
Er3 |
errors ignored/non-exhaustive | language | ✅ | −4 | |
Er4 |
no composable result type | language | ✅ | −4 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | −6.6 (−23) | ||||
| 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 | — | 0 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | 0 | ||||
| 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 | ✅ | −8 | |
| Platform cost | −2.3 (−8) |
Core coupling score: 70.0/100 — 105 of the 350 inventory points are present, so the axis cost is 100 × 105 ÷ 350 = 30.0 and the score is 100 − 30.0. 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 | ✅ | −15 |
D3 |
framework forces architecture | context | — | 0 | |
| Domain cost | −5.9 (−15) | ||||
| Learning | L1 |
steep | context | — | 0 |
L2 |
large surface/multi-paradigm | context | — | 0 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | 0 | ||||
| Syntax | S1 |
verbose | language | — | 0 |
S2 |
inconsistent | language | — | 0 | |
S3 |
punctuation-heavy | language | — | 0 | |
| Syntax cost | 0 | ||||
| Testing | G1 |
weak tooling | context | ✅ | −8 |
G2 |
poor debugging | context | — | 0 | |
G3 |
runtime-only errors | context | ✅ | −4 | |
G4 |
no published monotonic clock | runtime | — | 0 | |
| Testing cost | −4.7 (−12) | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | — | 0 | |
Q3 |
known vulnerability/injection | context | — | 0 | |
Q4 |
silent integer overflow | language | ✅ | −15 | |
| Security cost | −5.9 (−15) |
Ecosystem coupling score: 80.5/100 — 50 of the 256 inventory points are present, so the axis cost is 100 × 50 ÷ 256 = 19.5 and the score is 100 − 19.5. 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 | — | 0 |
Y2 |
dependencies not pinned | context | — | 0 | |
Y14 |
no toolchain version pin | context | — | 0 | |
Y18 |
no machine-read project contract | context | — | 0 | |
| Reproducibility cost | 0 | ||||
| Supply chain | Y3 |
no signed provenance | context | ✅ | −15 |
Y4 |
registry without namespacing | context | — | 0 | |
Y16 |
no advisory feed | context | ✅ | −8 | |
| Supply chain cost | −13.5 (−23) | ||||
| 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 | ✅ | −4 | |
Y13 |
no bundled debugger | context | ✅ | −8 | |
| Feedback cost | −7.0 (−12) | ||||
| Interop | Y9 |
no foreign-function interface | language | ✅ | −8 |
Y10 |
no portable target | context | ✅ | −4 | |
| Interop cost | −7.0 (−12) | ||||
| Governance | Y11 |
single-vendor governance | context | — | 0 |
Y12 |
closed specification | context | ✅ | −15 | |
Y17 |
no conformance mechanism | context | ✅ | −8 | |
Y19 |
no published parser | context | — | 0 | |
| Governance cost | −13.5 (−23) |
Engineering readiness score: 47.4/100 — 90 of the 171 inventory points are present, so the axis cost is 100 × 90 ÷ 171 = 52.6 and the score is 100 − 52.6. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: Scratch’s design yields moderate core coupling, and the marks fall where the pedagogy put them. Global variables are the project namespace, a broadcast reaches every sprite, and there is no type check, no structured error path, and no module boundary; the constrained environment keeps the consequence small. The visual block model removes the syntax error entirely, the event model separates a trigger from the action it starts, and a sprite is a self-contained unit. Main strengths: a zero learning curve, an exemplary classroom fit, very large K-12 adoption, and a sandbox that bounds what a project can do. Main weaknesses: it is not usable for a production application, the domain is a single one, the block vocabulary is shallow, and testing is by inspection.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193