ClangQL
Dev tools
code querying
SHOW HN2021
73points
11comments
#678of 2,533 in 2021
Top 27%of 2021 by points
How HN took it
MixedNo clear lean
2 positive, 2 neutral or asking, 0 mixed, 1 critical, out of 5 comments about the project. Thread score +0.13.
Idea: 2 for, 0 againstPerformance: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Querying codebases like a database is useful
From 1 comment
I tried doing this using prolog last summer to extract some features from a codebase. I loved it. Being able to query a codebase like a database is extremely useful.
gaze on HN
Cool idea using SQLite
From 1 comment
This is cool! You can do a lot of things with SQLite these days.
laymonage on HN
Objections
SQLite virtual tables perform poorly with joins
From 2 comments
Man. I love SQLite, but the current virtual table extension is a performance dumpster fire. SQLite doesn’t understand multiple-column indexes on virtual tables, and the secret…
thechao on HNI don't know if you're serious, but the `xBestIndex` function is supposed to be a literal description of the size & efficiency of the various tables. Lets say you have four…
thechao on HN
Requests
Support for C code and other languages
From 2 comments
Cscope as a SQL DB? I would really like that. But it's important not to stop at parsed code, especially in C (for obvious reasons).
cryptonector on HNPretty cool! One question though: if this was based on LSP in general, it could be generalised to any language, right? I wonder why they wired it to clangd specifically.
marco_craveiro on HN
Questions
Why clangd specifically rather than LSP generally
From 1 comment
Pretty cool! One question though: if this was based on LSP in general, it could be generalised to any language, right? I wonder why they wired it to clangd specifically.
marco_craveiro on HN
Alternatives named
SourceTrail
From 1 comment
For something less PoCy, https://www.sourcetrail.com/ 's internal representation of the reference graph is a sqlite db file with pretty much a triple store schema.
pkhuong on HN
Cscope
From 1 comment
Cscope as a SQL DB? I would really like that. But it's important not to stop at parsed code, especially in C (for obvious reasons).
cryptonector on HN