Skip to content

jets: don't bail in _cj_spot if core is atom#960

Merged
pkova merged 1 commit intodevelopfrom
dozreg/parent-core-atom
Feb 10, 2026
Merged

jets: don't bail in _cj_spot if core is atom#960
pkova merged 1 commit intodevelopfrom
dozreg/parent-core-atom

Conversation

@dozreg-toplud
Copy link
Copy Markdown
Contributor

> .*([-:dec 10.000 ~] [9 2 0 1])
dojo: hoon expression failed
> .*([-:dec 10.000 ~] -:dec)
9.999

Obviously these two expressions should produce 9.999. If you are not convinced, let's run +mink unjetted on the first expression:

> .*([-:mink [[[-:dec 10.000 ~] 9 2 0 1] _~] +>:mink] -:mink)
[0 9.999]

The difference is that the first expression goes through jet matching code since it uses a Nock 9. +dec is registered with its parent at axis 7. When _cj_spot tries to match that parent it bails with c3__exit inside of u3h macro calls, since we replaced the parent with ~. This assertion ends up breaking Nock semantics.

@dozreg-toplud dozreg-toplud requested a review from pkova February 10, 2026 10:52
@dozreg-toplud dozreg-toplud requested a review from a team as a code owner February 10, 2026 10:52
@pkova pkova merged commit de22bf0 into develop Feb 10, 2026
2 checks passed
@pkova pkova deleted the dozreg/parent-core-atom branch February 10, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants