I will shortly be adding FFUUTT-coding to tunguska. I just want to share the convention with you guys, see if you have any feedback or so.
It is a numbering system for commutative bivalent ternary operations. You simply set up a truth table in the following order
Where X5-X0 is the results of the operation, and then, to get the number of the operation, you simply treat them as a regular terary number.
N = 243*X5 + 81 * X4 + 27 * X3 + 9*X2 + 3*X1 + X0
So, AND would be given N = -322, XOR would be given N = 241, etc.