Spent the night trying to figure out how to round a number in 1th with @strstr. We figured it out after a couple of hours.
clr 256 512 / dup dup 1 mod sub swp dup vid swp pop swp vid mod 2 mul swp div dup 1 mod sub add .
@strstr I just learn that when you invert a fraction, what you get is called a reciprocal.
A fraction * reciprocal = 1
@neauoire and thus, since any non-zero number divided by itself always gives 1, a fraction * reciprocal = 1
@neauoire Ew! 😂 😂
Did you have a chance to look at https://mastodon.social/@akkartik/105115240660835365 yet?
@neauoire Yeah. Partly testing the foundations, partly trying to show that it can be used for interesting research in spite of not having graphics. Plus it's an idea I've gotten interested in. https://mastodon.social/@akkartik/104896128141863951 describes the motivations and influences a bit. Basic idea is to see how far I can go without any stack-manipulation commands like `dup` and `swap`, since they feel like accidental complexity.
@neauoire Awesome. I just added some more guidance to the bottom of https://github.com/akkartik/mu/blob/main/apps/tile/README.md
@neauoire I see you ran into a known bug there with the negative number :) I'm still unsure what the best way is to represent and manage errors.
@akkartik btw, if you ever want to get off mastodon.social, let me know. I think you'd be a good fit for Merveilles.
@neauoire I'd be honored to join Merveilles! Been finding lots of interesting people to follow through you.
@strstr yeah! Variables are a single letter tho, didn't want to implement a true dictionary, it's just 256 values addressable by key.
@neauoire right. also the "by" made no sense in my example what am i thinking. aaah the semantics of vidision.
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.