I’m not a bot.

  • 44 Posts
  • 370 Comments
Joined 7 months ago
cake
Cake day: January 21st, 2025

help-circle


  • Some very quick, superficial differences:

    • ast-grep uses tree-sitter for understanding languages

    • ast-grep is written in Rust

    • ast-grep uses YAML for config

    • ast-grep more normal --flags

    • comby doesn’t use tree-sitter and does it’s own thing… not sure what to think of this approach

    • comby is written in OCaml

    • comby uses TOML for config

    • comby uses -single-dash-flags

    • both have online playgrounds for testing

    I personally hate YAML, so it’s comby for me! (For now.)

    Also, here’s what Comby says about its approach to matching: https://comby.dev/docs/faq

    Underneath the hood, Comby uses no tree definition, but turns patterns into an executable routine (a language-aware parser) where the tree structure is implicit in this executable routine. In theory, the syntax matched by this routine could dump a serialized parse tree, but this isn’t implemented :-). With this design, Comby sacrifices this ability to recognize many predefined language constructs in order to support a more freeform pattern writing and matching process. This loses precision for deeply recognizing all of a program’s structures, and may fall short of your needs depending on your use case.
















  • IDE users pretending compilers don’t exist.

    $ guix shell gcc
    
    [env]$ g++ test.cpp 
    test.cpp:4:16: warning: `0;' is not in NFC [-Wnormalized=]
        4 |         return 0<U+037E>
          |                ^~~~~~~~~
    test.cpp: In function ‘int main()’:
    test.cpp:4:16: error: unable to find numeric literal operatoroperator"";’
    test.cpp:4:18: error: expected ‘;’ before ‘}’ token
        4 |         return 0;
          |                  ^
          |                  ;
        5 | }
          | ~
    

    Look ma, no IDE! 😸








  • paequ2@lemmy.todaytoFuck AI@lemmy.worldvibe physics
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    18 days ago

    Damn, I just realized the video is 40 minutes long! I watched all of it. So damn on point.

    Of course I know about the hallucinations and I’ve had to correct its basic math, but now that we’ve moved past the physics that I understand, it’s amazing!

    This ^^^ 1,000 times this!!! ^^^ I’ve had so many people tell me this before…