News for hackers. Stuff that matters.
Re:10x Editor by ratorx on Tuesday January 03, 2023 @06:33PM (#34239695)
How does your custom parser implementation compares to something like Treesitter (which AFAIK is designed around the same goals of incremental parsing)?

Is the extra flexibility of having everything be custom worth it?

Re:10x Editor by stewartlynch8 on Tuesday January 03, 2023 @07:05PM (#34239954)
I've not used Treesitter so I couldn't say.

The incremental parsing is definitely worth it. Not having to wait for a full parse of the entire file on each edit is a game changer.

Re:10x Editor by ratorx on Tuesday January 03, 2023 @07:22PM (#34240110)
Oh, I was more asking about the (potential) advantage of not using Treesitter.

I’ve used the incremental parsing from Treesitter in Neovim (though not on any absolutely massive codebases) and found it to be great (when it worked). But I suspect this is immaturity in the ecosystem (one of the Neovim implementation, the parser definition or Treesitter itself).

Re:10x Editor by stewartlynch8 on Wednesday January 04, 2023 @08:20AM (#34245198)
As I say, I haven't used Treesitter so I can't say, but in my experience most options do not perform well on huge codebases (> 5 million loc)