dtb trinity
trinity commented on issue bonsai/coreutils#21 2023-12-30 03:53:56 +00: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/coreutils#21 2023-12-30 03:46:50 +00:00
rpn(1) - reverse polish notation
trinity commented on issue bonsai/coreutils#8 2023-12-30 03:30:01 +00: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/coreutils#19 2023-12-30 02:51:36 +00: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/coreutils#15 2023-12-29 20:31:24 +00: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/coreutils#15 2023-12-29 20:27:29 +00: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/coreutils#13 2023-12-29 20:09:07 +00:00
C Style

Why was this closed?

trinity commented on pull request bonsai/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:36:47 +00:00
fop(1) and Rust sysexits support (no yacexits!)

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

trinity commented on pull request bonsai/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:36:47 +00: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/coreutils#18 2023-12-28 23:33:48 +00: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/coreutils#18 2023-12-28 23:26:45 +00: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/coreutils#17 2023-12-28 23:21:07 +00:00
simexec(1)

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