Hacker News new | ask | show | jobs
by SeanSullivan86 72 days ago
Wouldn't you also need to keep track of the stack's size, to know if there are leading zeros?
1 comments

For trailing zeros yeah, or if you care for stack overflow/underflow. Here's a few primitives if you wanna try it out:

https://paste.sr.ht/~rabbits/cd2369cc7c72bfad0fcd83e27682095...