-
Notifications
You must be signed in to change notification settings - Fork 1k
Add more numeric predictates to cptypes #1007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
5095b27 to
e91c2a0
Compare
|
I just removed the bootfiles that were not necesary. |
e91c2a0 to
0342b35
Compare
mflatt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased to resolve conflict in "release_notes.stex".
0342b35 to
c3ed972
Compare
release_notes/release_notes.stex
Outdated
| and similar functions. Also, it has partial support more numeric predicates, like | ||
| \scheme{even?}, \scheme{odd?}, \scheme{positive?}, \scheme{negative?}, | ||
| \scheme{real-valued?} and similar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also has partial support for more numeric predicates including even?, odd?, positive?, negative?, and real-valued?.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
In particular, even?, odd?, positive?, negative?, real-valued?, and similar primitives.
c3ed972 to
ac9023f
Compare
In particular,
even?,odd?,positive?,negative?,real-valued?and similar primitives.The support is only partial. It's enough to specialize
but it's not enough to reduce
that require a big refinement in the internal type system (planed for later, let's say mid 2026).
In primdata.ss/primvars.s I renamed
nzuinttopintbecause all the other types use that convention.I also made a few new types, to complement the old types:
fixnum: all fixnums (some other types use ans, likesint, so perhaps it shoud besfixnum)pfixnum: positive, i.e.>0nfixnum: (new) negative, i.e.<0ufixnum: unsigned/"up", i.e.>=0dfixnum: (new) ???/"down", i.e.<=0I didn't find a nice name/letter for "
<=0", but sinceuis used for unsigned ">=0", we can reinterpret is as up/down. The letterdis visually different from the others letters to be easy to notice, and it a nice mnemonic.