Add numeric fundamentals primer to Arithmetic section#565
Merged
SeanTAllen merged 3 commits intomainfrom Mar 4, 2026
Merged
Conversation
The Arithmetic tutorial page assumed readers already understood integer widths, signed vs. unsigned representation, and overflow/underflow. Since Pony may be a learner's first language where these concepts matter, this adds a short Numeric Fundamentals section before the Pony-specific material, with a skip-ahead link for experienced readers. Also fixes a factual error: "one's complement" was incorrect — Pony (and all modern hardware) uses two's complement for signed integers. The surrounding sentence was rewritten for clarity. Closes #486
✅ Deploy Preview for pony-tutorial ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The numeric fundamentals section uses <sup> for exponentiation notation (e.g., 2^N). The default MD033 rule disallows all inline HTML, so this allows the sup element specifically.
jemc
reviewed
Mar 4, 2026
Co-authored-by: Joe Eli McIlvain <joe.eli.mac@gmail.com>
jemc
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a short Numeric Fundamentals section to the Arithmetic tutorial page, covering integer widths, signed vs. unsigned representation, and overflow/underflow. These concepts are assumed knowledge on the current page but may be new to readers for whom Pony is their first language where they matter. The section includes a skip-ahead link for experienced readers.
Also fixes a factual error: "one's complement" → "two's complement" (Pony and all modern hardware use two's complement for signed integers), and rewrites the surrounding sentence for clarity.
Closes #486