TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ClangQL: A tool to run SQL-like query on C/C++ Code

134 pointsby bubblehack3rabout 1 year ago

10 comments

frabertabout 1 year ago
I made a similar tool with the same name a couple of years ago :D <a href="https:&#x2F;&#x2F;github.com&#x2F;frabert&#x2F;ClangQL">https:&#x2F;&#x2F;github.com&#x2F;frabert&#x2F;ClangQL</a>
评论 #39963718 未加载
评论 #39966970 未加载
mgaunardabout 1 year ago
I&#x27;m not too familiar with Rust, but took a look at the Cargo.lock file of this project.<p>It depends on half the universe for some reason, sometimes multiple versions of the same library. And that doesn&#x27;t even include the main dependency which is libclang.<p>Is the Rust ecosystem just dependency hell?
评论 #39965530 未加载
评论 #39965389 未加载
评论 #39964000 未加载
评论 #39969792 未加载
评论 #39964843 未加载
评论 #39964100 未加载
评论 #39968019 未加载
morganteabout 1 year ago
Cool to see another query language for source code! Yours is definitely closer to SQL than GritQL is.[0] I particularly like the count semantics.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;getgrit&#x2F;gritql">https:&#x2F;&#x2F;github.com&#x2F;getgrit&#x2F;gritql</a>
owlstuffingabout 1 year ago
Bit of a tangent, but if we commonly stored source in a standard, fully attributed AST instead of caveman text, caching&#x2F;indexing and deterministic search would be a breeze. So would a million other useful applications such as every other IDE feature and source control.<p>As the decades go by it confounds me that we are still messing with plain text, and with virtually no resistance to it. Maybe it&#x27;s to keep the tabs vs. spaces flame war alive. _shrug_
评论 #39970471 未加载
评论 #39967677 未加载
评论 #39967630 未加载
评论 #39967828 未加载
giancarlostoroabout 1 year ago
As cool as it looks, I have to ask: why?
评论 #39965402 未加载
评论 #39962044 未加载
评论 #39962079 未加载
rodrigobellusciabout 1 year ago
Maaaan I&#x27;ve wanted this for a while for Java and Dart (for flutter apps). Nice job!
wruzaabout 1 year ago
Why no line:col info?
ranger_dangerabout 1 year ago
Do you have any binaries? Stock ubuntu 22.04 does not have new enough versions of things to build this.
boywitharupeeabout 1 year ago
i wonder if we can train a foundational model on this data which will eventually allow to semantically search the codebase?
cozzydabout 1 year ago
Wonder how it deals with templates