dtb trinity
trinity commented on issue bonsai/harakit#48 2024-02-08 22:42:13 -07:00
flip(1) – reverse data

I think reverse(1) would be fine.

An arbitrary delimiter list (e.g. `out hello world

trinity commented on issue bonsai/repo#15 2024-02-08 22:36:54 -07:00
Building Rust without Python?

Hmm. Forgot this is a kiss repo so it'll be cake either way. Never mind...

trinity commented on pull request bonsai/harakit#50 2024-02-08 16:38:57 -07:00
Add hru(1)

Why 1 and not a sysexit?

trinity commented on issue bonsai/repo#15 2024-02-08 16:37:51 -07:00
Building Rust without Python?

I was wondering if we could use this as our Python implementation - it might simplify things to have Rust dependency also be written in Rust.

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 commented on issue bonsai/repo#15 2024-02-07 06:45:22 -07:00
Building Rust without Python?
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…