Skip to content

grobx 0.202.1

Latest

Choose a tag to compare

@code1-de code1-de released this 30 Nov 18:59

What's new in grobx

0.202.1

Changes since 0.155.1.

  • Multi-threading: grobx computes on several threads, and is about 2.5 times as fast as 0.155.
  • A faster Sage interface: Sage's polynomials go in with no text between.
  • A FLINT interface for Python, C, and Rust.
  • Two more wheels: Linux on aarch64 and macOS on Intel.
  • A redesigned API, which breaks existing callers.

Over ℚ, GF(2), and GF(65521), grobx is about 10 times as fast as any other software, or more, while
at the same time using less memory than any other program in the tables. The time each program
takes, as a multiple of grobx 0.202's:

Program ℚ GF(2) GF(65521)
grobx 0.155 2.55 2.72 2.13
Groebner.jl 0.10.10 13.0 79.5 9.95
msolve 0.10.1 16.8 110 11.3
Maple 2026.1 44.1 – 13.0
Singular 4.4.1p5 287 149 263
Macaulay2 1.26.06 595 54.1 40.6

The peak memory each program takes, as a multiple of grobx 0.202's:

Program ℚ GF(2) GF(65521)
grobx 0.155 0.43 0.75 0.73
Groebner.jl 0.10.10 4.17 6.76 5.04
msolve 0.10.1 1.15 20.4 1.98
Maple 2026.1 2.35 – 3.80
Singular 4.4.1p5 188 17.4 1.16
Macaulay2 1.26.06 8.89 22.5 8.95

grobx 0.202 needs more memory than 0.155 because it computes on several threads. On one thread, the
two need about the same.

Each figure is the geometric mean over the benchmark instances the program has a result on, of 92
over ℚ, 30 over GF(2), and 109 over GF(65521), on an Intel Core i7-14700K at 3.4 GHz. A program runs
on 8 threads where it was measured so, and otherwise on 1; grobx 0.155 computes on one. A timeout
counts as twice the time limit, and Singular, msolve, and Macaulay2 stand with their fastest
variant in each field, in both tables. A memory figure counts the instances both programs finished
in every trial. grobx.com/benchmarks.html gives the time
and memory of every instance.

The checker is probably about 50 times as fast as in 0.155.

This release changes the interfaces (the manual has the details):

  • A stop by a bound and a rejection by the checker are errors, so a result always holds a basis.
  • The checker takes an error bound, 0 for exact, in place of exact or a number of points.
  • A memory ceiling bounds the memory grobx allocates, no longer the process's resident set.
  • Python: digest and the result's stopped, certified, and flaw are gone, and grobx.Invalid
    takes the place of grobx.Error as the ValueError.
  • Rust: every parameter but the order moved to Params::options, and the checker is part of the
    crate grobx.
  • C: the fields of grobx_params and grobx_result changed.
  • Every interface but the browser's uses all threads by default.

Also new:

  • A call uses all the machine's threads unless threads says otherwise. On more than one thread the
    path of a run follows how the threads are scheduled; on one thread, the same input, parameters,
    and seed take the same path.
  • Sage: the new grobx_sage.groebner also returns the cofactors and the call report.
  • The checker rules on a derivation, steps that express every element of the basis in the
    generators. The CLI writes it with --derivation, and Rust returns it where
    Options::derivation asks for it.
  • exact_reduction, in the CLI --exact-reduction and in C GROBX_EXACT_REDUCTION, reduces every
    row on its own at a prime and rules none zero by random draws. It is slower on some systems over
    GF(p).
  • The GitHub release carries the command-line program for Linux on x86-64 and aarch64, Windows on
    x86-64, and macOS on Apple Silicon and Intel.
  • FLINT's polynomials go in and come back with no text between: python-flint's through
    grobx.groebner, FLINT's own through the C header c/grobx_flint.h, and those of the Rust crate
    flint-mpoly under the feature flint.
  • The Rust crate also takes and returns polynomials as terms, through grobx::groebner_terms.

0.155.1

Changes since 0.73.3.

  • Calls over GF(2) are 43.8 times as fast as in 0.101, the earliest version measured over GF(2),
    and hold 79% less memory at their peak, as the geometric mean over 16 benchmark instances: faster
    reductions in packed rows, matrix builds, symbolic preprocessing, pair updates and the criteria M,
    F and B, the substitution of linear generators, and the signature run on systems such as bivium.
  • Calls over GF(p) are 1.43 times as fast as in 0.73 and hold 27% less memory at their peak, both
    as the geometric mean over 58 benchmark instances.
  • Calls over ℚ are 1.22 times as fast as in 0.73 and hold 30% less memory at their peak, over 44
    benchmark instances.
  • cyclic-9 over GF(65521) takes less than half the time 0.73 took.
  • A deadline, a cancel, or a memory ceiling stops a call within about 0.1 s, over ℚ too.
  • The order deglex is new. Sage maps its deglex, dp, and lp to grobx, and Maple its grlex.
  • The CLI's --memory takes the suffixes k, m, g, and t, in either case, and its --report writes
    to a device or a pipe.
  • grobx no longer changes the process's malloc settings: the heap pad and the mmap threshold are
    gone.
  • No error is dropped and no fallback runs silently: every failure reaches the caller.
  • The C interface refuses to return a text that holds a NUL byte, with an error.
  • grobx.Result carries sink_error, the first write error of the call report's file.
  • The call report holds the time a plain run takes to enter the elements it starts from, and the
    processor's brand without trailing NUL bytes.
  • The checker's cheap mode keeps its memory within its batch.
  • A replay that does not fit its record names the step of the record, counted from 1.