Hex Casting

Hex Casting

6M Downloads

(Suggestion) True/False <-> number conversion patterns

Math321 opened this issue ยท 2 comments

commented

Hexcasting already has some support for bitwise math thanks to the set operations, but it'd be more natural to work with if these patterns existed:

  • A pattern that takes True/False and outputs 1/0. (You currently need 3 patterns to do this - numerical reflection: 1, numerical reflection: 0, augur's exaltation. Not hard, but not as elegant as having a single Purification that just does it.)

  • Patterns for converting numbers to lists of True/False, and vice versa. (Currently requires Thoth (and thus meta-evalulations) to do an simplistic version of this in a convenient way, and perhaps it shouldn't.)

commented

What do you mean on the second bullet? Converting things to their digits? their bits? integer bits or double bits?

commented

@gamma-delta they almost certainly mean integer bits, although obviously that mght be a little impractical, since hexcasting's numbers are clearly doubles.