...I extend it. (Have I said that before? Deja vu!)
Let's say I am annoyed by the inability to nest a function inside a function in Java. So I invent the "embedded" keyword.
sS bla() { S x = "hello"; embedded S calc() { ret x + " " + x; } ret calc() + " " + calc(); }
In this useless but instructive example, I embed the function calc in the function bla with access to the local variable x.
How is it translated? Using a function of a mere 21 lines and an anonymous inner class. (Nota bene: It's currently more or less limited to a single embedded function per "mother".)
This is such a wonder. A compiler written in Java compiling a slightly weird, but interesting Logo-inspired special purpose language into actual DOOM levels. Our AI could produce DOOM levels for us from just a simple description.
Oh, ah... link.
But a good one.
Question-dot.
c ?. setDoubleBuffered(b);
=>
if (c != null) c.setDoubleBuffered(c);
New invention.
The demo is word-based, but we have a function for efficient phrase-based translation too.
I invented a new data structure (I think). It's an array (variable-size list) where each add, remove, update and random access completes in O(log n) time.
I call it a Log-N array. The implementation uses an order statistic red-black tree. This could be nice for handling long token lists during JavaX transpilation.
...live on stream. Sadly, frame rate dropped to 6 frames a minute at some point. Hopefully fixed next time. Video here. Code made.
Stefan Reich builds agi.blue, the Google-killing AI database & chat bot making platform. New functions built: Inter-slice links, Delete page, Checkboxes.
Randall Brown & band (including me).
Because White-Box.
agi.blue now has a query language that looks like this:
word types / is plural of / $x $y / is a / $x return $y
This example queries the database for a random word type.