Plurrrr

Sun 09 Apr 2023

shell-maker, a maker of Emacs shells

There was quite a bit of code duplication between the two Emacs shells I had just written. At the same time, I started hearing from folks about integrating other tools, some cloud-based, some local, proprietary, open source.. There's Cody, invoke-ai, llama.cpp, alpaca.cpp, and the list continues to grow.

With that in mind, I set out to reduce the code duplication and consolidate into a reusable package. And so shell-maker was born, a maker of Emacs shells.

Source: shell-maker, a maker of Emacs shells, an article by Álvaro Ramírez.

Closing a stale SSH connection

Suppose you’re connected to a remote host with SSH and after a while the SSH session goes stale. The terminal is unresponsive and no keypress seem to take effect. There might be something with the network, the remote host is restarting or maybe your machine has been in hibernation, there could be multiple reasons for a stale session.

The first solution that might come to mind is to just close the terminal emulator and create another one, but there is a better way.

Source: Closing a stale SSH connection, an article by David Isaksson.

How To Write Fast Rust Code

I did a line-for-line port of my eval library from Go to Rust, and right away it was 5x faster; I was pretty happy. But when I tried to further improve performance using techniques from other languages, it got slower... and the harder I tried, the slower it got! Rust performance was not intuitive to me.

Finally, after learning why my code was slow, I was able to boost performance 12000x, and my library was worthy of a new name: fasteval.

Source: How To Write Fast Rust Code, an article by Christopher Sebastian.

Cocaine Bear (2023)

An oddball group of cops, criminals, tourists and teens converge on a Georgia forest where a huge black bear goes on a murderous rampage after unintentionally ingesting cocaine.

In the evening Alice, Esme, and I watched Cocaine Bear. I liked the movie a lot and give it an 8 out of 10.