Hey HN! I've been playing around with Apple's CoreML framework for some personal projects, and wanted to see how it might work in a CLI context. This is really just something fun I did over the weekend for sh*ts and giggles. I hope you enjoy!
It may have taken 56 years, but this comprehensively resolves the question about whether shell is better than GUI in favor of shell. Thanks to the endless composability of shell, just this one program finally fixes the biggest flaws in text file handling in Unix, but the GUI equivalent would be quite complicated and composes poorly. This vindicates all of the original developers of UNIX once and for all.
This made me grin and I love that it did. Sometimes our profession can be a little short on whimsy and I think projects like this are actually really important! I’m looking forward to using this :)
my major and minor complaints are, in order:<p>tee does something very specific, it makes an unmodified copy into a file (one branch of the plumbing tee-joint) as it passes the stream to stdout (the other branch); as opposed to sed or awk or even grep, et al, which modify the stream. How in hell is this inspired by tee which does not modify its inputs?<p>and who capitalizes Tee?
Does it produces the infamous emoji if a certain expletive occurs in the input?<p>By the way, I use that emoji to test whether astral planes are handled correctly.<p>I need to recover from the cognitive dissonance now...
/usr/local/bin/teemoji: line 2: /usr/local/Cellar/teemoji/0.0.4/libexec/teemoji: Bad CPU type in executable<p>:sadface:
The following is a "Get off my lawn!" comment:<p>When I was in kindergarten there were tasks where you'd get a paragraph of text where you had to fill in blanks, and next to those blanks were pictograms of whatever noun was expected.<p>Whenever I see people overuse emojis, for example "Yesterday we flew [plane emoji] to Japan [Flag of Japan] and took the train [bullet train emoji] and saw Mt. Fuji [emoji of Mt. Fuji]", I always think, "This person is still in kindergarten."...
This is so cute and funny and interesting. Thanks for making and sharing.<p>I was doing `echo cat | teemoji` tests and it would work, but ironically 'echo happy face | teemoji` and the like didn't work so well for many other obvious single-word emojis. But it did a "checkered flag" for "I got the job done".
I wish I could get this on Linux </3 Any ideas how to get there (without reaching out to network apis, like openai)? I assume since it's built on Apple's CoreML framework it's not possible?
I feel like this defeat the goal of emojis and icons: highlight important informations for our brain to process. This is just an overwhelming amount of emojis for me, but I guess it has its usecases
My RSS reader has an autoposter to post to Mastodon where I always try to choose an appropriate emoji for a post<p><a href="https://mastodon.social/@UP8" rel="nofollow">https://mastodon.social/@UP8</a><p>I've been thinking about training a model, maybe a T5 to automate the task. I've tried asking Microsoft's Copilot to do it, and it is <i>ok</i> but makes decisions that I wouldn't make. I argued with it a lot and couldn't get it to draw ⁰₀⁰₀⁰ as an imitation Olympics logo and had to do it myself.
This is really cute! thanks for sharing :)<p>if I may offer a small nitpick for feedback, I am seeing wrench emojis on empty lines which create a lot of noise.<p>If you are interested in PRs (and making the change) I might try to take a look at the code and see if it's possible for me to contribute this to it.