Skip to content

Add numeric fundamentals primer to Arithmetic section#565

Merged
SeanTAllen merged 3 commits intomainfrom
numeric-fundamentals-primer
Mar 4, 2026
Merged

Add numeric fundamentals primer to Arithmetic section#565
SeanTAllen merged 3 commits intomainfrom
numeric-fundamentals-primer

Conversation

@SeanTAllen
Copy link
Member

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

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
@netlify
Copy link

netlify bot commented Feb 26, 2026

Deploy Preview for pony-tutorial ready!

Name Link
🔨 Latest commit f846891
🔍 Latest deploy log https://app.netlify.com/projects/pony-tutorial/deploys/69a89f3b72a6ba000875fe8b
😎 Deploy Preview https://deploy-preview-565--pony-tutorial.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 26, 2026
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.
Co-authored-by: Joe Eli McIlvain <joe.eli.mac@gmail.com>
@SeanTAllen SeanTAllen merged commit fc8535b into main Mar 4, 2026
9 checks passed
@SeanTAllen SeanTAllen deleted the numeric-fundamentals-primer branch March 4, 2026 21:09
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Mar 4, 2026
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.

Explain numeric widths, unsigned/signed integers, and overflow/underflow

3 participants