News for hackers. Stuff that matters.

errnil

Show HN: Make Any CLI into a GUI in Acme

https://github.com/hherman1/I

Hey HN.I've become enamored with the Acme editor. It's fascinating because it turns the Vim paradigm on its head: instead of maximizing your use of the keyboard, maximize your use of the mouse.I think this helps optimize for information management, as opposed to text manipulation.I realized a lot of the CLIs I use have the same structure, and with a small program I could convert them into GUIs...

( Read More... | 3 comments | 9 points | on HN )
Re:Show HN: gq – like jq or zq, but you use Go on Wednesday April 27, 2022 @01:58PM (#31183481)
Actually `gq` does not require a locally installed Go compiler. It interprets the supplied Go using Yaegi.
Re:Show HN: gq – like jq or zq, but you use Go on Wednesday April 27, 2022 @01:24PM (#31182986)
:) Thank you! It was fun to write.
Re:Show HN: gq – like jq or zq, but you use Go on Wednesday April 27, 2022 @01:05PM (#31182676)
No doubt this tool is lacking. However I will say that for me the most important quality in my `jq`-like is not conciseness. My main frustration is that I always forget the small details of how `jq`'s language works and spend 10 minutes googling. E.g doing operations within arrays of objects, using select, and so on. Maybe I'm just dumb, but I'm fond of tools that accommodate my dumbness!
Re:Show HN: gq – like jq or zq, but you use Go on Wednesday April 27, 2022 @12:36PM (#31182227)
Precisely. The first pass generated a temp file and compiled/ran it, but that lead to annoying pauses when trying to run simple scripts (probably 500ms latency? Maybe a tad more?). Yaegi cut that latency dramatically. I think you’re right that this may make it slower for larger scripts or for sufficiently large inputs, however the biggest bottleneck for me with jq isn’t performance but learning it’s language repeatedly.