Carl M. Johnson

@carlmjohnson
12 Followers
62 Following
456 Posts
Carl has been making websites since the 90s.
bloghttps://blog.carlmjohnson.net
githubhttps://github.com/carlmjohnson/
PronounsHe/they
Got the first 500 words. Next the solutions half, someday.

Confucian sage Marty Krofft:

> As the fire engulfed a large portion of Goldwyn Studios, this A.P. ran up to near where Marty was and yelled, "We may be able to save some of the sets!" Marty, he told me, instantly yelled, "Fuck the sets! Make sure nobody gets hurt!" And nobody got hurt.

https://www.newsfromme.com/2023/11/25/marty-krofft-r-i-p/

https://ctext.org/dictionary.pl?if=en&id=1350

Marty Krofft, R.I.P. – News From ME

Is tonight the night I am finally annoyed enough by the Discourse around "Web Components" to write a sequel to https://blog.carlmjohnson.net/post/2020/web-components/? We'll see.
The failed promise of Web Components

Web Components are failed solutions to the wrong problems

Get wrecked Chompi. KO II is my new best friend. https://youtu.be/88Apt7lhY64?si=HW07atUywS833Slm
EP-133 K.O. II by teenage engineering - performance demo

YouTube

Embeddings: What they are and why they matter

https://simonwillison.net/2023/Oct/23/embeddings/

I took my recent PyBay talk and turned it into the most comprehensive answer I could possibly provide to the question "What are embeddings?"

Embeddings: What they are and why they matter

Embeddings are a really neat trick that often come wrapped in a pile of intimidating jargon. If you can make it through that jargon, they unlock powerful and exciting techniques …

Israel's Evacuation Order Is a Prelude to Disaster

The displacement of more than a million people in the middle of what is already a dire humanitarian crisis would be a massive crime in itself.

Eunomia
ASCII protocol buffers as config files

Less than a year until the Bell Riots https://bellriots.netlify.app
How Long Until the Bell Riots?

It also helps for the very common case of setting the first non-zero string:

someval := cmp.Or(os.Getenv("MY_VAR"), "default")

cmp.Or is very simple. It returns its first non-zero argument.

This turns out to be very handy for comparisons:

// Sort by Field1 ASC, Field2 DESC
return cmp.Or(
cmp.Compare(a.Field1, b.Field1),
cmp.Compare(b.Field2, a.Field2),
)