GiNaC term order of printed closed forms is not reproducible across processes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start in LKlinke/prodigy-ginac-bindings at the closed-form printing path and use the distribution_header and Tracer.snapshot workarounds referenced from #553 to identify order-dependent behavior. Add or adapt a test that prints the same expression in two fresh processes with different PYTHONHASHSEED values and compares the text. The change is complete when output is independent of hash seed and prior computations, and the call-order workarounds are removed or reworded.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found in #553 (exists on main).
GiNaC's term order in printed closed forms depends on the hash seed and on what the process computed before, since GiNaC's symbols are shared within a process. Two fresh runs of main print 17_die_even_invariant with different term orders. The values are the same; only the text of closed forms differs.
Consequences:
- A byte comparison of GiNaC output (golden and JSON comparisons in refactoring PRs) needs
PYTHONHASHSEED=0and a fresh process per program. - Users can see the same result printed differently between runs.
- A refactoring that only reorders engine calls changes the printed output (#553 had to restore the call order in
distribution_headerandTracer.snapshot).
The fix belongs in LKlinke/prodigy-ginac-bindings (a canonical print order), not in Prodigy.
Done when
- The printed form of a GiNaC closed form is the same across processes and hash seeds, and independent of earlier computations in the process.
- A test in the bindings (or in Prodigy's engine tests) prints the same expression in two fresh processes with different hash seeds and compares the text.
- Prodigy's workarounds that depend on the call order (the comments in
distribution_headerandTracer.snapshotfrom #553) are removed or reworded.
- Lingua principale
- Python
- Stelle
- 6
- Fork
- 2
- Merge medio
- 1h 52m
- PR unite (30g)
- 187
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LKlinke/Prodigy
-
area: engines bug priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
GUI: the example note in the toolbar does not wrap (overlaps the engine menu, widens the page)Apertaarea: gui bug priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area: gui bug priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
area: engines bug priority: medium
I maintainer di solito rispondono entro 1 giorno
-
area: maintenance priority: low
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di LKlinke/Prodigy
Issue simili
-
docs(contributing): the two things that silently block a PRForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaavailable documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 95/100
Nixitov/Riptide-Native#944 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
JTHCode/secretguard#24 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 ·
I maintainer di solito rispondono entro 1 giorno