::SHE+ILA:: -- some opcodes [$04]

Vintage Room with Intricate Machine and Nostalgic Decor
244
0
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • Prompt
    Read prompt
  • DDG Model
    DaVinci2
  • Access
    Public
  • Created
    3w ago
  • Try

More about ::SHE+ILA:: -- some opcodes [$04]

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 :) ;

Comments


Loading Dream Comments...

Discover more dreams from this artist