Skip to content

PowerBridge 0.8.0

Choose a tag to compare

@hudsonwa hudsonwa released this 23 Oct 05:00
· 77 commits to main since this release
3c5ac21

Added

  • The native kernel runs variables declared inside a block (Vars: inside begin ... end), so these programs no longer fall back to Python (#128).
  • --explain-native lists the Python 3.12+ refusal of an Average over a series of unknown int/float type (#128).
  • The native kernel runs the total order modifier and from entry ("X") named exits with a literal label (#125).
  • The native kernel runs Round(value, precision), MinMove, PriceScale and LastBarOnChart_s (#122).
  • The native kernel runs CurrentSession, SessionCount, SessionCountMS, SessionEndDay and SessionEndDayMS (#113).
  • The native kernel runs SessionEndTime, SessionStartTime and the sibling session-time words (#109).
  • pl_oracle --explain-native FILE (and explain_native()) lists every construct the native kernel would refuse (#111).
  • A pytest run that skips tests ends with a summary of skips grouped by reason (#106).
  • docs/USAGE.md has a "Warm-up and MaxBarsBack" section (#106).
  • docs/PYTHON_STRATEGIES.md teaches the mirror dialect from scratch, with a tested example in examples/hand_written.py (#102).
  • pl_run and pl_oracle print a warm-up note: when a strategy reads past bars without --max-bars-back; -q hides it (#102).
  • el_emit reports string or true/false arguments passed to verified numeric parameters as ARG-TYPE-BAD (#87).
  • The native kernel runs numeric and true/false arrays, the common Array_* functions and for loops with break / continue (#100).
  • The native kernel runs the predeclared Value0..Value99 and Condition0..Condition99 variables (#104).

Changed

  • CI builds the native kernel for Python 3.9, 3.12 and 3.14 and runs the native-vs-Python parity tests on each (#124).
  • The frozen el_emit parser corpus moved from emitted/ to tests/fixtures/emitted/ (#115).
  • The README quickstart passes --max-bars-back 21, so the demo prints no warm-up note (#115).
  • Tests carry needs_native, needs_captures and perf markers; a plain pytest run deselects captures and perf tests (#115).
  • The README says the Python to EasyLanguage direction accepts only the mirror dialect and explains the warm-up difference (#102).
  • The README quickstart shows the Python to EasyLanguage direction (el_emit) (#89).
  • The repository was recreated on 2026-10-22; pull-request pages from before then are not available (#89).
  • pl_oracle -v stays user-facing; the kernel's [accel] internals now need -vv or PB_DEBUG=1 (#99).
  • The installed package no longer adds the checkout root to sys.path on import (#99).
  • CONTRIBUTING, LIMITATIONS and ACCEL docs describe default test skips, the prebuilt accel wheels and how to tell which path ran (#99).
  • parser.py and py_front.py are split into smaller modules, with byte-identical output (#108).
  • engine.py, codegen_el.py and runtime/_rt_indicators.py are split into smaller modules, with byte-identical output (#112).
  • ruff also checks import sorting, pyupgrade and bugbear rules; re-raised errors now chain their cause (#117).
  • CI's mypy job type-checks the whole pl_transpiler package (#119).

Fixed

  • EL names that clash with Python names (such as max or str) and blocks holding only a redeclaration now transpile to valid Python (#130).
  • Native Array_Sum and Average now add exactly like the running Python's sum(), including the 3.14 rule (#124).
  • --explain-native no longer crashes the native kernel on a Vars: declared inside a block (#111).
  • An undeclared ValueN / ConditionN read before it is written no longer raises UnboundLocalError in the Python engine, and keeps its value across bars (#103).
  • Without -o, el_emit's check report names the input file instead of a temporary file (#102).
  • The native typed trace prints exactly what the Python trace prints (#93).
  • The native kernel's Mod, division by zero and other numeric edge cases now match the Python path instead of trading on inf/NaN (#95).
  • The native kernel reads bar lookbacks (Close[n] and so on) unrounded, as the Python runtime does (#97).