Toot

Written by Mark Gritter on 2025-01-11 at 05:44

A #ComputingHistory question that came up today: what is the origin of | (the vertical stroke) as bitwise OR in PL/I, and thence to the C family of languages?

I haven't been able to trace it further back, and interestingly in logic it was the "Sheffer Stroke", NAND (although Wikipedia claims that Sheffer actually used it for NOR instead?) There does not seem to be a logic or typesetting convention that birthed |.

I don't know enough about early IBM keyboards to know what other characters might be available.

The choice of & for AND instead of ^ -- it's right there! -- is similarly unclear.

=> More informations about this toot | View the thread | More toots from markgritter@mathstodon.xyz

Mentions

Tags

=> View computinghistory tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113808132830380163
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
221.080369 milliseconds
Gemini-to-HTML Time
0.481801 milliseconds

This content has been proxied by September (3851b).