Live data from Hacker News

Show HN: Sourcetrail – Visual Source Explorer Now Supports Python

sourcetrail.com

21–25 of 25 posts

Re: Show HN: Sourcetrail – Visual Source Explorer Now Supports Python

#21

Earlier quoted context omitted.

Sourcetrail dev here. Thanks for your extensive feedback! A lot of things have changed since Sourcetrail was called Coati (about 2 years ago). We put a lot of work into improving indexing speed, handling multiple configurations/different languages within one project and reducing "sluggishness" in the UI. Sourcetrail runs now smoothly on code bases with multiple MLoC. But I agree with your suggestion regarding data-fl…

I just watched your talk, and found it very interesting, thanks for sharing it! I hope you can do the data flow analysis. That would be so cool and SO useful. Python certainly has the ability to collect the data. A couple existing tools make use of this. For example, MonkeyType and Birdseye observe the values that are passed around by tracing execution during test runs (or even during a production run, but the perfor…

[deleted]

Re: Show HN: Sourcetrail – Visual Source Explorer Now Supports Python

#23
Looks very interesting, but seems to be excruciatingly slow at indexing Python projects. Ran it on https://github.com/fonttools/fonttools/tree/master/Lib/fontT... (~230 files) and it took 45 minutes while keeping all 16 cores of my Ryzen 1700 at full load, sometimes using ~16 GB of RAM. Exiting the application ends in a SEGV, but seemingly without consequences? Also, after moving the database files to a different folder and renaming the "source group", it now asks me run re-index everything. AAAARRRGHHH.

Re: Show HN: Sourcetrail – Visual Source Explorer Now Supports Python

#24

I usually use PyCharm in a very similar manner, to browse others code locally. This is much more efficient compared to e.g. browsing/reading the code on GitHub. Whenever I spend more than a few minutes browsing some code on GitHub, I just clone the repo instead and open it in PyCharm. Finding some usages of some function, or simple searching for some string or so is much faster and more comfortable (also because the…

Another vote for the git clone / pycharm workflow. If I'm thinking I might end up tweaking the code I might fork instead of clone to make generating a pull request a simple click in the browser. But I'm definitely in love with Pycharm. Even to the point of using it to evaluate code on remote servers locally on my laptop. Just perfect.

Re: Show HN: Sourcetrail – Visual Source Explorer Now Supports Python

#25
post #23

Looks very interesting, but seems to be excruciatingly slow at indexing Python projects. Ran it on https://github.com/fonttools/fonttools/tree/master/Lib/fontT... (~230 files) and it took 45 minutes while keeping all 16 cores of my Ryzen 1700 at full load, sometimes using ~16 GB of RAM. Exiting the application ends in a SEGV, but seemingly without consequences? Also, after moving the database files to a different fol…

Sourcetrail dev here. Thanks for the feedback!

Yes, Python indexing speed is still slow, mostly due to the underlying framework that needs a lot of time to resolve symbol names. We hope we can improve this.

The crash on closing was already reported: https://github.com/CoatiSoftware/SourcetrailBugTracker/issue... I opened another issue to not inform about indexing when only renaming source groups: https://github.com/CoatiSoftware/SourcetrailBugTracker/issue...

Post reply on HN