‹ BackHN Continuity

Thread

Coding is not solved

584 points · 544 comments · firstSpeaker

  1. antonmks · · focus · HN ↗
    GitHub Copilot is now written entirely in Rust, with AI agents doing most of the porting work. The migration cost about $120,000 in AI token usage plus about three weeks of a developer's time. The effort updated the runtime module-by-module until the job was completed, spanning over 135 releases across a 14.5-week time period. 430,000 lines of TypeScript were converted into 800,000 lines of Rust.
    1. OtherShrezzing · · focus · HN ↗
      $120k to port 430,000 loc seems quite expensive. That's dozens of cents per line of code, and equivalent to the all-in cost of a senior engineer in London for a year.

      Especially expensive when you take into account the amount of that code which must have been boilerplate & meta-code in nature, meaning it should have been straightforward to move.

      1. verdverm · · focus · HN ↗
        people have forgotten how useful deterministic code generation is (and will remain)

        When the Go team ported the original compiler from C to Go, they wrote a program that did ~99% of the work

        <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QIE5nV5fDwA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QIE5nV5fDwA

        <a href="https:&#x2F;&#x2F;go.dev&#x2F;talks&#x2F;2014&#x2F;c2go.slide#18" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;talks&#x2F;2014&#x2F;c2go.slide#18

        1. verdverm · · focus · HN ↗
          it occurs to me how much better these endeavors might go if the prompt was

          &quot;write a program to transpile A to B&quot; instead of &quot;port A to B&quot;

      2. freeplay · · focus · HN ↗
        If you think it would have taken a single engineer one year to do this, you must not work in the industry. This would have taken multiple engineers at least a year.
      3. jubilanti · · focus · HN ↗
        &gt; $120k ... equivalent to the all-in cost of a senior engineer in London for a year.

        The most shocking thing I&#x27;ve read in this entire thread. Are SWE salaries really that low across the pond? That&#x27;s entry level in the US. So 90k GBP a year all in, including benefits, employer-paid taxes, seat licenses, hardware, furniture, HR? So what&#x27;s the after-tax takehome for someone senior enough to convert an enterprise codebase to a new language over one year?

      4. efficax · · focus · HN ↗
        Porting this to rust would be a multiyear, multiengineer project normally. And in fact you would almost certainly never do it, because it would be too expensive and you&#x27;d have to take engineers off of work building new features for ages.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.