3 · Why code is easier
Prose is open. Code is narrow.
You type
WriteaGofunctionthataddstwonumbers
The model writes, one token at a time
funcadd(a,bint)int{returna+b}
Thousands of sensible next words after “The board”
A handful of valid next tokens after func add(a, b int)
SayText is cut into tokens, small pieces of words. After each token the model picks the next one. The vocabulary is the same for English and code, about a hundred thousand tokens. What differs is how many make sense next. After "The board" thousands of words fit. After func add, open bracket, a, b int, close bracket, the grammar leaves a handful: a return type or a brace. Go has only twenty-five keywords. The split shown is illustrative. The same holds for C, Verilog or VHDL. And you can compile, simulate and test the result.