News for hackers. Stuff that matters.
Re:Comby - Structural code search and replace for every lang... by feanaro on Tuesday May 17, 2022 @03:09PM (#31415101)
A more interesting comparison than with Coccinelle is with semgrep (https://semgrep.dev/) since it also supports semantic/structural pattern matching over a number of languages, but also adds in a bunch of Boolean logic into the mix, as well as some more advanced semantic features like constant propagation.

Curious whether the teams behind these tools are aware of each other? I suppose it's unlikely that they're not.

Re:Comby - Structural code search and replace for every lang... by carlmr on Tuesday May 17, 2022 @06:00PM (#31416810)
Comby works with C++, which to me is a great advantage.
Re:Comby - Structural code search and replace for every lang... by fourthark on Tuesday May 17, 2022 @11:13PM (#31418867)
Semgrep has "experimental" support for C++. My understanding is that the major gap with both C & C++ support is macros, which are really hard.
Re:Comby - Structural code search and replace for every lang... by LesZedCB on Tuesday May 17, 2022 @03:47PM (#31415504)
yeah i just discovered semgrep a week ago! i'll have to download this and compare.

i found the CLI features lacking in semgrep (vs using a yaml config), so maybe this will have more support there.