dtb trinity
trinity commented on issue bonsai/harakit#34 2024-02-01 20:21:18 -07:00
Name
  • bark (the part of the tree you can touch)
  • fruit (what you get from the tree)
  • bon
  • broots (bonsai's roots)
  • sticks
trinity commented on pull request bonsai/harakit#36 2024-02-01 17:34:12 -07:00
rpn(1)

I haven't run it on my machine, I just didn't see that it did that.

trinity commented on issue bonsai/harakit#21 2024-02-01 17:32:59 -07:00
rpn(1) - reverse polish notation
  • ^, `
trinity commented on issue bonsai/harakit#21 2024-02-01 17:30:15 -07:00
rpn(1) - reverse polish notation

When writing npc 1 2 * the shell automatically takes the asterisk as a wildard and it must be quoted. Should we do anything about this (i.e. have x be the multiplication operator when…

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

I would prefer evaluate() only because Python, shell, and Lisp have beaten terror at the sight of the abbreviation into me.

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

Can we emit argv[0] before printing errors?

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

Is this just every CalcType besides Val? Is there a better way to write that, e.g. match except Val?

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

I chipped in my thought on making sure rpn(1) functions like HP and Elektronika calculators when operating and this implementation satisfies me.

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

What's happening here?

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