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

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
    10mos ago
  • Try

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

Here are some ::SHE+ILA:: opcodes, showing the expression syntax :
A+B ::> X;
A-B ::> X;
A*B ::> X;
A $/ B ::> X // division is rare in most DP use cases;
+/VEC ::> X // sum reduction of vector VEC;
A /\ B ::> X; // boolean AND;
A \/ B ::> X; // boolean IOR;
A @@ B ::> X; // XOR;
A $N B ::> X // minimum of the operands;
A $X B ::> X // maximum of two operands;
VEC ! INDEX ::> X // subscripting uses "bang" character, note we use "~" for one's complement;
TTY0 << "Hellorld" // yay for Usagi :) ;
A +.* B :> X // matrix multiplication :) ;
VEC << VEC // append VEC to itself;
sin <:: &{1 $O %}; cos <:: &{2 $O %}; &{cos % + $i * sin %} ::> EULER // define a function, % is the parameter;
EULER ($p $/ 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