Skip to content

Releases

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 16:00
Immutable release. Only release title and notes can be modified.
ee5f7d3

What's New in v0.4.0

Much exact, very helpful, wow.

Doge 0.4.0 makes the language more powerful and more predictable. It adds lambdas, comprehensions, error classes, cleanup blocks, and format specs. Every error points at
the exact spot with a concrete fix, the tools are complete, and a script prints the same output whether it is compiled or run directly.

Breaking changes and migration

  • Rust 1.86 or newer is required (was 1.74). Run rustup update stable.
  • aka and anyway are keywords. Rename a variable, function, or field with either name.
  • show and equals are hooks. A method show with parameters, or equals without exactly one, no longer compiles, and show must return its text. Rename the
    method or return the text.
  • A second such of a name in the same scope is an error (E0302) instead of a reassignment. Drop such to reassign.
  • Reading a variable that some path has not set is a compile error (E0311) instead of none. Declare it before the block (such found = none).
  • Loop variables and caught errors live only inside their loop or handler. Read a value after the loop through a variable declared before it.
  • A binding with a builtin's name shadows it in its whole scope (warning W0303). Rename the binding to keep the builtin.
  • A so constant cannot be bound again in its scope (E0304). Pick another name.
  • A caught error is an object of its error class: type(err) is "KeyError" rather than "Error". Compare err.type or use isa(err, KeyError).
  • err.message says only what went wrong; the fix moved to err.hint. Code that matched the old message text must drop the fix part.
  • range(...) is a lazy Range, not a List. for, len, in, indexing, and slicing work as before; write list(range(n)) where a List is needed.
  • List.index_of gives none for a missing item instead of raising. Test the result with == none.
  • x in d with a value that cannot be a Dict key is a TypeError instead of false. Convert first with int(x) or str(x).
  • x.name(args) calls a field holding a function before a method of that name. Rename the field to keep calling the method.
  • A Str inside a List or Dict prints as an escaped literal (["a\"b"]). Print the items themselves for their raw text.
  • 010 is a compile error: write 0o10 or 10. A number glued to a keyword (1if) is one too.
  • Mixing an Int with a Float stays exact or raises Overflow; it never turns a huge Int into infinity. Int / Int divides exactly and rounds once.
  • A Decimal and a Float compare exactly: dec("0.1") == 0.1 is false. Convert to one type first.
  • NaN follows IEEE 754: comparisons with NaN are false, and sorting puts NaN last.
  • Huge numbers and sizes raise a catchable Overflow instead of exhausting memory (a number past 32 MiB, a huge range or repetition); crypto.token takes at most 1
    MiB per call.
  • Two bound methods are equal only when bound to the very same List or Dict.
  • nap.parse reads RFC 3339 and rejects text without a zone and dates that do not exist. Add the zone to the text you parse.
  • json.parse rejects a number with a leading zero (01).
  • doge check, the language server, and the REPL report every call error a build reports, so they reject programs they used to accept.
  • doge check prints nothing for a clean script. Rely on the exit status; doge check --ast still prints the tree.
  • doge test runs a file's top-level code first and captures test output, showing it only for a failing test (--nocapture shows all). Move code that must not run
    under doge test into a function.
  • A bare doge with piped stdin runs it as a script. Use doge repl to drive the REPL from a pipe.
  • doge.toml is validated (SemVer version, a valid name, an entry inside the project, unique dependency aliases). Fix the line the error names.
  • doge new refuses a name that does not start with a letter.
  • Bytes.find is removed. Use b.index_of(needle, start), which gives none instead of -1.

Language

  • Lambdas: much x, y: x + y is a function value with defaults and many rest.
  • Comprehensions: [x * 2 for x in xs if x > 0], plus Dict and Set comprehensions with any number of for and if clauses.
  • Spread: f(1, many xs) passes a List's items as separate arguments, super included.
  • Keyword arguments on every call, including methods, super.init, lambdas, and the optional parameters of builtins and stdlib functions (sorted(xs, reverse = true)).
  • anyway: a cleanup block after pls that runs once on every way out.
  • Error classes: many DogMissing much Error: defines your own, bonk DogMissing("walter") raises it, oh no err! binds the same object, isa(err, KeyError)
    catches a family, and every error has err.hint.
  • Class constants, empty class bodies, parents from an imported module, and super inside lambdas, nested functions, and comprehensions.
  • Display and equality hooks: such show: and such equals much other:.
  • Import aliases: so nerd aka n.
  • Sets: {1, 2}, set(), add/remove/is_subset, and |, &, -, ^.
  • Dict keys may be an Int, Bool, or none as well as a Str.
  • Raw strings r"…", multiline strings """…""", and format specs in interpolation: "{price:,.2f}", "{n:>6}", "{share:.1%}".
  • Number literals in hex, octal, and binary, _ between digits, and exponents.
  • Lists compare with < in sort order, and a collection that holds itself prints [...] instead of recursing forever.

Builtins and standard library

  • type(x) and isa(x, Class); sorted, sum, min, max, enumerate, zip, list, char; range with a step; int(text, base).
  • Str methods: split, lines, trim, starts_with, ends_with, index_of, count, replace, upper, lower, padding, character tests, and parts.join(sep).
  • List, Dict, and Bytes methods: pop, extend, copy, count, index_of, sort(key, reverse), get(key, default), update, and more.
  • nerd: log, exp, trigonometry, isnan, isinf, inf, nan, and round(x, digits).
  • env: exit, whine (a line to stderr), and slurp (all of stdin).
  • crypto: sha512, and password hashing with Argon2id.
  • chase.run options for timeout, working directory, environment, and Bytes; howl.request options for timeout, size limit, and Bytes, with proxy support;
    pack.close and a timeout on pack.sniff.

Errors and diagnostics

  • Every compile diagnostic has a code, file:line:column, a caret under the exact range, and an entry that doge explain <code> prints.
  • Every error in a file is reported in one run, with warnings for unreachable code and unused imports and locals.
  • "Did you mean" hints for misspellings, and doge spellings for another language's syntax (print(x), &&, else if, null, …).
  • An uncaught runtime error names its type, points a caret at the failing expression, lists the calls that led there, and ends with a such fix: hint.

Tools

  • New commands: doge init, doge update, doge explain, doge cache clean, and doge help.
  • doge check and doge fmt take several files and directories; doge check --format json and --deny-warnings; doge fmt --diff and stdin.
  • doge test finds every test file in the project and takes --filter, --nocapture, and --junit.
  • doge build -o and --target; --color on every command; --locked keeps doge.lock as it is.
  • The REPL is a full line editor with history, search, completion, :load, :reload, and :reset.
  • The language server adds hover, go to definition, find references, rename, outline, formatting, and quick fixes.

Faster and sturdier

  • Faster programs and builds: in-place string appends, constant-time string indexing, and large programs build on every core.
  • File, network, and HTTP failures are explained in plain words with a fix.
  • Built binaries contain none of your comments or local paths.
  • Many fixes across the REPL, doge test, doge fmt, the language server, and the standard library. See the changelog.

Deprecated

  • The strings module: each call warns with its method replacement (s.upper(), s.trim(), parts.join(sep), …), which editors apply as a quick fix. It goes away in
    the next release.
  • nerd.min and nerd.max: use the builtins min([a, b]) and max([a, b]).
  • Dict.remove(key): use d.pop(key).

VS Code extension

  • Hover, go to definition, find references, rename, outline, formatting, and quick fixes through doge lsp.
  • Highlighting for raw and multiline strings and format specs, and better indentation and folding.
  • A restart command, a trace setting, install help when doge is missing, and Workspace Trust support.
  • The extension's version now follows doge's and is attached to every release.

Install

Download the archive for your platform below, or:

cargo binstall dogelang        # prebuilt binary
cargo install --locked dogelang
code --install-extension doge-vscode-0.4.0.vsix   # the VS Code extension

Verify a download:

sha256sum --check --ignore-missing SHA256SUMS
gh attestation verify doge-v0.4.0-<target>.tar.gz --repo DogeLanguage/doge

Full Changelog: v0.3.6...v0.4.0

v0.3.6

Choose a tag to compare

@github-actions github-actions released this 27 Oct 18:22
fba6a17

What's New in v0.3.6

Much sort, very local, wow.

Four gaps a real server hits, closed: records sort by a field, dates land in the right time zone, and sockets can cap a line and drop an idle client.

Collections

  • xs.sort(key) (#76) — pass any function value and the list sorts by what it returns, once per element. The sort is stable, so equal keys keep their order; for newest
    first, sort then reverse(). A key can return a List to sort by several fields: return [p["date"], p["amount"]] sorts by date, then amount.
  • Lists, Decimals, and Bytes sort — sort() compares Lists item by item (a prefix sorts first), Decimals by value alongside Ints, and Bytes byte by byte. A Decimal beside a
    Float, or any other unorderable mix, raises a catchable TypeError that says what it found and where.

Stdlib

  • nap.stamp(secs, zone) and nap.offset(secs, zone) (#77) — local time in any IANA zone, DST included: nap.stamp(1784116800, "Europe/Amsterdam") is
    "2026-07-15T14:00:00+02:00", and offset gives the seconds east of UTC at that instant. Zone rules come from the OS where installed, with a bundled copy as the fallback, so
    Windows and bare containers work too. An unknown zone raises a catchable ValueError.
  • howl.recv_line(conn, max_bytes) (#75) — an optional cap on a line's length, enforced while reading: a peer that floods bytes without a newline gets a catchable IOError
    once the cap is passed, instead of being buffered in full. Answer 431 and close.
  • howl.set_timeout(conn, secs) (#78) — later recv/recv_bytes/recv_line calls that see no data for secs raise a catchable IOError, so a server can drop idle
    clients; none clears it. The timeout is per wait for data, not per call.

Fixes

  • howl.set_timeout(conn, secs) (#78) — later recv/recv_bytes/recv_line calls that see no data for secs raise a catchable IOError, so a server can drop idle
    clients; none clears it. The timeout is per wait for data, not per call.

Fixes

  • Int/Float comparisons are exact — comparing an Int with a Float used to round the Int first, so 2 ** 53 + 1 == 2.0 ** 53 was true, and sorting a mix of large
    Ints and Floats could crash. ==, <, nerd.min/max, and sort now all compare exactly.
  • nap.rest no longer crashes on a duration of exactly 2^64 seconds — it raises a catchable ValueError like every other out-of-range duration.

Install

cargo install dogelang

Full Changelog: v0.3.5...v0.3.6

v0.3.5

Choose a tag to compare

@github-actions github-actions released this 24 Oct 15:55
9cdca90

What's New in v0.3.5

Much exact, very server, wow.

Money from the wire stays money, and the editor finally talks back: JSON numbers can parse straight to Decimal, and the VS Code language server starts up.

Stdlib

  • json.parse(text, {"numbers": "decimal"}) (#73) — every JSON number with a fraction or exponent parses straight to an exact Decimal, so rates and amounts from
    external APIs never pass through a Float. Whole numbers stay Int; "float" is the default. An unknown option or mode raises a catchable ValueError.

Tooling

  • Faster releases — CI now also runs on every push to main, and the release workflow reuses that run when the tagged commit already passed instead of re-running the full
    suite. Contributor-facing; no change to the language or the doge binary.

Fixes

  • VS Code language server starts again — the extension launches doge lsp --stdio, which the CLI used to reject with a usage error, so the server crashed on every
    ("write EPIPE"). doge lsp --stdio is now accepted. Works with the existing extension; just update the doge binary.

Install

cargo install dogelang

Full Changelog: v0.3.4...v0.3.5

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 18 Jul 10:08
dfd0407

What's New in v0.3.4

Much repeat, very socket, wow.

A small language treat and a networking convenience: sequences you can multiply, and a way to ask a connection who's on the other end.

Language & operators

  • Sequence repetition with * — * now repeats a Str or List when the other operand is an Int, in either order: "ab" * 3 and 3 * "ab" are both "ababab", and [0] * 3 is [0, 0, 0]. A zero or negative count gives an empty sequence. List repetition is shallow — repeated nested Lists and Objects still refer to the same values. An out-of-range
    count or a too-large result raises a catchable Overflow rather than panicking.

Stdlib

  • howl.peer(sock) — returns a connection's remote endpoint as {"host": Str, "port": Int}. Calling it on a listener raises a TypeError.

Install

cargo install dogelang

Full Changelog: v0.3.3...v0.3.4

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 16 Jul 16:50
36fff61

What's New in v0.3.3

Much bytes. Very carriage. Wow.

This release is about talking to the wire: raw-binary parsing and CRLF-framed
text protocols both get first-class support, so binary-framing and HTTP/SMTP/RESP
code reads naturally instead of hand-rolling scans and byte constants.

Language & types

  • New string escapes: \r \0 \xNN \u{...} (#67) — \r (carriage
    return) and \0 (NUL) join the known set; \xNN takes two hex digits for an
    ASCII scalar (00–7f, e.g. \x0d); \u{...} takes 1–6 hex digits naming
    any Unicode scalar (e.g. \u{1f436} → 🐶). CRLF wire strings are now just
    "HTTP/1.1 200 OK\r\n". Bad escapes get a precise, doge-framed lex error.

Stdlib

  • Bytes sub-sequence search (#68) — b.find(needle[, start]) → Int offset
    (or -1), b.split(sep) → List<Bytes>, b.contains(needle) → Bool, so
    binary-framing parsers (multipart boundaries, length-delimited protocols) stop
    hand-rolling an O(n·m) scan. Its Str counterpart strings.index(s, sub)
    returns a char-based offset.

Tooling

  • Codex integration — a two-model planner→executor (Sol/Luna) workflow, a
    root AGENTS.md as the single source of project instructions with per-crate
    guides, and .agents/ skill mirrors. Contributor-facing; no change to the
    language or the doge binary.

Install

cargo install dogelang

Full Changelog: v0.3.2...v0.3.3

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 15 Jul 19:35

What's New in v0.3.2

Much bytes, very network, wow.

This release rounds out Doge's networking and binary-data story: raw byte sockets,
a general HTTP client, a crypto module, and base64/hex round-tripping for Bytes.

Networking

  • Binary-safe sockets (#60) — howl.recv_bytes / howl.send_bytes move raw
    Bytes over a socket with no UTF-8 assumptions, so a pure-Doge server can frame
    binary bodies by Content-Length and handle file uploads.
  • howl.request (#62) — the general HTTP(S) client: any method
    (GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS), custom request headers, and a body
    (Str or raw Bytes). Every response now carries a lowercased headers Dict.

New stdlib modules

  • crypto — hashing & secrets (#61): sha256, hmac_sha256, token (OS-CSPRNG
    random bytes), and same (constant-time compare). Everything speaks Bytes
    (render with .hex()); wrong types are a catchable TypeError, never a crash.

Language & types

  • Bytes base64/hex round-trip (#63) — Bytes.b64() encodes to base64;
    Str.from_b64 and Str.from_hex decode back to Bytes, with a catchable
    ValueError on malformed input.

Fixes

  • doge test constant init (#65) — top-level so constants declared in the test
    file itself now initialize before tests run, instead of staying none.
  • Relative script paths in a project (#64) — doge check/bark/test lib/x.doge
    now resolves the project root correctly instead of failing with "could not open
    the project directory"; discover_root canonicalizes the path before the walk.

Install

cargo install dogelang

Full Changelog: v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 15 Jul 10:42
d84845b

What's New in v0.3.1

Much numbers, very bytes, wow.

This release deepens Doge's core value types — arbitrary-precision integers, exact
decimals, and a real binary Bytes type — and adds two stdlib modules plus a
broader fetch.

Language & types

  • Extended numerics (#53) — Int is now arbitrary precision (2 ** 200, big
    factorials, and literals past i64 are all exact); arithmetic never overflows, it
    just grows. Overflow is confined to the few machine-int-only spots (index, shift
    count, range bound), where a too-large value is a catchable error, never a crash.
    Adds an exact base-10 Decimal via dec(...) for money and exact fractions —
    Int↔Decimal mix exactly; Float↔Decimal in arithmetic is a catchable TypeError.
    iteration yields Ints, + concatenates, slicing yields Bytes. Build with the
    bytes(x) builtin; decode with bytes.decode(), hex with bytes.hex(), and read
    or write binary files with fetch.read_bytes / fetch.write_bytes.

New stdlib modules

  • hunt — regex (#52): pattern matching over Str — test, find,
    find_all, groups, and replace, backed by a pure-Rust, linear-time engine
    (no ReDoS). Invalid patterns raise a catchable ValueError; a no-match reads back
    as none.
  • chase — subprocess (#49): chase.run(cmd, args, stdin) spawns an external
    program, feeds it optional stdin, and returns {"code", "stdout", "stderr"}.
    Launch failures are catchable IOErrors; stdin is written off-thread so a chatty
    child can't deadlock.

Improvements

  • fetch grows (#50) — nine new members for walking trees and inspecting files:
    list, make_dir, remove_dir, rename, copy, stat (size / modified /
    is_dir), plus the pure-string path helpers join, basename, and ext (always
    /-separated, identical on every platform). Every filesystem failure is a
    catchable IOError; the path helpers never touch the disk.
  • VS Code highlighting (#54) — builtins (len, str, int, float, bytes,
    dec, range, gib), the method receiver self, and stdlib module members
    (nerd.abs, fetch.read, …) are now themed, including inside string interpolation.

Install

cargo install dogelang

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 14 Jul 20:06
f485aeb

What's New in v0.3.0

Much stdlib, very batteries, wow.

This release grows Doge's standard library with five new modules: networking,
concurrency, time, randomness, and serialization.

New modules

  • howl — networking (#44): TCP sockets and an HTTP client.
  • pack — concurrency (#45): threads (pups) and channels (bowls) for
    parallel execution, with a Send-safe value boundary so pups never share Rc.
  • nap — time (#46): monotonic clock, timestamps, sleep, and UTC dates.
  • roll — randomness (#47): RNG, sampling, and shuffling.
  • Serialization — JSON & DSON (#48): parse and emit for both formats.

Fixes & maintenance

  • CI no longer runs twice per merge (#43).
  • Dependabot no longer bumps the rust-toolchain MSRV pin.

Install

cargo install dogelang

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 12 Jul 22:09
3009f30

What's New in v0.2.0 - much release, very ship

Much release, very ship, wow.

This release makes Doge installable, packageable, and testable — plus real I/O and a language server.

Highlights

  • cargo install dogelang — Doge is now on crates.io. The CLI crate is dogelang; it installs the doge binary. (#36)
  • Projects & dependencies — a doge.toml manifest turns a directory into a project with dependencies by local path or git, resolved through one shared
    loader (stdlib > dependency > sibling). Scaffold with doge new. (#6)

Features

  • I/O & environment access (#17) — the input half of the language:
    • gib() / gib("prompt") — read a line of stdin (none at EOF)
    • fetch stdlib — read / write / append / exists / delete files
    • env stdlib — args() and get(name) for CLI args and env vars
    • new catchable IOError for every file/stdin failure
    • doge bark script.doge [args…] forwards trailing args to the program
  • doge test (#39) — discover and run tests: top-level zero-arg test* functions asserting with amaze. doge test <file> runs one file, doge test <dir> runs every test_*.doge recursively. Runs on the interpreter (no rustc build); exits non-zero on any failure or an empty suite.
  • Language server (#25) — doge lsp serves diagnostics and completion over LSP, wired into the VS Code extension via a doge.serverPath setting.
    Diagnostics reuse the exact doge check front end; completion reads from the single-source keyword/builtin/module tables.
  • String-path imports (#21) — so "sub/dir/mod.doge" imports a module by a /-separated path relative to the importing file. The loader dedups and
    detects cycles by canonical path, so one file reached two ways loads once.

Fixes & hardening

  • doge test is now project-aware — test files can so <alias> a declared dependency through the same resolver bark/build/check use.
  • doge new <name> validates the name to a single safe path segment (letters, digits, -, _), preventing ../evil or /etc/x from escaping the working
    directory.
  • Install gap closed — the generated crate depends on doge-runtime by path in a dev checkout, else by published version, so an installed doge builds
    scripts without the source tree.

Packaging

  • All crates carry crates.io metadata; internal deps centralized in [workspace.dependencies].
  • Gated publish-crates release job publishes in dependency order: runtime → compiler → interp → lsp → dogelang.

Install: cargo install dogelang

Full Changelog: v0.1.5...v0.2.0

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 12 Jul 14:19
d1c5775

What's New in v0.1.5

Features

  • REPL / interpreter mode — doge repl starts an interactive session backed by a tree-walking interpreter over the checked AST (#4)
  • amaze keyword — in-language assertions (#11)
  • doge fmt — a formatter CLI command for .doge scripts (#40)
  • Class names as first-class values — reference a class by name and pass it around like any other value (#35)
  • Bound methods as first-class values — grab a method off an instance and call it later (#34)

Fixes

  • Cache resolver now has a Windows-native LOCALAPPDATA fallback, so doge bark/build work on a default Windows setup (#37)

Maintenance

  • README cleanup
  • Bump actions/checkout 4 → 7 and actions/setup-node 4 → 6

Closed issues: #4, #11, #34, #35, #37, #40

Full Changelog: v0.1.4...v0.1.5