semantic-source VS critbit

Compare semantic-source vs critbit and see what are their differences.

semantic-source

Parsing, analyzing, and comparing source code across many languages (by github)

critbit

Critbit trees in C (by agl)
Our great sponsors
  • JetBrains - Developer Ecosystem Survey 2022
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
semantic-source critbit
17 2
8,375 302
0.8% -
9.6 0.0
19 days ago 6 months ago
Haskell C
MIT License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

semantic-source

Posts with mentions or reviews of semantic-source. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-04.
  • 11 Companies That Use Haskell in Production
    7 projects | dev.to | 4 May 2022
    GitHub used Haskell for implementing Semantic, a command-line tool for parsing, analyzing, and comparing source code.
  • What happened with GitHub's semantic project?
    3 projects | reddit.com/r/haskell | 29 Jan 2022
    As far as engineering effort, you can read this GitHub comment for an overview of where we’d like to take the project in the future. The tl;dr here is that the open sum type view of the world made it very concise to fold over syntax trees (since such a view of data is ultimately unityped, recursion schemes Just Work), but the tradeoff thus associated—namely, that you have to parse a concrete syntax tree into an open-sum view (a complicated and painful-to-read process), that you can never really be sure how a given syntax tree is shaped, and that the types don’t help you nearly as much as they could—proved to be too onerous to deal with. Going forward, we’re generating syntax types from the AST once per target language, and working on an abstraction (probably via this generated code; I made five separate efforts at using Generics for this, and failed every time) that recovers at least some of the convenience of recursion schemes. It turns out that recursion schemes over a mutually recursive syntax tree—as pretty much every language’s syntax trees are, in practice—are pretty much an unsolved problem, especially when extended to languages like TypeScript, which have hundreds of different syntax nodes.
    3 projects | reddit.com/r/haskell | 29 Jan 2022
    I'm just curious. It seems there hasn't been much activity in https://github.com/github/semantic Is GitHub still using semantic it to power some code navigation features? Has it been abandoned or is there some successor project that has taken its place? Is there any writeup / lessons learned about this project?
  • Stack Graphs
    6 projects | news.ycombinator.com | 9 Dec 2021
    is this from Github semantic (https://github.com/github/semantic)?

    Seems very suspicious since it’s the same goal using the same technologies. The latest commit is 4mo ago but i assume they have a closed-source version they’ve been working on.

    6 projects | news.ycombinator.com | 9 Dec 2021
    Meanwhile their Tree-Sitter-based semantic parser[1] looks abandoned. There is even rotting for years pull request[2] adding support of the same stack graphs into it.

    [1] https://github.com/github/semantic

    [2] https://github.com/github/semantic/pull/535

  • Cardano relying on Haskell is not bad at all
    1 project | reddit.com/r/cardano | 30 Nov 2021
    The semantic team at GitHub uses it for statically analyzing the dozens of languages that end up in GitHub repositories: https://github.com/github/semantic/blob/eaf13783838861fe5eb6cd46d59354774a8eb88d/docs/why-haskell.md
  • 7 Useful Tools Written in Haskell
    1 project | reddit.com/r/functionalprogramming | 3 Nov 2021
    Yesterday I was looking for some examples of projects using tree-sitter (which is C) when I found GitHub's semantic, used to analyze and compare source code, and written in Haskell: https://github.com/github/semantic/
  • I just published an experimental `tree-sitter` grammar for Swift!
    2 projects | reddit.com/r/swift | 28 Aug 2021
    Does anyone here have experience with tree-sitter? If you aren't familiar, tree-sitter is a parser generator tool that builds parsers to use with an incremental parsing library. It's what's responsible for AST parsing on GitHub, for instance.
  • Glean -System for collecting, deriving and querying facts about source code
    4 projects | reddit.com/r/haskell | 27 Aug 2021
    You might want to put some examples of how exactly to use gleam (maybe a 1-2-3 type fashion?) on the front page if possible. This project seems like github/semantic or possibly even more advanced (given that it comes with it's own query language and a shell) but I just can't figure out exactly how I'd use it exactly.
  • A “Generalized” AST?
    1 project | reddit.com/r/ProgrammingLanguages | 17 Aug 2021
    What about https://github.com/github/semantic

critbit

Posts with mentions or reviews of critbit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-29.

What are some alternatives?

When comparing semantic-source and critbit you can also consider the following projects:

diffsitter - A tree-sitter based AST difftool to get meaningful semantic diffs

months - Month, YearMonth, Quarter, YearQuarter

refined - Refinement types with static checking

Glean - System for collecting, deriving and working with facts about source code.

cregit

critbit - A Haskell implementation of crit-bit trees.

massiv - Efficient Haskell Arrays featuring Parallel computation

jump - Jump start your Haskell development

cantor-pairing - Convert data to and from a natural number representation

code-builder - Packages for defining APIs, running them, generating client code and documentation.

lens - Lenses, Folds, and Traversals - Join us on web.libera.chat #haskell-lens

unordered-containers - Efficient hashing-based container types