Pony

Languages & RuntimesBSD-2-Clause

Actor-model, capabilities-secure programming language.

Latest 0.78.0 · by PonyWritten in PonyWebsiteponylang/ponycRSS

Release activity

Release activity — 14 releases across 14 days since Aug 21, 2026. Each cell is one day; darker means more releases that day. Nothing is recorded before Aug 21, 2026. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 20261 release on Sep 13, 2026No releases on Sep 20, 20261 release on Sep 27, 2026No releases on Oct 4, 20261 release on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026
MondayNo releases on Aug 24, 2026No releases on Aug 31, 20261 release on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026
TuesdayNo releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026
WednesdayNo releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 20261 release on Sep 30, 2026No releases on Oct 7, 20261 release on Oct 14, 2026No releases on Oct 21, 20261 release on Oct 28, 2026No releases on Nov 4, 2026
ThursdayNo releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 20261 release on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
Friday1 release on Aug 21, 2026No releases on Aug 28, 20261 release on Sep 4, 20261 release on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 20261 release on Nov 6, 2026
SaturdayNo releases on Aug 22, 2026No releases on Aug 29, 20261 release on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 20261 release on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026

14 releases since Aug 21, 2026

Changelog

0.78.0

Latest
Added 2
  • A new byte_order package provides BigEndian and LittleEndian primitives for encoding and decoding multi-byte values, covering U16–U128, signed counterparts, and F32/F64.
  • A new runtime_tracing package provides enable, disable, and set operations to change tracing categories while a program is running.
Changed 3
  • Stringable.string() now returns String val instead of String iso^, allowing implementations to return string literals directly without allocation.
  • pony-lsp now models the workspace as a single instance with directories, corral projects and pony modules, resolving transitive dependencies from corral.json, pony modules not listed in corral.json, the pony standard library, and dependencies outside the workspace.
  • RuntimeOptions now includes all tracing configuration fields, allowing @runtime_override_defaults to set initial tracing configuration from code.
Fixed 1
  • A match capture missing let or var is now reported with a diagnostic pointing at the identifier and stating that a variable declaration requires let or var, instead of being reported as an unterminated match.
Removed 1
  • The --ponytracingforceactortracing CLI flag is removed; actor tracing is now controlled through tracing categories.

From Pony

Add byte_order standard library package

A new byte_order package provides BigEndian and LittleEndian primitives for converting multi-byte values to and from their wire representation.

Read methods decode from any ReadSeq[U8] source (with an optimized path for Array[U8]). Write methods append encoded bytes to an Array[U8]. Both primitives cover U16–U128, their signed counterparts, and F32/F64.

use "byte_order"

// Encode a U32 in network (big-endian) order
let buf = Array[U8]
BigEndian.push_u32(buf, 0xDEADBEEF)
// buf is now [0xDE; 0xAD; 0xBE; 0xEF]

// Decode it back
let value = BigEndian.u32[Array[U8] box](buf)?  // 0xDEADBEEF
Change Stringable.string() to return String val instead of String iso^

The Stringable interface's string() method now returns String val (written as bare String) instead of String iso^. The previous return type forced every implementation to allocate a new string even when returning a literal or an existing val field, because iso^ requires an isolated reference that the caller can freely mutate. No caller in the standard library or tools ever used that mutability — every call site consumed the result as val immediately.

With String val, implementations can return string literals directly with zero allocation. The common case of a type whose string() method returns a fixed label drops from two heap allocations to zero.

All code that implements Stringable must update its string() method signature. The migration is mechanical:

Before:

primitive Green is Stringable
  fun string(): String iso^ => "green".clone()

class MyClass is Stringable
  let _name: String

  fun string(): String iso^ =>
    recover iso
      String.>append("MyClass(")
        .>append(_name)
        .>append(")")
    end

After:

primitive Green is Stringable
  fun string(): String => "green"

class MyClass is Stringable
  let _name: String

  fun string(): String =>
    recover val
      String.>append("MyClass(")
        .>append(_name)
        .>append(")")
    end

Callers of string() require no changes — String val satisfies every context where String iso^ was previously used as val.

The one case that needs attention: code that consumed the string() result as iso for in-place mutation. Add .clone() at the call site to get a mutable copy. This pattern did not occur in the standard library.

Improve diagnostic for a match capture missing let or var

A match arm written as | count: U64 => ... without let or var used to be reported as an unterminated match. The compiler now points at the identifier and reports that a variable declaration requires let or var.

The form is still invalid. A capture is a variable declaration, so let or var is required:

match value
| let count: U64 => count.string()
else
  "other"
end
Switch pony-lsp workspace model

pony-lsp's internal model of the workspace it was working on was mixing up corral projects, pony modules and workspaces. It tried to create one workspace manager actor per pony module. This was messing up inter-module dependencies and led to all sorts of erroneous artefacts such not detecting the correct dependencies for certain pony modules.

The new model is the following: An instance of pony-lsp is started with one workspace, which might consist of multiple directories. Those directories might contain multiple corral-projects with multiple pony modules. During workspace initialization the workspace directories are walked, pony modules discovered and their possibly transitive dependencies stated within corral.json files are resolved, so that each discovered pony-module has all the dependencies listed that are needed for compilation and static analysis within pony-lsp. The internal state is a map of pony-modules from directory to module data, AST information, derived symbol indices, diagnostic information etc.

Effectively, with this change, pony-lsp is now correctly resolving transitive dependencies from corral.json, pony modules not listed in corral.json like test modules or the pony standard library. Dependencies outside the workspace are now correctly resolved as well.

Add runtime tracing toggle API

Tracing categories can now be changed while a program is running. The new runtime_tracing package provides three category operations — enable (add to active set), disable (remove from active set), and set (replace active set).

use "runtime_tracing"

actor Main
  new create(env: Env) =>
    let auth = RuntimeTracingAuth(env.root)

    match RuntimeTracing.enable_categories(
      auth, [SchedulerTracing; ActorBehaviorTracing])
    | TracingOk => env.out.print("tracing enabled")
    | TracingNotAvailable => env.out.print("not on a scheduler thread")
    | TracingLogFileError => env.out.print("could not open trace file")
    end

Each category is a typed primitive passed in an array. Actor event categories (ActorTracing, ActorBehaviorTracing, etc.) trace all actors when enabled. CycleDetectorTracing enables actor events for the cycle detector only. No trace file is created until the first call that enables a category.

RuntimeOptions now includes all tracing configuration fields, so @runtime_override_defaults can set initial tracing configuration from code.

Remove --ponytracingforceactortracing

The --ponytracingforceactortracing CLI flag is removed. Actor tracing is now controlled through categories: enable ActorTracing, ActorBehaviorTracing, or other actor event categories to trace all actors, or enable CycleDetectorTracing to trace the cycle detector only.

Scripts and launch configurations that pass --ponytracingforceactortracing need to use --ponytracingcategories instead:

# before: trace all actors
--ponytracingforceactortracing all
# after:
--ponytracingcategories "actor,actor_gc,actor_behavior,actor_state_change"

# before: trace only the cycle detector
--ponytracingforceactortracing cd_only
# after:
--ponytracingcategories "cycle_detector"
Remove orphaned ASIO thread tracing call

The ASIO event loop backends (epoll, kqueue, Windows IOCP) had a TRACING_THREAD_STOP() call with no corresponding TRACING_THREAD_START(). Since ASIO thread tracing can't be toggled at runtime, the orphaned stop call is removed.

Add binary_codec package

A new standard library package for bidirectional binary parsing. Define a Codec[A] once — the same definition decodes bytes into a value and encodes the value back to bytes.

Sub-byte fields (4-bit nibbles, 1-bit flags, 13-bit offsets) work the same as byte-aligned fields. decode takes Array[U8] val so byte-slice codecs return zero-copy views via Array.trim.

Codecs are val and compose via combinators: Seq2–Seq6 sequence fields into tuples, Mapped maps between wire tuples and domain types, FlatZip threads a decoded value into a dependent codec, Many and Count handle repetition, and Discriminated dispatches on a tag value.

Decode errors are data: InsufficientData means the input is incomplete, MalformedData means the data is structurally wrong. FrameDecoder wraps any codec for TCP stream framing and uses this distinction to separate "not enough data yet" from "corrupt message."

use "binary_codec"

class val UdpHeader
  let src_port: U16
  let dst_port: U16
  let length: U16
  let checksum: U16

  new val create(s: U16, d: U16, l: U16, c: U16) =>
    src_port = s; dst_port = d; length = l; checksum = c

actor Main
  new create(env: Env) =>
    let codec: Codec[UdpHeader] =
      Mapped[(U16, U16, U16, U16), UdpHeader](
        Seq4[U16, U16, U16, U16](U16BE, U16BE, U16BE, U16BE),
        {(t) => UdpHeader(t._1, t._2, t._3, t._4)},
        {(h) => (h.src_port, h.dst_port, h.length, h.checksum)})

    let data: Array[U8] val =
      [0x00; 0x50; 0x00; 0x51; 0x00; 0x08; 0x12; 0x34]

    match codec.decode(data, 0)
    | (let h: UdpHeader, let bits: USize) =>
      env.out.print("src=" + h.src_port.string())
      env.out.print("dst=" + h.dst_port.string())
    | InsufficientData =>
      env.out.print("need more data")
    | let e: MalformedData =>
      env.out.print("bad data: " + e.string())
    end
Add \noalloc\ annotation for methods

The \noalloc\ annotation marks a method whose body must not allocate heap memory, either directly or through calls to other functions. The compiler enforces this in several ways: a \noalloc\ method cannot make a virtual call to a method that is not also \noalloc\, a class implementing a trait with \noalloc\ methods must mark its implementations \noalloc\ too, FFI calls and bare lambda calls are not allowed inside a \noalloc\ method, and the LTO pass verifies at link time that the transitive call graph of a \noalloc\ function contains no allocation call, no FFI call, and no indirect call through a bare lambda.

trait Computable
  fun \noalloc\ compute(x: U32): U32

class Calculator is Computable
  fun \noalloc\ compute(x: U32): U32 => x * 2

The annotation can appear on fun, be, and new declarations.

Change Iter.step_by to yield the first element instead of skipping it

Iter.step_by(n) now yields the first element of the underlying iterator, then skips n - 1 elements between each yield. Previously it skipped n - 1 elements before the first yield.

The old behavior was inconsistent with Pony's own Range and with equivalents in Rust (Iterator::step_by), Python (itertools.islice), and C++20 (views::stride).

Before:

// produced 1, 3, 5, 7, 9
for v in Iter[USize](Range(0, 10)).step_by(2) do
  env.out.print(v.string())
end

After:

// produces 0, 2, 4, 6, 8
for v in Iter[USize](Range(0, 10)).step_by(2) do
  env.out.print(v.string())
end

Code that relied on the skip-first behavior can prepend .skip(n - 1) before .step_by(n) to get the old positions.

Improve error message when a variable's capability changes inside a recover block

When a variable or parameter defined outside a recover block is used inside one, the compiler changes its capability to tag. If this causes an array element type mismatch, the error previously reported the changed capability without explaining where it came from.

The compiler now adds an informational line when this happens:

main.pony:5:12: f is Foo ref but is treated as Foo tag because it is used inside a recover block
Redesign Range API

Range has been redesigned with two named constructors, and Reverse has been removed. Range[T].till(from, to) excludes the far bound; Range[T].through(from, to) includes it. Direction is inferred from the arguments, and the step is always a positive magnitude. A zero or negative step, or a non-finite float argument, produces an empty range.

The type parameter no longer defaults to USize — every call site must name the numeric type explicitly.

is_empty() and is_infinite() have been removed. Infinite ranges are no longer supported.

The old Range(a, b) produced an empty range when a > b. The new Range[T].till(a, b) infers a descending range instead. Code that passed dynamic bounds and relied on the empty-when-no-progress behavior needs an explicit guard:

// Old: Range(start, limit) was empty when start >= limit
// New: Range[USize].till(start, limit) descends when start > limit
if start < limit then
  for i in Range[USize].till(start, limit) do ... end
end

Before:

// ascending, exclusive of 10
for i in Range(0, 10) do ... end

// ascending with step
for i in Range(0, 10, 2) do ... end

// descending, inclusive of both endpoints
for e in Reverse(10, 0) do ... end

// descending with step
for e in Reverse(10, 0, 3) do ... end

After:

// ascending, exclusive of 10
for i in Range[USize].till(0, 10) do ... end

// ascending with step
for i in Range[USize].till(0, 10, 2) do ... end

// descending, inclusive of both endpoints
for e in Range[USize].through(10, 0) do ... end

// descending with step
for e in Range[USize].through(10, 0, 3) do ... end
[0.78.0] - 2026-11-06
Fixed
  • Improve missing declarations in match captures error (PR #6169)
  • Switch focus of pony-lsp from workspaces to modules (PR #5787)
Added
  • Add byte_order standard library package (PR #6290)
  • Add binary_codec package (PR #6284)
  • Add \noalloc\ annotation for methods (PR #6309)
Changed
  • Change Stringable.string() to return String val instead of String iso^ (PR #6308)
  • Change Iter.step_by to yield the first element instead of skipping it (PR #6410)
  • Improve error message when a variable's capability changes inside a recover block (PR #6411)
  • Redesign Range API (PR #6291)
View originalPermalink
How 0.78.0 went

0.77.2

Added 5
  • Added runtime_init tracing event fired after scheduler creation, with scheduler_count and min_scheduler_count arguments, enabled via the runtime tracing category
  • Added runtime_start tracing event fired when schedulers begin running, enabled via the runtime tracing category
  • Added runtime_shutdown tracing event fired after the runtime finishes, including the exit code, enabled via the runtime tracing category
  • Added actor_scheduled tracing event fired when an actor is pushed onto a scheduler's local run queue, including a scheduler_index field, enabled via the actor tracing category
  • Added actor_scheduled_inject tracing event fired when an actor is placed onto the global inject queue, enabled via the actor tracing category
Changed 1
  • Runtime bitcode (libponyrt.bc) is compiled with the widest CPU feature set for the architecture (x86-64-v4 on x86-64, armv8.9-a with all non-SVE extensions on aarch64) instead of the generic baseline, improving default performance for programs compiled with released ponyc
Fixed 6
  • Runtime bitcode shipped in releases now benefits from target-specific mid-level optimisations because it is compiled with the widest feature set for each architecture
  • URI.string() prefixes /. before the path when a URI has no authority and the path starts with //, so the serialization no longer re-parses with an authority
  • URI.string() prefixes ./ before the path of a relative-path reference whose first segment contains a colon, so the serialization no longer re-parses with a scheme
  • Compiler no longer aborts with an assertion failure on an unterminated escape sequence at end of file in character or string literals, and instead reports ordinary syntax errors
  • F64.f32() and U128.f32() return F32.max_value() instead of inf for values that round to F32.max_value() under round-to-nearest-even, matching f32_unsafe() and String.f32()
  • U128 to F32 conversion on platforms using the Pony source implementation (Windows MSVC) returns F32.max_value() instead of infinity for values slightly above it
View originalRead the notes
How 0.77.2 went

0.77.1

Added 1
  • pony-doc can generate GNU Info documentation with the --backend info option, producing a single .info file; the default backend remains mkdocs
Fixed 12
  • Base64.encode_url with pad = false strips padding entirely instead of writing NUL bytes where padding characters would go
  • String.find, contains, and rfind no longer match needles that extend past the end of the string, which also corrects count and split_by
  • Format.float with FormatFix no longer truncates output longer than 30 characters, such as large exponents like 1e300
  • Sort no longer overflows the stack on already-sorted, reverse-sorted, or all-equal inputs and completes in O(n log n) time
  • Base64.decode and decode_url discard non-zero trailing padding bits instead of emitting an extra byte for unpadded input
  • JSONParser.parse returns a parse error when content remains after the first value instead of silently ignoring trailing incomplete tokens
View originalRead the notes
How 0.77.1 went

0.77.0

Added 1
  • The compiler reports an error when a local variable or parameter shadows a method inherited from a trait or interface
Changed 6
  • Paths in the files package use / as the separator on every platform, including Windows
  • Path.cwd() and Path.canonical() return /-separated paths
  • Path.sep() returns "/" unconditionally
  • Path.clean() converts \ to / on Windows
  • Path.is_sep() still accepts \ on Windows for parsing external input
  • Path.normcase() only lowercases the path on case-insensitive platforms and no longer replaces / with \ on Windows
Fixed 3
  • iftype specialization on method-level type parameters now checks the concrete type argument against the guard instead of always selecting the specialized body
  • A match without an explicit else in a trait default method no longer always takes the first capture arm regardless of the runtime type
  • Intersection types (A & B) are accepted as subtypes of an interface when their members collectively provide the required methods
Removed 2
  • Path.from_slash() and Path.to_slash() have been removed
  • The pool_classic, pool_retain, and pooltrack build options have been removed; the arena allocator is now the only full allocator
View originalRead the notes
How 0.77.0 went

0.76.0

Added 1
  • ResizableSeq interface providing read, write, grow, and shrink access
Changed 3
  • Seq interface narrowed to read and write by index, with growth methods moved to the new ResizableSeq interface
  • Array, String, and List now implement ResizableSeq instead of Seq
  • Constant integer division or remainder by zero is no longer rejected at compile time
Fixed 3
  • Release build link failure when building ponyc with GCC by disabling LTO for GCC builds
  • I128 constant division by -1 producing the wrong result, such as I128.min_value() instead of 0
  • Backpressure muting cascade under fan-in topologies by replacing binary muting with graduated per-actor batch sizes
View originalRead the notes
How 0.76.0 went

0.75.0

Added 10
  • Guarded devirtualization for interface or trait method calls with 2 to 4 concrete implementing types, emitting runtime type checks with direct calls so method bodies can be inlined
  • PonyCheck max_distinct_failures property in PropertyParams to collect multiple distinct failures in a single property test run
  • The for_all family of methods on TestHelper accepts PropertyParams
  • UDPSocket convenience methods join_multicast_group_v4, leave multicast group, set_multicast_ttl, set_multicast_loopback_v4, and selection of the outgoing multicast interface, returning 0 on success or a non-zero errno
  • The \inline\ annotation forces LLVM to inline a fun method at every call site
  • The \inline(N)\ annotation raises LLVM's inline cost threshold to N for a fun method
Changed 3
  • The one-shot hash functions MD4, MD5, RIPEMD160, SHA1, SHA224, SHA256, SHA384 and SHA512 now raise an error when the underlying OpenSSL function fails instead of returning an all-zero array
  • The HashFn interface apply method is now partial to match the one-shot hash functions
  • Two PonyCheck failures are considered distinct when their shrunken choice sequences differ; behaviour is unchanged when max_distinct_failures is 1 (the default)
View originalRead the notes
How 0.75.0 went

0.74.0

Changed 9
  • Updated the LLVM version used to build Pony from 22.1.6 to 23.1.2
  • Runtime tracing flags such as --tracecategories, --flightrecorder and --ponytracingmode are now available in every ponyc build without the runtime_tracing option
  • The pony_type_t struct layout changed so that name and get_behavior_name fields are always present, requiring recompilation of C code that constructs pony_type_t values
  • HandleableSignalValidator rejects signals reserved by the runtime: Sig.info() (SIGINFO) on BSD and macOS, and real-time signals 32 through 35 on Linux
  • Vendored LLVM libraries on ARM64 Windows are built with clang-cl instead of MSVC, requiring the C++ Clang Compiler for Windows component in Visual Studio
  • Property test registration uses TestList methods test.property(prop) and test.stateful_property(prop) instead of wrapper classes such as Property1UnitTest and StatefulPropertyUnitTest
Fixed 3
  • Building ponyc from source on ARM64 Windows no longer crashes during LTO linking with an access violation in LLVM's type legalizer
  • Compiling with runtime tracing on FreeBSD, OpenBSD and Dragonfly BSD is fixed
  • Compiling with runtime tracing on RISC-V is fixed
Removed 2
  • The runtime_tracing entry in PONY_USES is no longer accepted and should be dropped from CMake configuration
  • The pony_check package has been removed and its contents merged into pony_test; use "use pony_test" instead of "use pony_check"
View originalRead the notes
How 0.74.0 went

0.73.0

Added 6
  • Add `\by_value\` FFI annotation so the compiler generates wrappers for C functions that take or return structs by value
  • Add AsioBackend trait for mockable ASIO operations, with RuntimeAsio as the default production implementation
  • Add `--lib-path` / `-L` flag to specify extra linker library search directories, affecting only the linker
  • Add `is_socket_connected` method to the TCPBackend trait, implemented in RuntimeBackend by checking SO_ERROR on the socket
  • Add Generators.f32 and Generators.f64 floating-point generators to PonyCheck, with from and to parameters defaulting to 0.0 and 1.0
  • Add classify, tabulate, cover, and collect classification methods to PropertyHelper in PonyCheck
Changed 2
  • Bound PonyTest concurrent execution of non-exclusive tests to the number of scheduler threads, queuing tests beyond that limit
  • TCPBackend implementations must add the new required method `is_socket_connected(fd: U32): Bool`
Fixed 1
  • Fix cycle detector memory leak for mutually-referencing actors that are repeatedly created and destroyed
View originalRead the notes
How 0.73.0 went

0.72.1

Added 3
  • Add uri package to the standard library providing RFC 3986 URI parsing, building, normalization, resolution, and equivalence checking, plus RFC 6570 URI template expansion and application/x-www-form-urlencoded parsing
  • Add uri/template subpackage for RFC 6570 URI template expansion
  • Add http_client package to the standard library providing an HTTP/1.1 client with streaming callbacks, request building, response collection, redirect following, multipart form uploads, and typed JSON decoding
Fixed 1
  • Fix TCP backpressure stalls on FreeBSD, OpenBSD, and DragonFly BSD that could stall connections for seconds each time backpressure was entered and exited
View originalRead the notes
How 0.72.1 went

0.72.0

Added 2
  • The --pass-timings table and --pass-timings-json file now include the reach and paint passes, which show <program> in the package column
  • A net/notifier subpackage provides a callback-style API closer to the old pattern
Changed 3
  • The net package has been replaced with a new implementation based on ponylang/lori, requiring existing networking code to be rewritten
  • An SSL development library (OpenSSL or LibreSSL) is now a build dependency, detected automatically by CMake
  • TCPBackend.connect now returns Array[AsioEventID] instead of U32, with each element being the ASIO event handle for one connection attempt used to cancel pending Happy Eyeballs attempts on hard close
Fixed 1
  • The reachability pass runs about three times faster on programs with many reachable types
View originalRead the notes
How 0.72.0 went

0.71.0

Added 1
  • TerminalMode can be used directly to set and restore raw mode for programs that do not use ANSITerm
Changed 7
  • The runtime no longer puts stdin into pseudo-raw mode at startup, so programs reading env.input without ANSITerm get normal cooked-mode input with echo, line buffering, and Ctrl-D as EOF
  • ANSITerm now requires a TerminalAuth derived from AmbientAuth and sets raw mode itself on construction
  • ANSITerm restores the original terminal mode on dispose and re-applies raw mode after a suspend/resume (SIGCONT)
  • PonyCheck shrinking is replaced with choice-sequence-based internal shrinking, where the framework records random draws and replays mutated sequences to find smaller failing inputs
  • Generator.generate now returns T^ directly instead of GenerateResult[T], simplifying custom generators to only produce a value
  • All Randomness draw methods (u8 through isize, ilong, f32, f64, bool, shuffle) are now partial and require a ? at call sites
  • Randomness.end_span is now partial and errors when called with no open span
Fixed 1
  • iftype capability narrowing inside generic return types no longer causes the compiler to reject the method body with 'function body isn't the result type', for all capability constraints including #share
Removed 6
  • Generator.generate_value is removed in favor of Generator.generate
  • Generator.generate_and_shrink is removed; shrink plumbing is no longer needed in custom generators
  • Generator.value_iter and Generator.shrink are removed
  • GenerateResult and ValueAndShrink type aliases are removed
  • Generator.iter and Generator.value_and_shrink_iter are removed
  • The do_shrink parameter is removed from Generators.one_of and Generators.unit
View originalRead the notes
How 0.71.0 went

0.70.1

Added 1
  • PonyCheck generators for all persistent collection types: Vec, List, Set, SetIs, Map, and MapIs from collections/persistent, with from and to size controls and shrinking support
Fixed 5
  • Type argument inference now picks the supertype when a consumed iso or trn argument is passed alongside a val argument, instead of reporting a conflicting types error
  • Lambda parameter types are once again inferred from the expected function type at the call site after the generic type argument inference regression
  • Compiler no longer crashes on unresolved type names inside lambda or object literal bodies when the source is split across multiple files, and reports can't find definition of the type instead
  • Type argument constraint check no longer rejects capability subtypes such as Array[U8] val for a ByteSeq box constraint
  • PonyCheck set and map generators keep drawing from the source until the collection reaches the requested element count, stopping after 100 consecutive insertions with no growth
View originalRead the notes
How 0.70.1 went

0.70.0

Added 2
  • Added the --pass-timings flag to ponyc, which prints a per-package, per-pass table of wall, user, and system times to stderr after a build
  • Added the --pass-timings-json=FILE flag to ponyc, which writes pass timings as JSON including build success, compiler version, target triple, and total elapsed time
Fixed 6
  • Fixed a false "declaration of 'env' appears after use" compiler error when a type implements multiple traits declaring the same method and one of them provides a default body, which previously depended on trait declaration order
  • Fixed a false "this pattern can never match" compile error for class, actor, and primitive patterns whose type argument contains a type parameter, such as Cons[List[B]] matched against Cons[A]
  • Fixed a false "this pattern can never match" compile error for trait or interface patterns whose type argument contains a type parameter when the operand's class provides that trait or interface
  • Fixed false "this pattern can never match" compile errors for type parameters with non-subtype constraints that share a common inhabitant, and for union, intersection, or tuple type arguments containing a type parameter, when the reified types coincide
  • Fixed Vec.slice in collections/persistent always returning an empty vector and ignoring its from argument; it now returns the requested range, saturating to at the vector size
  • Fixed Vec.reverse looping indefinitely when called on an empty vector; it now returns an empty vector
View originalRead the notes
How 0.70.0 went

0.69.1

Fixed 1
  • Default type arguments that name a type in their own package now resolve correctly when the package is imported with an alias (use m = "pkg")
View originalRead the notes
How 0.69.1 went
View all

Discussion

If you publish Pony, you can claim this product by proving you administer its repository.