Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Former Firaxis Games creative director announces closure of Midsummer Studios

    Remake specialist Bluepoint Games, co-developer of God of War Ragnarok, shut down by Sony

    Football commentator permits EA to use an AI version of his voice for EA Sports FC

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Tensions between the Pentagon and AI giant Anthropic reach a boiling point

      February 21, 2026

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026
    • Business

      Gartner: Why neoclouds are the future of GPU-as-a-Service

      February 21, 2026

      The HDD brand that brought you the 1.8-inch, 2.5-inch, and 3.5-inch hard drives is now back with a $19 pocket-sized personal cloud for your smartphones

      February 12, 2026

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026
    • Crypto

      3 Altcoins Crypto Whales are Buying After Supreme Court’s Trump Tariff Ban

      February 22, 2026

      SBI Deepens XRP Bet With Bond Incentives and Venture Studio Plan

      February 22, 2026

      IoTeX Hit by Private Key Exploit, Attacker Drains Over $2 Million

      February 22, 2026

      Solana Price Faces a Bull Trap as 50% Holders Exit

      February 22, 2026

      XRP Flaunts a 3-Week ETF Inflow Streak, So Why is Price Still Stuck Below $1.50?

      February 22, 2026
    • Technology

      U.S. Cannot Legally Impose Tariffs Using Section 122 of the Trade Act of 1974

      February 22, 2026

      Japanese Woodblock Print Search

      February 22, 2026

      Today’s NYT Mini Crossword Answers for Sunday, Feb. 22

      February 22, 2026

      A Botnet Accidentally Destroyed I2P

      February 22, 2026

      How I use Claude Code: Separation of planning and execution

      February 22, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Compiler Explorer and the Promise of URLs That Last Forever
    Technology

    Compiler Explorer and the Promise of URLs That Last Forever

    TechAiVerseBy TechAiVerseMay 28, 2025No Comments5 Mins Read3 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Compiler Explorer and the Promise of URLs That Last Forever
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Compiler Explorer and the Promise of URLs That Last Forever

    The history is this: back in the old days (2012), we used to store the entire Compiler Explorer state in the URL. That got unwieldy (who would have thought encoding an entire compiler state in a URL might get a bit long?), so we added support for Google’s link shortener goo.gl in March 2014. That meant short links were of the form goo.gl/abc123. Clicking a goo.gl link would eventually redirect you to the full URL link on our site, and we’d decode the state from the URL.

    In 2016, Stack Overflow banned link shorteners because of how they cloak the actual destination of links. Abusers could post innocent goo.gl links that directed folks unwittingly to bad content. However, that meant our Compiler Explorer links were also affected. At the time, we had no intention of storing any user data, so we came up with a hack: we still used goo.gl, but we then rewrote the link we handed out to be godbolt.org/g/abc123 (where the abc123 is the goo.gl unique ID). We then redirected any hits to /g/abc123 to goo.gl/abc123, which then (finally) redirected back to godbolt.org with the appropriate state in the URL. If you’re keeping track, that’s three redirects to show you some assembly code. We were really committed to making things complicated. Later, we used Google’s API to avoid the redirection dance.

    By 2018, the limitations of storing state in the URL started to bite. There’s a limit to how long a URL can be (and we’d already started compressing the data in the URL), so we needed a better solution. We finally implemented our own storage solution: we hash the input, save the state as a JSON document on S3 under the hash, and then give out a shortened form of the hash as a godbolt.org/z/hashbit URL. We use DynamoDB to store the mapping of shortened hashes to the full paths (accounting for partial collisions, etc.). And, amusingly, we check the short link’s hash for rude words and add deliberate extra information into the document until we no longer get a rude word. Yes, we literally check if your shortened URL contains profanity. Because apparently even random hashes can’t be trusted to keep it clean. This led to bug #1297, which remains one of my favourite issues we’ve ever had to fix.

    We still support the godbolt.org/g/abc123 links, but… despite Google solemnly promising that “all existing links will continue to redirect to the intended destination,” it went read-only a few years back, and now they’re finally sunsetting it in August 2025. Here I was in 2014, thinking I was so clever using Google’s shortener. “It’ll be around forever!” I said. “Google never discontinues products!” I said. Er…

    That means we’ll no longer be able to resolve goo.gl-based links! Which is, to use technical terminology, a bit pants. One of my founding principles is that Compiler Explorer links should last forever. I can’t do anything about the really legacy actual goo.gl links, but I can do something about the godbolt.org/g/abc123 links!

    Over the last few days, I’ve been scraping everywhere I can think of, collating the links I can find out in the wild, and compiling my own database of links1 – and importantly, the URLs they redirect to. So far, I’ve found 12,000 links from scraping:

    • Google (using their web search API)
    • GitHub (using their API)
    • Our own (somewhat limited) web logs
    • The archive.org Stack Overflow data dumps
    • Archive.org’s own list of archived webpages

    12,298 rescued links and counting – not bad for a few days of digital archaeology

    We’re now using the database in preference to goo.gl internally, so I’m also keeping an eye on new “g” links that we don’t yet have.

    Thanks to Peter Cordes for reminding us about this issue and bringing it to our attention2.

    If you have a secret cache of godbolt.org/g/abc123 links you have lying around, now’s the time to visit each of them! That will ensure they’re in my web logs and I’ll add them to the database. Otherwise, sadly, in August 2025 those links will stop working, joining the great digital graveyard alongside Flash games and GeoCities pages.

    The Bigger Picture

    This whole saga reinforces why I’m skeptical of relying on third-party services for critical infrastructure. Google’s URL shortener was supposed to be permanent. The redirect chains we built were clever workarounds that bought us time, but ultimately, the only way to truly keep a promise of “URLs that last forever” is to own the entire stack.

    It’s been a fascinating archaeological dig through the internet, hunting down these legacy links like some sort of digital Indiana Jones, except instead of ancient artifacts I’m rescuing compiler flags and optimization examples. Each one represents someone’s attempt to share knowledge, ask a question, or demonstrate a concept. Preserving them feels like preserving a small piece of programming history.

    So if you’ve got old Compiler Explorer links bookmarked somewhere, dust them off and give them a click. You’ll be helping preserve a little corner of the internet’s shared knowledge – and keeping a promise I made back in 2012. And hey, at least this time I’m in control of the infrastructure. What could possibly go wrong?


    Disclaimer

    This article was written by a human, but links were suggested by and grammar checked by an LLM.

    Posted at 10:12:00 CDT on 28th May 2025.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleLaunch HN: MindFort (YC X25) – AI agents for continuous pentesting
    Next Article Show HN: I rewrote my Mac Electron app in Rust
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    U.S. Cannot Legally Impose Tariffs Using Section 122 of the Trade Act of 1974

    February 22, 2026

    Japanese Woodblock Print Search

    February 22, 2026

    Today’s NYT Mini Crossword Answers for Sunday, Feb. 22

    February 22, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025688 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025277 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025159 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025120 Views
    Don't Miss
    Gaming February 22, 2026

    Former Firaxis Games creative director announces closure of Midsummer Studios

    Former Firaxis Games creative director announces closure of Midsummer Studios “We built a studio, we…

    Remake specialist Bluepoint Games, co-developer of God of War Ragnarok, shut down by Sony

    Football commentator permits EA to use an AI version of his voice for EA Sports FC

    UK’s Advertising Standards Authority bans Call of Duty: Black Ops 7 commercial for “trivializing sexual violence”

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Former Firaxis Games creative director announces closure of Midsummer Studios

    February 22, 20263 Views

    Remake specialist Bluepoint Games, co-developer of God of War Ragnarok, shut down by Sony

    February 22, 20263 Views

    Football commentator permits EA to use an AI version of his voice for EA Sports FC

    February 22, 20264 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    This new Roomba finally solves the big problem I have with robot vacuums

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.