TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Code Annotations for SourceHut

114 点作者 kragniz将近 6 年前

10 条评论

Scaevolus将近 6 年前
These ideological decisions don&#x27;t sound very pragmatic. There&#x27;s a <i>lot</i> of open-source prior art in this space (OpenGrok, Kythe, SourceGraph) which provide support for most large languages and have annotation output formats that are broadly similar to this JSON file, and you could still support users having indexers for small languages running as part of CI.<p>&gt; There does not exist any widely available standalone C parsing library to provide C programs with access to an AST. There’s LLVM, but I have a deeply held belief that programming language compiler and introspection tooling should be implemented in the language itself. So, I set about to write a C parser from scratch.<p>Even if you prefer to write your C indexer in C, you could use LLVM&#x27;s C [1] or Python [2] APIs. Plus, you can handle C++ without having to implement your own C++ parser from scratch, which is a much larger undertaking than C99 plus a few GNU extensions.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;llvm-mirror&#x2F;clang&#x2F;blob&#x2F;fb2a26cc2e40e007f19532b4e139d5f0a636d5c9&#x2F;tools&#x2F;c-index-test&#x2F;c-index-test.c#L1956" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;llvm-mirror&#x2F;clang&#x2F;blob&#x2F;fb2a26cc2e40e007f1...</a> [2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;llvm-mirror&#x2F;clang&#x2F;blob&#x2F;master&#x2F;bindings&#x2F;python&#x2F;clang&#x2F;cindex.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;llvm-mirror&#x2F;clang&#x2F;blob&#x2F;master&#x2F;bindings&#x2F;py...</a>
评论 #20386131 未加载
评论 #20386108 未加载
iso-8859-1将近 6 年前
How does this compare to using LSIF files?<p><a href="https:&#x2F;&#x2F;code.visualstudio.com&#x2F;blogs&#x2F;2018&#x2F;12&#x2F;04&#x2F;rich-navigation" rel="nofollow">https:&#x2F;&#x2F;code.visualstudio.com&#x2F;blogs&#x2F;2018&#x2F;12&#x2F;04&#x2F;rich-navigati...</a>
评论 #20385882 未加载
carapace将近 6 年前
Ooo!<p>For Python dig up the old PySonar project (the author took it down for some reason but there are mirrors&#x2F;archives where you can find versions. Oh hey, it looks like it has been resurrected: <a href="https:&#x2F;&#x2F;github.com&#x2F;yinwang0&#x2F;pysonar2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yinwang0&#x2F;pysonar2</a>) It might have been superseded by something else in the meantime, I dunno.<p>It was the basis for Google&#x27;s internal Python annotations thingy, and it fscking rocks.
asdkhadsj将近 6 年前
So excited to use this once my requirements are implemented <i>(mostly just LFS, and to a lesser extent Merge(|Pull) Requests)</i>. Admittedly I don&#x27;t <i>need</i> it, I just really appreciate the simplistic UI and straight forward pricing model.
评论 #20385785 未加载
评论 #20388199 未加载
nerdponx将近 6 年前
Wow, this is great!<p>Conceivably someone could write an offline annotation viewer&#x2F;editor as well? I would love for something like that to catch on.<p>Imagine Emacs and Pycharm plugins for viewing and editing these annotations, for example.
评论 #20386959 未加载
imagiko将近 6 年前
Wondering if this is an alternative to some other lightweight git hosting services such as gitea&#x2F;gogs. Good reason to consider switching?
评论 #20385895 未加载
woodrowbarlow将近 6 年前
if i get some time (unlikely, tbh), i&#x27;d love to take a crack at integrating your annotatec into sublime text 3 as a plugin.
0xDEFC0DE将近 6 年前
I&#x27;m embarrassed I didn&#x27;t know &lt;details&gt;&#x2F;&lt;summary&gt;&#x2F;&lt;ul&gt;&#x2F;&lt;li&gt; worked like that without javascript
svnpenn将近 6 年前
are they offering HTTPS yet - i would like to move away from GitHub if possible
评论 #20385241 未加载
评论 #20385093 未加载
crispyporkbites将近 6 年前
Is SourceHut the new GitLab (which was the new GitHub)?<p>This random HN commenter says yes!
评论 #20385134 未加载