Comment by nwhitehead
14 hours ago
"the smart thing to do is to give integers zeros as their tag bits, because then, adding or subtracting two shifted integers remains a plain add or sub machine instruction"
this is brilliant, love it. stealing this idea immediately.
Yep, felt quite stupid when I heard this ages ago and hadn't thought of it (Iirc in an old IRC chat about Maximes old Higgs runtime), from my memory V8 did this from day 1.
Ocalm also has 63bit integers in case you want other implementations in the wild.