creating:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
creating:start [2025/11/04 20:16] – Added instanceof pattern-matching to Java version requirement justification ahelwercreating:start [2026/11/17 04:43] (current) – Fix stale recommendation not to read closures chapter ahelwer
Line 42: Line 42:
  
 You will need to install the [[https://adoptium.net/|Java Development Kit]] appropriate for your system. You will need to install the [[https://adoptium.net/|Java Development Kit]] appropriate for your system.
-This tutorial requires Java 21 or higher, for the Java 17 [[https://openjdk.org/jeps/395|records]] feature, ''[[https://docs.oracle.com/en/java/javase/17/language/pattern-matching-instanceof.html|instanceof]]'' pattern-matching, and the Java 21 ''[[https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/SequencedCollection.html#reversed()|reversed()]]'' method.+This tutorial requires Java 21 or higher, for the Java 16 [[https://openjdk.org/jeps/395|records]] feature, ''[[https://docs.oracle.com/en/java/javase/17/language/pattern-matching-instanceof.html|instanceof]]'' pattern-matching, and the Java 21 ''[[https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/SequencedCollection.html#reversed()|reversed()]]'' method.
 While all code artifacts can be produced entirely by reading this tutorial, if you get out of sync you can find working implementations in [[https://github.com/tlaplus/devkit|this git repository]]. While all code artifacts can be produced entirely by reading this tutorial, if you get out of sync you can find working implementations in [[https://github.com/tlaplus/devkit|this git repository]].
  
Line 88: Line 88:
 The first two chapters are a nice introduction and overview of language implementation generally. The first two chapters are a nice introduction and overview of language implementation generally.
 Chapter three specifies a toy language called Lox, to be used as an object of study for the remainder of the book. Chapter three specifies a toy language called Lox, to be used as an object of study for the remainder of the book.
-Our minimal TLA⁺ subset has some similarity to Lox with regard to expressions involving integers and booleans, but also differences - you can skip the section on closures (unless you want to implement higher-order operator parameters yourself) and the section on classes.+Our minimal TLA⁺ subset has some similarity to Lox with regard to expressions involving integers and booleans, but also many differences - especially in their ultimate execution model.
 What's important is that it's similar enough for all the fundamentals to still apply! What's important is that it's similar enough for all the fundamentals to still apply!
  
Line 110: Line 110:
 </code> </code>
  
-Sometimes the code given here is so different from that provided by the book that highlighting is simply ommitted to reduce visual noise.+Sometimes the code given here is so different from that provided by the book that highlighting is simply omitted to reduce visual noise.
 A parenthetical will specify the meaning of highlighted code when ambiguous. A parenthetical will specify the meaning of highlighted code when ambiguous.
  
Line 116: Line 116:
  
 [[creating:start#table_of_contents|Table of Contents]] | [[creating:scanning|Next Page >]] [[creating:start#table_of_contents|Table of Contents]] | [[creating:scanning|Next Page >]]
- 
  • creating/start.1762287376.txt.gz
  • Last modified: 2025/11/04 20:16
  • by ahelwer