News for hackers. Stuff that matters.
Re:Show HN: Hammerspoon 2 Beta 1 is released by cmsj on Sunday November 22, 2026 @08:50PM (#50606504)
If anyone is curious, I am the original maintainer of Hammerspoon.

The reasoning behind the rewrite and the change of configuration language is that the project is over 12 years old at this point, and was somewhere around 100k lines of Objective C and Lua that nobody really had any motivation to work on anymore, myself included.

Maintaining a bunch of ObjC that bridges native objects bidirectionally with Lua, is not a ton of fun.

Switching to Swift for the native parts means that I actually want to work on it, and using Apple's JavaScriptCore framework means we get the object bridging essentially for free.

I started work on this rewrite a little over a year ago and wrote the core of the app by hand, because I wanted to explore and understand how to build on top of JSC. I then wrote the first few modules myself so I could flesh out how the bridging lifecycles work, and ensure I had an architecture that could grow and scale.

Once I'd figured all of that out, I created agent skills that codified how modules should be written and how bridged types should behave. From there I've been using Claude to help create/port all the other modules.

I do not buy into the ideas like "no need to read the code" - I'm on the hook to support this for myself and others for the next 12 years, so I've read every bit of code Claude has written, and very often disagreed with it and redirected it.

It's been a ton of fun though, and I'm convinced that, as a spare time project, this would have taken me easily another year to do fully by hand.

Happy to answer any questions people might have!

Re:Show HN: Hammerspoon 2 Beta 1 is released by bradknowles on Sunday November 22, 2026 @09:15PM (#50606691)
Indeed, I was curious. I was only thinking about the efficiency of Lua and Objective-C from the customer perspective, and not whether that is any fun to continue to develop and maintain from your side. Now that you explain your reasoning, this makes much more sense to me!

Thank you for all your hard work you’ve already put in over the years, and I hope that we have many more years of fun and interesting stuff for you in the future!