Document (or fix) stack safety issues

Aperta
#194 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
24/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Ambito
backend, testing

Direzione di ricerca

The issue names sort, nubEq, and nub, and points to #192 and #179 for related work. Start by reading those issues and checking the functions’ stack-safety behavior, then assess whether tests can cover each function and whether the suggested V8 stack-size setting helps them run faster. Done means documenting or fixing the identified cases and establishing stack-safety tests; the issue does not specify which outcome to prioritize.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type: enhancement

Some example of existing stack-unsafe functions:

  • sort - reported in #192
  • nubEq, can be fixed for strict lists by applying same strategy used for struct nub in #179
  • nub for lazy lists. Don't know of a good way to fix this. The strict nub strategy of #179 cannot be applied here because you can't reverse an infinite lazy list.

We should ideally setup stack-safety tests for every function. To help make those tests run faster, we could shrink the v8 stack size with something like --stack_size=10 (default is 984 kB).

Lingua principale
PureScript
Stelle
61
Fork
50
Merge medio
2g 6h
PR unite (30g)
1

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di purescript/purescript-lists

Tutte le issue di purescript/purescript-lists

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.