Content deleted Content added
Line 273:
}}</ref>
===Design philosophy===
| last1 = Choudhury
| first1 = Vikraman
Line 283 ⟶ 284:
}}</ref>
* ''Program Structure:'' A Janus program consists of global variable declarations followed by procedure declarations. The execution starts at a procedure named <code>main</code>, or the last procedure defined if <code>main</code> is absent.<ref>{{cite web |url=https://en.wikipedia.org/wiki/Janus_(time-reversible_computing_programming_language) |title=Janus (time-reversible computing programming language) |website=Wikipedia |access-date=April 9, 2025}}</ref>
* ''Data Types:'' Janus primarily uses 32-bit integers (interpreters may differ on signed vs. unsigned) and one-dimensional integer arrays of fixed size.<ref>{{cite conference
Line 449 ⟶ 450:
** '''Sequence:''' <code>s1; s2</code>. The inverse is <code>s2<sup>−1</sup>; s1<sup>−1</sup></code>.<ref>{{cite web |url=https://en.wikipedia.org/wiki/Janus_(time-reversible_computing_programming_language) |title=Janus (time-reversible computing programming language) |website=Wikipedia |access-date=April 9, 2025}}</ref>
===Implementations and code examples===
| last1 = Yokoyama
| first1 = Tetsuo
Line 579 ⟶ 581:
}}</ref>
* ''Program Structure:'' Programs are defined using <code>(defmain ...)</code> for the main routine and <code>(defsub ...)</code> for subroutines. Global variables and arrays are declared with <code>(defword ...)</code> and <code>(defarray ...)</code>.<ref>{{cite web
| last1 = Choudhury
Line 654 ⟶ 656:
}}</ref> These are inherently irreversible operations.
The R language was designed with a specific hardware target: the Pendulum processor.<ref>{{cite thesis | last1 = Frank
| first1 = Michael P.
Line 747 ⟶ 750:
}}</ref>
The following PISA assembly code<ref>{{cite conference
|