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.

AI dev startups are struggling with one problem and I solved it - with POC

2 pointsby kannthu11 months ago
*TL;DR;*<p>Over one month ago I posted about a really hard problem that I &quot;accidentally&quot; solved (https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40460084).<p>The problem is to resolve cross-file references for multiple programming languages. I can generate a graph representation of the codebase.<p>*Why do you need to have a graph representation of the codebase?*<p>- To understand how code references other code<p>- Track how data is passed around<p>I generated references for repo https:&#x2F;&#x2F;github.com&#x2F;dj-stripe&#x2F;dj-stripe, here is a gist: https:&#x2F;&#x2F;gist.githubusercontent.com&#x2F;kannthu&#x2F;6e1bdd2781d2e0a6ded30844d61f089e&#x2F;raw&#x2F;f1fa4bc0f34891834ce13ac256eec12f6cc671e1&#x2F;dj-stripe-references.json<p>The gist is a big JSON blob that contains definitions form the repository.<p>Definitions are:<p>- top-level functions<p>- classes<p>- methods and public properties<p>- top-level variables<p>- exports<p>Each definition contains:<p>- Snippet, path, and range within the file<p>- &quot;references&quot; - a list of places where the definition is used<p>- &quot;expressions&quot; - a list of resolved references (variables, functions, and classes) that are used within the body of the definition<p>*How this data can be useful?*<p>If you are building code generation, code intelligence, or code review products - your product needs to have an understanding of the codebase for many programming languages at once. The more accurate context you feed to LLM =&gt; the better output you will get, and doing it in-house is really expensive and resource-consuming.<p>Let me know if it is interesting for any of you.

1 comment

kannthu11 months ago
Clickable links:<p>- <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40460084">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40460084</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;dj-stripe&#x2F;dj-stripe">https:&#x2F;&#x2F;github.com&#x2F;dj-stripe&#x2F;dj-stripe</a><p>- <a href="https:&#x2F;&#x2F;gist.githubusercontent.com&#x2F;kannthu&#x2F;6e1bdd2781d2e0a6ded30844d61f089e&#x2F;raw&#x2F;f1fa4bc0f34891834ce13ac256eec12f6cc671e1&#x2F;dj-stripe-references.json" rel="nofollow">https:&#x2F;&#x2F;gist.githubusercontent.com&#x2F;kannthu&#x2F;6e1bdd2781d2e0a6d...</a>