Skip to content

FerroBASIC 0.1.1 (pre-alpha)

Pre-release
Pre-release

Choose a tag to compare

@FeliceMente FeliceMente released this 16 Nov 13:32
· 58 commits to main since this release
0779a69

A patch release on the way to M2, classes and events. Recording runs 22 and 23 settle how And and Or rank against comparisons and where In and Each can be names. Case handling now follows JDK 19's Unicode 14 data and word boundaries. On macOS, ferro bundle no longer writes binaries that crash at start-up.

Tools:

  • On macOS, ferro bundle no longer writes a binary that crashes at start-up ("illegal hardware instruction") when the ferro executable has little Mach-O header space, as debug builds on macOS 27 do. ferro is linked with spare header space, and ferro bundle reports an error instead of writing such a binary (#131).
  • ferro-recorder records the original toolchain's refusal of a pending probe, and reports it for a decision on whether the probe becomes a negative test.

Runtime:

  • EqualsIgnoreCase, SortCaseInsensitive and SortTypeCaseInsensitive recognize supplementary Unicode case pairs, including Deseret. Case-insensitive comparison and ToUpperCase/ToLowerCase use Unicode 14 case data, as JDK 19 does (#115). The data comes from the Unicode Character Database 14.0.0 under the Unicode License v3 (Unicode-3.0), credited in THIRD-PARTY-NOTICES.txt.
  • ToLowerCase chooses the final sigma ς by JDK 19's word boundaries rather than Unicode's context: "A1Σ" lowercases to a1ς and "A:Σ" to a:σ (#140).

Recorded from B4J:

  • Comparisons bind tighter than And and Or (#127).
  • In and Each can name locals, module variables, parameters, Subs and For Each variables. Each cannot be a counted-loop variable, even when declared first or given a type (#137).
  • 306 conformance tests (B4J 10.70, OpenJDK 19, Windows 10): 300 pass against recordings, in the interpreter and as standalone binaries; 6 are documented deviations; none pending.

Details in CHANGELOG.md; known differences from B4J (D1, D3–D7) in docs/deviations.md.

Known limitations:

  • Classes, other modules, libraries other than jCore, DateTime, Sleep and Wait For arrive at later levels (M2 onward).
  • The REPL cannot load a file or interrupt a running program without ending it; the language server gives diagnostics only, and there is no editor extension.
  • REPL line editing was tested by hand on macOS and Windows only; automated terminal tests run on Linux only.

Build from source with cargo build --release -p ferro-cli.