Document (or fix) stack safety issues

Offen
#194 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
24/100
Issue-Typ
Dokumentation
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Bereich
backend, testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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).

Vorherrschende Sprache
PureScript
Sterne
61
Forks
50
Ø Merge
2 T. 6 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus purescript/purescript-lists

Alle Issues in purescript/purescript-lists

Ähnliche Issues

Weitere Issues zu Backend & API Design

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.