About Newsroom
Tuesday, December 1, 2026 Today’s Paper
Primary-Sourced Edition About & sourcing →

Hacker News

Phlex 3 second beta fixes compiler edge cases

The prerelease of the Ruby view library addresses compiler behavior and updates its optional attribute serializer.

Phlex has released the second beta of version 3, updating its experimental compiler and fixing cases where compiled components behaved differently from their uncompiled versions. Phlex lets developers build web views using Ruby. [1] [2]

The project says the beta also speeds up its optional C-based attribute serializer, which prepares values for HTML output. Developer Joel Drapper described the change in a Bluesky post; the performance figures are project benchmarks, not independent tests. [1] [3]

Phlex compiler fixes

The release says the compiler can now work in applications that define equality methods for certain Ruby classes, a case that previously caused it to refuse files. It also fixes an unintended constant lookup and preserves the encoding of files marked as binary. [1]

The first Phlex 3 beta introduced the compiler and enabled it by default. The project says the new beta has no breaking changes from that earlier prerelease. [1] [4]

Attribute serialization in beta 2

Drapper said the optional serializer was 1.2 to 2.6 times as fast as in the first beta for the measured attribute work. The release notes say the serializer produces byte-identical output in those benchmarks. Actual application results can differ, and no independent testing was reported. [1] [3]

Phlex 3 remains a prerelease

Version 3.0.0.beta2 is marked as a prerelease on GitHub. The project also describes a change that lets the compiler combine some constants and literal values into static output while falling back to normal execution if its checks fail. [1]

Beyond the headline

The conversation

Bluesky
“attributes serialise 1.2× to 2.6× as fast as the first beta.”

Developer Joel Drapper described project benchmarks for the optional C serializer; results may vary by application.

Read on Wildroot
Read more on this topicExplore on Wildroot

Sources & documents

Follow the numbered references to the reporting and original records.

  1. Phlex — 3.0.0.beta2 release notesgithub.com
  2. Phlex repository READMEgithub.com
  3. Joel Drapper — post about Phlex beta 2bsky.app
  4. Phlex — 3.0.0.beta1 release notesgithub.com