frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

SourceFS: A 2h+ Android build becomes a 15m task with a virtual filesystem

https://www.source.dev/journal/sourcefs
84•cdesai•5h ago

Comments

theossuary•2h ago
Why tf does an electric vehicle need 500m+ lines of code
jeffbee•2h ago
Some people actually write tests.
api•2h ago
Could you just do the build in /dev/shm?
ongy•2h ago
No. `/dev/shm` would just be a build in `tmpfs`.

Though from what I gather form the story, part of the spedup comes from how android composes their build stages.

I.e. speeding up by not downloading everything only helps if you don't need everything you download. And adds up when you download multiple times.

I'm not sure they can actually provide a speedup in a tight developer cycle with a local git checkout and a good build system.

ongy•2h ago
While it looks like at least some of the team are ex-googlers, this isn't the srcfs we know from piper (Google internal tools).

Looks like it's similar in some ways. But they also don't tell too much and even the self-hosting variant is "Talk to us" pricing :/

jonnrb•2h ago
WDYM this seems very familiar. At commit deadbeef I don't need to materialize the full tree to build some subcomponent of the monorepo. Did I miss something?

And as for pricing... are there really that many people working on O(billion) lines of code that can't afford $TalkToUs? I'd reckon that Linux is the biggest source of hobbyist commits and that checks out on my laptop OK (though I'll admit I don't really do much beyond ./configure && make there...)

ongy•2h ago
Oh yea, this is "srcfs the idea" but not "srcfs the project".

I.e. this isn't something battel tested for hundreds of thousands of developers 24/7 over the last years. But a simple commercial product sold by people that liked what they used.

Well, since android is their flagship example, anyone that wants to build custom android releases for some reason. With the way things are, you don't need billions of code of your own code to maybe benefit from tools that handle billions of lines of code.

7e•1h ago
Google or Meta needs to open source their magic VFSes. Maybe Meta is closest with EdenFS.
mattnewton•1h ago
I have thought about this, but also wondered if it would be as magic without the highly paid team of fantastic SRE and maintainers, and the ridiculous amount of disk and compute available to them.
fragmede•32m ago
I imagine it would be as magic as blaze vs bazel out in the wild. That is, you need still someone(s) to do a ton of hard work to make it work right but when it does you do get the magic.
Ericson2314•2h ago
The headline times are a bit ridiculous. Are they trying to turn https://github.com/facebook/sapling/blob/main/eden/fs/docs/O... or some git fuse thing into a product?
jonnrb•2h ago
It seems like that plus some build output caching?
zokier•2h ago
Well they also claim to be able to cache build steps somehow build-system independently.

> As the build runs, any step that exactly matches a prior record is skipped and the results are automatically reused

> SourceFS delivers the performance gains of modern build systems like Bazel or Buck2 – while also accelerating checkouts – all without requiring any migration.

Which sounds way too good to be true.

fukka42•1h ago
Seems viable if you can wrap each build stap with a start/stop signal.

At the start snapshot the filesystem. Record all files read & written during the step.

Then when this step runs again with the same inputs you can apply the diff from last time.

Some magic to automatically hook into processes and doing this automatically seems possible.

vlovich123•1h ago
Yeah, I agree. This part is hand waved away without any technical description of how they manage to pull this off since knowing what is even a build step and what dependencies and outputs are are only possible at the process level (to disambiguate multi threaded builds). And then there’s build steps that have side effects which come up a lot with CMake+ninja.
MangoToupe•53m ago
You could manage this with a deterministic vm, cf antithesis.
DuckConference•2h ago
Their performance claims are quite a bit ahead of the distributed android build systems that I've used, I'm curious what the secret sauce is.
cogman10•2h ago
Is it going to be anything more than just a fancier ccache?
vlovich123•1h ago
It’s definitely not ccache as they cover that under compiler wrapper. This works for Android because a good chunk of the tree is probably dead code for a single build (device drivers and whatnot). It’s unclear how they benchmark - they probably include checkout time of the codebase which artificially inflates the cost of the build (you only checkout once). It’s a virtual filesystem like what Facebook has open sourced although they claim to also do build caching without needing a dedicated build system that is aware of this and that part feels very novel
refulgentis•51m ago
Re: including checkout, it’s extremely unlikely. source: worked on Android for 7 years, 2 hr build time tracks to build time after checkout on 128 core AMD machine; checkout was O(hour), leaving only an hour for build if that was the case.
bityard•2h ago
Meh, content marketing for a commercial biz. There are no interesting technical details here.

I was a build engineer in a previous life. Not for Android apps, but some of the low-effort, high-value tricks I used involved:

* Do your building in a tmpfs if you have the spare RAM and your build (or parts of it) can fit there.

* Don't copy around large files if you can use symlinks, hardlinks, or reflinks instead.

* If you don't care about crash resiliency during the build phase (and you normally should not, each build should be done in a brand-new pristine reproducible environment that can be thrown away), save useless I/O via libeatmydata and similar tools.

* Cross-compilers are much faster than emulation for a native compiler, but there is a greater chance of missing some crucial piece of configuration and silently ending up with a broken artifact. Choose wisely.

The high-value high-effort parts are ruthlessly optimizing your build system and caching intermediate build artifacts that rarely change.

7e•1h ago
That’s all basic stuff, and none of it solves what this product claims to.
vzaliva•2h ago
It sounds from the page that it is Android-source-code specific. Why? Could this work with any source code base?
everlier•2h ago
If my understanding is correct, this only makes sense for codebases that do not fit in memory of a largest build box an organisation can run
rs186•1h ago
I think the page itself answers your question pretty well.
forrestthewoods•1h ago
The world desperately needs a good open source VFS that supports Windows, macOS, and Linux. Waaaaay too many companies have independently reinvented this wheel. Someone just needs to do it once, open source it, and then we can all move on.
7e•1h ago
This. Such a product also solves some AI problems by matting you version very large amounts of training data in a VCS like git, which can then be farmed out for distributed unit testing.

Willow quantum chip demonstrates verifiable quantum advantage on hardware

https://blog.google/technology/research/quantum-echoes-willow-verifiable-quantum-advantage/
215•AbhishekParmar•2h ago•119 comments

HP SitePrint

https://www.hp.com/us-en/printers/site-print/layout-robot.html
46•gjvc•53m ago•17 comments

JMAP for Calendars, Contacts and Files Now in Stalwart

https://stalw.art/blog/jmap-collaboration/
15•StalwartLabs•46m ago•0 comments

Cryptographic Issues in Cloudflare's Circl FourQ Implementation (CVE-2025-8556)

https://www.botanica.software/blog/cryptographic-issues-in-cloudflares-circl-fourq-implementation
107•botanica_labs•3h ago•51 comments

Meta is axing 600 roles across its AI division

https://www.theverge.com/news/804253/meta-ai-research-layoffs-fair-superintelligence
137•Lionga•1h ago•78 comments

Look, Another AI Browser

https://manuelmoreale.com/thoughts/look-another-ai-browser
36•v3am•56m ago•9 comments

Linux Capabilities Revisited

https://dfir.ch/posts/linux_capabilities/
110•Harvesterify•4h ago•19 comments

Bild AI (YC W25) Is Hiring a Founding AI Engineer

https://www.ycombinator.com/companies/bild-ai/jobs/m2ilR5L-founding-engineer-applied-ai
1•rooppal•1h ago

Introducing Galaxy XR, the first Android XR headset

https://blog.google/products/android/samsung-galaxy-xr/
64•thelastgallon•1h ago•66 comments

MinIO stops distributing free Docker images

https://github.com/minio/minio/issues/21647#issuecomment-3418675115
521•LexSiga•11h ago•317 comments

Designing software for things that rot

https://drobinin.com/posts/designing-software-for-things-that-rot/
107•valzevul•20h ago•20 comments

AI assistants misrepresent news content 45% of the time

https://www.bbc.co.uk/mediacentre/2025/new-ebu-research-ai-assistants-news-content
292•sohkamyung•4h ago•219 comments

Scripts I wrote that I use all the time

https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/
46•speckx•3h ago•9 comments

Chess engines didn't replace Magnus Carlsen, and AI won't replace you

https://coding-with-ai.dev/posts/use-ai-like-magnus-carlsen/
16•codeclimber•2h ago•26 comments

The security paradox of local LLMs

https://quesma.com/blog/local-llms-security-paradox/
83•jakozaur•5h ago•49 comments

SourceFS: A 2h+ Android build becomes a 15m task with a virtual filesystem

https://www.source.dev/journal/sourcefs
85•cdesai•5h ago•27 comments

The Logarithmic Time Perception Hypothesis

http://www.kafalas.com/Logtime.html
23•rzk•2h ago•8 comments

Internet's biggest annoyance: Cookie laws should target browsers, not websites

https://nednex.com/en/the-internets-biggest-annoyance-why-cookie-laws-should-target-browsers-not-...
406•SweetSoftPillow•5h ago•432 comments

Die shots of as many CPUs and other interesting chips as possible

https://commons.wikimedia.org/wiki/User:Birdman86
159•uticus•4d ago•30 comments

Show HN: Create interactive diagrams with pop-up content

https://vexlio.com/features/interactive-diagrams-with-popups/
4•ttd•3h ago•0 comments

Farming Hard Drives (2012)

https://www.backblaze.com/blog/backblaze_drive_farming/
21•floriangosse•6d ago•11 comments

Patina: a Rust implementation of UEFI firmware

https://github.com/OpenDevicePartnership/patina
95•hasheddan•1w ago•15 comments

French ex-president Sarkozy begins jail sentence

https://www.bbc.com/news/articles/cvgkm2j0xelo
309•begueradj•12h ago•393 comments

Cyborgs vs. rooms, two visions for the future of computing

https://interconnected.org/home/2025/10/13/dichotomy
3•surprisetalk•3d ago•0 comments

Go subtleties

https://harrisoncramer.me/15-go-sublteties-you-may-not-already-know/
178•darccio•1w ago•133 comments

Evaluating the Infinity Cache in AMD Strix Halo

https://chipsandcheese.com/p/evaluating-the-infinity-cache-in
130•zdw•13h ago•53 comments

Count-Min Sketches in JS – Frequencies, but without the data

https://www.instantdb.com/essays/count_min_sketch
6•stopachka•1h ago•1 comments

Show HN: Cadence – A Guitar Theory App

https://cadenceguitar.com/
151•apizon•1w ago•47 comments

Power over Ethernet (PoE) basics and beyond

https://www.edn.com/poe-basics-and-beyond-what-every-engineer-should-know/
226•voxadam•6d ago•183 comments

Knocker, a knock based access control system for your homelab

https://github.com/FarisZR/knocker
58•xlmnxp•9h ago•101 comments