Marginalia Search reports steady progress focused on bug fixes and technical debt reduction rather than major new features, with the author noting diminishing returns as the engine matures. Sponsorship revenue has grown month-over-month since summer, including a $10,000 contribution from SerpApi, though the project remains not fully self-sustaining; free API key fulfillment faces delays due to manual email handling overhead. A significant technical effort involves experimentally migrating the search index from Java to C++ to alleviate CPU bottlenecks and reduce JVM overhead, particularly the friction of off-heap memory management via the Foreign Function & Memory API which forces reimplementation of standard algorithms and complicates control flow. The author emphasizes that for a search engine, performance directly enables recall—more results ranked within the query budget—and has translated the buffer pool and parts of the inverted index, leveraging C++'s expressiveness for lock-free designs. The migration proceeds cautiously, component by component, with no fixed timeline, and may be abandoned if benefits prove marginal. The author defends the C++ choice over Rust or AI-assisted translation, citing deep familiarity with the language, the extreme complexity of the codebase, and a desire to maintain full ownership and independence from external dependencies or subscription costs, prioritizing long-term maintainability and domain immersion over speed of delivery.
Read original
hackernews