Never mind, I looked it up and the HP 41C (basically the gold standard in terms of RPN calculators) is indeed y**x. It looks like Elektronika (which I was referencing, particularly the MK-61…
conv(1)
– convert data
Why would one tool do both character encoding conversion and number base conversion?
I figured exponentiating (is that the word?) x
to the power of y
(Python: x ** y
) would be more intuitive for existing RPN users (because this matches the operation on HP and Elektronika…
qi(1)
: The qi shell
Goodness... I think that would be a vector implementation. I don't know how to feel about it now.
Our flow control is still up in the air so ignore the weirdness besides let
and def
:
qi(1)
: The qi shell
On second thought def
when used without arguments should display variable usages. Here are some examples of its use to help explain it.
First let's set some variables:
; let a b
;…
qi(1)
: The qi shell
emma and i were discussing variable assignment and the potential usage of a
let
term, which is used to define terms. some pseudoishcode snippets from the conversation to elucidate on that a…
qi(1)
: The qi shell
Perhaps there should be a way to change which file is used for randomness, in the shell. Like a random_source
variable that expands to a file (like /dev/random
).
This could potentially be…
mix(1)
– randomly sort inputs
Maybe shuffle
?
Then you could do stuff like `for f in /media/audio/*; do scrut -f "$f" && out "$f"; done
qi(1)
: The qi shell
Accidentally tapped the button. That thought's incomplete and I'll finish it later.
qi(1)
: The qi shell
Alright, this is the continuation of my last comment.
The behavior of the traditional POSIX shell with regards to unquoted variable expansion is useful, sometimes, but usually unwanted and a…
qi(1)
: The qi shell
I have further thoughts on shell quoting.
When I think of program execution I think of the exec
function family in C's <unistd.h>
:…
qi(1)
: The qi shell
How will variables behave?
POSIX shell doesn't use variable declarations; any variable is the empty string at start (giving test -z
its utility).
We could copy that behavior but it sort of…
qi(1)
: The qi shell
The way POSIX shell does variable assignment is awful.
#!/bin/env -i /bin/sh
# ^^ don't inherit an existing environment
echo "$x" # unassigned (vars are "" by default), so it'll echo…
docs/scrut.1
: write man page for scrut(1)
I'm currently rewriting scrut(1) in Rust - a man page will accompany it. Expect this in a week or two.
si(1)
– SI unit converter
units(1) is a classic tool and one of few that is justifiably large - it has to support hundreds of units and conversions, with locales and upkeep to maintain unit accuracy. It's fairly user-friend…