Référence › Le langage par propriétaire

Référence

Cette page n’est pas encore traduite : voici la version anglaise.

The language by owner

Every keyword, property, archec command and VS Code command of arche-lang has an owner: the 1.0 core (Le cœur du langage) or one extension. This page counts them by owner, says how mature each extension is, and what it adds to the bundles. Which extensions are in 1.0 is decided from it.

Where the owners are written:

  • a declaration: its owner in src/spec.ts, src/records.ts and src/uispec.ts (none: the core), checked against src/core.ts;
  • a property: src/core.ts, as archec check --core reports it;
  • an archec command: its owner in model/spec/commands;
  • a VS Code command: the owner of its editorCommand in model/spec/editor.arche (tools/vscode-owners.json is generated from it);
  • a source file, for the sizes: SOURCE_OWNERS in tools/surface.js.

test/surface.test.js holds each owner to its own limits. Raising one is a decision: it takes a { limit, reason, date } in the test file.

Maturity#

Each extension's maturity follows from facts in the repository, by this rule:

  • experimental: no example uses it, or it has no guide page, or no test.
  • beta: an example uses it (archec check --core on each examples/*/main.arche, apart from examples/patterns, which shows every construct on purpose), and it has a guide page in docs/ and tests.
  • stable: beta, and used in a main example (examples/kettle, examples/autonomous-car, examples/car-bench, examples/cart-pole-mpc, examples/physics, examples/arche-lang), every guide page also in French, and no heading of its guide pages that says it does not do something yet.

A guide page is a page written for the extension (tools/surface.js EXTENSION_FACTS). The reference (spec.md, reference/) covers every word and does not count. The core has no maturity: it is the part with the stability promise of edition 1.0.

By owner#

Owner Maturity Keywords Properties archec commands VS Code commands Web, at start
core 1.0 core 57 61 30 51 7.1 MB
app stable 14 73 5 13 764 KB
cad stable 0 9 1 1 132 KB
codegen stable 1 19 7 1 442 KB
database stable 2 7 1 3 322 KB
deployment stable 9 30 1 0 29 KB
design stable 10 36 1 0 17 KB
exchange stable 0 9 8 6 192 KB
generators stable 5 11 2 0 74 KB
hardware stable 3 21 5 11 2.4 MB
kinds stable 2 3 1 0 304 KB
physics stable 0 11 3 1 307 KB
population stable 1 4 1 0 29 KB
profile stable 3 6 1 0 40 KB
queueing stable 6 5 1 0 33 KB
requirements stable 2 21 5 0 67 KB
safety stable 12 49 3 0 68 KB
scenarios stable 14 10 3 2 50 KB
ui stable 46 154 1 3 4.0 MB
ai beta 0 4 9 1 25 KB
catalogs beta 19 14 0 1
communication beta 1 27 0 0
components beta 3 12 0 0
fpga beta 0 1 1 2
functional beta 14 17 0 0
gpu beta 0 5 0 1 168 KB
machines beta 0 6 0 0
program beta 3 0 0 0 35 KB
store beta 0 5 7 11 1.3 MB
testing beta 2 6 0 0
total 229 636 97 108 17.9 MB

How it counts:

  • A keyword is counted once, for the declaration that has it, old spellings included (req is a requirement). A struct's union and a component's population are their extension's.
  • A property name is counted once: for the core when a core declaration has it in the core, else for the extension src/core.ts names for it, else for the owner it has on most declarations.
  • The words of a ui { } and their properties are the ui extension's, even where another declaration has the same name.
  • Web, at start: what the owner adds to what VS Code for the Web loads when the extension starts (dist/web/extension.js, server.js and files.json), from tools/sizes.json. The Arche app's code (dist/web/arche.js) is read later, when a model needs it. See Size.

Each extension#

app#

stable. The Arche app: pages, panels, stories, animations, the canvas and how elements are drawn. Bold examples are main ones.

Keywords (14) animation, app, benchmark, canvas, column, entry, menu, page, panel, run, story, tab, visual, widget
Properties (73) action, animate, assets, at, banners, base-url, benchmarks, bind, block, color, cols, columns, comment, compare, complete, component, data, data-file, deliverables, diagram, diagram-notes, duration, dwell, excluded, file, fps, height, http, icon, image, labels, layout, listed, literal-form, logo, machine, max, message, min, nav, nominal, note, note-at, omit, panel, params, path, port, pptx-template, prop, reference, requirements, result, row-height, rows, scope, screen, section, show-values, side, size, states, subject, target, template, text-color, trace, type, value, values, view, visual, visuals
archec commands pull, animation, app, story, site
VS Code commands arche.exportSite, arche.openInArche, arche.docs.open, arche.docs.refresh, arche.docs.exportWord, arche.docs.reveal, arche.docs.openInArche, arche.pull, arche.runSimulation, arche.animation.preview, arche.animation.insert, arche.openApp, arche.stopApp
Examples that use it arche-lang, autonomous-car, car-bench, cubesat, generators, mcu-firmware, operator-console, robot-cap, robot-cube, robot-draw, srs-showcase, wheat-drones
Guide pages Utiliser l’application Arche (French too), Créer des animations (French too)
Tests test/app-server.test.js, test/animation.test.js
Size web/extension.js 474 KB, web/server.js 276 KB, web/files.json 14 KB, desktop/extension.js 345 KB, desktop/server.js 41 KB, desktop/archec.js 348 KB, desktop/fullworker.js 38 KB

cad#

stable. CAD as code: a part's geometry in a Python file, its material, measured limits, placement and clearances; a board's outline and mounting holes, and whether they meet the box. Bold examples are main ones.

Keywords (0) none
Properties (9) cad, clearance, density, fits, hole, material, outline, pcb, sourced
archec commands cad
VS Code commands arche.cad.show
Examples that use it 5g-cell-search, car-bench, cart-pole-mpc, fpga-pwm
Guide pages Écrire la CAO en code (French too)
Tests test/cad.test.js, test/cad-board.test.js, test/cad-physics.test.js
Size web/extension.js 71 KB, web/server.js 61 KB, desktop/extension.js 93 KB, desktop/server.js 80 KB, desktop/archec.js 118 KB, desktop/fullworker.js 80 KB

codegen#

stable. Code and languages: native types, wire formats, Python and TypeScript bodies, code files, pip. Bold examples are main ones.

Keywords (1) union
Properties (19) bits, byte-order, c, checksum, code, counter, cpp, go, handlers, implementation, language, native, options, pip, pointer-size, rust, scale, signed, simulation-only
archec commands convert-handlers, stubs, difftest, recover, conform, arch-diff, impact
VS Code commands arche.openTsBlock
Examples that use it autonomous-car, brake-by-wire, car-bench, cart-pole-mpc, generators, ml, shop, signal-chain, ts-handlers, wheat-drones
Guide pages Cibles de génération de code (French too), Handlers (French too), Écrire les handlers en TypeScript ou Python (French too), Générer du C++ (French too)
Tests test/cgen.test.js, test/cppgen.test.js, test/handlers.test.js, test/python.test.js, test/pysim.test.js, test/tssim.test.js
Size web/extension.js 221 KB, web/server.js 180 KB, web/files.json 41 KB, desktop/extension.js 325 KB, desktop/server.js 270 KB, desktop/archec.js 522 KB, desktop/fullworker.js 269 KB

database#

stable. Database layout: a database's tables, keys, relations and constraints — checked, written as a schema and migrations by a provider plugin (sqlite, postgres, clickhouse, duckdb, mongodb), with typed access code, and kept in memory by the simulator. Bold examples are main ones.

Keywords (2) database, table
Properties (7) index, key, on-delete, provider, renamed-from, unique, via
archec commands database
VS Code commands arche.database.show, arche.database.generate, arche.database.migrate
Examples that use it car-bench, shop, wheat-drones
Guide pages Modéliser des bases de données (French too)
Tests test/database.test.js, test/database-providers.test.js, test/database-editor.test.js
Size web/extension.js 53 KB, web/server.js 52 KB, web/files.json 217 KB, desktop/extension.js 82 KB, desktop/server.js 79 KB, desktop/archec.js 113 KB, desktop/fullworker.js 70 KB

deployment#

stable. Deployment in depth: processes, containers, interrupts, routes, allocators, watchdogs, packaging. Bold examples are main ones.

Keywords (9) allocator, container, core, interrupt, isr, partition, place, route, watchdog
Properties (30) affinity, alignment, allocator, block-size, blocks, build, bus, capabilities, clock, core, deadline, destroy, device, execution, id, irq, mapped, max-size, memory, memory-limit, min-interval, nature, network, on-timeout, over, packaging, parent, policy, runtime, stack
archec commands infra
VS Code commands none
Examples that use it 5g-cell-search, autonomous-car, brake-by-wire, can-bench, car-bench, functional-chain, generators, live, mcu-firmware, networks, services, signal-chain, timing, wheat-drones
Guide pages Déployer sur le matériel (French too)
Tests test/deploy.test.js, test/execution.test.js, test/timing.test.js
Size web/extension.js 19 KB, web/server.js 10 KB, desktop/extension.js 27 KB, desktop/server.js 15 KB, desktop/archec.js 27 KB, desktop/fullworker.js 15 KB

design#

stable. Design space: decisions, variants, parameters, studies, distributions, viewpoints, rules, budgets. Bold examples are main ones.

Keywords (10) adr, decision, param, parameter, rule, study, trade-study, variant, view, viewpoint
Properties (36) across, affects, answers, applies, because, chart-x, chart-y, choices, chosen, concern, cons, consequences, context, cost, date, disabled, distribution, exclude, expr, holds, include, layers, log-y, monte-carlo, option, output, pros, run, seed, stakeholder, supersedes, sweep, tolerance, variants, when, worst-case
archec commands study
VS Code commands none
Examples that use it arche-lang, car-bench, compliance, cost, cubesat, des-clinic, des-packing, divider, fleet, infra, manufacturing, organisation, product-line, wheat-drones
Guide pages Notes de conception (French too), Modéliser l’incertitude (French too)
Tests test/distributions.test.js, test/tune.test.js
Size web/extension.js 8 KB, web/server.js 8 KB, web/arche.js 1.8 MB, desktop/extension.js 14 KB, desktop/server.js 14 KB, desktop/archec.js 60 KB, desktop/fullworker.js 14 KB

exchange#

stable. Exchange: Capella, SysML, ReqIF and Polarion sources, issue trackers. Bold examples are main ones.

Keywords (0) none
Properties (9) aggregation, derived-from, document, issue, multiplicity, origin, ref, source, source-root
archec commands issues, polarion, reqif, sysml, export, api, capella, import
VS Code commands arche.importPolarion, arche.polarion.resync, arche.polarion.sync, arche.polarion.insertFigure, arche.polarion.previewRequirement, arche.polarionForgetToken
Examples that use it arche-lang, srs-showcase
Guide pages Importer des modèles (French too)
Tests test/capella.test.js, test/polarion.test.js, test/polarionsync.test.js, test/sysmlimport.test.js, test/import.test.js
Size web/extension.js 176 KB, web/server.js 16 KB, desktop/extension.js 265 KB, desktop/server.js 26 KB, desktop/archec.js 765 KB, desktop/fullworker.js 13 KB

generators#

stable. Generators and plugins: generators, importers, exporters, plugins. Bold examples are main ones.

Keywords (5) exporter, generator, importer, option, plugin
Properties (11) api, builtins, command, extension, extensions, needs, reads, rebuild, script, templates, types
archec commands generator, plugin
VS Code commands none
Examples that use it arche-lang, generators
Guide pages Écrire un générateur (French too), Écrire un plugin (French too)
Tests test/generators.test.js, test/plugins.test.js, test/exporters.test.js
Size web/extension.js 62 KB, web/server.js 11 KB, desktop/extension.js 97 KB, desktop/server.js 18 KB, desktop/archec.js 146 KB, desktop/fullworker.js 15 KB

hardware#

stable. Hardware in detail: a board's resources, products and drivers, registers, power pins. Bold examples are main ones.

Keywords (3) memory, register, regs
Properties (21) core-type, current, driver, flash, freq, hardware, io-level, ipc-latency, isa, on-write, os, part-number, peripherals, pin-current, pinout, ram, rust-driver, rust-license, tested-with, vendor, voltage
archec commands parts, kicad, board, device, pins
VS Code commands arche.boards.add, arche.boards.show, arche.boards.open, arche.boards.duplicate, arche.boards.new, arche.boards.check, arche.boards.reveal, arche.boards.addCollection, arche.boards.extract, arche.devices.add, arche.status.build
Examples that use it arche-lang, autonomous-car, brake-by-wire, car-bench, fpga-pwm, functional-chain, generators, harness, live, manufacturing, mcu-firmware, networks, product-line, services, signal-chain, timing, ts-handlers, wheat-drones
Guide pages Utiliser des cartes (French too), Piloter des composants depuis un microcontrôleur (French too), Générer des cartes de registres (French too)
Tests test/boards.test.js, test/boardresources.test.js, test/drivers.test.js, test/regmap.test.js, test/parts.test.js
Size web/extension.js 193 KB, web/server.js 90 KB, web/files.json 2.1 MB, desktop/extension.js 273 KB, desktop/server.js 132 KB, desktop/archec.js 290 KB, desktop/fullworker.js 89 KB

kinds#

stable. Kinds of your own: what a kind's elements hold (properties, children, checks, how they are drawn), the elements written with the kind's name, and relations between kinds. Bold examples are main ones.

Keywords (2) prop, relation
Properties (3) behaves, children, draw
archec commands query
VS Code commands none
Examples that use it car-bench, compliance, cost, harness, infra, kinds, manufacturing, ml, networks, organisation, process-plant, services, sites, wheat-drones
Guide pages Définir vos propres genres (French too), Utiliser des packs de domaine (French too)
Tests test/packs.test.js, test/elementkinds.test.js
Size web/extension.js 37 KB, web/server.js 37 KB, web/files.json 230 KB, desktop/extension.js 58 KB, desktop/server.js 57 KB, desktop/archec.js 66 KB, desktop/fullworker.js 57 KB

physics#

stable. Physics: equations, Modelica and FMUs, bodies and joints, actuator response. Bold examples are main ones.

Keywords (0) none
Properties (11) equation, fmu, force-range, gain, joint, lag, mass, power, shape, solver, solver-sample
archec commands physics, fit, fmi
VS Code commands arche.scene3d.show
Examples that use it arm, autonomous-car, car-bench, cart-pole-mpc, cubesat, generators, physics, robot-cap, robot-cube, robot-draw, wheat-drones
Guide pages Modéliser la physique (French too), Construire des robots (French too), Prototyper une tâche de robot (French too)
Tests test/physics.test.js, test/physicsanalysis.test.js, test/mujoco.test.js, test/fmu.test.js, test/modelica.test.js
Size web/extension.js 202 KB, web/server.js 105 KB, desktop/extension.js 274 KB, desktop/server.js 137 KB, desktop/archec.js 391 KB, desktop/fullworker.js 137 KB

population#

stable. Populations and fleets: a part whose number of instances a run decides, each with its own state, measured as aggregates (how many in each state, a variable's mean and percentiles) that a requirement bounds. Bold examples are main ones.

Keywords (1) population
Properties (4) count, retire, sample, spawn
archec commands population
VS Code commands none
Examples that use it autonomous-car, car-bench, fleet, generators, product-line, wheat-drones
Guide pages Simuler des populations et des flottes (French too)
Tests test/population.test.js
Size web/extension.js 15 KB, web/server.js 15 KB, desktop/extension.js 22 KB, desktop/server.js 22 KB, desktop/archec.js 40 KB, desktop/fullworker.js 22 KB

profile#

stable. Profiles over time: a timeline of phases, what each draws and gives, and the stocks that add it up (a battery, a tank, a data buffer, a cost). Bold examples are main ones.

Keywords (3) phase, profile, stock
Properties (6) capacity, mode, per, repeat, set, start
archec commands profile
VS Code commands none
Examples that use it autonomous-car, car-bench, cost, cubesat, des-clinic, generators, wheat-drones
Guide pages Cumuler des profils dans le temps (French too)
Tests test/profile.test.js
Size web/extension.js 20 KB, web/server.js 20 KB, desktop/extension.js 32 KB, desktop/server.js 32 KB, desktop/archec.js 48 KB, desktop/fullworker.js 32 KB

queueing#

stable. Queueing: things that arrive at random, wait in queues and are worked on by servers, run as a discrete-event simulation — waiting times, queue lengths, utilisation and throughput, and the limits on them. Bold examples are main ones.

Keywords (6) queue, queueing, resource, server, sink, source
Properties (5) batch, every, horizon, takes, warm-up
archec commands queueing
VS Code commands none
Examples that use it car-bench, des-clinic, des-packing, manufacturing, organisation, wheat-drones
Guide pages Modéliser des files d’attente (French too)
Tests test/queueing.test.js
Size web/extension.js 16 KB, web/server.js 16 KB, desktop/extension.js 26 KB, desktop/server.js 25 KB, desktop/archec.js 61 KB, desktop/fullworker.js 25 KB

requirements#

stable. Requirements in depth: EARS, metrics and limits, categories, IVV blocks, traces beyond satisfies and verifies. Bold examples are main ones.

Keywords (2) ivv, verify
Properties (21) allocated-to, category, check, complexity, deploys, ears, figure, limit, math, means, metric, owner, procedure, realizes, refines, satisfied-by, skip, tbc, tests, traces, verified-by
archec commands verify, baseline, approve, approvals, cert
VS Code commands none
Examples that use it arche-lang, autonomous-car, bench-console, brake-by-wire, car-bench, checks, compliance, gateway-tara, generators, live, mcu-firmware, ml, product-line, robot-cap, robot-cube, robot-draw, srs-showcase, steering-safety, wheat-drones
Guide pages Vérifier un modèle (French too)
Tests test/verify.test.js, test/ears.test.js, test/formal.test.js, test/reqstatus.test.js
Size web/extension.js 37 KB, web/server.js 31 KB, desktop/extension.js 58 KB, desktop/server.js 49 KB, desktop/archec.js 76 KB, desktop/fullworker.js 49 KB

safety#

stable. Safety and security: hazards, failure modes, fault trees, STPA, TARA, ASIL/DAL, the error model. Bold examples are main ones.

Keywords (12) asset, attack-path, control-action, damage-scenario, failure-mode, gate, hazard, loss-scenario, safety-goal, security-goal, threat, uca
Properties (49) all, any, asil, asset, cal, caused-by, causes, claim, constraint, contains, controllability, dal, damages, detection, effect, elapsed, equipment, error, expertise, exposure, feedback, financial, from, from-all, ftti, goal, inject, item, knowledge, mitigated-by, not-applicable, occurrence, of, operational, privacy, probability, produces, properties, property, safe-state, safety, severity, sil, situation, stride, threat, treatment, turns, window
archec commands safety, tara, qualify
VS Code commands none
Examples that use it autonomous-car, car-bench, compliance, gateway-tara, generators, srs-showcase, steering-safety
Guide pages Analyser la sûreté et la sécurité (French too)
Tests test/safety.test.js, test/security.test.js, test/faults.test.js
Size web/extension.js 37 KB, web/server.js 31 KB, desktop/extension.js 58 KB, desktop/server.js 49 KB, desktop/archec.js 126 KB, desktop/fullworker.js 49 KB

scenarios#

stable. Scenarios and simulation: sequences, simulations, stimuli, keyframes, fault injection. Bold examples are main ones.

Keywords (14) alt, break, critical, keyframe, loop, opt, par, participant, ref, scenario, sequence, simulation, stimulus, when
Properties (10) calls, check-sequence, deployment, fold, folded, keyframe, parallel, ports, role, scenario
archec commands replay, live, observe
VS Code commands arche.live.start, arche.live.stop
Examples that use it arche-lang, autonomous-car, car-bench, fleet, gateway-tara, generators, mcu-firmware, operator-console, organisation, product-line, wheat-drones
Guide pages Simuler dans le navigateur (French too)
Tests test/seqref.test.js, test/replay.test.js, test/live.test.js, test/monitors.test.js
Size web/extension.js 43 KB, web/server.js 7 KB, desktop/extension.js 67 KB, desktop/server.js 11 KB, desktop/archec.js 174 KB, desktop/fullworker.js 11 KB

ui#

stable. Product UI: screens, layouts and elements, and the data apps' datasets and metrics. Bold examples are main ones.

Keywords (46) ask, bar, busy, button, canvas, chart, column, custom, dataset, date, dialog, element, else, environment, filters, fits, for, gauge, grid, if, image, input, kpi, label, let, list, metric, overlay, preview, replay, row, scenarios, screen, select, slider, slot, spacer, stack, stepper, style, table, telltale, toggle, ui, upload, var
Properties (154) a11y, accept, across, action, align, alt, animate, area, aspect, backdrop, background, badge, bar, blocks, border, case, clip, color, colors, columns, compare, confirm, dashed, date, describe, description, dice, digits, dimension, display, displays, donut, dpi, empty, enabled, every, export, feedback, fill, fit, floorplan, focus, focusable, font, format, funnel, gap, group, grow, head, heading, heatmap, height, hint, histogram, icon, icons, id, inline, input, italic, item, justify, keyframe, leading, line, lines, links, load, loading, lvgl, map, margin, max, measure, navigation, on, opacity, options, padding, page, param, persist, pie, pivot, placeholder, point, position, preview, provide, qml, radius, range, raw, required, review, rows, rule, rules, satisfies, scale, scatter, scroll, search, section, select, selection, set, shadow, shadows, shrink, sides, size, slint, smoothing, sort, sparkline, split, src, stacked-bar, stale, step, stroke, style, target, text, theme, time, traces, tracking, transition, translate, type, underline, unit, valid, valign, value, verifies, visible, walk, web, weight, when, where, width, window, wrap, xmr
archec commands ui
VS Code commands arche.importFrontend, arche.generateFrontend, arche.ui.preview
Examples that use it autonomous-car, bench-console, car-bench, generators, operator-console, web-app, wheat-drones
Guide pages Modéliser les interfaces (French too), Construire des applications de données (French too), Lire un frontend dans un modèle (French too)
Tests test/ui.test.js, test/uiweb.test.js, test/uitest.test.js, test/dataapp-runtime.test.js, test/dataapp-charts.test.js
Size web/extension.js 1.1 MB, web/server.js 319 KB, web/files.json 2.6 MB, desktop/extension.js 1.6 MB, desktop/server.js 489 KB, desktop/archec.js 1.7 MB, desktop/fullworker.js 469 KB

ai#

beta. AI and egress: what may leave the machine. Bold examples are main ones.

Keywords (0) none
Properties (4) ai, allow, deny, private
archec commands config, review, live-fix, mcp, brief, agent-context, provenance, guard, debt
VS Code commands arche.live.explain
Examples that use it in-house
Guide pages Comprendre le code écrit par une IA
Tests test/egress.test.js, test/guard.test.js, test/provenance.test.js, test/mcp.test.js, test/in-house.test.js
Size web/extension.js 19 KB, web/server.js 6 KB, desktop/extension.js 30 KB, desktop/server.js 9 KB, desktop/archec.js 1.4 MB, desktop/fullworker.js 9 KB

catalogs#

beta. Catalogs and project tooling: kinds, layers, tags, colours, port types, packages, defaults, translations, trace lines. Bold examples are main ones.

Keywords (19) bus, color, colour, data, defaults, file, kind, layer, namespace, package, port-type, porttype, property, raw, tag, tag-group, trace, translations, wire
Properties (14) auto-catalogs, dark, default, flow, infer-links, kinds, languages, layer, light, memory-mapped, potential, signal, summary, tags
archec commands none
VS Code commands arche.translations.toggleDim
Examples that use it arche-lang, arm, autonomous-car, brake-by-wire, car-bench, checks, functional-chain, gateway-tara, generators, kinds, mcu-firmware, packages, physics, product-line, signal-chain, sites, srs-showcase, steering-safety, web-app, wheat-drones
Guide pages Keep catalogs of layers, tags and types
Tests test/translations.test.js, test/elementkinds.test.js, test/catalogs-guide.test.js
Size nothing of its own

communication#

beta. Communication patterns: delivery, pub-sub, services and HTTP routes, dataflow, link timing. Bold examples are main ones.

Keywords (1) icd
Properties (27) after, async, backpressure, backpressure-threshold, buffer, carries, deferred, handling, header, history, jitter, latency, max-processing, overflow, parameter, pattern, push-threshold, reliability, retries, service, stale-after, stereotype, threshold, topic, transfer, vector, working-memory
archec commands none
VS Code commands none
Examples that use it autonomous-car, brake-by-wire, car-bench, generators, services, signal-chain, wheat-drones
Guide pages Choose communication patterns
Tests test/wire.test.js, test/httpverbmsg.test.js, test/communication-guide.test.js
Size nothing of its own

components#

beta. Component frameworks: a part's life, IDL operations and attributes, assume/guarantee contracts, struct inheritance, derived values. Bold examples are main ones.

Keywords (3) attribute, exception, let
Properties (12) abstract, assume, guarantee, in-states, on-init, on-release, on-start, on-stop, oneway, raises, readonly, visibility
archec commands none
VS Code commands none
Examples that use it autonomous-car, brake-by-wire, car-bench, generators, mcu-firmware, wheat-drones
Guide pages Use component frameworks
Tests test/components-idl.test.js, test/idl.test.js, test/components-guide.test.js
Size nothing of its own

fpga#

beta. FPGA components: a component with a clock and a reset, ports typed with data as signals, the function its clock steps, bit widths — written as VHDL and tested with GHDL. Bold examples are main ones.

Keywords (0) none
Properties (1) reset
archec commands synth
VS Code commands arche.test.vhdl, arche.synth
Examples that use it 5g-cell-search, car-bench, fpga-pwm, fpga-uart
Guide pages Écrire des composants FPGA (French too)
Tests test/fpga.test.js, test/synth.test.js
Not done yet "fpga.md: Not done yet"
Size desktop/archec.js 37 KB

functional#

beta. Functional analysis: actors, missions, use cases, system functions, operating modes, deliverables. Bold examples are main ones.

Keywords (14) actor, deliverable, edge, function-chain, function-flow, goal, means, mission, operating-mode, process, system-function, use-case, usecase, workflow
Properties (17) allocated, components, covers, due, function, functions, generalizes, includes, involves, lanes, main, mission, name, notes, progress, purpose, to
archec commands none
VS Code commands none
Examples that use it arche-lang, autonomous-car, car-bench, compliance, cubesat, functional-chain, generators, srs-showcase
Guide pages Analyse functions
Tests test/capella.test.js, test/functional-guide.test.js
Size nothing of its own

gpu#

beta. GPU kernels: a function run once for each index of a range (kernel i in 0..<n), its work-group size — written as OpenCL, CUDA and Metal with their host code, read back from .cl and .cu, and checked against them. Bold examples are main ones.

Keywords (0) none
Properties (5) group, kernel, reduce, shared, stream
archec commands none
VS Code commands arche.test.gpu
Examples that use it 5g-cell-search, autonomous-car, car-bench, generators, gpu-fir, gpu-signal
Guide pages Écrire des noyaux GPU (French too)
Tests test/gpu.test.js, test/gpuimport.test.js
Not done yet "gpu.md: Not done yet"
Size web/extension.js 125 KB, web/server.js 43 KB, desktop/extension.js 166 KB, desktop/server.js 66 KB, desktop/archec.js 260 KB, desktop/fullworker.js 66 KB

machines#

beta. State machines in depth: pseudo-states, regions, activities, deadlines. Bold examples are main ones.

Keywords (0) none
Properties (6) do, entry-activity, exit-activity, on-deadline, pseudo, region
archec commands none
VS Code commands none
Examples that use it autonomous-car, car-bench, cart-pole-mpc, checks, generators, robot-cap, robot-cube, robot-draw, srs-showcase, wheat-drones
Guide pages Write state machines
Tests test/simsemantics.test.js, test/machines-guide.test.js
Size nothing of its own

program#

beta. Programs: modules, their types and functions, written as TypeScript (archec gen --target typescript). Bold examples are main ones.

Keywords (3) module, native, use
Properties (0) none
archec commands none
VS Code commands none
Examples that use it program
Guide pages Écrire des programmes
Tests test/program.test.js, test/tsgen.test.js
Size web/extension.js 35 KB, desktop/extension.js 70 KB, desktop/server.js 35 KB, desktop/archec.js 70 KB, desktop/fullworker.js 35 KB

store#

beta. The Arche Store: a library's store data, the trust a project gives. Bold examples are main ones.

Keywords (0) none
Properties (5) export-control, keywords, shelf, trust, url
archec commands suggest, store, add, audit, publish, search, shelf
VS Code commands arche.boards.filter, arche.boards.clearFilter, arche.boards.refresh, arche.store.add, arche.store.show, arche.store.startFrom, arche.store.search, arche.store.refresh, arche.store.audit, arche.shelf.show, arche.shelf.add
Examples that use it in-house
Guide pages Utiliser l’Arche Store (French too), Prendre des pièces toutes prêtes (French too)
Tests test/store.test.js, test/shelf.test.js, test/suggest.test.js, test/in-house.test.js
Size web/extension.js 144 KB, web/server.js 73 KB, web/files.json 1.1 MB, desktop/extension.js 202 KB, desktop/server.js 97 KB, desktop/archec.js 349 KB, desktop/fullworker.js 81 KB

testing#

beta. Tests in depth: case tables, setup code, the old step blocks. Bold examples are main ones.

Keywords (2) cases, step
Properties (6) fault, model, objective, preconditions, setup, wait
archec commands none
VS Code commands none
Examples that use it 5g-cell-search, arche-lang, autonomous-car, car-bench, dc-motor, generators, operator-console, product-line, steering-safety, ts-handlers, wheat-drones
Guide pages Write test cases
Tests test/testlines.test.js, test/testgen.test.js, test/testing-guide.test.js
Size nothing of its own

Size#

What each owner adds to the bundles is measured on every build, from esbuild's metafile: each source file's bytes in the bundle, summed by the owner of the file (tools/surface.js SOURCE_OWNERS; a file none names is the core's). node build.mjs prints the table and writes dist/sizes.json; tools/sizes.json is the committed baseline, and test/size.test.js fails when a bundle, or an owner in a bundle, grows by more than 5% or 32 KB, whichever is more. node tools/size.mjs --update "<reason>" records a new baseline with its reason.

Owner web/extension.js web/server.js web/files.json web/arche.js desktop/extension.js desktop/server.js desktop/archec.js desktop/fullworker.js
core 4.8 MB 2.1 MB 228 KB 8.7 MB 3.5 MB 18.5 MB 2.8 MB
app 474 KB 276 KB 14 KB 345 KB 41 KB 348 KB 38 KB
cad 71 KB 61 KB 93 KB 80 KB 118 KB 80 KB
codegen 221 KB 180 KB 41 KB 325 KB 270 KB 522 KB 269 KB
database 53 KB 52 KB 217 KB 82 KB 79 KB 113 KB 70 KB
deployment 19 KB 10 KB 27 KB 15 KB 27 KB 15 KB
design 8 KB 8 KB 1.8 MB 14 KB 14 KB 60 KB 14 KB
exchange 176 KB 16 KB 265 KB 26 KB 765 KB 13 KB
generators 62 KB 11 KB 97 KB 18 KB 146 KB 15 KB
hardware 193 KB 90 KB 2.1 MB 273 KB 132 KB 290 KB 89 KB
kinds 37 KB 37 KB 230 KB 58 KB 57 KB 66 KB 57 KB
physics 202 KB 105 KB 274 KB 137 KB 391 KB 137 KB
population 15 KB 15 KB 22 KB 22 KB 40 KB 22 KB
profile 20 KB 20 KB 32 KB 32 KB 48 KB 32 KB
queueing 16 KB 16 KB 26 KB 25 KB 61 KB 25 KB
requirements 37 KB 31 KB 58 KB 49 KB 76 KB 49 KB
safety 37 KB 31 KB 58 KB 49 KB 126 KB 49 KB
scenarios 43 KB 7 KB 67 KB 11 KB 174 KB 11 KB
ui 1.1 MB 319 KB 2.6 MB 1.6 MB 489 KB 1.7 MB 469 KB
ai 19 KB 6 KB 30 KB 9 KB 1.4 MB 9 KB
fpga 37 KB
gpu 125 KB 43 KB 166 KB 66 KB 260 KB 66 KB
program 35 KB 70 KB 35 KB 70 KB 35 KB
store 144 KB 73 KB 1.1 MB 202 KB 97 KB 349 KB 81 KB
total 7.9 MB 3.5 MB 6.5 MB 1.8 MB 13.0 MB 5.3 MB 25.7 MB 4.5 MB

The web bundles are minified; the desktop ones are not (the .vsix compresses them). The Arche app's code (vendor/arche.js: the rule engine, the study evaluation and the RTOS targets) counts for design. In the browser it is web/arche.js, read the first time a model has a rule or a study, or asks for an RTOS target (vscode/src/web/archelib.ts); on a computer it is a file beside archec, read the same way.

The playground's compiler worker#

server/site/src/playground/worker.ts, built as the site builds it (node tools/size.mjs --worker ../server/site) from this arche-lang: minified, loaded when the playground opens. The standard library and the store's models are in it (virtual:stdlib), counted for the core.

Owner Bytes
core 2.5 MB
ui 613 KB
app 263 KB
codegen 199 KB
physics 184 KB
hardware 141 KB
fpga 109 KB
store 69 KB
cad 61 KB
database 45 KB
requirements 32 KB
safety 30 KB
kinds 29 KB
scenarios 20 KB
profile 20 KB
deployment 19 KB
queueing 16 KB
population 15 KB
generators 9 KB
design 9 KB
exchange 6 KB
ai 6 KB
total 4.4 MB

The platform .vsix#

What the CAD engine (a portable Python and build123d's wheels, OpenCascade among them) and GHDL add to each platform .vsix, as packed (zip sizes), read from the 0.16.3 release with node tools/size.mjs --vsix (nothing built). The generic .vsix has neither: 30.9 MB. Open VSX takes 256 MiB (268 MB) at most.

Folder darwin-arm64 darwin-x64 linux-x64 linux-arm64 win32-x64
cad/wheels 230.8 MB 243.8 MB 253.1 MB 244.6 MB 224.2 MB
cad/python 25.2 MB 25.0 MB 35.0 MB 29.8 MB 23.0 MB
fpga/ghdl 29.5 MB 5.7 MB 8.5 MB 9.5 MB
the rest 30.9 MB 30.9 MB 30.9 MB 30.9 MB 30.9 MB
total 316.4 MB 305.4 MB 327.5 MB 305.4 MB 287.7 MB

The largest wheels (darwin-arm64):

  • threejs_materials 1.2.5: 89.8 MB
  • cadquery_ocp_novtk 8.0.1.1.0: 62.5 MB
  • scipy 1.18.1: 28.4 MB
  • numpy 2.5.4: 11.9 MB
  • scikit_learn 1.9.1: 8.2 MB
  • sympy 1.14.0: 6.2 MB