Better HN
topnewbestaskshowjobs
Log inSign up

ru6xul6

52 karma · joined Jul 27, 2016 (10y ago) · 31 submissions

https://chent.ai
Submissions

comment 1y ago · link · parent

This is intriguing! Reminds me of an old movie theatre in Taiwan that still uses hand-painted posters, until the theatre closed down earlier this year.

A BBC article on it: https://www.bbc.com/travel/article/20181107-the-last-film-po...

2.

Show HN: Onri, the Google Map for micro-learning(onri.ai ↗)

4 points · by ru6xul6 · 1y ago · 1 comment

comment 2y ago · link · parent

I had the exact same wish for an interconnected knowledge map, so I'm building it myself! Please check out https://onri.ai, which plots all human knowledge on a Google Map, with their dependencies. I'm still building out the navigation algorithm and user features, but please let me know whether that fits your use case :)

4.

Show HN: Codemap – A Powerful Code Visualizer(codemap.app ↗)

3 points · by ru6xul6 · 2y ago · discuss

comment 2y ago · link · parent

I've been working on Codemap, a code visualization tool for many programming languages (JavaScript, Python, Go, Ruby, Terraform).

https://codemap.app

It parses any given codebase and visualizes all function calls as a hierarchical graph. Quite useful for onboarding new team members, digging through old codebases, or simply debugging issues.

You can further tweak the graph for various use cases. For example, a frontend engineer can view the dependency graph of all UI components, while an infra engineer can view connections between all cloud resources defined in Terraform.

6.

Show HN: Onri.ai – find the expert in your team(onri.ai ↗)

1 points · by ru6xul6 · 3y ago · discuss

comment 3y ago · link · parent

As someone who enjoys exploring and learning about new fields, I often lack a curriculum of learning materials. To solve that problem, I'm parsing wikipedia to create a knowledge graph composed of "concepts" linked to each other. Every "concept" has some prerequisite of other "concepts", say, in order to learn differential equation I need to first learn about calculus, etc. Therefore, if I were to learn about self-driving cars, I can mark the starting point (concepts I already know of) and the target (most important 50 concepts for self-driving car), and the graph would give me the best path to achieve my target. Therefore, I can be self-guided in my learning with the help of a knowledge graph similar to technology tree in games. Let me know what you think!

comment 3y ago · link · parent

2 years ago I made a code visualization tool called Codemap, https://codemap.app, which visualizes function calls in any codebase as a graph, to give the software engineers a high-level understanding of their code.

Last year I noticed its user sign-ups are ticking up quickly, acquiring hundreds of users in a few months, so I decided to redesign the app and add more language supports (now supporting Typescript, Javsacript, Python, Ruby, and Go.

It's a combination of a desktop app (to parse your local codebase) and a web app (to visualize the graph). Users pay a small price to unlock the full graph, otherwise the graph is capped at 100 nodes, which allows users to fully try out the product before committing to pay for it.

comment 4y ago · link · parent

Not sure which language you need, but I worked on a tool called Codemap that visualizes any Javascript/Python codebase. I also made a Hacker News post which may be interesting to you. - Codemap https://codemap.app - HN post https://news.ycombinator.com/item?id=24241998

Let me know if that works in your scenario :)

comment 6y ago · link · parent

Hey, the Windows version is ready. Please visit the download page [1] to try it out :)

[1] https://codemap.app/download

comment 6y ago · link · parent

It should work regardless of venv. Could you shoot me an email (in my profile) so I can follow up with you?

comment 6y ago · link · parent

Only functions that are defined in your codebase will be rendered in the graph. Thus framework functions are excluded.

comment 6y ago · link · parent

Can't speak for you, but I think a lot of that comes from experience, e.g. put out fires caused by whatever stupid reason, and eventually build up awareness of what could go wrong. Therefore, without reading too much into the code, simply being aware of their existence becomes largely helpful.

comment 6y ago · link · parent

Agreed that our brain comprehension goes far beyond just a static graph. Ultimately I want to see all functions as fluid, which can answer dynamic questions like "show me the journey from this input data to that database update query". I think namespace/module/class/method are all valid ways to help organize this mental understanding, but they're also in a rigid form and failed to capture the dynamic nature. I think a 2D graph like Codemap opens up the rigidity a bit, but not entirely yet.

comment 6y ago · link · parent

Totally agreed! I read his article last year and this analogy is still vivid in my head.

comment 6y ago · link · parent

Absolutely. All those individual nodes linked to nothing else are good suspects.

comment 6y ago · link · parent

Nice, another rabbit hole for the weekend. Thanks for sharing!

comment 6y ago · link · parent

I really appreciate your kind words! From your experience using a static graph by Doxygen, is there any feature in particular you'd love to have? I'm actively improving this tool based on the awesome feedback from HN, and what you wish for will have a large chance of landing on the next upgrade :)

comment 6y ago · link · parent

It checks whether `python3 -V` ends successfully in a Node JS child process. Is it possible that `python3` is not available in your environment? Or perhaps `python3` isn't linked properly? If you use brew, `brew link python3` could be helpful.

comment 6y ago · link · parent

Awesome project! I particularly love the AssemblyScript visualization resembling a city view. Thanks for sharing it! I'm not sure I follow the definition of ownership, and maybe you can help me out here. Does ownership mean that, if class A owns property B and C, iswaac renders box A enclosing box B and C? How does it apply to function relationship when it's not a strictly nested tree? This reminds me of Firefox 3D view [1] of HTML DOM elements, which is another handy visualization that's unfortunately discontinued. I think it helps frontend engineers fighting against spaghetti HTML/CSS code.

[1] https://developer.mozilla.org/en-US/docs/Tools/3D_View

comment 6y ago · link · parent

Sorry about the issue. It seems to be struggling with memory while rendering the graph. Are you rendering a large graph? Could you try a smaller scope by restricting the number of files and folders?

comment 6y ago · link · parent

Thanks, I have the exact same habits until this :)

comment 6y ago · link · parent

Thanks, points well taken! I think parsing .gitignore plus some basic exclusion like node_modules would be a good start. For the free version, you're totally right that it should pick 100 functions that are more interesting to play with. To avoid assuming the project structure like App.vue, I'll probably prioritize showing connected components with the most nodes. Sorry for the issue on Django projects, I'll test it out and see what's going on there.

comment 6y ago · link · parent

Yup, SourceTrail is probably my favorite before deciding to build Codemap. Since my day job mostly use Typescript, I have to build this to serve my own need.

comment 6y ago · link · parent

Thanks for the feedback and great questions! Let me address your questions below.

- You nailed it, Codemap uses language servers (Typescript for TS/JS, Jedi for Python) to understand the code.

- Tree view is currently the only layout that's available. If you have any thoughts on this please let me know!

- It doesn't support jumping into a file a choose a function, but it supports a few interactions that may be as useful. A few examples are: 1. zoom in/out, either horizontally or vertically 2. limit render scope by folder and files (useful to keep performance up and avoid cluttering) 3. showing only nodes that are upstream or downstream of a particular function (useful for tracing the scope of impact) 4. quick code preview for node (function definition) or edge (function call)

- You're right, the 100 function limit is a little harsh. The goal is for people to try out the tool with a few files and get a taste of it. The price is pretty affordable though, as I want Codemap to serve the global programmers.

- There's currently no option to purchase just one month, but I'd definitely consider it!

- This is an Electron app (please don't scream :p) with the goal of market verification and gathering early feedbacks. If this app solicits enough interest, I'll seriously consider re-building a native app. That said, from my experience Codemap remains snappy up to 2000 functions that are moderately interconnected, at which point the issue of cluttering outweighs its slowness, and limiting the rendering scope (folders/files) becomes necessary.

Again, thanks for the thorough feedback! Let me know if you have more questions.

comment 6y ago · link · parent

Sorry for not supporting Windows yet. As I'm less familiar with the Windows toolchain, it takes me a little longer to port to Windows. If you don't mind, please feel free to shoot me an email (in my profile), so I can notify you once it's released.

comment 6y ago · link · parent

Glad you like it! It uses a language-specific parser to generate function dependencies data, e.g. list of function calls, which are then consumed and visualized by shared UI components that renders the graph. To build language parsers, I started with Language Server Protocol (LSP) [1], but soon realized that some LSP libraries are outdated and I should go deeper to the core language parser, e.g. using Typescript tsserver for JS/TS code. To support a new language, I'll need to integrate a good language parser for that language, generate function dependencies, then the UI and graph rendering will take care of the rest.

[1] https://microsoft.github.io/language-server-protocol/

comment 6y ago · link · parent

Hey Ivan, thanks for sharing the great article! I actually read it last year and left a comment (name is Chentai). Back in 2019 I built an IntelliJ plugin [1] as a prototype for Java, and now I'm building Codemap as a natural follow-up. Glad to reconnect :) I definitely share your sentiment towards visual programming. AR/VR may be a better vehicle to convey the code structure, but I think 2D call graph, if done well, could serve as a valuable stepping stone for now. Hopefully Codemap can be the tool that inspires future design and thoughts.

[1] https://plugins.jetbrains.com/plugin/12304-call-graph

comment 6y ago · link · parent

Hey HN, I'm the creator of Codemap.

Codemap is a codebase visualizer that displays the structure of function calls of any Javascript, Typescript, or Python code. Given a local repo, Codemap statically parses the code and renders a directed graph of all function calls in the least cluttered layout. It helps programmers familiarize with a new codebase, trace possible scenarios that lead to a bug in a function, or understand the scope of impact when making a code change. Codemap runs offline on your local machine and never sends any sensitive code data to remote servers.

I built Codemap because I noticed that good engineers always spend quality time understanding the code architecture before making changes. This process is crucial, and it usually requires drawing a function call diagram on a whiteboard or in the head. Some people use IDE "Find usage of function..." search box for a million times, some people ask senior engineers for tribal knowledge, and some just get lazy and start writing code with ignorance.

As a software engineer, I think there's a better solution than this tedious and error-prone practice. I looked at existing code visualization tools and felt that the visualization tends to be overly cluttered and not that user-friendly. I believed that, with some level of design, I can build a tool that is pleasant to use, easy to navigate, and versatile for any codebase in the supported languages.

During the development of Codemap, I would sometimes grab a popular Github repo to test the Codemap app, and I often find myself exploring its call graph for hours to satisfy my genuine curiosity of "How does <popular project> work?" I'd encourage curious HN readers to visit the website and see screenshots of call graphs from React, Keras, Django, and Typescript (yep the one from Microsoft).

I would love to hear what you love and hate, as well as any questions you may have. I'll be here to respond the best I can (PST time). Thank you :)

30.

Show HN: Codemap – Codebase Visualizer for JavaScript, TypeScript, and Python(codemap.app ↗)

84 points · by ru6xul6 · 6y ago · 40 comments

12