News for hackers. Stuff that matters.
Re:VimGraph by thornton on Monday November 03, 2025 @08:53AM (#45798948)
This is one of those times when I want someone to explain the value to me. Like is this to help coding agents be more efficient?

Forgive my ignorance!

Re:VimGraph by qsort on Monday November 03, 2025 @08:58AM (#45798994)
I believe that's mostly for fun. Coding agents wouldn't need to interact via the same interfaces humans use, they'd be given a tool to read and write files and they'd be fine with that.
Re:VimGraph by fnfs2000 on Monday November 03, 2025 @10:11AM (#45799901)
They're literally using diff/patch under the covers, at least the setup i'm currently using.
Re:VimGraph by andai on Monday November 03, 2025 @11:21AM (#45800744)
Did you get them working with diff syntax? I couldn't figure it out, so I just tried a bunch of agentic programs, found a few that actually worked, and it turned out they all use search/replace strings. There's probably other ways to do it but it seems basically everyone settled on that.

I've been trying that with smaller models and had to make some adjustments (e.g. they all really wanted to include the filename twice). So I just make a small tweak and bam suddenly I can edit code with small fast cheap models.

Re:VimGraph by zero_bias on Tuesday November 04, 2025 @04:23AM (#45808986)
Unfortunately, this characterizes the entire project: "cool" examples with no practical utility. Meanwhile, the language itself is incredibly strange (functions via patterns are an example of strange language choice), extremely slow, and very unstable.

In short, it's developing in the wrong direction.

I switched from Mathematica to Matlab in my work; it was the best investment of time in the entire project

Re:VimGraph by lieuwex on Tuesday November 04, 2025 @04:49AM (#45809134)
This function is user contributed. It's not official.
Re:VimGraph by tantalor on Monday November 03, 2025 @09:57AM (#45799712)
The thought of forcing the AI to use vim gave me a nice chuckle. Thank you sir.
Re:VimGraph by d-lisp on Monday November 03, 2025 @11:02AM (#45800504)
I found chatGPT to be bad at VimGolfing.

``` Here is a 35 keystrokes solution that beat your 36 keystrokes solution ! <89 keystrokes> ```

And then it keeps looping in the same way if you ask it about the seahorse emoji (or sometimes just lie about the keystrokes number).

In fact that's not surprising, what is rather surprising is that some of the solutions actually work (>= 100 keystrokes)

Re:VimGraph by bee_rider on Monday November 03, 2025 @12:05PM (#45801367)
They should probably train LLMs to be bad at vim golf. The whole point of vim’s funky language is that human keypresses are very valuable and should not be wasted. Saving keystrokes for an LLM is a non-goal at best.
Re:VimGraph by utopiah on Monday November 03, 2025 @08:55AM (#45798970)
I guess it's to win at Vim Golf, i.e. how does one get more efficient.