dtb trinity
trinity commented on issue bonsai/harakit#19 2024-02-07 07:26:27 -07:00
ASV in Bonsai

Relevant: https://github.com/SixArm/usv

They seem to believe they have monopolized Unicode Separated Values:

The USV project aims to become a free open source IANA standard, much like the…

trinity commented on pull request bonsai/harakit#36 2024-02-07 07:05:32 -07:00
rpn(1)

division

trinity approved bonsai/harakit#36 2024-02-07 07:05:32 -07:00
rpn(1)

I've suggested minor fixes but the code looks alright.

trinity commented on pull request bonsai/harakit#36 2024-02-07 07:05:32 -07:00
rpn(1)

It's less in accord with IEEE 754 and more that we are applying IEEE 754 (or, more specifically, Rust is - and even then, it's the processor itself I think that is doing the floating point operations). I would say "Due to IEEE 754 (the IEEE Standard for Floating Point Arithmetic) limitations, rounding errors may occur. And not "in line" with the standard but simply "that can be represented".

trinity commented on pull request bonsai/harakit#36 2024-02-07 07:05:32 -07:00
rpn(1)

I don't like the use of the Unicode apostrophe here because it could mess with literal text lookups. Nobody likes a No occurrences of "doesn't" because of fancy rune voodoo.

trinity commented on pull request bonsai/harakit#36 2024-02-07 07:05:32 -07:00
rpn(1)

"either from given arguments, or, in their absence, standard input" - right now you have "parse" twice in there which feels weird.

trinity commented on pull request bonsai/harakit#36 2024-02-07 07:05:32 -07:00
rpn(1)

I believe the past tense of "output" is "output" - also, I'm having a hard time understanding what you're trying to convey here - shouldn't rpn print the last number on the stack? It sounds like it prints the last result of any algebraic operations but ignores further given numbers.

trinity commented on pull request bonsai/harakit#36 2024-02-07 07:05:32 -07:00
rpn(1)

"If arguments are passed to rpn" reads cleaner to me but I can't put my finger on why.

trinity commented on pull request bonsai/harakit#36 2024-02-07 07:02:11 -07:00
rpn(1)

I think ** should be allowed, it's a common name for the operation.

trinity closed issue bonsai/harakit#41 2024-02-06 22:42:20 -07:00
rtfm(1) - manual pages
trinity commented on pull request bonsai/harakit#45 2024-02-06 22:36:54 -07:00
Makefile: removed configure and made library builds better

Should this be a RUSTFLAGS flag?

trinity commented on issue bonsai/harakit#8 2024-02-05 16:26:53 -07:00
qi(1): The qi shell

Should piping be done by the shell?

I've had an old program idea that I'm still working on called pspipe(1) - it pipes given commands. So pspipe [ cat ] [ less ] is equivalent to `sh -c 'cat…

trinity commented on issue bonsai/harakit#21 2024-02-04 10:00:54 -07:00
rpn(1) - reverse polish notation

We discussed bitwise operators not being useful for this calculator as it's floating point. I'm working on another RPN implementation (srpn(1) - simpler rpn) that might be nice for an Extras…

trinity commented on issue bonsai/harakit#21 2024-02-04 09:55:57 -07:00
rpn(1) - reverse polish notation

Comparisons might be tricky because it's hard to compare floating point numbers. 0.3 doesn't always equal 0.3 bit-by-bit. Maybe it would be better to have a ~= for equality ± some value and…

trinity deleted branch manpg from bonsai/harakit 2024-02-03 21:35:39 -07:00
trinity commented on issue bonsai/harakit#44 2024-02-03 21:35:21 -07:00
scroll(1) – pager

I have a particularly bad one in my source tree. It was less useful once I'd figured out I could scroll my xterms but nowadays I just use…

trinity commented on issue bonsai/harakit#41 2024-02-03 21:25:49 -07:00
rtfm(1) - manual pages

Could # headers be specifically for title/section metadata?

For example, roff:

.TH  PAGE 1

and my proposed equivalent usage in doc:

# PAGE(1)

Or PAGE 1 or…

trinity commented on issue bonsai/harakit#43 2024-02-03 21:04:17 -07:00
format(1): formatting strings for ouput

I see your point and agree.

trinity commented on pull request bonsai/harakit#36 2024-02-02 21:00:08 -07:00
rpn(1)

n can only ever be Invalid.