AI is just so good for some coding problems. Especially when you're unfamiliar with the domain. I'm working on a Mac app to replace https://hammerflow.dev and bring keyboard shortcut joy to the masses, but I wanted it to be equally flexible
Comments
Log in with your Bluesky account to leave a comment
The app is a Tauri app, so most of the logic is in Rust which I'm only vaguely familiar with. To really get the flexibility of Hammerflow, people need to be able to write a little code that runs when they hit a keyboard shortcut. So I asked AI...
I asked it how to embed a javascript engine in my Rust app. It took about an hour to get a working example with rquickjs (I should've switched to Gemini 2.5 pro sooner and it would've been faster) but an hour is still so much faster than me by myself in Rust land
Even cooler, I asked it how to call a rust func from the JS. So I'm changing the brightness of my monitor by running a rust binary, that parses javascript, that calls back out to the rust, that runs a terminal command and returns the output back to the javascript. It's about to get fun out here
Comments