Koja 0.17.2

Released August 18, 2026 · All releases · GitHub release

Added

  • CPtr<T> gains address(self) -> Int and a Debug impl that renders the pointer as its hex address, so ptr.print() shows CPtr(0x00006000023a4f10) instead of CPtr{}.

Changed

  • koja format breaks after = when the assigned value is a multi-line block (match, cond, a multi-line closure, or a call containing one) and keeps short values glued, including calls with inline closures.

Fixed

  • Ref.call to a dead process returns Err(CallError.ProcessDown) promptly, even when the callee dies mid-wait, instead of blocking for the full timeout.
  • Various koja format fixes:
    • Long protocol method signatures, generic parameter lists, union types, and -> T ! E return signatures now wrap at 80 columns instead of overflowing.
    • String interpolation never breaks inside #{...}, so a formatted string stays on one line.
    • A method call on a long collection literal breaks the literal’s brackets instead of the argument list.
    • A closure with a block body (for example a match) no longer collapses onto one line.
    • Trailing comments on alias, const, and type declarations stay on their line instead of moving below the declaration.
    • Trailing comments on type declaration headers and end lines stay on their line.
    • A comment above an else or after keyword stays there instead of moving into the branch above, and a comment leading the else body stays in the else body.
    • A comment between the last arm and a match, cond, or receive terminator stays inside the block.
    • A comment inside a list, tuple, enum, struct, or binary pattern stays anchored to its element instead of moving to the arm’s head line.
    • Formatting never drops a comment. Every comment now has one owner decided before printing, and tests enforce preservation over the whole corpus.