Astrolabe : Interactive Codebase Visualization and Mapping

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 13

  • @o_2731
    @o_2731 Месяц назад +1

    Cool tool :)
    Tbh I would just use it for the fun if it -- the UI looks vey nice

  • @lcsgcrr
    @lcsgcrr Месяц назад

    Nice

  • @emilsprogrammingviz1811
    @emilsprogrammingviz1811 Месяц назад +5

    I completely agree that we need new tools. Interesting overview, and the searches seem very fast for such a huge code base - good work! Curious, could you reveal the idea behind the layout algorithm a bit more? The most obvious choice would be to just position pixels based on the file/directory structure, but there must be a reason you instead do it somewhat chaotically.

    • @charlesrosenbauer3135
      @charlesrosenbauer3135  Месяц назад

      @@emilsprogrammingviz1811 it walks the file tree, picking random locations within a certain distance from a center point associated with the parent directory, looking for an empty spot. It has some heuristics for picking suitable radii based on the volume of files in subdirectories. It's maybe ~100loc, but works pretty well.

    • @charlesrosenbauer3135
      @charlesrosenbauer3135  Месяц назад

      @@emilsprogrammingviz1811 this method is a pretty simple and minimal amount of code, it works well, and it's fast. If I did something like a force-directed graph drawing algo, maybe it would be a little prettier but it would be much more expensive, especially on big codebases. This is almost instant.

    • @emilsprogrammingviz1811
      @emilsprogrammingviz1811 Месяц назад

      @@charlesrosenbauer3135 That's cool, but what I tried to ask was rather: 1. Is there an advantage of this fuzzy organic-looking layout over a more box-based layout where files in the same directory are always next to each other? Apart from the "coolness" factor of course :)
      And 2. Could you describe the algorithm used? Or maybe it's a trade secret :)

  • @ScipiPurr
    @ScipiPurr Месяц назад

    This is cool and it definitely seems useful for getting oriented in large codebases c: One thing I'm curious about, though, it does it provide anything that couldn't be done by parsing ripgrep output with a nice UI? (Not trying to cast doubt on your work, just genuinely curious)

  • @Quiark
    @Quiark Месяц назад

    When looking at the UI, can you also import samples and arrange them in tracks?

  • @clivedsouza6213
    @clivedsouza6213 Месяц назад +1

    how is the search so fast? this is so cool!

  • @ryanyoung8886
    @ryanyoung8886 Месяц назад +1

    impressive tui, what library?

    • @charlesrosenbauer3135
      @charlesrosenbauer3135  Месяц назад

      @@ryanyoung8886 custom thing I built in C/SDL2. Font is Code Page 437.

    • @ryanyoung8886
      @ryanyoung8886 Месяц назад +1

      @@charlesrosenbauer3135 thanks. will be following this project