Marginalia Search, Money, C++, Rust, AI, Stuff marginalia.nu · 44 points · 8 com...

@best

Marginalia Search, Money, C++, Rust, AI, Stuff marginalia.nu · 44 points · 8 comments · HN thread

TL;DR Marginalia Search's author posts a pro forma project update: donations and API-key sales are rising, the search engine is in a maintenance and bug-fix phase, and the index code is being slowly migrated from Java to C++ for performance and developer ergonomics. The post also rejects AI-assisted translation and explains why the project is not rushing.

  • Donations and API-key sales have grown month over month since summer, including a $10k sponsorship from SerpApi; the author says the project is not yet self-sustaining but may get there.
  • Free API key requests now take a week or two because the manual email-to-form process is tedious and volume can exceed a dozen emails a day.
  • The author is migrating the index from Java to C++; the buffer pool and part of the main inverted index structure are already translated, with lock-free algorithms adopted in the buffer pool.
  • The motivation is CPU bottleneck and JVM overhead, with the author noting that performance is recall for a search engine, since results must be ranked within the query's time budget; the author is not convinced of a large speedup.
  • The author rules out AI-generated translation, arguing they could not maintain the resulting code, and says the project has years of runway with no investors or employees.
  • The migration is undecided and may be scrapped; there is no public git repository and the translation is not expected to finish this year.

Discussion The comments are short and split between a language debate and a question about the search engine's standing. The most upvoted reply is a praise-level remark about the author's reasoning on dependence on paid AI subscriptions. The largest thread argues over the C++ choice: one commenter recommends modern C# after porting two projects from Java and C++ with reported 30% to 300% speedups, and replies dispute whether the gains came from the language or from rewriting with fewer allocations. A smaller thread asks whether Marginalia is still the best niche web search engine, with alternatives suggested. The mood is curious and mildly skeptical rather than heated.

  • Rewrite gains come from better engineering, not the language (some): Commenters argue that the reported speedups from porting to C# were due to removing allocations and doing less wasteful work, not the C# compiler or runtime. They say a rewrite by experienced developers would show similar gains in any language.
  • Suggests C# as a modern alternative to C++ or Java (some): One commenter recommends C# for its familiarity to C++ and Java developers, expressiveness, and runtime support for allocation-free code. They cite two projects ported from Java and C++ with large performance gains.
  • Praises the author's stance on AI dependence (a few): A short comment calls the point about being subject to the whims of a landlord, referring to token prices for AI subscriptions, a key insight. It agrees with the author's reasoning for self-hosting.
  • Asks about Marginalia's standing among search engines (a few): One commenter says they had forgotten about Marginalia and asks whether it is still the best web search engine in its niche. A reply suggests Yep and DuckDuckGo Lite as classic-style alternatives, though they focus less on lost or non-commercial sites.
  • Commercial libraries limit C# appeal (a few): A commenter says C# is one of the few ecosystems with paid, non-domain-specific commercial libraries, which makes it less attractive for some projects compared to open-source options.

Links from the comments

#marginalia #searchEngine #cpp #java #sponsorship #aiTooling