User loginNavigation | 
   
Janus: A Time-Reversible LanguageBy C. Lutz and H. Derby circa 1982. Header: 
 This is class report but also a great design exercise in reversible programming language constructs. For example, I love how they make if conditions reversible: 
if   num # 1
then i += 1        ; Put last prime away, if not done
     fact[i] : num ; and zero num
else num -= 1
fi fact[i] # fact[i-1]
Note that # means not equals; colon is used for swap (!!). The "fi" condition must match the truth value of the "if" condition so the condition can be played backwards. Loop constructs are similarly organized so they can play backwards, the language has procedures but all variables are global :). Sadly, although there are a few follow on papers (e.g. by Yokoyama et al.) and some esoteric reversible languages like Kayak, there doesn't seem to be any other good examples of high-level serious reversible programming languages. By Sean McDirmid at 2013-05-21 04:39 | LtU Forum | previous forum topic | next forum topic | other blogs | 10736 reads 
 | 
   Browse archives
 Active forum topics | 
  
Recent comments
7 hours 13 min ago
1 day 11 hours ago
1 day 12 hours ago
6 days 12 hours ago
6 days 13 hours ago
6 days 13 hours ago
4 weeks 5 hours ago
4 weeks 5 days ago
4 weeks 5 days ago
5 weeks 5 hours ago