Skip to content

Perses v2.8

Latest

Choose a tag to compare

@chengniansun chengniansun released this 24 Nov 16:24

New features

  • write the bash completion script and document shell setup
  • ship the bash completion script as the snap's completer
  • print the bash completion script with --help-completion
  • stop a recording reduction once the microbenchmark cap is reached
  • skip recording a problem identical to one already recorded
  • leave whitespace-only tokens out of the tree under position-based formats
  • record each token's offsets and rebuild the tokenization from them
  • require the token counts
  • a verbatim-only language for the range facade
  • a verbatim code format
  • build the evaluation tree by cutting the text at the recorded ranges
  • record the token count on each range, not per element
  • a lexer that cuts a text at given offsets
  • record token counts of the program and of each element
  • refuse to record unless the plan runs the main reducer alone
  • add DFS_ONE_MINIMAL
  • add LITHIUM_MINIMIZE
  • add CDD_ONE_MINIMAL
  • add --list-list-minimizers
  • add PRISTINE_DRDD and PRISTINE_WDRDD
  • add WDRDD, and cut drdd blocks with existing splitters
  • add drdd, deferred-restart delta debugging
  • measure 1-minimality and the program size either side
  • contain a failed measurement and record what happened
  • measure several list minimizers in one process
  • raise the slicer max granularity from 14 to 16, matching C-Reduce
  • harden the release process end to end
  • generate release notes from the conventional-commit history
  • add the dev docker image tooling
  • add the snapcraft packaging

Bug fixes

  • ELF-patch the bundled JDK and add one-command build, check and upload
  • pass the reduction stop signal to the test-script executor
  • cache action sets by a 128-bit fingerprint
  • print the newlines inside a lexed token once
  • record an element's consecutive tokens as one range
  • ship a real cacerts and package the GitHub release jar
  • take recorded token ranges from the printer, not a re-lex
  • measure on the surrogate tree the evaluation driver built
  • derive the snap version from the VERSION file
  • default the snap version to 2.7 and fix stale references
  • build only targets the public tree contains
  • start every evaluation from an empty query cache
  • evaluate against the recorded input, not the result folder
  • tolerate holes bound to nothing during rewriting
  • declare the actual license, GPL-3.0-or-later

Improvements

  • make the writer's Result a sealed Recorded/Skipped hierarchy
  • remove the re-lexing path from the recorded-program tokenizer
  • print evaluation candidates in the original format
  • the range facade derives its cuts from the recording
  • route every deletion through tryDeleting/tryShrinkingTo
  • share tryDeletingBlock across block deletions
  • make ensureOneMinimal a cyclic scan
  • move list-minimizer evaluation out of AbstractMain
  • parse the recorded program once, copy it per measurement
  • hoist the per-process work above a measurement loop
  • --list-minimizers-to-evaluate takes a list
  • name the evaluation reducer after its minimizer
  • give each measurement its own output directory
  • build each language's parser facade once per process
  • drop the syntactic-validity post-check from the state-based slicers
  • move the jar test into //scripts/test
  • store the release version in a VERSION resource file

Other changes

  • Version the git hooks; presubmit installs them via core.hooksPath
  • Resolve maven artifacts through the GCS mirror first
  • Simplify CI: analyze all shipped targets, then build and smoke-run the binary
  • Fix CI: update deprecated actions and drop the vanished scala package
  • Make the shipped tree self-contained