Cette page répertorie 3 versions de culebra, du 27 septembre 2026 à l’actuelle 0.9.0. Chacune renvoie aux fichiers d’installation de l’éditeur.
| Version | Date | Taille | Fichiers |
|---|---|---|---|
| 0.9.0Dernière version | 2 décembre 2026 | — | 64 bits ZIP Notes de versionHighlights
- New syntax: @name for self.name and new(@x) field parameters; x is T / x !is T type tests; f(x:) for f(x: x); object rest patterns {a, ...rest}; digit separators (1_000_000); let {*} = NS to take every member of a namespace; the pipe a |> f(b), a low-precedence .; reflected operator methods (__radd__, __rsub__, __rmul__, __rdiv__, __rmod__, __rpow__, __rmatmul__).
- Language models in the standard library: LLM providers for the Anthropic Messages API and Chat Completions (LLM.openai, LLM.openrouter, LLM.ollama, LLM.openai_compatible), tool-use loops, and Llama / LLM.local to run a model in the process (llama.cpp, with Metal on macOS and Vulkan on Linux and Windows). culebra build links llama.cpp into programs that name Llama.
- Sound: Synth, sound written as an expression (envelopes, filters, voices, stereo, Synth.Mono, Synth.velocity, Proxy); MIDI input and output; Kauai is a namespace of its own with a kauai command line (kauai live plays a recipe from a MIDI controller, kauai convert reads and writes MusicXML); the Playground plays audio on the native mixer in an AudioWorklet, reads Web MIDI, and has Synth Studio and an FM Synth playable from a wind controller.
- Scene: per-vertex colours, packed-byte meshes (node.load(..., positions_as: "i16")), new texture filters (point_mipmap, point_coverage, point_majority), anisotropy and mip bias, detail textures, 3D lines, height fog, distance fade, depth bias, supersampled render targets, and leaner shaders; generic joysticks in Canvas and Scene.
- Performance and memory: --jit compiles a large program in parts side by side and re-optimizes long functions when they are called often; the JIT links an optimized static LLVM (about 1.6x faster translation on macOS arm64); @value runs stay unboxed across more shapes; the GC shrinks its object registry after a burst and gives memory back to the OS after --jit compiles.
- Downloads: a slim download (the VM alone) next to the full one; the full downloads carry Llama; the macOS downloads start on macOS 15.
Breaking changes
- The release hook is __drop__. drop is now an ordinary member name and is not called on release; x.drop() on a value with neither raises a method-miss error instead of returning nil. A trait default __drop__ is a DropContractError. culebra lint warns on a class that still declares drop for this release.
- A field parameter is written new(@x); new(.x) is a parse error.
- Audio.Kauai is now the top-level Kauai, and error messages say Kauai:.
- culebra play is removed; use the kauai command or kauai/tools/play.cul.
- Proc.run / Proc.spawn: the string sent to the child is input: (was stdin:); stdin:, stdout: and stderr: take "pipe" (default), "inherit" or "null".
- Kauai songs: an instrument's knobs go in parentheses after its name (pulse(duty=1/4 env=1,2,4 gap=2), noise(freq=4000->800 len=3)); the external keyword and bare knobs are errors; the instrument is strictly the third word of its line; a program instrument with knobs must declare them ({note|phrase|hit, knobs:, weigh:}); a drum function is called as |n, params|.
- Audio.Graph: modulators: is gone; wire parts with part.connect(target), from any part, with loops passing through a delay.
- size(), empty() and presence() on an iterator or a Range raise a method-miss TypeError.
- A module's export Object is frozen.
- Time.monotonic() and Sys.time() share one origin, process start (each used to start at its first call).
- Random: an isolate's, a Parallel element's and a worker's engine is seeded from the one that started it, so Random.seed in main reproduces them; each spawn advances the parent's sequence once.
- A value one message reaches twice (two closures capturing one Object, [x, x], an Http server's routes) arrives as one value, not as separate copies.
- An Object's String key is every byte it holds, a NUL among them (JSON, CSV and the host API too).
- A scalar receiver's member error names the member (cannot read, cannot set, or the method-miss messa |
| 0.8.0 | 26 octobre 2026 | — | 64 bits ZIP Notes de versionHighlights
- Audio: a namespace of its own for sound, with or without a window. Tones, samples, streamed music and Audio.PCM (samples a script computes), Audio.Graph (native parts, worked out as they play), Audio.Capture (the microphone), and functions that measure a sound: Audio.decode, spectrum, stft/istft, resample, pitch, harmonics, loudness, integrated_loudness.
- Kauai, a language for writing music as a band plays it: a lead sheet of chords and melody, and grooves written against the chord. culebra play song.kau plays one, --wav writes it to a file, --from/--to render a part, --watch plays it again whenever a file is saved. Instruments made from recordings (a soprano and an alto saxophone) play phrase by phrase from real notes, with the tools to make more.
- LLM: a client for large language models in the standard library (LLM.ask, a conversation that keeps its history and runs the tools the model asks for, and a request sent as it is), and Http reads Server-Sent Events.
- Isolates send more: a @value or @derive instance, a class, an enum's constructor and a bound method now cross an isolate boundary, and a child's throw that cannot cross back fails the join with an error that says so.
- Dir: one trait over the places files come from. Dir.disk, Dir.memory, Dir.zip (read ZIP archives; Compress.zip writes them) and Dir.embedded; Http serves any Dir.
- XML namespace and Encoding.utf16; String.pack/String.unpack for numeric arrays and @packable records.
Changes
Breaking
- Embed.dir(name) is now Dir.embedded(name), a Dir like the others; the Embed namespace is gone. exists(""), exists(".") and exists("sub") are true for a directory that holds a file.
- Sound moved out of Canvas into Audio: Canvas.tone, Canvas.Sound, Canvas.music and the rest are now Audio.tone, Audio.Sound and Audio.music, and play with no window. Canvas forwards none of them.
- Time.parse is strict: the whole string must match, with one date, and Time.from_parts has defaults. UTC is now computed directly from the calendar in both directions.
Language / interpreter
- Names and scopes: a read that nothing visible declares is a NameError at load; if, cond and ?: arms are scopes of their own; a declaration or a defer takes no trailing if/unless; fn is declared nowhere, however a binding spells it; a typed static field is a static field.
- Types: a field's annotation is checked on every write; a built-in type's name in an annotation means that type; a Function type pattern takes a callable instance; an error's kind is a type name that takes it.
- @value and @packable classes: a field may hold the standard library's own value classes, a write that throws leaves the field as it was, and a flat class's layout is its declaration's.
- Effects and generators: a lowered body's variables get a slot each by scope; handle bodies leave only through their value; an empty handler clause is nil; fn inside a lowered frame, a defer or an effect fn names the function the user wrote.
- Errors name what went wrong more often: an unterminated string, a call on a method that is not there, a surplus positional told the keyword it was written for.
- fmt lays an array of numbers out as a table, and keeps parentheses that change meaning.
JIT / AOT / VM
- A cached JIT object is reached by a second key that holds across builds, and a hit skips the IR pipeline as well as the backend.
- The VM keeps the receiver a frame was called with, compiles MoveRetain in place of Op::Retain, and several slot and scope fixes remove lifetime bugs in closures, defaults and destructuring.
- GC: pins are counted, an object whose edges are in flux is a root, and the object registry is never more than 5/8 full.
Standard library
- Audio (above), Dir (above), XML (XML.parse, XML.events, paths with predicates, and element methods that survive isolates), LLM, Encoding.utf16, String.pack/String.unpack.
- Http: events: reads any request's answer as Server-Sent Events; srv.static serves any Dir; a streamed response is |
| 0.4.0 | 27 septembre 2026 | — | 64 bits ZIP |