NewsCrawler.org

Marginalia Search: index code migration from Java to C++ is underway

This is a brief update on Marginalia Search, a search engine. Over the last few months the work has mostly been bug fixes and technical debt cleanup, with few new features, and most major parts of the search engine are in place. Some time earlier, SerpApi sponsored the project with $10k. Donations and API-key sales have risen month over month since the summer, but the author says the project cannot yet fully sustain itself. Free API keys are sent with a delay of a week or sometimes two, because the author receives over a dozen emails a day asking for one.

The author is moving index code from Java to C++, because the system is CPU-bottlenecked and the JVM[1] adds overhead. The buffer pool[2] and part of the main inverse index[3] structure have been translated, and the author also leaned more into lock-free[4] algorithms in the buffer pool. The author finds C++ much more expressive for this work but does not expect a large performance gain. The work goes one component at a time, and the translation probably won't be finished in 2026; there is no public git repo yet.

The author says AI translation would be a nonstarter, because the code would be impossible to maintain by hand and the project would depend on an AI subscription whose token prices could rise. The author adds that the project has no investors or employees to answer to and is not rushing to market.

Repository Marginalia Search github.com

Open source internet search engine that indexes small, text-oriented websites, aiming at the old and unusual parts of the web.

Stars: 2,248Forks: 68License: NOASSERTIONUpdated:

Read the original marginalia.nuDiscussion

Discussion

Commenters mostly praise the author's stance on depending on AI and the calm approach to analytics. Some suggest C# as an alternative: one reports that ports from Java and C++ to C# gave speedups of 30% to 300%, while another argues the JVM cannot match optimized native code. One commenter says the author's site is wrongly flagged for tracking and ads.

Sources

Published: First seen: Читать по-русски

Open as a page