codesearch
septum
codesearch | septum | |
---|---|---|
10 | 15 | |
3,422 | 368 | |
- | - | |
0.0 | 6.4 | |
almost 2 years ago | about 2 months ago | |
Go | Ada | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
codesearch
- Regular Expression Matching with a Trigram Index
- How Google Code Search Worked
-
Ask HN: How do you search large code-base before adding a feature or fixing bug?
Whenever I work on huge codebase (think 1M+), I always reach for Russ Cox's codesearch https://github.com/google/codesearch. It requires indexing the codebase first, which takes 15 minutes or so, but after that searches are instant.
-
Improving GitHub Code Search
There is some older version that's open source, I haven't tried it and I don't know how much of today's code search is based on it.
https://github.com/google/codesearch
-
Facebook open sources Glean, its scalable code search and query engine
There's https://github.com/google/codesearch
-
Is there a reliable way to force google to include a search term as plain text on the result or is there a decent search platform with that feature?
If you want to find exact pieces of syntax then you should use a code search engine like GitHub's, Sourcegraph, or Google's codesearch. On the flip side, these won't be as good as Google for finding general ideas because they're focused more toward the precision of answers rather than giving you things that are related.
-
Postgres regex search over 10,000 GitHub repositories (using only a Macbook)
Check https://github.com/google/codesearch or https://swtch.com/~rsc/regexp/regexp4.html, this is actually possible.
septum
-
Code Search Is Hard
https://github.com/pyjarrett/septum
The hardest part about getting code search right imo is grabbing the right amount of surrounding context, which septum is aimed at solving on a per-file basis.
Another one I'm surprised hasn't been mentioned is stack-graphs (https://github.com/github/stack-graphs), which tries to incrementally resolve symbolic relationships across the whole codebase. It powers github's cross-file precise indexing and conceptually makes a lot of sense, though I've struggled to get the open source version to work
-
Getting up to speed on a c++ codebase
septum - interactive searching for contexts matching and excluding parameters
-
Getting Ada into the mainstream (Dec 1990 edition ^^)
I do a lot of weird and experimental work in Ada. Some of it works, whereas a lot of it doesn't. While I have done this sort of work in Python, Ruby, Rust, C or C++ in the past, when I do it in Ada, I end up saving time later on since the language forces many "good practices."
-
Septum 0.0.7 released (experimental Mac support)
I'd appreciate any issues or suggestions you want to report on GitHub to help me improve this.
- Septum: Context-based code search tool
-
Zig self hosted compiler is now capable of building itself
Ada is another option without a GC. I wrote a search tool for large codebases with it (https://github.com/pyjarrett/septum), and the easy multitasking and pinning to CPUs allows you to easily go wide if the problem you're solving supports it.
There's very little allocation since it supports returning VLAs (like strings) from functions via a secondary stack. Its Alire tool does the toolchain install and provides package management, so trying the language out is super easy. I've done a few bindings to things in C with it, which is ridiculously easy.
-
April 2022 What Are You Working On?
I mentioned my project Septum in a HackerNews comment, which caused it to pick up over 200 GitHub stars. That seemed to give Ada some publicity since it's a general purpose tool, so I'll also publish a new up-to-date version (0.0.6) here soon.
-
Ask HN: How do you search large code-base before adding a feature or fixing bug?
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.
-
Ada Crate of the Year: Interactive code search
Here's a short demo video of his Septum tool mentioned in the article: https://asciinema.org/a/459292
-
What Did You Work On in 2021?
I also did a few things: - Wrote an online e-book about Ada - Septum - context-based source code search for multi-million line codebases (I use this nearly every day at work. It's being submitted as my Ada crate of the year. - dir_iterators - library similar to the incredible walkdir. - project_indicators - library for spinners and progress bars. - trendy_terminal - library for cross-platform terminal setup, VT100 support, and GNU readline-like behavior. - trendy_test - library for simple unit testing, which runs tests in parallel. - Ada Ray Tracer - an Ada port of Ray Tracing in One Weekend. - dirs_to_graphviz - Make graphviz files from directory trees. - rst_tables - a tool to draw RST table outlines.
What are some alternatives?
zoekt - Fast trigram based code search
liburing-ada - liburing/io_uring bindings for Ada
hound - Lightning fast code searching made easy
ews - The Embedded Web Server is designed for use in embedded systems with limited resources (eg, no disk). It supports both static (converted from a standard web tree, including graphics and Java class files) and dynamic pages. It is written in GCC Ada.
Glean - System for collecting, deriving and working with facts about source code.
mozsearch - Mozilla code search website. (Please file bugs in bugzilla at https://mzl.la/2YtXmoN)
Ada_GUI - An Ada-oriented GUI
opengrok - OpenGrok is a fast and usable source code search and cross reference engine, written in Java
ada-ray-tracer
postgres-operator - Production PostgreSQL for Kubernetes, from high availability Postgres clusters to full-scale database-as-a-service.
Ada-SPARK-Crate-Of-The-Year