Maylang 0.13.103 — Dahlia
Released 2026-10-19 UTC. The portable native runtime gains collections, closures, recoverable faults, fibers and floating point on every direct target; float display, parsing and trigonometry now agree bit for bit across runtimes; and RAW x86-64 code is faster and placement-stable.
Behavior changes
Reject comparisons between values of different types. Strict checking now rejects
IntvsFloatcomparisons; on dynamic values==across types isfalse,!=istrue(so1.0 != 1is nowtrue), and<,<=,>and>=raise a catchabletypefault.matchpatterns of another type still simply fail to match.Any-typed stdlib numeric code now normalizes withto_float.Display floats with the shortest digits that round-trip (
0.1 + 0.2prints0.30000000000000004,-0.0keeps its sign, nested values no longer truncate to six decimals) and parsefloat(text)and JSON numbers with correct rounding, on every runtime.Support
sin,cos,tan,ln,log2,log10,expand floatingpow/**in the portable runtime on every native target. The binary64-only implementation is bit-identical across targets, within one ulp of the host libm, and reduces trigonometric arguments of any magnitude exactly. Thepowbuiltin now returns a Float in the core runtime, as documented, and negative integer exponents of**produce a Float instead of a fault.
Floating point
Share exact
sin,cosandtanbetween the full, LLVM and core runtimes; the full runtime's x87 versions were inaccurate near multiples of pi and returned arguments above 2^63 unchanged. The newruntime/math.maysidecar holds this shared code, and core releases the temporaries of pure math, parsing and formatting calls so long loops no longer exhaust its heap.Convert float literals with exact big-integer arithmetic so they are correctly rounded on every backend; decimal scaling misrounded most 17-digit literals by one or two ulps.
Follow C99
powspecial cases (zeros, infinities, NaN, negative bases with integer exponents) and returninf/0.0fromexp(±inf)in the full runtime. Accept Int arguments tosqrt,floor,ceil,sin,exp,powand related builtins on x86-64 instead of crashing.Stop crashing when a Float is compared with
nilor another non-number using!=or<, and when the full runtime displays the smallest subnormals.Support boxed Float/Float32 arithmetic, conversions, comparisons, square roots and rounding on every native target. Format nonfinite scalar floats as
nan,infor-infin both runtimes. Cross-platform FFI remains unsupported in the portable runtime.
Portable native targets
Support cooperative fibers on every native target with isolated handlers and traces; return
nilfromyield()consistently with its declared type.Support recoverable faults and debug traces on every native target; preserve callee-saved registers during unwinding and check the 64-handler limit.
Support closures, shared captures, callbacks, overloaded struct operators and stack arguments in the portable runtime; fix recursive local closure binding.
Support maps, records, structs and enums in the core runtime on every native target; preserve exclusive range endpoints on ARM64 and RISC-V.
Preserve each fiber's caught error and exception handlers across yields, and accept the C binding types
UIntandVoidunder strict checking.
LLVM backend
Support typed extern calls and cooperative fibers in the LLVM backend, including C stack arguments, function values and isolated suspended handlers.
RAW code generation
Lower signed power-of-two division and remainder up to 2^59 with shifts instead of
idiv(#84).Branch directly on RAW
and/orconditions instead of materializing a Boolean, keeping short-circuit order, effects and faults (#85).Keep parameters and loop-weighted locals in dedicated registers, including bodies with direct user calls and syscalls (#86), and hold values that no call clobbers in volatile registers so fewer callee-saved registers are saved; drop unreachable and fallthrough jumps (#87). The extended suite is 33% faster than 0.13.102 and runs at 1.32× GCC's time (report).
Align RAW x86-64 function bodies and loop heads to 16 bytes with NOP padding, so unrelated code no longer moves hot loops (#83). Collatz's spread across 16 code placements falls from 5.5% to 2.3% of cycles. Suite medians are unchanged and code grows about 5%.
--no-code-alignrestores the previous layout. Addraw_layout.pyand a branch-predictability suite (report).Add an eleven-workload extended RAW benchmark suite (report).
Remaining limits
File, process and network libraries and typed FFI still need the full x86-64 Linux runtime; the portable runtime keeps allocations until exit (256 MiB cap). See the backend parity handoff.
Full and LLVM builds keep x87/libm logarithms,
expandpow, which can differ from the portable runtime in the last place;nan == nanistrueon every backend.