<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jean-Marc Autexier on Medium]]></title>
        <description><![CDATA[Stories by Jean-Marc Autexier on Medium]]></description>
        <link>https://medium.com/@jm.autexier?source=rss-693194ef69c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dTAIj8rjgu-rqyll.</url>
            <title>Stories by Jean-Marc Autexier on Medium</title>
            <link>https://medium.com/@jm.autexier?source=rss-693194ef69c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:13:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jm.autexier/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Compressing and Serializing Data at Scale: Byte-Stream Compression vs. Binary Formats]]></title>
            <link>https://medium.com/@jm.autexier/compressing-and-serializing-data-at-scale-byte-stream-compression-vs-binary-formats-9c1f6e0f975a?source=rss-693194ef69c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c1f6e0f975a</guid>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[serialization]]></category>
            <dc:creator><![CDATA[Jean-Marc Autexier]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 17:42:43 GMT</pubDate>
            <atom:updated>2026-11-21T17:44:20.024Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Note: I researched this topic, worked through the mechanics myself, and structured it to be easy to follow. As a non-native English speaker, I used AI to polish the final phrasing.</em></p><p>Moving data efficiently across networks, memory, and storage requires separating byte-stream compression from binary serialization — and matching each to your real bottleneck.</p><p>Every time a microservice answers a request, a browser downloads a bundle, or an analytics engine scans a dataset, your system pays a tax. You pay either in bandwidth and storage — pushing bloated bytes across links and disks — or in CPU and latency — burning compute cycles to pack and unpack payloads.</p><p>Engineers frequently lump compression and serialization into the same bucket, or turn on the heaviest algorithm available and call it optimization. Enable maximum Brotli compression on a high-throughput API, and your CPU utilization spikes while tail latency suffers. Leave verbose text JSON unexamined behind a compressor, and your parsers still burn cycles reading braces, quotes, and repeated field names.</p><p>Think of moving data like shipping freight across a logistics network. Byte-stream compression is how you pack cargo into containers — vacuum-sealing items tightly when space is scarce, or tossing them into fast, standardized bins when speed matters most. Binary serialization is what you do to the cargo <em>before</em> packing: replacing bulky, redundant packaging with compact, machine-friendly containers.</p><p>In this two-part guide, we examine <strong>byte-stream compression</strong> first, <strong>binary serialization formats</strong> second, and conclude with a scenario-by-scenario selection guide backed by primary specifications and technical sources.</p><p><strong>Part 1: Byte-Stream Compression — Trading CPU Cycles for Network Bandwidth</strong></p><p>Byte-stream compressors treat payloads as raw sequences of bytes, hunting for repeated strings and encoding frequent patterns with shorter bit sequences.</p><p>Lossless stream compressors do not understand JSON objects, SQL rows, or HTML tags. They look for byte-level redundancy — either within a sliding window of recent bytes or inside a pre-defined dictionary — and trade CPU work for smaller byte counts.</p><h3>General-Purpose Web &amp; Storage Codecs</h3><h3>Gzip (DEFLATE): The Universal Baseline</h3><p>Introduced in the early 1990s, <a href="https://www.gnu.org/software/gzip/">Gzip</a> wraps the <a href="https://datatracker.ietf.org/doc/html/rfc1951">DEFLATE specification (RFC 1951)</a>, combining LZ77 string matching with Huffman coding.</p><ul><li><strong>How it works:</strong> Gzip searches for repeated byte sequences inside a 32 KB sliding window and encodes symbols with variable-length Huffman prefix codes.</li><li><strong>Why it is better or worse than alternatives:</strong> Its small 32 KB window keeps memory footprint tiny and execution predictable on constrained hardware, but it misses patterns separated by more than 32 KB and decompresses slower than modern algorithms like Zstd.</li><li><strong>Best used for:</strong> Baseline HTTP compatibility when clients, proxies, or embedded systems only support gzip.</li></ul><h3>Brotli: The Static Web Champion</h3><p>Developed by Google and standardized in <a href="https://www.rfc-editor.org/info/rfc7932/">RFC 7932</a>, <a href="https://github.com/google/brotli">Brotli</a> combines LZ77 matching, context modeling, and a sliding window of up to 16 MB, as explored in <a href="https://kinsta.com/blog/brotli-compression/">Kinsta’s Brotli Compression Guide</a>.</p><ul><li><strong>How it works:</strong> Brotli includes a built-in static dictionary of roughly 13,000 common words, HTML tags, CSS keywords, and JavaScript tokens alongside word transformations, letting it compress small files and web syntax efficiently right out of the box.</li><li><strong>Why it is better or worse than alternatives:</strong> Brotli routinely beats Gzip on static web text and bundles, but high compression levels (9–11) are CPU-intensive and slow to encode dynamically per request.</li><li><strong>Best used for:</strong> Static web assets (HTML, CSS, JS, SVG, web fonts) pre-compressed during CI/CD builds or served from a CDN edge.</li></ul><h3>Zstandard (Zstd): The Modern All-Rounder</h3><p>Created at Meta and standardized in <a href="https://datatracker.ietf.org/doc/html/rfc8878">RFC 8878, Zstandard aims for Brotli-class compression ratios at speeds much closer to Gzip — with significantly faste</a>r decompression.</p><ul><li><strong>How it works:</strong> Zstd pairs LZ77 matching with Finite State Entropy (tANS) and supports custom dictionary training on sample records so short, repetitive messages compress tightly.</li><li><strong>Why it is better or worse than alternatives:</strong> Zstd hits a sweet spot of high compression ratio, fast encoding, and rapid decoding across both network payloads and storage blocks, though legacy clients or older proxies occasionally lack Content-Encoding: zstd support.</li><li><strong>Best used for:</strong> Dynamic HTTP/API traffic (typically lower levels 1–3), columnar data files in <a href="https://parquet.apache.org/">Apache Parquet</a>, log archives, and internal RPCs.</li></ul><h3>Speed-First Codecs: When Latency Beats Bandwidth</h3><h3>LZ4 and Snappy: The In-Memory Sprinters</h3><p>When throughput and low latency matter more than squeezing every last byte, <a href="https://github.com/lz4/lz4">LZ4</a> and Google’s <a href="https://github.com/google/snappy">Snappy</a> optimize for raw speed.</p><ul><li><strong>How it works:</strong> Both skip heavy entropy-encoding stages in favor of fast byte-aligned hash lookups for repeated sequences, allowing decompression at multi-gigabyte-per-second speeds per core.</li><li><strong>Why it is better or worse than alternatives:</strong> They achieve lower compression ratios than Zstd or Brotli, but consume far less CPU and add minimal latency on hot paths.</li><li><strong>Best used for:</strong> Hot caches in <a href="https://redis.io/">Redis</a>, streaming topics in <a href="https://kafka.apache.org/">Apache Kafka</a>, database blocks, and low-latency data pipelines.</li></ul><p><strong>Part 2: Binary Serialization Formats — Eliminating Bloat Before Compression</strong></p><p><em>Binary serialization formats encode structured data directly into compact bytes, removing syntax overhead and parsing cost before any byte-stream compressor runs.</em></p><p>Comparing <strong>Smile</strong> to <strong>Gzip</strong> or <strong>Brotli</strong> conflates two different architectural layers. Gzip and Brotli compress raw byte streams; binary serialization formats define how structured objects — maps, arrays, strings, numbers, and booleans — are represented on the wire.</p><p>Text-based <a href="https://datatracker.ietf.org/doc/html/rfc8259">JSON (RFC 8259)</a> is easy for humans and browsers to inspect, but expensive for machines: every record repeats property names, wraps values in quotes and delimiters, and formats numbers as ASCII text.</p><h3>Schema-Less Binary JSON Drop-Ins</h3><h3>Smile: Binary JSON for the JVM Ecosystem</h3><p>Specified by the creators of the <a href="https://github.com/FasterXML/jackson">Jackson JSON library</a>, the <a href="https://github.com/FasterXML/smile-format-specification">Smile format specification</a> defines a binary encoding for the standard JSON data model.</p><ul><li><strong>How it works:</strong> Smile replaces JSON structural punctuation with single-byte type markers, encodes numbers in binary, and uses back-references for repeated property names and short strings.</li><li><strong>Why it is better or worse than alternatives:</strong> Smile offers a seamless drop-in swap for Jackson-based services without requiring schema files, but payloads are not human-readable without a decoder and tooling is strongest on the JVM.</li><li><strong>Best used for:</strong> Internal JVM microservices and search/analytics backends that want smaller payloads and faster JSON-model processing without introducing schema codegen.</li></ul><h3>MessagePack and CBOR: Polyglot Binary JSON</h3><p><a href="https://msgpack.org/">MessagePack</a> and <a href="https://www.rfc-editor.org/rfc/rfc8949.html">CBOR (RFC 8949)</a> provide schema-less binary alternatives to JSON with broad multi-language support.</p><ul><li><strong>How it works:</strong> Each element uses compact type and length headers to encode primitives, arrays, and maps in binary, while CBOR adds standardized semantic tags for types like timestamps and binary data.</li><li><strong>Why it is better or worse than alternatives:</strong> They shrink JSON overhead and avoid schema maintenance, though repeating map keys across many records still consumes space compared to schema-driven formats.</li><li><strong>Best used for:</strong> Cross-language microservices (Go, Rust, Python, Node.js, TypeScript), cache entries, WebSockets, and standards like <a href="https://www.w3.org/TR/webauthn-2/">WebAuthn</a> that specify CBOR.</li></ul><h3>Schema-Driven &amp; Zero-Copy Formats</h3><h3>Protocol Buffers (Protobuf) and Apache Avro: Schema-First Efficiency</h3><p><a href="https://protobuf.dev/">Protocol Buffers</a> and <a href="https://avro.apache.org/">Apache Avro</a> rely on explicit schemas (.proto or .avsc) shared between producers and consumers.</p><ul><li><strong>How it works:</strong> Instead of transmitting verbose field names in every record, Protobuf uses compact numeric field tags and wire types, while Avro encodes values according to the negotiated writer/reader schema.</li><li><strong>Why it is better or worse than alternatives:</strong> They deliver much smaller unencoded payloads and strong schema evolution guarantees than schemaless JSON/binary formats, at the cost of schema governance and code generation overhead.</li><li><strong>Best used for:</strong> <a href="https://grpc.io/">gRPC</a> service-to-service APIs, internal microservice meshes, and event streaming with schema registries.</li></ul><h3>FlatBuffers: Zero-Copy Memory Access</h3><p>Developed by Google for latency-sensitive applications, <a href="https://flatbuffers.dev/">FlatBuffers</a> serializes structured data so it can be read directly from a byte buffer without full deserialization.</p><ul><li><strong>How it works:</strong> Fields are placed at deterministic offsets inside a byte buffer, allowing readers to access data in place without allocating heap objects for every record.</li><li><strong>Why it is better or worse than alternatives:</strong> It avoids parsing and allocation overhead during reads — ideal when memory allocation or GC pauses hurt — but building the buffer requires more care than Protobuf or MessagePack.</li><li><strong>Best used for:</strong> Games, mobile clients, edge workloads, and read-heavy paths where deserialization CPU and allocations are critical bottlenecks.</li></ul><h3>What to Use in Which Scenario</h3><p>In practice, high-efficiency systems often combine both layers: pick a serialization format that fits your contract and read/write profile, then apply byte-stream compression where payload size and transfer cost justify the CPU.</p><ul><li><strong>Static Web Bundles (HTML, CSS, JS, Fonts):</strong> Pre-compress with <strong>Brotli (high quality)</strong> in your build pipeline or CDN (<a href="https://kinsta.com/blog/brotli-compression/">Brotli Compression Guide</a>; <a href="https://www.rfc-editor.org/info/rfc7932/">RFC 7932</a>). You pay the compression cost once and save bandwidth across repeated downloads.</li><li><strong>Public Web &amp; Browser APIs:</strong> Keep <strong>JSON</strong> (<a href="https://datatracker.ietf.org/doc/html/rfc8259">RFC 8259</a>) for ecosystem compatibility and human debugging, and compress responses dynamically with <strong>Zstd (low levels)</strong> (<a href="https://datatracker.ietf.org/doc/html/rfc8878">RFC 8878</a>) with a <strong>Gzip</strong> (<a href="https://datatracker.ietf.org/doc/html/rfc1951">RFC 1951</a>) fallback for legacy clients.</li><li><strong>Internal JVM Services Seeking a Quick JSON Upgrade:</strong> Use <strong>Smile</strong> (<a href="https://github.com/FasterXML/smile-format-specification">Smile Format Specification</a>), optionally paired with <strong>LZ4</strong> (<a href="https://github.com/lz4/lz4">LZ4</a>) on large payloads, to cut serialization and wire bloat without managing .proto schemas.</li><li><strong>High-Scale Internal Microservices &amp; RPCs:</strong> Use <strong>Protobuf</strong> (<a href="https://protobuf.dev/">Protocol Buffers</a>) or <strong>Apache Avro</strong> (<a href="https://avro.apache.org/">Apache Avro</a>) for strict contracts and compact wire encoding, adding <strong>Zstd</strong> only when messages are large enough that compression pays off.</li><li><strong>Hot Caches &amp; High-Throughput Event Streams:</strong> Pair <strong>MessagePack</strong> (<a href="https://msgpack.org/">MessagePack</a>) or <strong>Protobuf</strong> with <strong>LZ4</strong> (<a href="https://github.com/lz4/lz4">LZ4</a>) or <strong>Snappy</strong> (<a href="https://github.com/google/snappy">Snappy</a>) so decompression stays fast and CPU overhead stays low.</li><li><strong>Analytics Storage &amp; Data Lakes:</strong> Store structured tables in columnar formats like <strong>Apache Parquet</strong> (<a href="https://parquet.apache.org/">Apache Parquet</a>) with <strong>Zstd</strong> (<a href="https://datatracker.ietf.org/doc/html/rfc8878">RFC 8878</a>) to reduce storage footprint while keeping scan decompression fast.</li><li><strong>Zero-Copy / Low-Allocation Read Paths:</strong> Use <strong>FlatBuffers</strong> (<a href="https://flatbuffers.dev/">FlatBuffers</a>) when avoiding deserialization allocations matters more than compact wire size alone.</li></ul><h3>Packing Before You Seal the Container</h3><p>Great infrastructure choices rarely come from chasing benchmarks in isolation. They come from spotting where your actual bottleneck sits — network link, CPU core, memory bus, or disk — and aligning your serialization and compression layers to that constraint. Standardize the data structure first, pick the right byte compressor second, and let measurement — not habit — set your defaults.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c1f6e0f975a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Refactoring by Hand: How OpenRewrite Automates Code Migrations at Scale]]></title>
            <link>https://medium.com/@jm.autexier/stop-refactoring-by-hand-how-openrewrite-automates-code-migrations-at-scale-48fcba6ca103?source=rss-693194ef69c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/48fcba6ca103</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[openrewrite]]></category>
            <dc:creator><![CDATA[Jean-Marc Autexier]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 03:52:43 GMT</pubDate>
            <atom:updated>2026-11-20T03:52:43.180Z</atom:updated>
            <content:encoded><![CDATA[<p>Why semantic code transformations beat regex find-and-replace—and how prebuilt recipes turn multi-week framework upgrades into repeatable build steps.<br>Upgrading a major framework across dozens of microservices usually plays out the same way. You bump the version in pom.xml or build.gradle, run the build, and watch hundreds of compiler errors cascade across renamed packages, deprecated methods, and changed configuration keys.<br>For years, the only options were tedious manual edits, fragile regex search-and-replace scripts, or letting an LLM guess at syntax—often introducing subtle formatting drift or hallucinated APIs. OpenRewrite takes a fundamentally different approach: deterministic, compiler-grade code refactoring.<br>What OpenRewrite Actually Is<br>OpenRewrite is an open-source automated refactoring engine built around a specific data structure: the Lossless Semantic Tree (LST).<br>Unlike a standard Abstract Syntax Tree (AST)—which discards whitespace, comments, and formatting to focus solely on syntax—an LST preserves every detail of your source file alongside full type attribution from the compiler.<br>What lives in the LST: Complete type signatures, resolved dependencies, imports, indentation rules, line endings, and comments across Java, Kotlin, Groovy, TypeScript, XML, YAML, and Properties files.<br>Why it matters: Because OpenRewrite understands types rather than raw text strings, it only modifies the exact method call or annotation belonging to the target library—while leaving your team’s existing code formatting untouched.<br>What You Use It For<br>Rather than treating migrations as one-off hero projects, OpenRewrite turns code maintenance into executable build tasks via Maven, Gradle, or the Moderne CLI:<br>Major Framework &amp; Runtime Upgrades: Automating heavy lifts like migrating from Java 8 to 21, Spring Boot 2 to 3 (javax.* to jakarta.*), or JUnit 4 to JUnit 5 in a single pass.<br>Security &amp; Dependency Hygiene: Pinpointing vulnerable transitive dependencies, removing unused declarations, and keeping Maven or Gradle build files clean and consistent.<br>Enforcing Architectural Standards: Eliminating anti-patterns, migrating internal company SDKs, and fixing static analysis issues automatically in CI/CD pipelines before code review even starts.<br>Recipes: The Building Blocks of Automation<br>In OpenRewrite, transformations are packaged as Recipes—composable, deterministic rules written in Java or declared in YAML. A single recipe might swap one deprecated method call, while a composite recipe chains hundreds of smaller rules together to execute an entire framework migration.<br>You rarely have to write these from scratch. The ecosystem provides thousands of battle-tested, prebuilt transformations cataloged in the Code Genome Project Recipe Marketplace.<br>Plug-and-play catalog: Browse thousands of ready-to-run recipes across Maven, npm, NuGet, and PyPI—covering everything from Spring and Quarkus migrations to AWS SDK upgrades and common static analysis fixes.<br>Deterministic by design: Unlike generative AI, a recipe produces the exact same diff every time it runs. You can preview changes locally via dry-run, validate the recipe logic once, and roll it out safely across every repository in your organization.<br>Treating code migrations as versioned, deterministic recipes shifts architectural maintenance from manual busywork to repeatable engineering. Instead of spending sprints chasing breaking API changes by hand, your team reviews clean, predictable diffs—and gets back to building.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48fcba6ca103" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Isn’t One Operating System—It’s Four Layers Pretending to Be One]]></title>
            <link>https://medium.com/@jm.autexier/android-isnt-one-operating-system-it-s-four-layers-pretending-to-be-one-fd6d96fd8ad1?source=rss-693194ef69c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd6d96fd8ad1</guid>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Jean-Marc Autexier]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 20:26:01 GMT</pubDate>
            <atom:updated>2026-11-18T21:12:29.526Z</atom:updated>
            <content:encoded><![CDATA[<p>When you unlock an Android phone, tap your credit card at a terminal, and share a photo with a friend, it feels like a single, unified operating system.</p><p>Under the hood, it’s actually a carefully negotiated truce between four distinct architectural layers, maintained by different teams, written under different licenses, and updated on completely different schedules.</p><p>If you’ve ever wondered why your phone gets new features every month even when your manufacturer hasn’t shipped an OS update in a year—or why Android used to be plagued by multi-year update delays—you have to look at how AOSP, Project Treble, Project Mainline, and Google Play Services fit together.</p><h3>The Foundation: Core Android (AOSP)</h3><p>At the bottom of the software stack sits the Android Open Source Project (AOSP), first unveiled in 2007 and launched in 2008. AOSP is the open-source blueprint of Android. It contains the core operating system framework, the Android Runtime (ART) that executes apps, the window manager, basic system UI, and the fundamental security sandbox.</p><p>Think of AOSP as the chassis and engine block of a car. Anyone—Samsung, Google, Xiaomi, or an independent custom-ROM developer—can download the AOSP source code, modify it, and build an operating system.</p><p>However, AOSP has two major limitations on its own:</p><p>It doesn&#39;t know how to talk to specific hardware. AOSP doesn&#39;t include the proprietary drivers for a Qualcomm modem, a Sony camera sensor, or a Samsung display.<br>It lacks Google’s ecosystem. Out of the box, pure AOSP has no Play Store, no push notifications, no Google Maps APIs, and no passkey sync.</p><p>For years, solving those two problems created Android’s biggest headache: fragmentation. Every time Google released a new version of AOSP, chipmakers and phone manufacturers (OEMs) had to manually re-wire their hardware drivers into the new OS code—a slow, expensive process that left millions of phones stranded on outdated software.</p><p>To fix this without turning Android into a closed, Apple-style walled garden, Google spent the next decade slicing the OS into independent, updatable layers.</p><h3>Layer 1: Google Play Services (2012) — The Ecosystem &amp; API Layer</h3><p>What it is: A proprietary background system app (com.google.android.gms) and developer SDK suite maintained exclusively by Google.<br>When it started: September 2012.<br>How it evolved: Originally built to decouple Google+ sign-in and OAuth 2.0 from OS updates, Play Services steadily absorbed almost every user-facing ecosystem feature on Android. Over the last five years, it evolved into Android&#39;s cross-device and security broker—handling Passkeys and Credential Manager, Quick Share, the crowdsourced Find Hub network, Theft Detection Lock, Play Integrity hardware attestation, and on-device ML Kit GenAI APIs.<br>What lives here: Location services (Fused Location Provider), push notifications (Firebase Cloud Messaging), Google Wallet/Pay, passkey syncing, and cross-device handoff.</p><p>Why it matters: Play Services updates silently in the background via the Google Play Store every few weeks. It allowed Google to ship modern features (like offline theft locking or passkeys) to phones running four-year-old versions of Android, completely bypassing phone manufacturers.</p><h3>Layer 2: Project Treble (2017) — The Hardware Abstraction Layer</h3><p>What it is: A modular re-architecture of the low-level OS that separates the core Android framework from vendor-specific hardware drivers.<br>When it started: Android 8.0 (Oreo) in August 2017.<br>How it evolved: Treble introduced a strict, versioned boundary (originally via HIDL, now standardized on Stable AIDL) between AOSP and the vendor implementation. Over the last five years, Google pushed Treble even deeper into the stack:<br>Generic Kernel Image (GKI): Starting in Android 12, Google standardized the core Linux kernel itself, isolating SoC-specific hardware drivers into dynamically loaded kernel modules (vendor_dlkm).<br>Streamlining &amp; Vendor APEXs: By Android 15 and 16, Google deprecated legacy Treble bloat (like HIDL and the VNDK) and allowed chipmakers to package hardware drivers as updatable Vendor APEX modules—culminating in Android 17&#39;s dynamic early-boot module selection.<br>What lives here: Modem firmware interfaces, camera HALs (Hardware Abstraction Layers), GPU drivers, fingerprint sensor drivers, and the Linux kernel.</p><p>Why it matters: Before Treble, upgrading Android meant rewriting hardware glue code. With Treble and GKI, Google and OEMs can upgrade the Android OS framework sitting above the Treble boundary without waiting for Qualcomm or MediaTek to rewrite low-level hardware drivers sitting below it.</p><h3>Layer 3: Project Mainline (2019) — The Modular OS Core</h3><p>What it is: A system that packages core, open-source AOSP components as modular APEX (Android Pony EXpress) and APK files that Google can update directly.<br>When it started: Android 10 in September 2019.<br>How it evolved: Play Services could update proprietary Google APIs, and Treble made full OS upgrades easier—but critical core OS components (like media codecs, networking stacks, and timezone rules) were still trapped inside the read-only system partition. Mainline broke those pieces out of the monolith. Starting with roughly a dozen modules in Android 10, Mainline expanded across Android 14–17 to modularize Health Connect, Remote Key Provisioning, Thread networking, NFC, Crash Recovery, UprobeStats telemetry, and ART garbage collection backports.<br>What lives here: The Android Runtime (ART), MediaProvider &amp; Photo Picker, Bluetooth and Wi-Fi stacks, NFC services, DNS resolver, Conscrypt (TLS/crypto), and system crash recovery.</p><p>Why it matters: Mainline updates arrive via Google Play system updates (found under Settings &gt; Security &amp; privacy &gt; System &amp; updates). When a critical vulnerability is discovered in Android&#39;s media parser or NFC stack, Google can patch hundreds of millions of phones directly without waiting for carriers or OEMs to build a full firmware OTA.</p><h3>How It All Works Together: A Real-World Example</h3><p>To see how these four layers collaborate in real time, trace what happens when you walk up to a coffee shop register and pay with your phone:</p><p>You unlock your phone with your fingerprint:<br>Project Treble is at work. The fingerprint sensor hardware communicates through a vendor-written Hardware Abstraction Layer (HAL) across the Stable AIDL boundary into the AOSP biometric framework, verified inside a hardware-backed Trusted Execution Environment.<br>Your phone verifies it’s safe to pay:<br>Google Play Services runs a Play Integrity check in the background, cryptographically attesting to your bank that the device isn&#39;t rooted, tampered with, or running malicious screen-overlay apps.<br>You tap your phone against the NFC reader:<br>Project Mainline handles the low-level radio handshake. On modern Android versions (Android 16+), the NFC Services APEX module processes the contactless NCI protocol and routes the APDU commands through the OS—using code Google updated directly via a Play system update.<br>The payment app processes the transaction:<br>Core Android (AOSP) provides the isolated app sandbox, schedules the CPU threads via the ART runtime (also updated via Mainline), and renders the checkmark animation on your screen.</p><h3>The Big Picture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qkmF6zuaVgERp2-7HDUlHQ.jpeg" /></figure><p>What we call &quot;Android&quot; today isn&#39;t a single monolithic piece of software. It is a layered engine: Treble keeps the hardware steady, AOSP provides the open foundation, Mainline keeps the core internals patched and modern, and Play Services ties your device into a living ecosystem—all working together so you never have to think about which layer is doing the work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd6d96fd8ad1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Your Organisation Is the Engine: Engineering Teams the Way We Engineer Code]]></title>
            <link>https://medium.com/@jm.autexier/your-organisation-is-the-engine-engineering-teams-the-way-we-engineer-code-1fb45ddf189b?source=rss-693194ef69c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fb45ddf189b</guid>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[context]]></category>
            <category><![CDATA[context-engineering]]></category>
            <category><![CDATA[10x-engineer]]></category>
            <dc:creator><![CDATA[Jean-Marc Autexier]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 14:23:16 GMT</pubDate>
            <atom:updated>2026-11-21T17:43:45.954Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Note: I researched this topic, worked through the mechanics myself, and structured it to be easy to follow. As a non-native English speaker, I used AI to polish the final phrasing.</em></p><p><strong>How we plan to turn every engineer into a 10x engineer: not with better prompts, but with a foundation people and agents can both read.</strong></p><h3><strong>More code, not more value</strong></h3><p>Every engineering team I know has adopted AI coding tools. The results are impressive on one chart and disappointing on another.</p><p>An article by<a href="https://medium.com/ai-advances/the-top-1-of-ai-coders-barely-prompt-they-do-this-instead-0015703c6064"> Jose Crespo in <em>AI Advances</em> </a>put numbers on it:</p><ul><li>📈 Commits increased by ~240%</li><li>🚀 Releases increased by ~30%</li></ul><p>We’re producing far more code, but not delivering far more value.</p><p>The same article estimates that only about <strong>2% of engineers work at the “10x” level</strong>, even with AI.</p><h3>The 10x engineer</h3><p>The idea of the 10x engineer dates back to a 1968 study by Sackman, Erikson, and Grant, later popularized in <em>The Mythical Man-Month</em>. It observed that top programmers could outperform peers by an order of magnitude.</p><p>Over time, the term was often misunderstood as someone who simply types faster or produces more code. In reality, a 10x engineer delivers ten times the business and system impact by:</p><ul><li>Solving the right problem</li><li>Avoiding dead ends</li><li>Designing clean abstractions that multiply everyone else’s work</li></ul><p>The other 98% are not worse engineers. They use the same tools.</p><p>What they lack is the context their code depends on.</p><p>I think that is the real story of AI in engineering so far:</p><blockquote><em>The tools got faster. The context did not.</em></blockquote><h3><strong>The bottleneck is in our heads</strong></h3><p>Think about the questions you answer every week:</p><ul><li>Who owns this service?</li><li>Which logging format do we use?</li><li>Did we already decide this?</li><li>Is there a library for that?</li><li>How do I ship a hotfix?</li></ul><p>In most organisations, the answers live:</p><ul><li>In a few people’s heads</li><li>In outdated confluence pages</li><li>In chat threads</li><li>In habits</li></ul><p>So we <strong>lose time </strong>asking around.</p><p>We <strong>make decisions</strong> without the full picture.</p><p>We <strong>duplicate work</strong>, build the same thing two different ways, and reinvent the wheel.</p><p>Now add <strong>AI agents</strong>.</p><p>An agent has the same problem, but it doesn’t ask. It assumes.</p><p>Ask it to add logging and it picks a popular default, while your team agreed on a specific format years ago.</p><p>You can’t fit all of that into a prompt.</p><p>The agent doesn’t amplify your expertise.</p><blockquote><em>It </em><strong><em>amplifies</em></strong><em> your knowledge gap.</em></blockquote><h3><strong>Tune the engine, not just the car</strong></h3><p>Our products mirror how we work.</p><ul><li>Team boundaries become service boundaries.</li><li>Unclear ownership becomes unclear code.</li><li>An ad-hoc organisation builds ad-hoc products.</li></ul><p>So if you want a much better product, fixing the product alone isn’t enough.</p><p>Fixing one design flaw changes one thing.</p><p>Changing how the organisation works changes every product it builds.</p><blockquote><em>The organisation is the engine; the product is the car.</em></blockquote><p>As engineers, we already <strong>know how to build reliable systems</strong>:</p><ul><li>Write things down <strong>formally</strong></li><li><strong>Version</strong> them in Git</li><li><strong>Review</strong> them by pull request</li><li>Let a pipeline <strong>validate</strong> them</li></ul><p>The idea is simple:</p><blockquote><em>Apply the same discipline to the organisation itself.</em></blockquote><p>Git becomes the <strong>single source of truth</strong> for who we are, what we decided, and how we work.</p><p>That<strong> knowledge becomes a foundation layer</strong> that both people and agents can read.</p><h3><strong>Four layers of “as code”</strong></h3><p>We are building that foundation in four parts.</p><p>Each uses a format chosen to be readable by a human and precise enough for a machine.</p><h3><strong>Organisation as Code</strong></h3><p>Teams, systems, services, shared resources, and their owners live in <a href="https://backstage.io/">Backstage</a> as Kubernetes-style YAML files in Git.</p><p>Every service repository carries a small catalog file that identifies:</p><ul><li>Owner</li><li>System</li><li>Relationships</li></ul><p><strong>Direct benefit</strong></p><p>✅ Nobody has to ask who owns what</p><p>✅ Neither does an agent</p><p>✅ Pipelines reject incorrect ownership</p><p>✅ Diagrams, trackers, and dashboards are generated automatically from the same source</p><h3><strong>Architecture as Code</strong></h3><p>Our rules live in <strong>specifications</strong> written in Markdown.</p><p>Each rule contains:</p><ul><li>An ID</li><li>A status</li><li>A single checkable sentence using <a href="https://www.rfc-editor.org/info/rfc2119/">RFC 2119 </a>keywords: MUST, SHOULD, MAY …</li></ul><p>Decisions are recorded as <a href="https://adr.github.io/"><strong>ADRs</strong></a>.</p><p>Cross-team changes go through an RFC reviewed via pull request.</p><p><strong>Direct benefit</strong></p><p>✅ Rules can be <strong>validated</strong> automatically</p><p>✅ Decisions retain their rationale long after meetings end</p><p>✅ Agents follow our standards instead of generic industry defaults</p><h3><strong>Features as Code</strong></h3><p>A product requirement is not yet a solution.</p><p>Before coding, we translate requirements into intent.</p><p>Each feature consists of:</p><p><strong>WHY — </strong>The intention</p><p><strong>WHAT — </strong>The behavior</p><p><strong>HOW — </strong>The implementation tasks</p><p>The WHAT is expressed in <a href="https://cucumber.io/docs/gherkin/">Gherkin</a> scenarios:</p><ul><li>Given</li><li>When</li><li>Then</li></ul><p><strong>Direct benefit</strong></p><p>✅ Developers and agents implement what was intended</p><p>✅ Open questions surface before coding starts</p><p>✅ Every scenario becomes a living test after delivery</p><h3><strong>Process as Code</strong></h3><p>How we work, from opening a pull request to handling an incident, is written as a semi-formal Markdown document.</p><p>Each process includes:</p><ul><li>Owner</li><li>Trigger</li><li>Step table</li><li>Roles</li><li>Outputs</li><li>Checkable rules</li></ul><p><strong>Direct benefit</strong></p><p>✅ Clear checklists instead of tribal knowledge</p><p>✅ Agents can execute processes step by step</p><p>✅ Pipelines can verify outcomes automatically</p><h3><strong>Automation on top, now that it’s cheap</strong></h3><p>A foundation is only half the story.</p><p>The boost comes from what you build on top of it.</p><p>Not long ago, automation was expensive. For many tasks, the cost of automating outweighed the benefit. So we kept doing 10-minute tasks manually. Again. And again. And again. Each task created another context switch.</p><p>AI changed that equation.</p><p>An assistant can bring the know-how, even in domains you don’t know well, and draft the automation in minutes.</p><p>Suddenly <strong>the 10-minute task becomes worth automating</strong>.</p><p>Add enough of those together and you recover hours every week.</p><p><strong>Two rules keep this healthy</strong></p><p><strong>1. Treat automation like any other code</strong></p><ul><li>Write it with AI assistance</li><li>Add tests</li><li>Review it through pull requests</li><li>Run the same code locally and in CI</li></ul><p><strong>2. Let scripts do the work, not the model</strong></p><p>Scripts are:</p><ul><li>Faster</li><li>Cheaper</li><li>Deterministic</li></ul><p>Use AI to write the automation.</p><p>Don’t use AI to <em>be</em> the automation.</p><p>On the AI side, skills close the loop.</p><p>A skill teaches an agent how <em>we</em> do something by connecting it directly to the source of truth in Git.</p><p>You no longer need to remember every convention.</p><blockquote><em>Your agent will.</em></blockquote><h3><strong>Start small, improve forever</strong></h3><p>This sounds like a huge project.</p><p>A few years ago, it would have been.</p><p>Writing down an entire organisation, its rules, and its processes was exactly the kind of work nobody had time for.</p><p>AI makes it dramatically faster.</p><p>It drafts:</p><ul><li>Catalog files</li><li>Specs</li><li>Scenarios</li><li>Scripts</li></ul><p>We review and improve them.</p><p>This is not a big-bang transformation.</p><p>We won’t have every spec perfected tomorrow.</p><p>And we don’t need to.</p><p>We start with:</p><ul><li>One catalog</li><li>One spec</li><li>One process</li></ul><p>Then improve them one pull request at a time.</p><p>The nice property of a foundation is that <strong>every piece delivers value</strong> immediately.</p><ul><li>Every owner documented is a question nobody asks again.</li><li>Every rule documented is a check an agent can follow.</li><li>Every artifact benefits people, agents, pipelines, and automation the moment it lands.</li></ul><h3><strong>That is how you get to 10x</strong></h3><p>Not by hiring a few heroes.</p><p>Not by writing better prompts.</p><p>But by giving every engineer, and every agent, access to the same complete context.</p><blockquote><strong><em>Engineer the organisation, and the organisation engineers better products</em></strong><em>.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fb45ddf189b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Song/Music detection]]></title>
            <link>https://medium.com/@jm.autexier/music-detection-9da1f2d56b04?source=rss-693194ef69c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9da1f2d56b04</guid>
            <category><![CDATA[google-play-music]]></category>
            <category><![CDATA[shazam]]></category>
            <category><![CDATA[android-auto]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-wear]]></category>
            <dc:creator><![CDATA[Jean-Marc Autexier]]></dc:creator>
            <pubDate>Wed, 25 Oct 2017 10:14:23 GMT</pubDate>
            <atom:updated>2017-10-25T10:14:56.681Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Song/Music detection</strong></p><p>Do you know that Google Play music can recognize songs (similar to <a href="https://www.shazam.com/de">Shazam</a>) when opening the search bar?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ruIxWkv-7HFqnkq0YN9_NQ.png" /></figure><p><strong>Song detection Shortcut</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*7s0vRyTkv6BIGrrWafFBJg.jpeg" /></figure><p>This function should be available as a shortcut on the app to make it much quicker callable.</p><p>The functionality should also be added to <strong>Android Auto and Android Wear</strong> versions of Google Play music.</p><p><strong>Song detection in Android Auto</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TCRVWm9bnrhh6uPnHvRJA.png" /></figure><p>Imagine sitting in the car, listening to radio music and just having to press in a button on Android auto to activate song recognition. Of course this should be available through an API, and apps like GPM and Shazam register for “Song detection”. The user can than choose which app to use. The UI would show the interpret, the title and album cover.</p><p><strong>Google Play Music and Android Wear</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWUrm3sq8563GFapTxC2PA.jpeg" /></figure><p>Song recognition should also be available on your watch (same as Shazam).</p><p>Once recognized, it should allow quick sharing of the song (Twitter, Google+, Facebook) and to add the song to a playlist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9da1f2d56b04" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>