<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2" -->

---
title: Marginalia Search, Money, C++, Rust, AI, Stuff | daily.dev
description: Marginalia Search got a $10k sponsorship from SerpApi, and donations and API-key sales have been rising month over month since summer. The creator is...
canonical: https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Marginalia Search, Money, C++, Rust, AI, Stuff | daily.dev
og:description: Marginalia Search got a $10k sponsorship from SerpApi, and donations and API-key sales have been rising month over month since summer. The creator is...
og:url: https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2
og:image: https://api.daily.dev/og/posts/7DnirFdH2.png
og:image:alt: Marginalia Search, Money, C++, Rust, AI, Stuff
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Marginalia Search, Money, C++, Rust, AI, Stuff

**[Hacker News](https://daily.dev/sources/hn)** · 8 min read · 0 upvotes · 0 comments

## Summary

Marginalia Search got a $10k sponsorship from SerpApi, and donations and API-key sales have been rising month over month since summer. The creator is experimenting with porting the index code from Java to C++ to escape JVM overhead, since the engine is CPU bottlenecked and performance determines how many results it can rank per query. So far only the buffer pool and part of the inverse index structure are translated, and the full rewrite likely won't finish this year. The author rejects using AI to do the translation, arguing they'd be unable to maintain AI-generated low-level code and don't want to depend on ongoing AI subscription costs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.marginalia.nu/log/a_141_marginalia_update>

## Questions this post answers

### Why is Marginalia Search rewriting its index from Java to C++ instead of using AI to do the translation?

The project is CPU bottlenecked and wants to skip the JVM tax, since for a search engine performance directly determines recall, the number of results rankable within a query's execution budget. The creator rejects having AI do the translation because they would then be unable to maintain the resulting low-level, performance-critical code themselves, and doesn't want dependency on ongoing AI subscription costs.

_Weighing a Java-to-C++ rewrite without AI help? daily.dev surfaces real engineering tradeoffs like this one._

### How is Marginalia Search funded and is it financially sustainable?

Marginalia Search is funded by donations and API-key sales, which have been rising month over month since summer, plus a one-time $10k sponsorship from SerpApi. The operation is not yet perpetually self-sustaining, but the growth in donations suggests that becoming self-sufficient might eventually be possible.

_Tracking how independent dev tools and search projects stay funded? daily.dev follows stories like Marginalia's._

## Community take

How the wider developer community reacted, aggregated from 3 discussions and 38 comments across hackernews, lobsters (as of 2026-11-25).

**TL;DR:** Discussion centers on a tangent about whether C# could deliver similar or better performance gains than a C++ rewrite, alongside broad support for rejecting AI-assisted code translation, with scattered praise for the search engine itself and a minor bug report about tracking/ads detection.

**Sentiment:** 40% positive · 40% mixed · 20% skeptical

**The case for**

- Several commenters argue C# offers excellent low-level performance tools (Span, stackalloc, intrinsics) that could rival C++ gains with less complexity.
- Many express strong support for the decision to avoid AI-generated code, citing concerns about maintainability and recurring subscription costs.
- Some praise the search engine as still being the best in its niche domain.

**The pushback**

- Some argue Java isn't inherently slow and that C++ gains likely come from tangential optimizations rather than language superiority.
- A few push back that AI-assisted translation could work fine if you iteratively simplify and verify the output.
- One commenter reports a false positive where their ad/tracking-free site is flagged incorrectly, suggesting detection issues.

**By community**

- hackernews (mixed): A long sub-thread debates whether C# could match or beat a C++ rewrite's performance, while many others strongly back the author's anti-AI-translation stance.
- hackernews (positive): A brief, supportive reply warning that AI dependency could become financially risky long-term.
- lobsters (mixed): A single comment raises a practical concern about the search engine's tracking/ads/JS detection producing false positives.

**Hottest debate:** Whether C++'s performance gains come from the language itself or simply from a more careful rewrite, with C# proposed as a comparably fast but easier alternative.

**Open questions**

- Why does the search engine's detection flag sites without tracking or ads as having them?
- Would a rewrite in C# or another language have achieved similar performance gains without the full complexity of C++?

**Highlights**

> At the risk of being one of those people shouting "but why not language X?", I'd suggest giving modern C# a serious look. Given the background in C++ and Java, it should feel fairly familiar, while being arguably much more expressive than either and offering excellent language and runtime support for writing allocation-free code. We've recently ported two large projects to C#, one from Java and another from C++, and seen performance improvements ranging from 30% to 300% faster, largely by focusing on eliminating allocations rather than doing anything particularly clever algorithmically.
> — [theolivenbaum on hackernews · 3 comments](https://news.ycombinator.com/item?id=50638627)

> The biggest difference is that you would not be writing the same code in both Java and C++. It's an exaggeration, but writing "Java in C++" would be passing every non-trivial parameter as a shared_ptr. Of course no one in the C++ community would think this was a good choice, and you generally only ever encounter ownership this messy in really old or weird libraries. The language simply gives you more ways to express ownership and memory layout/locality in idiomatic ways, whereas achieving similar behavior in Java is much less trivial. For nontrivial programs, memory layout and locality has a very significant affect on performance; rarely are you going to have a program that spends all of its time bound by ALU/FPU performance (but when you do, that control over layout means C++ has long had very capable libraries for SIMD math, where adding it to managed languages has been a much more recent addition). Really the only thing that's well known to (potentially) be faster in Java is certain lock-free datastructures where the JVM GC essentially allows object cleanup to be trivially deferred out of performance-critical points. You can do the equivalent of this in C++, but it generally requires care and it looks very weird.
> — [cpgxiii on hackernews · 1 comments](https://news.ycombinator.com/item?id=50639558)

> If the marginalia guy sees this: thank you from the bottom of my heart for writing this. Specifically the AI stuff. In a time when more and more people I highly respect are jumping on the bandwagon, the soul-draining aspects of said bandwagon are magnified. It's reassuring and heartwarming to hear the reasoned voices of likeminded people amidst the cheering crowd. It means more to some of us than you might realize. (PS: what you write about programming languages is also highly commendable! I say this as a Rust fan. You choose the technology for your thing, and the criteria are set by you. To hell with trends. Everywhere.)
> — [gspr on hackernews](https://news.ycombinator.com/item?id=50639767)

> I think the author is overindexing on the difficulty of the code. Sure if you let AI do it, they have a knack of going deeper than you yourself could but then again you can ask to simplify and explain ad infinitum. The code you end up with can be as reasonable as you desire. No need to be worried about perpetual AI serfdom..
> — [orlysosiryes on hackernews · 1 comments](https://news.ycombinator.com/item?id=50639479)

> Tangential, but Marginalia seems to think my website (willhbr.net) includes tracking and ads, when it has neither. Some posts include YT embeds, but these labels are present on all pages. Obviously you don't want to have websites skirting around the ad/tracking detection, but if I'm just doing something that's triggering this false positive, I'd happily change it! It also flags it as needing JS (or just including JS?) when it's a pure enhancement (better footnotes).
> — [willhbr on lobsters · 1 points](https://lobste.rs/s/srb0dp/marginalia_search_money_c_rust_ai_stuff#c_a01vw3)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50638220) · 74 points · 35 comments
- [hackernews](https://news.ycombinator.com/item?id=50243759) · 8 points · 2 comments
- [lobsters](https://lobste.rs/s/srb0dp/marginalia_search_money_c_rust_ai_stuff) · 13 points · 1 comments

## Similar posts on daily.dev

- [Power Up Your AI Agent With Live Web Search, for Fewer Tokens](https://daily.dev/posts/power-up-your-ai-agent-with-live-web-search-for-fewer-tokens-tksh6izca) · SitePoint · 1 upvotes · 0 comments
- [Cloudflare AI Search: give your agents a search engine for your data](https://daily.dev/posts/cloudflare-ai-search-give-your-agents-a-search-engine-for-your-data-ctstzert3) · Cloudflare · 1 upvotes · 0 comments
- [How I built a 500k-Domain Search Engine for Makers in a Weekend for $10](https://daily.dev/posts/how-i-built-a-500k-domain-search-engine-for-makers-in-a-weekend-for-10-lbhwfd3kg) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#ai-coding](https://daily.dev/tags/ai-coding), [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Marginalia Search, Money, C++, Rust, AI, Stuff","url":"https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2"},"datePublished":"2026-11-25T05:05:45.103Z","dateModified":"2026-11-25T08:00:37.371Z","description":"Marginalia Search got a $10k sponsorship from SerpApi, and donations and API-key sales have been rising month over month since summer. The creator is...","image":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","thumbnailUrl":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,ai-coding,c++","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Marginalia Search, Money, C++, Rust, AI, Stuff"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/marginalia-search-money-c-rust-ai-stuff-7dnirfdh2#faq","mainEntity":[{"@type":"Question","name":"Why is Marginalia Search rewriting its index from Java to C++ instead of using AI to do the translation?","acceptedAnswer":{"@type":"Answer","text":"The project is CPU bottlenecked and wants to skip the JVM tax, since for a search engine performance directly determines recall, the number of results rankable within a query's execution budget. The creator rejects having AI do the translation because they would then be unable to maintain the resulting low-level, performance-critical code themselves, and doesn't want dependency on ongoing AI subscription costs. Weighing a Java-to-C++ rewrite without AI help? daily.dev surfaces real engineering tradeoffs like this one."}},{"@type":"Question","name":"How is Marginalia Search funded and is it financially sustainable?","acceptedAnswer":{"@type":"Answer","text":"Marginalia Search is funded by donations and API-key sales, which have been rising month over month since summer, plus a one-time $10k sponsorship from SerpApi. The operation is not yet perpetually self-sustaining, but the growth in donations suggests that becoming self-sufficient might eventually be possible. Tracking how independent dev tools and search projects stay funded? daily.dev follows stories like Marginalia's."}}]}
```

