News for hackers. Stuff that matters.
Re:Parinfer: Simpler Lisp Editing by mkreis on Monday January 20, 2025 @07:00AM (#42767785)
This is really nice, and I am impressed how much effort went into the documentation, to make the demo nice and interactive.

At first I thought this is something new, because it's cool and I haven't heard of it, even though I'm coding in Clojure for about 3 years now. But this project is already 10 years old and hasn't received much attention for the last few years, which is a pity. I wish it was coming with Calva, my favorite Clojure tooling in VS Code.

Re:Parinfer: Simpler Lisp Editing by diggan on Monday January 20, 2025 @07:22AM (#42767954)
> I wish it was coming with Calva, my favorite Clojure tooling in VS Code.

You have this basically already. When you move forms in/out on the indentation levels, notice how the brackets/parenthesis automatically re-arrange themselves? That means it's working :) https://calva.io/parinfer/

Re:Parinfer: Simpler Lisp Editing by mkreis on Monday January 20, 2025 @07:42AM (#42768114)
Thanks for the link. Unfortunately it seems it is currently removed due to unclear bugs.
Re:Parinfer: Simpler Lisp Editing by diggan on Monday January 20, 2025 @08:35AM (#42768564)
Damn, you're right, I didn't notice the notice, nor am I a daily Calva user.

But so what, is there no automatic balancing of parenthesis in Calva? That seems to diminish the value from the extension by a lot, I couldn't imagine coding Clojure and having to manually balance parenthesis.

Re:Parinfer: Simpler Lisp Editing by simongray on Monday January 20, 2025 @07:12AM (#42767884)
AFAIK Calva does have a Parinfer implementation.
Re:Parinfer: Simpler Lisp Editing by fnordsensei on Monday January 20, 2025 @01:45PM (#42771727)
Something about VSCode makes it hard to add in. I think it lacks the right APIs.

Also, the main maintainer of Calva doesn’t use Parinfer, and so isn’t very motivated to add it either. But if someone were to contribute it, I imagine he’d be very receptive.