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.

Show HN: Sourcetrail – Get productive on unfamiliar source code

328 pointsby nebucnautalmost 8 years ago

31 comments

enobrevalmost 8 years ago
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 未加载
danielvfalmost 8 years ago
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 未加载
chubotalmost 8 years ago
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 未加载
alkonautalmost 8 years ago
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 未加载
peternickyalmost 8 years ago
Can you please share the roadmap for adding new language support?
评论 #14613538 未加载
评论 #14615252 未加载
agentgtalmost 8 years ago
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 未加载
dkarapetyanalmost 8 years ago
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.
m712almost 8 years ago
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.
skibzalmost 8 years ago
There doesn&#x27;t seem to be a vscode plugin for Sourcetrail. Could be a worthwhile addition?
评论 #14635124 未加载
评论 #14613470 未加载
kuangyealmost 8 years ago
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 未加载
mdenalmost 8 years ago
On a first look, it looks amazing. This is actually what I&#x27;ve always imagined &quot;graphical&quot; programming to look like.
aelingalmost 8 years ago
This looks super interesting - great video! Everything is processed offline, I assume? No code leaves the machine?
评论 #14613167 未加载
nikki93almost 8 years ago
Interesting can you edit code in the text view too? Wonder if this could be the one place to write your code too.
评论 #14614360 未加载
girishsoalmost 8 years ago
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 未加载
coffeeskialmost 8 years ago
Watched the demo video, can you add support to Javascript and Ruby? This is an amazing tool
fomojolaalmost 8 years ago
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.
davidshepherd7almost 8 years ago
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).
tempodoxalmost 8 years ago
I could use something like this for PHP spaghetti code.
评论 #14615399 未加载
boltzmannbrainalmost 8 years ago
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 未加载
justboxingalmost 8 years ago
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 未加载
bastijnalmost 8 years ago
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 未加载
nautilus12almost 8 years ago
I doubt you could ever get something like this working for Ruby, which is where it is actually badly needed.
评论 #14613441 未加载
problemsalmost 8 years ago
What&#x27;s the C++ support like?
评论 #14613176 未加载
nickprestaalmost 8 years ago
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 未加载
joshdotsmithalmost 8 years ago
Looks fantastic. Do you have plans to support additional languages?<p>This would be particularly useful in open source.
redmalmost 8 years ago
I love the implementation for C++, I&#x27;m just waiting for more language support.
jsk2600almost 8 years ago
Any plans to support Kotlin ?
评论 #14613334 未加载
Zalosalmost 8 years ago
Any plans to add support for PHP to this? it looks really cool :)
ifreealmost 8 years ago
Got lots of compiling error when trying it on a large code base
评论 #14617948 未加载
pavlakoosalmost 8 years ago
That looks amazing. Does it also work with Objective-C ?
评论 #14619063 未加载
coffeeskialmost 8 years ago
A CDN hosted site would be good
评论 #14615123 未加载