Developer tools for Luna-Flow/floating: benchmarks, conformance frontends and command-line programs, the differential harness and the documentation examples.
git clone https://github.com/Luna-Flow/floating
cd floating
just pr 8just conformance smoke binary # TestFloat vectors through frontend/testfloat_expr
just conformance smoke interval # ITF1788 rows through frontend/itl_expr
just random-diff smoke # seeded rows against MPFR and libmpdec
just bench external quick # the floating side of the external baselineimport {
"Luna-Flow/floating-tools/frontend/gda_expr",
}
///|
test "parse two decTest rows and execute them" {
let source =
#|precision: 9
#|rounding: half_even
#|add001 add 1.20 2 -> 3.20
#|div001 divide 1 3 -> 0.333333333 Inexact Rounded
#|
let document = @gda_expr.parse_dectest("quick.decTest", source).unwrap()
let summary = @gda_expr.execute_documents([document])
inspect(summary.passed_cases(), content="2")
inspect(summary.success(), content="true")
}| Package | Purpose |
|---|---|
| numeric_expr | host-independent numeric expression syntax and evaluation |
| frontend/gda_expr, itl_expr, mpfr_expr, testfloat_expr | parse and execute GDA decTest files, ITF1788 interval rows, MPFR witnesses and Berkeley TestFloat vectors |
| cli, cli/dispatch and the four cli/*_expr_cli runners | the floating-conformance executable and its libraries |
| differential, differential/harness | the seeded random differential campaign and its library |
| bench and bench/* | Maremark benchmark infrastructure, per-package suites and the timing against MPFR and libmpdec |
| semantic | exact, representation-independent projection of values for comparing across packages (the oracle of consistency) |
| consistency | cross-package laws and API audits of the library (white-box tests, no public items) |
| internal/conformance, internal/runner_cli | summaries, shards, options and JSON shared by the runners |
| doc_examples | the documentation examples run by just docs |
Install
Download zipDeveloper tools for Luna-Flow/floating: benchmarks, conformance frontends and command-line programs, the differential harness and the documentation examples.