This repo has one compiler pipeline with multiple authoring layers:
- RubyHx covers pure Ruby output, Ruby std/runtime support, gem interop, Ruby extension APIs, and framework-independent Haxe-to-Ruby authoring.
- RailsHx is the Rails-first layer: typed ActiveRecord, ActionController, ActionView/HHX, generators, migrations, Turbo/importmap, tests, and Rails-native app workflows.
Both selective Ruby-first adoption and Haxe-first authoring are supported. Haxe-first projects can keep nearly all owned library or application source in Haxe/HHX while using generated Ruby with the normal runtime, gems, Rails, and deployment ecosystem.
RailsHx is a first-class citizen, not a separate backend. Rails remains the runtime owner for db:migrate, test, Zeitwerk, assets, and app boot. RailsHx owns typed Haxe source, compile-time validation, generated Rails artifacts, and the developer UX around those artifacts.
Future Ruby framework layers should reuse the same split: add typed std/macros/generators for the framework, emit framework-native Ruby artifacts, and keep framework runtime tasks owned by the framework. Those layers can live here if they share compiler/runtime code tightly, or in separate repos that consume reflaxe.ruby/hxruby.
- Why RubyHx: product thesis, Ruby-first and Haxe-first value, Ruby/JavaScript sharing boundaries, adoption modes, tradeoffs, maturity, and reusable pitch.
- Getting Started: prerequisites, first compile/run, compiler defines, Ruby interop, RailsHx setup, and generator entrypoints.
- Packages And Installation: verified release ZIP/gem consumption, Haxelib and Ruby package contracts, and client/DeviseHx packaging boundaries.
- Compatibility Matrix: supported Haxe, Node, and Ruby versions.
- Debugging Generated Applications: compiler diagnostics, generated Ruby/ERB backtraces, ownership provenance, browser source maps, and the limits of server-side source correlation.
- Performance Viability: representative compiler, generated startup, peak-memory, output-size, and gross-regression evidence without comparative speed claims.
- Support And Maintenance: public issue and security channels, single-maintainer scope, review cadence, release authority, and companion ownership.
- Ruby Callable And Method ABI: typed blocks, keyword/rest arguments, method values, forwarding, definitions, and diagnostics.
- Ruby Compiler Correctness: exhaustive typed-expression ownership and fail-closed diagnostics.
- Ruby AST And Semantic Lowering: structural Ruby syntax, validated callable/runtime plans, raw-site inventory, and contributor boundaries.
- RubyHx And RailsHx Production Readiness:
stable
1.xevidence, scope, and the cross-dimensional1.0approval bar. - GPT 5.6 Pro 1.0 Review Packet: independent repository, architecture, product, and stable-release audit brief.
- RubyHx/RailsHx Stable 1.0 Readiness Review:
exact-commit evidence, stable-major approval, bounded findings, support
contract, and the path from independent review to
1.0. - Release Version Policy: conventional major-zero releases, tag-derived lineage, and independent stable-major approvals.
- RubyHx/RailsHx Public Contract: federated 1.x API/ABI ownership, SemVer boundaries, deprecation, and public-release upgrade/rollback evidence.
- Reproducible Release Artifacts: tested-commit staging, canonical ZIP/gem bytes, full content manifests, SHA-256 sidecars, and consumer gates.
- Tested-Commit Publication Workflow: same-run release authorization, exact toolchain/action pins, minimal permissions, and trigger matrix.
- Hosted Release Identity And Repair: draft verification, exact hosted bytes, immutable releases/tags, and existing-tag-only recovery.
- Live Release Protocol Evidence: stable
v1.0.0publication, first protocol publication, tag/channel transition, exact artifact identities, immutable normal/repair proofs, and hosted no-release continuity. - Ruby Profiles:
ruby_firstvsportable. - Ruby Extension Interop: typed
include,extend, monkey patches, externs, and metaprogramming-heavy library adoption. - Std Ownership: how Ruby/Haxe std coverage is tracked.
- Ruby Stdlib Parity Audit: upstream Haxe std candidate accounting for Ruby.
- Ruby Stdlib Coverage Catalog: packaged Ruby core/default/bundled/platform inventory and bounded facade evidence.
- Deterministic RBS-To-Haxe Generation: checked precise-or-omitted extern generation, deterministic output, and review limits.
- Ruby Stdlib R&D Plan: staged typed stdlib coverage, runtime-helper policy, and follow-up beads.
- Ruby Stdlib Facades: authoring typed
ruby.*facades over Ruby stdlib APIs. - Modern Temporal APIs: choosing
Time,Date, strict parsing, and RailsTimeZone/TimeWithZonewhile keeping legacyDateTimeoutside the canonical path. - Gap Report Guidance: updating std/runtime coverage inventory.
- Repository Development: contributor gates, example/test ownership, hooks, bead workflow, inventory commands, and repository map.
- RailsHx Roadmap: current Rails plan and sequencing.
- Generator Workflows: app-facing generator commands, generated artifacts, runtime handoff, diagnostics, and CI gates.
- Generators And Tasks: Rails-native generator/task ownership, generated starter skeleton, and
hxruby:startworkflows. - Development Loop: one-command Rails startup, checked HXML input discovery, change-aware server/client rebuilds, debounce, and watcher tuning.
- Generated Artifact Ownership: manifest/header safety and overwrite policy.
- Typed Views And HHX: TSX-like Haxe view authoring, compile-time checks, Rails-native ERB output, advantages, and honest limits.
- Client JavaScript And Genes: the separate browser build, Genes versus the stock Haxe JavaScript emitter, Rails importmap integration, ownership, and tradeoffs.
- Gradual Adoption: mixing existing Ruby/ERB with Haxe/HHX.
- Gem Layers: wrapping installed Ruby gems through typed contracts and reusable companion packages such as future DeviseHx.
- Gem-Layer Testing: testing pyramid for reusable RailsHx companion packages over Ruby gems.
- DeviseHx GPT 5.5 Pro Prompt: required pre-implementation design review packet for the reusable Devise companion layer.
- DeviseHx Design: folded GPT 5.5 Pro review, API shape, extraction strategy, escape hatches, tests, and rollout plan.
- DeviseHx Release Lane: incubated package metadata, CI gates, security/release checklist, and standalone split criteria.
- Testing Strategy: snapshots, smoke tests, Rails runtime tests, and Playwright.
- Typed API Production Gap Audit: current typed API gaps.
- ActiveRecord Query Guide
- Query Expression Design
- Projection And Grouping Design
- Controller Guide
- Routing Design
- Components Guide
- Turbo Guide
- ActionCable Guide
- Full-Stack Hotwire Design
- ActionMailer Guide
- ActiveJob Guide
- ActiveStorage Guide
- Instrumentation Guide
- Engines And Plugins Guide
- SQL String Policy
- Type Safety Review
- Escape Hatch Security Audit
- RailsHx Skeleton And Todoapp Tutorial
- Haxe-Authored Testing Design
examples/hello_world: smallest pure Ruby compile/run path.examples/rubyhx_cli: maintained multi-file Haxe-first library/CLI with filesystem input, typed JSON, failure paths, a handwritten Ruby consumer, and an isolated installed-package compile/run contract.examples/ruby_callable_abi: canonical pure RubyHx callable ABI example, including a handwritten Ruby consumer and runtime-free generated calls.examples/ruby_interopandexamples/ruby_extensions: consuming and authoring Ruby APIs from Haxe.examples/active_support_facades: typed facades over Ruby/Rails extension-style APIs.examples/rails_routes_dsl: focused Haxe-owned Rails route DSL fixture with committedconfig/routes.rband route-manifest snapshots.examples/rails_test_adapters: focused Haxe-authored Rails test fixture for default Minitest and explicit RSpec adapter output.examples/rails_interop_app: gradual Rails adoption with existing Ruby/ERB seams.examples/todoapp_rails: canonical RailsHx dogfood app with HHX, ActiveRecord, migrations, DeviseHx, Haxe-authored JS, Rails tests, production smoke, and Playwright.
haxelib install formatter
brew install gitleaks
rake hooks:install
rake format:haxe:check
rake security:gitleaks
npm testThe pre-commit hook formats staged .hx files with haxe-formatter and runs staged gitleaks. CI runs a full formatter check, the compiler/Rails matrix, release-contract checks, and secret scanning.