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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Sourcetrail – Get productive on unfamiliar source code

328 点作者 nebucnaut将近 8 年前

31 条评论

enobrev将近 8 年前
This looks like an exceptionally useful tool! Thanks for making and sharing it. The video is excellent.<p>It reminds me of a feature I&#x27;ve always wanted, which would be a code unravel-er. Basically I&#x27;d like to be able to select a line anywhere in a codebase, and have said codebase expand to show me the entire execution path as if it were in one single scope, with the ability to re-collapse sections back into loops and functions while reading.<p>I think it would help to better understand the codepaths that can start to get fuzzy when jumping between abstractions. It would be great - not only for understanding unfamiliar code - but also for double-checking logic across longer code paths.<p>At any rate - great idea, great implementation, and beautiful website.
评论 #14616316 未加载
评论 #14617048 未加载
danielvf将近 8 年前
I used Sourcetrail a few months ago to figure out a ugly ball of embedded C code that I needed to reimpliment. Sourcetrail was super helpful for this. It paid for itself in an afternoon.
评论 #14613606 未加载
chubot将近 8 年前
Hm does anyone know of a web-based tool like this that uses Clang as a back end? I want to put open source code like the bash and Python interpreters in it and be able to navigate symbolically. And I want nice permalinks.<p>EDIT: It looks like <a href="https:&#x2F;&#x2F;woboq.com&#x2F;codebrowser.html" rel="nofollow">https:&#x2F;&#x2F;woboq.com&#x2F;codebrowser.html</a> is what I want. The code available but not under and open source license. <a href="https:&#x2F;&#x2F;github.com&#x2F;woboq&#x2F;woboq_codebrowser&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;woboq&#x2F;woboq_codebrowser&#x2F;</a><p>I will probably try this, but I&#x27;m interested in alternatives!
评论 #14614814 未加载
alkonaut将近 8 年前
Website feedback: Supported languages is the #1 most important piece of info about this software. It should be front and center and probably repeated a few times already on the landing page.
评论 #14614756 未加载
评论 #14614601 未加载
评论 #14615006 未加载
peternicky将近 8 年前
Can you please share the roadmap for adding new language support?
评论 #14613538 未加载
评论 #14615252 未加载
agentgt将近 8 年前
Just a feature request if it isn&#x27;t already in the works:<p>Runtime analysis of code that actually matters ie <i>live code</i>.<p>Often its hard to figure out what in the code base actually matters.<p>Debugging is still sort of difficult and dead code is really hard to find and get rid of. Particularly if reflection is used heavily which it almost always is these days.<p>Otherwise (IMO) as a Java developer IntelliJ and Eclipse are actually not that far off in their static analysis and already pretty good to discover the code. Especially IntelliJ as I can easily see them enhancing their code view&#x2F;discovery as well as they already have static dead code analysis.<p>I guess I don&#x27;t think discovering code bases is that much of a problem compared to understand what is actually running.<p>That is I think debugging particularly multithreaded applications is vastly more difficult problem. Thus runtime analysis would be very useful.
评论 #14615700 未加载
dkarapetyan将近 8 年前
I really want something like this for heterogenous codebases. Maybe along the lines of ollydbg and ida but for &quot;reverse&quot; engineering Ruby, python, and go.
m712将近 8 年前
Not saying this is bad, but...<p>Instead of giving money to a tool like this, you could just use ctags&#x2F;etags, both of which are Free Software. It doesn&#x27;t show detailed graphs like Sourcetrail does, but it allows source code traversal by function definitions, and supports a crapton of languages.
skibz将近 8 年前
There doesn&#x27;t seem to be a vscode plugin for Sourcetrail. Could be a worthwhile addition?
评论 #14635124 未加载
评论 #14613470 未加载
kuangye将近 8 年前
Has anyone run a large codebase like chromium with this tool? Is the indexing looking at what&#x27;s compiled like libclang or is it static like gtags?
评论 #14622273 未加载
评论 #14615007 未加载
mden将近 8 年前
On a first look, it looks amazing. This is actually what I&#x27;ve always imagined &quot;graphical&quot; programming to look like.
aeling将近 8 年前
This looks super interesting - great video! Everything is processed offline, I assume? No code leaves the machine?
评论 #14613167 未加载
nikki93将近 8 年前
Interesting can you edit code in the text view too? Wonder if this could be the one place to write your code too.
评论 #14614360 未加载
girishso将近 8 年前
Slightly tangential.. a code editor was showcased on HN few years back, with context sensitive &quot;panes&quot;.. for example currently selected function&#x2F;variable declarations in another pane. Very impressive stuff, but can&#x27;t seem to find it anywhere now.
评论 #14617019 未加载
评论 #14616658 未加载
coffeeski将近 8 年前
Watched the demo video, can you add support to Javascript and Ruby? This is an amazing tool
fomojola将近 8 年前
Looks really good: one possible suggestion would be to allow sharing&#x2F;reuse of indexes. Let me commit the built index to git and then have someone else checkout and use the index that was prebuilt.<p>One (potentially paying) alternative would be to provide a precompilation service. Not sure if your index generation can be parallelized, but potentially you could take an archive of the code (or pull directly from Github or Bitbucket or any other repo endpoint) then spin up a large EC2 instance (or the equivalent for your cloud of choice) and accelerate the generation of the index. For large codebases it may provide a good boost.
davidshepherd7将近 8 年前
I had a quick play with this today and it seems like something that could be really useful.<p>A couple of relatively minor comments for you:<p>* In C++ it might be useful to filter include guards out of the symbol lists.<p>* I had some problems with using the menus (couldn&#x27;t click on them, when I did select them couldn&#x27;t get the menu to drop down). It&#x27;s probably just because I&#x27;m using a weird window manager (xmonad, no window decorations, Ubuntu 16.04).
tempodox将近 8 年前
I could use something like this for PHP spaghetti code.
评论 #14615399 未加载
boltzmannbrain将近 8 年前
Looks cool! This hits a pain point of mine working in a legacy Python and C&#x2F;C++ codebase. Any plans for Python support?
评论 #14613657 未加载
justboxing将近 8 年前
How different is this from CodeLens ? Seems like most of these features are in CodeLens anyways, maybe the licensing for CodeLens??<p>CodeLens =&gt; <a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;dn269218.aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;dn269218.aspx</a>
评论 #14614248 未加载
评论 #14614229 未加载
bastijn将近 8 年前
Do you also have arrows to methods in your own class? In addition, how does this relate to code maps in VS?<p><a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;jj739835.aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;jj739835.aspx</a><p>Seems they cover a similar thing.
评论 #14614088 未加载
nautilus12将近 8 年前
I doubt you could ever get something like this working for Ruby, which is where it is actually badly needed.
评论 #14613441 未加载
problems将近 8 年前
What&#x27;s the C++ support like?
评论 #14613176 未加载
nickpresta将近 8 年前
What languages are supported? At least on mobile, there is zero mention of language support outside of testimonials and screenshots. Is it just Java and C++?
评论 #14613286 未加载
joshdotsmith将近 8 年前
Looks fantastic. Do you have plans to support additional languages?<p>This would be particularly useful in open source.
redm将近 8 年前
I love the implementation for C++, I&#x27;m just waiting for more language support.
jsk2600将近 8 年前
Any plans to support Kotlin ?
评论 #14613334 未加载
Zalos将近 8 年前
Any plans to add support for PHP to this? it looks really cool :)
ifree将近 8 年前
Got lots of compiling error when trying it on a large code base
评论 #14617948 未加载
pavlakoos将近 8 年前
That looks amazing. Does it also work with Objective-C ?
评论 #14619063 未加载
coffeeski将近 8 年前
A CDN hosted site would be good
评论 #14615123 未加载