Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
This project is a tiny compiler for a very simple language consisting of boolean expression.
The language has two constants: 1 for true and 0 for false, and 4 logic gates:
! (not), & (and), | (or), and ^ (xor).
It can also use parentheses to manage priorities.
Here is its grammar in BNF format:
expr ::= "0" | "1"
I think I’ve figured out most parts of the cubical type theory papers; I’m going to take a shot to explain it informally in the format of Q&As. I prefer using syntax or terminologies that fit better rather than the more standard ones.
Q: What is cubical type theory?
A: It’s a type theory giving homotopy type theory its computational meaning.
Q: What is homotopy type theory then?
A: It’s traditional type theory (which refers to Martin-Löf type theory in this Q&A) augmented with higher inductive types and the univalence axiom.
| (* See https://groups.google.com/forum/#!msg/fa.caml/i6IgSFX8XkY/4khF8z1V7loJ *) | |
| type expr = | |
| | Int of int | |
| | Var of string | |
| | BinOp of [ `Add | `Sub | `Leq ] * expr * expr | |
| | If of expr * expr * expr | |
| | Apply of expr * expr | |
| type defn = LetRec of string * string * expr |
mhwd-chroot
yaourt -S mhwd-chrootsudo mhwd-chrootgrub-install /dev/sdagrub-install --recheck /dev/sda| -- Do Tree Traversals and Built a Visitation List for each | |
| preorder :: BinaryTree a -> [a] | |
| preorder Leaf = [] | |
| preorder (Node left root right) = root : preorder left ++ preorder right | |
| -- NOTE: Need to use the ++ so each list gets built separately and then concatenated | |
| -- after it hits bottom | |
| inorder :: BinaryTree a -> [a] | |
| inorder Leaf = [] |