• soc@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    3 months ago

    The whole TreeSitter architecture is such a trash fire, the faster people stop building things with it, the better.

      • soc@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        2
        ·
        3 months ago

        It’s layers and layers of indirections with no clear need and technical decisions that make things unnecessarily complex.

        So your basically writing Regexes in a custom DSL in JavaScript, combined with custom hooks written in C, from which a megabytes-large native-code parser is generated.

        The complexity of the solution does not fit the niche between dead-easy TextMate grammars and plugging into an LSP.

        Don’t misunderstand me, I wish there was something filling that niche, but TreeSitter 100% certainly isn’t it.