6 comments

  • adzm4 hours ago
    No more babel in my compilation pipeline, yay!
    • Waterluvian2 hours ago
      It’s just the best thing ever. Compiling at work took a minute for full builds with babel, and with rsbuild it now takes about 0.9 seconds.
    • adzm2 hours ago
      Update: changed a pet project to use this instead of the babel approach. Literally just did the config changes in the article, no issues. Time from `npm run dev` to ready went from 6 to 2 seconds.
  • vmsp1 hour ago
    OXC Transformers are amazingly faster than Babel. I&#x27;m building a framework (<a href="https:&#x2F;&#x2F;github.com&#x2F;vmsp&#x2F;flypath" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vmsp&#x2F;flypath</a>) for web, iOS and Android native development that&#x27;s fully backed by OXC and Vite. Instead of transforming styles using Babel like StyleX, I just use OXC. Instead of Metro (React Native&#x27;s bundler), which also uses Babel, it&#x27;s just Vite. It&#x27;s still very early but it&#x27;s plenty, plenty fast.
  • syspec4 hours ago
    Does this work with reacts fancy new compiler that is meant to optimize away various hooks?
    • ownagefool4 hours ago
      If it wasn&#x27;t obvious from the article, this is an implementation in the same thing in rust, ergo significantly faster. This was enabled, I presume, by the upstream react introducing code a rust version in source ( but they don&#x27;t produce a standard binary last I checked )
  • Onavo2 hours ago
    Why does the Nextjs version of React compiler require a babel plugin when the vite version doesn&#x27;t need it? Next.js is on SWC, not sure why they need a babel plugin.
  • prettycool4 hours ago
    [dead]
  • glouwbug4 hours ago
    [flagged]
    • VertanaNinjai4 hours ago
      As funny as this is I sometimes wonder about that crowd. Assuming the ecosystem at large flips and most software is now written in Rust what will the “rewrite it in Rust” crowd move to? Will they be satisfied for the most part or does it morph into “now rewrite in $latest_rust”?
      • ablob3 hours ago
        I think the crowd will split into those who just cared about it being rust and those who wanted some kind of leverage to tempt others into doing something. The former crowd will cease being, while the latter looks for something new to push.<p>I believe that one does not need to be overly concerned here. As with most things you will never satisfy zealots so it is sufficient to reconsider every once in a while when the status quo changed enough to warrant the effort (i.e. the actual arguments change).<p>It is always a choice to participate in these &quot;culture wars&quot; or whatever you want to call this. If you can stick to a decision you can limit the impact quite a bit, I&#x27;ve come to realize.
        • anp3 hours ago
          I&#x27;ve never been someone to tell others to rewrite in Rust but I am a huge fan of the language and have in fact rewritten a lot of things in Rust. I&#x27;d be happy for another programming language to excite me as much as Rust has for the last 10 years, and then maybe I&#x27;d join that evangelism club instead :). Not sure how PL evolution is going to go in an era of coding agents though, very curious how that&#x27;ll play out.
      • chmod7753 hours ago
        You will always have <i>someone</i> say &quot;you should rewrite it in <i>x</i>&quot;, but it&#x27;s rare that something carves out so much ground on the Pareto front you&#x27;ll get a crowd.
      • MBCook3 hours ago
        Maybe they’ll go back to “year of the Linux desktop”
      • steveklabnik3 hours ago
        Because it became a meme virtually everyone who says this are actually joking and not serious.<p>They&#x27;ll move on to whatever the next meme is.
      • wldcordeiro3 hours ago
        I think once you have it in Rust the next ask is using no &quot;unsafe&quot; code from that crowd.
      • dhbradshaw3 hours ago
        I&#x27;d argue for moonbit -- faster compile times, almost as fast, smaller wasm artifacts and like lean can have proof of correctness built in.
        • Svoka2 hours ago
          what the point? Rewriting in Rust is not just a language change. Rust enforces designing systems in secure way to start with, not just memory safety.<p>For me last nail into becoming part of the crowd was Embassy. Whole my life I wrote some ad-hoc C microcontroller stuff. But just learning Embassy I realized that it could&#x27;ve been done much more elegantly and securely. If you have a spare moment, I would watch videos in this channel, old to new:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;@therustybits&#x2F;videos" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;@therustybits&#x2F;videos</a>
          • dhbradshaw1 hour ago
            I&#x27;ve been using rust since 2017 and still code in it professionally and am a fan.<p>Moonbit is pretty cool too so I thought I&#x27;d mention it for other people who like cool things.