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

Will this work for non-decimal integers, e.g. 0x10 (16), 0o10 (8), 0b1 (2)?

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

Can this change be made independent of rpn(1) or is it necessary for rpn(1) in particular?

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

I'd like to see the bitwise operators and floor division from #21 included but all in all i think this is a good implementation and better than I could have done (or even intended to do).

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

Emma is working on this in #36.

trinity commented on issue bonsai/harakit#21 2024-01-30 07:37:00 -07:00
rpn(1) - reverse polish notation

I'm deciding, tentatively, with comments still desired:

  • integer-only; no decimals supported
  • +, - - addition and subtraction
  • *, ** - multiplication and exponentiation (see…
trinity created pull request bonsai/harakit#35 2024-01-29 22:38:53 -07:00
dj(1): fix getopt optstring
trinity commented on issue bonsai/harakit#22 2024-01-29 22:37:46 -07:00
swab(1) - swap bytes

My current conundrum is that there are multiple useful types of byte reversal:

  • reversing bits in a byte
  • reversing bytes within a certain block size (e.g. "swabbing" - swapping bytes within…
trinity created branch djfix in bonsai/harakit 2024-01-29 22:34:22 -07:00
trinity pushed to djfix at bonsai/harakit 2024-01-29 22:34:22 -07:00
271510476c dj(1): fix getopt optstring
trinity commented on issue bonsai/harakit#34 2024-01-29 16:24:17 -07:00
Name

That's true but using a generic name is perilous when the den is occupied by a giant. Consider uutils, which [is packaged as a great variety of names](https://uutils.github.io/coreutils/book/instal

trinity opened issue bonsai/harakit#34 2024-01-29 13:13:28 -07:00
Name
trinity commented on issue bonsai/harakit#8 2024-01-24 17:35:04 -07:00
qi(1): The qi shell

The "$()" pattern is horrid.

  • () - subshell
  • $() - oh wait, i need standard output
  • "$()" - oh wait, quoting

My ideal (Lisp!) shell syntax would be

$ echo "$(ls)"
.
..
…
trinity commented on issue bonsai/harakit#8 2024-01-24 16:31:10 -07:00
qi(1): The qi shell

Plan 9's rc(1) doubles quote runes to escape them:

; echo "foo"
foo
; echo ""foo""
"foo"
; echo ''foo''
'foo'

Which I've always felt is quite nice.

The reason sh(1p)'s…

trinity commented on issue bonsai/harakit#33 2024-01-23 19:58:05 -07:00
hru(1) – human-readable units

I'd like an option to set the maximum unit to use. Maybe the minimum too.

trinity created pull request bonsai/harakit#31 2024-01-17 21:07:26 -07:00
dj(1): fix typos in comments
trinity created pull request bonsai/harakit#30 2024-01-17 21:05:20 -07:00
dj(1): add copyright header in man page
trinity created branch djman in bonsai/harakit 2024-01-17 21:03:48 -07:00
trinity pushed to djman at bonsai/harakit 2024-01-17 21:03:48 -07:00
b7bd6a6e7b dj(1): add copyright header in man page
trinity created pull request bonsai/harakit#29 2024-01-16 00:09:59 -07:00
Makefile PHONYness fixes
trinity created branch makefile-fixes in bonsai/harakit 2024-01-16 00:07:20 -07:00