Emma Tebibyte emma
emma opened issue bonsai/harakit#38 2024-02-01 19:11:30 -07:00
diff(1p) analogue
emma pushed to rpn at bonsai/harakit 2024-02-01 13:07:23 -07:00
0d97f81f49 rpn(1): unicode subtraction, multiplication, division & code cleanup
emma commented on issue bonsai/harakit#21 2024-02-01 12:39:24 -07:00
rpn(1) - reverse polish notation
  • ^, `
emma pushed to rpn at bonsai/harakit 2024-02-01 12:38:46 -07:00
b68f13acdc rpn(1): added floor division
emma commented on issue bonsai/harakit#21 2024-02-01 11:54:24 -07:00
rpn(1) - reverse polish notation

When writing npc 1 2 * the shell automatically takes the asterisk as a wildard and it must be quoted. Should we do anything about this (i.e. have x be the multiplication operator when parsing…

emma pushed to rpn at bonsai/harakit 2024-02-01 11:37:09 -07:00
42d268319e docs/rpn.1: added manpage
emma commented on pull request bonsai/harakit#36 2024-02-01 11:18:06 -07:00
rpn(1)

I’m currently writing rpn(1) and will be writing rpn(7) for a comprehensive guide to reverse polish notation as soon as I get around to it.

emma pushed to rpn at bonsai/harakit 2024-02-01 11:03:04 -07:00
f7108245ea rpn(1): more code cleanup
emma pushed to rpn at bonsai/harakit 2024-02-01 10:47:00 -07:00
34b9519e03 rpn(1): code cleanup
90ca10990f Makefile: fixed build
Compare 2 commits »
emma commented on pull request bonsai/harakit#36 2024-02-01 10:28:36 -07:00
rpn(1)

Implementing this would be at the cost of storing numbers as signed 32-bit integers before converting them to 64-bit floats, which would lessen the maximum size of the integers we can take.

emma commented on pull request bonsai/harakit#36 2024-02-01 10:17:09 -07:00
rpn(1)

Setting the float precision for rounding errors based on the machine epsilon

emma commented on pull request bonsai/harakit#36 2024-02-01 10:15:33 -07:00
rpn(1)
		match x {
			Val(x_) => stack.push_back(x_),
			_ => {
				ops.push_back(x)
			},
		}
	}
emma commented on pull request bonsai/harakit#36 2024-02-01 10:14:29 -07:00
rpn(1)

If the program does not do that on your machine, you are encountering a error that I cannot reproduce.

emma commented on pull request bonsai/harakit#36 2024-02-01 10:13:46 -07:00
rpn(1)

No reason to walk back the commit now that it’s been made

emma pushed to rpn at bonsai/harakit 2024-02-01 01:34:14 -07:00
f966233e19 Makefile: RUSTCFLAGS -> RUSTFLAGS
emma pushed to rpn at bonsai/harakit 2024-02-01 01:27:17 -07:00
5f8e90b592 rpn(1): added modulo
emma pushed to rpn at bonsai/harakit 2024-02-01 01:18:47 -07:00
5debb9d954 rpn(1): highest possible precision
emma pushed to rpn at bonsai/harakit 2024-02-01 00:58:22 -07:00
942e284f93 rpn(1): fixed exiting the program on EOF
emma created pull request bonsai/harakit#36 2024-02-01 00:42:49 -07:00
WIP: rpn(1)
emma created branch rpn in bonsai/harakit 2024-02-01 00:42:22 -07:00