News for hackers. Stuff that matters.
Re:Ask HN: How do you search large codebases before adding a... by pyjarrett on Sunday March 27, 2022 @08:29AM (#30819733)
I work on code bases with millions of lines, so I wrote a tool called Septum to help me (https://github.com/pyjarrett/septum/). This isn't to replace grep or ripgrep or silver searcher, those are all great tools you should have!

Septum is neighborhood based (context-based) search, so you can find contiguous groups of lines which contain specific things, but exclude other things. It's also interactive so you can add/remove filters as needed. This makes it useful for those cases where terms change based on their context so you can exclude terms related to the contexts you don't want to keep. It reads .septum/config which contains its normal commands to load directories and settings, so you can have different configs per project you're working on.

Re:Ask HN: How do you search large codebases before adding a... by tylerscott on Sunday March 27, 2022 @09:24AM (#30820033)
Thanks for sharing! This is an awesome tool. I also like seeing it is written in Ada. I don’t often find open source tools I like to use written in Ada. Super well organized, too!
Re:Ask HN: How do you search large codebases before adding a... by mkdirp on Sunday March 27, 2022 @09:55AM (#30820249)
This is amazing. So many times I've needed to do something similar to the demo, and I have to hack things around. I'll definitely be using this.
Re:Ask HN: How do you search large codebases before adding a... by junon on Sunday March 27, 2022 @09:13AM (#30819947)
This is SUUUUUUPER cool. Definitely going to try this out. Thank you for making it.

Is there an easy way to install this on non-windows systems? I'm not familiar with Ada toolchains.

Re:Ask HN: How do you search large codebases before adding a... by pyjarrett on Sunday March 27, 2022 @10:31AM (#30820517)
This is Windows/Linux only (I didn't have a Mac at the time). You can use Alire (https://alire.ada.dev) will install your toolchain as well as build an executable.
Re:Ask HN: How do you search large codebases before adding a... by mohanmca on Sunday March 27, 2022 @09:33AM (#30820099)
Looks pretty awesome! Will definitely give a try!

Wish to hear why did you choose to use Ada?

Re:Ask HN: How do you search large codebases before adding a... by pyjarrett on Sunday March 27, 2022 @10:37AM (#30820551)
I normally work in C++, but I've also written in lots of other languages.

I wrote an article for these folks which includes some of the rationale here: https://blog.adacore.com/ada-crate-of-the-year-interactive-c...

Re:Ask HN: How do you search large codebases before adding a... by flafla2 on Sunday March 27, 2022 @07:42PM (#30825307)
Wow, great work!