dtb trinity
trinity commented on issue bonsai/harakit#21 2023-12-29 20:53:56 -07:00
rpn(1) - reverse polish notation

Some questions regarding design:

  • How should numbers be represented internally? (float, fixed point, integer only)
  • What operations should be supported?
    • obviously +, -, * -…
trinity opened issue bonsai/harakit#21 2023-12-29 20:46:50 -07:00
rpn(1) - reverse polish notation
trinity commented on issue bonsai/harakit#8 2023-12-29 20:30:01 -07:00
qi(1): The qi shell

Both Emma and I plan to have math be in a separate utility or utilities and not built into the shell at all.

trinity commented on issue bonsai/harakit#19 2023-12-29 19:51:36 -07:00
ASV in Bonsai

I had a number of qualms about ASCII separated values I've answered for myself.

Another concern that has been brought up a number of times is that some fonts do not print the ASCII field…

trinity commented on issue bonsai/harakit#15 2023-12-29 13:31:24 -07:00
dj(1) - disk jockey

Actually - not truncating the output file should be the default. Truncation can be achieved easily:

dj -i in > out # through stdout and a shell redirect
>out; dj -i in -o out # the same…
trinity commented on issue bonsai/harakit#15 2023-12-29 13:27:29 -07:00
dj(1) - disk jockey

Some thoughts about dj(1) I have today.

Some dd(1p) behavior I find interesting:

  • If a partial block is read (e.g. read(fd, buf, ibs) < ibs) dd(1p) operates on that block in particular.…
trinity commented on issue bonsai/harakit#13 2023-12-29 13:09:07 -07:00
C Style

Why was this closed?

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Why define EXIT_FAILURE here? It's already in the C standard library. Unless this is for Rust purposes specifically.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

It would be nice to have a further level of indent to indicate the pipeline within the "$( )". I have a hard time reading this.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Multiple pipeline statements on the same line also make this a little tricky for me.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Why $$ here? I can't quite follow.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Can cpp not take a relative path? It can be safely assumed that a Makefile is executed with PWD being the Makefile's parent directory. Why pass $PWD/path literally versus the path itself with the shell doing the variable expansion?

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

It would be better to check that there are enough arguments before anything else to avoid unnecessary operations.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Perhaps we should have a defines.h to set magic numbers like the ASCII record separator as the delimiter.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

I think it would be better to have ASCII horizontal tabs as the delimiter if standard output is a tty so output is readable in all fonts and on all terminals. At least npc(1) exists.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

The code probably runs (I haven't tested compiling yet) but I hope you heed my suggestions.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:33:48 -07:00
fop(1) and Rust sysexits support (no yacexits!)

I think it would be better to have ASCII horizontal tabs as the delimiter if standard output is a tty so output is readable in all fonts and on all terminals. At least npc(1) exists

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:26:45 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Multiple pipeline statements on the same line also make this a little tricky for me.

trinity commented on issue bonsai/harakit#17 2023-12-28 16:21:07 -07:00
simexec(1)

futzing; utilities that aren't useful except to break things (hell yeah).