Comments
Loading Dream Comments...
You must be logged in to write a comment - Log In
Here are some ::SHE+ILA:: opcodes, showing the expression syntax :
A+B ::> X;
A-B ::> X;
A*B ::> X;
A .div. B ::> X // division is rare in most DP use cases;
+/VEC ::> X // sum reduction of vector VEC;
A .and. B ::> X // boolean AND;
A .ior. B ::> X // I always preferred this as an opcode mnemonic (lol) but you can also use .or. as in Fortran;
A .xor. B ::> X // you can also use .eor. as in ICL1900;
A .min. B ::> X // minimum of the operands;
A .max. B ::> X // maximum of two operands;
VEC ! INDEX ::> X // subscripting uses "bang" character, note we use ".not." or "~" for one's complement;
TTY0 << "Hellorld" // yay for Usagi :) ;
A +.* B :> X // matrix multiplication :) ;
VEC << VEC // append VEC to itself;
[](theta){.cos. theta + .i. * .sin. theta} ::> EULER // define a function;
EULER (.pi. .div. 4) ::> WOO // call a function;
"That's all for now" . ttyout // another way of doing it :) ;