Hammerspoon maintainer here - I'm enjoying reading all the comments, and hoping that everyone isn't going to be annoyed that I'm mostly working on a v2 atm, which switches from Lua to JavaScript :D

Hammerspoon is basically my only reason to write Lua, a language which I really like. I am sure JavaScript is a more pragmatic choice but I will be slightly saddened by it regardless.

Agreed, I never considered it a selling point but I did enjoy having an excuse to explore the language in Hammerspoon (and Neovim too).

>Hammerspoon maintainer ..

Yay! :D

>.. enjoying ..

:)

>Lua to JavaScript

:\

Well, I have been a long user of Hammerspoon, and Lua, so thanks for the great app, it made a difference for me for a long time .. would be happy to hear why, but don’t feel obliged, the switch to JS over Lua, but anyway, thanks again!

> a v2 atm, which switches from Lua to JavaScript :D

Presumably that'll be released in [checks calendar] 18 days?

Thank you for your work on Hammerspoon! I’ve been using it for years.

Would you mind elaborating on your vision for v2? Was there a certain limitation in the previous architecture that you’re trying to avoid this time around? Was there something in particular that drew you to choosing JavaScript for this version?

Will this lead to some synergy with AppleScript, which added JavaScript a few years ago?

Can't wait for the JS switch! Personally, it's having to figure out Lua is what's kept me away from it... :)

Lua in HS is what motivated me to finally learn a lisp (Fennel).

What’s so hard to figure out about Lua if you already know JS?

Lua is a better JS.

/ducks

I love Hammerspoon!! here's my one handed shortcuts for window control across multiple monitors: https://gist.github.com/pazimzadeh/b1c70f5f205d0b63264e7c021...

What will v2 enable??

Hmm I already avoid Lua by writing in Fennel, I’ll probably avoid the JS by writing… what Lisp compiles to JS, ClojureScript?

Have you though of some more modern language agnostic solution like wasm plugins users could write in anything, with the help of typed languages if they like? Or is that not feasible for a scripting project like this?

I'm curious if the switch was for dev ergonomics or the mindshare of the languages?