$ ./lisp0/target/release/lisp0 src/test-lt-gt.l0 [true] [true] [nil] [nil] [nil] [nil] [true] [true] [nil] [true] [nil] [true]
https://files.mastodon.social/media_attachments/files/114/310/155/602/750/536/original/1c1a8a4a8377663a.png
Anyway, I like testing things before I use them, so after implementing my "if" and "while" I decide to write a simple Fizzbuzz program. This causes me to immediately realize—
I FORGOT TO IMPLEMENT > AND <
I just forgot!! Fortunately I *did* include bit arithmetic ops, so I implement <, >, <=, >= in userland as well, by testing bit (1<<63) as a proxy for 2's compliment negative. This is actually a little worrisome. I'm not sure if this code truly "works" or if I'm just leveraging UB in Rust.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.