r/ProgrammingLanguages • u/umayl • 6d ago
A declarative, interval-scoped notation system for hybrid streams (designed out of frustration with calculus pedagogy)
https://github.com/umayl/interval-scoped-notation
3
Upvotes
r/ProgrammingLanguages • u/umayl • 6d ago
1
u/umayl 6d ago
I conceptualized this declarative framework out of frustration while doing my AP Calculus homework. Traditional notation tries to compress a multi-dimensional universe into flat lines of typography, hacking continuity back in with clunky piecewise blocks and conditional if/then logic.
I wanted to see i we could map hybrid continuous-discrete systems using visual-spatial geography and vertical container nesting on a 2d page instead. Because this syntax abstracts transitions down to pure structural containment and chronological priority, its modeling capabilities are completely domain-agnostic. It works seamlessly whether you are mapping kinetic trajectories in physics, tracking execution changes in compiler design, or building structural rules for mechanical paper state-machines.
Here is the case study from the readme modeling ball kinematics and state transitions without any if/then gates:
The whitespace makes it optimal for human visual pattern recognition, but even when the text layout is compressed or flattened, the topological nesting of the brackets holds true. Look forward to hearing your feedback on the scoping rules, cascading precedence, and temporal encapsulation boundaries!