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 Int vs Float comparisons; on dynamic values == across types is false, != is true (so 1.0 != 1 is now true), and <, <=, > and >= raise a catchable type fault. match patterns of another type still simply fail to match. Any-typed stdlib numeric code now normalizes with to_float.

  • Display floats with the shortest digits that round-trip (0.1 + 0.2 prints 0.30000000000000004, -0.0 keeps its sign, nested values no longer truncate to six decimals) and parse float(text) and JSON numbers with correct rounding, on every runtime.

  • Support sin, cos, tan, ln, log2, log10, exp and floating pow/** 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. The pow builtin 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, cos and tan between 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 new runtime/math.may sidecar 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 pow special cases (zeros, infinities, NaN, negative bases with integer exponents) and return inf/0.0 from exp(±inf) in the full runtime. Accept Int arguments to sqrt, floor, ceil, sin, exp, pow and related builtins on x86-64 instead of crashing.

  • Stop crashing when a Float is compared with nil or 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, inf or -inf in 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 nil from yield() 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 UInt and Void under 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/or conditions 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-align restores the previous layout. Add raw_layout.py and 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, exp and pow, which can differ from the portable runtime in the last place; nan == nan is true on every backend.