Repository navigation
v0.3.1
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) —
Intis 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,rangebound), where a too-large value is a catchable error, never a crash.
Adds an exact base-10Decimalviadec(...)for money and exact fractions —
Int↔Decimal mix exactly; Float↔Decimal in arithmetic is a catchableTypeError.
iteration yields Ints,+concatenates, slicing yieldsBytes. Build with the
bytes(x)builtin; decode withbytes.decode(), hex withbytes.hex(), and read
or write binary files withfetch.read_bytes/fetch.write_bytes.
New stdlib modules
hunt— regex (#52): pattern matching overStr—test,find,
find_all,groups, andreplace, backed by a pure-Rust, linear-time engine
(no ReDoS). Invalid patterns raise a catchableValueError; a no-match reads back
asnone.chase— subprocess (#49):chase.run(cmd, args, stdin)spawns an external
program, feeds it optional stdin, and returns{"code", "stdout", "stderr"}.
Launch failures are catchableIOErrors; stdin is written off-thread so a chatty
child can't deadlock.
Improvements
fetchgrows (#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 helpersjoin,basename, andext(always
/-separated, identical on every platform). Every filesystem failure is a
catchableIOError; the path helpers never touch the disk.- VS Code highlighting (#54) — builtins (
len,str,int,float,bytes,
dec,range,gib), the method receiverself, 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