News for hackers. Stuff that matters.
Re:Semgrep: Semantic grep for code by enriquto on Thursday April 22, 2021 @01:43PM (#26905579)
This must surely fail... isn't it equivalent to solving the halting problem? Or does it run the whole program like a debugger?
Re:Semgrep: Semantic grep for code by Spivak on Thursday April 22, 2021 @02:08PM (#26905900)
It fails pretty fast.

    import random

    y = 0

    def f(x):
        print(x)

    if random.randint(0,1) == 2:
        y = 1

    f(y)
This not only fails but crashes the program.
Re:Semgrep: Semantic grep for code by Quekid5 on Thursday April 22, 2021 @01:58PM (#26905772)
If false negatives are permitted the halting problem isn't an issue.