What does HackerNews think of rlwrap?

A readline wrapper

Language: C

Possibly more universal, but there are also tools like rlwrap [1] that adds readline support to programs that don't have it. From the docs apparently the readline library ships a similar tool ootb nowadays but I haven't tried that and just noticed now when I wanted to share the rlwrap link.

[1] https://github.com/hanslub42/rlwrap

Dropping a link to `rlwrap` in case anyone is not familiar with it:

https://github.com/hanslub42/rlwrap

Note that I've never tried it myself with the mysql/mariadb CLI, but I have used it with other tools, and it's brilliant.

Have you experimented with something like rlwrap? https://github.com/hanslub42/rlwrap
Not a huge fan of ML for the Working Programmer, personally. I'd love to see (or one day write) the equivalent of Practical Common Lisp (which itself needs an update at this point) because MftWP is sooo dated. But I can see how it's a decent enough intro.

Regarding your points:

1. Yeah editor support sucks. I normally edit in text mode with my own minimal keyword highlighting or ocaml-mode.

2. Poly/ML can definitely generate binaries! Most distros ship with `polyc` that will build the binary for you. But this is just a shell script around opening the REPL and calling some dump image function (like how you build a binary on SBCL). MLton and Poly/ML definitely allow you to build binaries. I don't know about SML/NJ.

3. For sure a pain. I use rlwrap [0] to work around this, which is ultimately simple enough!

4. Interesting! I personally find Haskell-style decorations so much more a pain since they're not inline. SML is very much like other major languages in the way it does inline types (TypeScript, Go, C#, etc.).

[0] https://github.com/hanslub42/rlwrap

for those that don't know it, rlwrap[0] is a neat tool that allows you to use a lot of the readline goodness with tools that don't support it natively (e.g. a repl for your newly written language).

[0] https://github.com/hanslub42/rlwrap