~/talk

Constrainedrandom - a Python package that does what it says on the tin

Talkat ORConf 2025 · 2025-09-12..09-14· [python]
links:none on file
slides:none on file

A Python package that solves constrained-random generation by walking the state space randomly rather than exhaustive solving, giving about a 10x speedup over PyVSC in the author’s benchmarks. It exposes rand objects, seeded instance or global RNGs, domains, weighted distributions and arbitrary Python constraints. Solver strategy is staged: naive random trials, a sparse graph fallback, then exhaustive PiConstraints (which can fail or be impossibly large for 64‑bit ranges). Used to migrate a real RISC‑V DV flow; works fast for typical problems but can not converge on very large or hard CSPs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Procedural randomization limits
  3. 2:06Declarative style
  4. 3:09Design principles
  5. 4:34Adding variables and constraints
  6. 6:38Advanced features
  7. 8:02Performance benchmarks
  8. 9:26Limitations and future
  9. 10:51Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.