James Cash 🍍

@jamesnvc
62 Followers
57 Following
359 Posts
I make computer things in Toronto, mostly in Clojure. I powerlifting, strongman, and Highland Games How are you?
New Placehttps://fosstodon.org/@jamesnvc
PronounsHe/Him
Websitehttps://occasionallycogent.com
Workhttps://bloomventures.io
Finally leaving the mastodon.social nest & moving to @jamesnvc
Account moving doesn't seem to be working, so I guess I'll just set up a redirect & folks can manually re-follow if they care to
@aphyr I have very rarely laughed out loud reading code, but your stuff always gets me 😁
@aphyr I love your latest "* the Technical Interview" so much <3
Reading Grundrisse right after perusing the Emacs mailing list, I briefly parse "C-M-C" as "Control-Meta-C" (as opposed to Commodity-Money-Commodity) and for a moment lose the ability to distinguish Karl Marx & Richard Stallman
Why is logging in to Bitbucket such a miserable experience. Do these "enterprise"-y websites actively try to make logging in some horrible puzzle you need to solve?
Seems unbelievable to me that that's no nice, high-level socket library for macOS, but 🤷
Lesson learned: Apple's "high-level" SocketPort (which still takes raw sockaddr structs & AF_* ints) doesn't actually work for arbitrary messages, I guess, just silently drops them. Have to use the basic socket/bind/accept/recv to actually use a socket. Swift, of course, makes doing this sort of low-level pointer passing & casting a delight 🙃
Trying to make a simple macOS app that uses a Unix socket has become an unremitting nightmare. Docs are awful -- just like "`type: Int32` - the type of the thing; "`address: Data` - the address in a Data object". It also appears that literally no-one else has attempted to build something like this, judging by search results. Ugh.

[Dracula at the blood donation drive]

nurse: Have you ever had any sexual contact with a man?

Dracula: What is a man?!

nurse, sighing heavily: Sorry, sir. Have you ever had any sexual contact with a miserable little pile of secrets?

I tried to write an explainer for continuations, as a way to figure out how continuations work in Prolog. Hopefully this makes sense to someone else https://occasionallycogent.com/continuations_in_prolog/index.html
Continuations in Prolog