stdlib docs drift: sort.sort_by is listed under lib/sort but is null after import sort; contract's recommended ensure call raises; state and list comments say 1/0 for booleans
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- markdown
- Domain
- documentation
Research direction
Read the listed locations in docs/STDLIB.md, lib/sort.eigs, lib/contract.eigs, lib/state.eigs, and lib/list.eigs, then compare the comments with the examples and return values described in the issue. Check the documented ensure example against the working two-element form; done when all checklist items pass, including the specified grep.
Written by the indexing model from the issue text.
Description
Found by the read-only lib/ audit (hq RULES.md, audit area 4). Reproduced on main at d3ec498. Small docs-only findings in four modules, grouped because one docs pass fixes them all.
lib/sort: sort_by is not in the module
docs/STDLIB.md:31 names sort.sort_by, and the lib/sort.eigs table (docs/STDLIB.md:529) lists sort_by. It is a C builtin (lib/sort.eigs:9 says so), not defined in the module, so the namespaced name is null:
import sort
print of sort.sort_by
print of sort.sort_asc
Actual: null, then <fn sort_asc>. Expected: the docs say sort_by is a builtin (as they already do for text_builder_* at docs/STDLIB.md:41 and :219), and line 31 doesn't spell it sort.sort_by.
lib/contract: the recommended ensure call raises
lib/contract.eigs:159 tells readers to "bound the absolute target with ensure of [(abs of x) < LIMIT]". ensure takes one parameter and indexes it (lib/contract.eigs:84-89), and a one-element literal list passes its element, so that call dies:
load_file of "lib/contract.eigs"
x is 3
ensure of [(abs of x) < 10]
Actual: Error lib/contract.eigs:85: cannot index bool. The two-element form ensure of [(abs of x) < 10, "x bounded"] works.
lib/state and lib/list: boolean results documented as 1 / 0
- lib/state.eigs:14 (
# 1), :77 (-> 1 or 0) and :105 (-> 1 or 0) forsm_can_sendandsm_is, which returntrue/false. docs/STDLIB.md:1088 has# 1above an output block that showstrue. - lib/list.eigs:104 ("Empty list -> 0.") and :113 ("Empty list -> 1") for
anyandall, which returnfalse/true.
Done when
- docs/STDLIB.md:31 and :529 present
sort_byas a builtin, not a lib/sort member. - lib/contract.eigs:159 shows a two-element
ensurecall that runs. - The five comments above and docs/STDLIB.md:1088 say
true/false;grep -n "1 or 0" lib/state.eigs lib/list.eigsfinds nothing.
— Duet (orchestrator)
- Dominant language
- C
- Stars
- 3
- Forks
- 7
- Avg merge
- 6h 21m
- Merged PRs (30d)
- 323
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from InauguralSystems/EigenScript
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
InauguralSystems/EigenScript#2311 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
InauguralSystems/EigenScript#2305 · 1 comment ·
Maintainers usually reply within 1 day
-
area:ci bug found-by:duet-audit
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
InauguralSystems/EigenScript#2283 ·
Maintainers usually reply within 1 day
-
area:docs found-by:duet-audit kind:docs-drift
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
InauguralSystems/EigenScript#2282 · 1 comment ·
Maintainers usually reply within 1 day
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X serverOpenarea:gfx kind:bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
InauguralSystems/EigenScript#2216 ·
Maintainers usually reply within 1 day
All issues in InauguralSystems/EigenScript
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
pocoproject/poco#5626 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
VMAFx/vmafx#3260 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
FujiNetWIFI/fujinet-lib#272 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
facebookincubator/muse-gadget-sdk#301 ·
Maintainers usually reply within 2 days
-
luaebpf: the by-example page's intro names two outcomes of a lowering and omits the stop with the default verdictPossibly taken A pull request linked to this issue is open or already merged. Opendocumentation severity: low
Difficulty 1/5 Under an hour Newbie friendliness 88/100
luainkernel/lunatik#2231 ·
Maintainers usually reply within 1 day