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.

Code Annotations for SourceHut

114 pointsby kragnizalmost 6 years ago

10 comments

Scaevolusalmost 6 years ago
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-1almost 6 years ago
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 未加载
carapacealmost 6 years ago
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.
asdkhadsjalmost 6 years ago
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 未加载
nerdponxalmost 6 years ago
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 未加载
imagikoalmost 6 years ago
Wondering if this is an alternative to some other lightweight git hosting services such as gitea&#x2F;gogs. Good reason to consider switching?
评论 #20385895 未加载
woodrowbarlowalmost 6 years ago
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.
0xDEFC0DEalmost 6 years ago
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
svnpennalmost 6 years ago
are they offering HTTPS yet - i would like to move away from GitHub if possible
评论 #20385241 未加载
评论 #20385093 未加载
crispyporkbitesalmost 6 years ago
Is SourceHut the new GitLab (which was the new GitHub)?<p>This random HN commenter says yes!
评论 #20385134 未加载