Rust Is Tier-1 Language at Microsoft

(rustfoundation.org)

171 points | by mmastrac 1 hour ago

20 comments

  • meerita 58 minutes ago
    Good news they adopted Rust as Tier-1 language. I hope their Weather app stop consuming more than 1GB RAM https://www.notebookcheck.net/Windows-11-s-built-in-Weather-...
    • Verdex 27 minutes ago
      I feel like the weather app makes a lot of sense from a corporate politics point of view.

      A 1mb weather app would have a significantly less impressive pie chart associated with it come "here are our improvements" presentation.

      Also if times get tough and you're told to reduce headcount by 10%, who do you want to get rid of. Sally who knows the USB driver end to end or Todd who wrote the bloated 1gb weather app. (Don't feel bad for Todd, he knew what he was getting himself into.)

      • Escapado 23 minutes ago
        Did Todd just know or did his PO tell him to add telemetry tool number 24 while he was protesting and begged to be allowed to migrate to a newer rendering library but got shot down promptly because "KPI line must go up"? :)
        • xattt 7 minutes ago
          Todd was a script kiddie and never really knew what he was doing. He changed careers after the layoff and is now an owner of an electrical contracting business.
      • miroljub 17 minutes ago
        [flagged]
    • pjmlp 28 minutes ago
      The problem is the Webview2 prevalence, and note many Rust projects love their webviews as well.
    • geodel 47 minutes ago
      But Tier-1 app consuming Tier-1 RAM seems officially approved.
  • VimEscapeArtist 0 minutes ago
    M$ choosing Rust might be the strongest argument for picking Go instead
  • pjmlp 1 hour ago
    This is very big news, all major OS vendors that also have a role in C and C++ language tooling, now have diversified their options in systems programming languages for greenfield development.

    Additionally we finally get some public news about the MSVC integration rumors regarding Rust.

  • bryanlarsen 4 minutes ago
    This is from rustconf. A lot of the focus at Rustconf this year has been C++ interop, Python Interop, Javascript interop -- it's no longer about "rewrite it in rust", it's about being part of the ecosystem.
  • petilon 36 minutes ago
    If it is a tier-1 language why isn't it supported in Visual Studio?
    • brunoborges 25 minutes ago
      Because it takes time. Even with coding agents, to add the capability. Then, there is the question on whether Rust developers who like to engage with Microsoft tools, would really consider Visual Studio as their IDE, instead of something like VS Code, VS Code Agent Mode, GitHub Copilot App, or GitHub Copilot CLI with simpler editors.

      I'd be curious to know whether Rust developers believe Visual Studio is the right place for Microsoft to invest Rust specific coding capabilities.

      • pdpi 5 minutes ago
        There's two ways to approach this — build tooling for existing Rust developers to get them to adopt the Microsoft stack, or build tooling for existing Microsoft stack developers to get them to adopt Rust.

        I'd argue that the former is less important than the latter, and my understanding is that Visual Studio is still the IDE for Windows-centric development, so for those MS-first developers, Rust missing from VS means Rust is poorly supported, end of story.

      • not_a9 23 minutes ago
        Visual Studio does have a really nice C++ debugger - one would imagine the C++ debugging capabilities should translate to Rust.
    • cwbrandsma 11 minutes ago
      Because it is already supported in VS Code.

      I don't think this is a hot take, but I'm predicting Microsoft will gradually phase out Visual Studio in favor of VS Code.

  • e4m2 10 minutes ago
    From the linked Zulip thread (https://rust-lang.zulipchat.com/#narrow/channel/131828-t-com...):

    > We are running different workloads including rustc perf suite. In general the runtime performance is on par with llvm.

    Not what I would've expected!

  • pornel 48 minutes ago
    The big news here is they've replaced LLVM with MSVC's backend.
  • ComputerGuru 1 hour ago
    So when will we get tier 1 debugging support in Visual Studio?
    • flohofwoe 1 hour ago
      Optimistic to assume that modern day programmers even know what a debugger is, or if they do, consider it as anything else than some weird ancient shibboleth only used by the greybeards ;)
      • bluGill 23 minutes ago
        The greybeards rarely used debuggers, and then only to see the stack trace of a core file. They found printf better.

        I can't find my copy of https://en.wikipedia.org/wiki/The_Practice_of_Programming but that is what I recall it says. Those authors are the best known greybeards.

      • Levitating 50 minutes ago
        To be fair, even before LLMs could spot my bugs in an instant I really only regularly used debuggers in C because it can't display arbitrary types in debug print statements.
        • josephg 34 minutes ago
          Debuggers still have their place in algorithm heavy work, or to pull apart heap dumps to try and figure out obscure bugs.

          Even LLMs use debuggers. I asked Claude to reverse engineer a closed source binary the other day. It used gdb to trace its behaviour. Didn’t even use ghidra.

      • rafaelmn 1 hour ago
        Debugger MCP better
        • josephg 30 minutes ago
          But of a tangent but I think cognitive skills are starting to become like physical skills. If we don’t move our bodies, we waste away physically. If we don’t do hard cognitive work sometimes - like writing and debugging code - I worry our minds will atrophy.

          I don’t have a problem with cars. But walking is still good for us.

        • a012 59 minutes ago
          It’s all /skills now
    • pjmlp 1 hour ago
      You have it already on VSCode, which isn't quite the same, however nowadays it is an open question which one is more relevant for Microsoft's management, especially given that VS isn't cross platform (see Azure), and is stuck with WPF/.NET Framework.
    • mrec 1 hour ago
      I'd also love to see MS sponsoring Windows support for a modern linker like mold or wild.
      • delta_p_delta_x 36 minutes ago
        lld-link is already a big step up from link.exe. Although the latter has incremental linking, which none of the Unix-like linkers have.
  • js8 56 minutes ago
    Is Microsoft still trying to embrace, extend, extinguish Netscape after all those years? :-)
  • swiftcoder 1 hour ago
    I guess the big question is whether they are going to open up rustc_codegen_utc for use outside of Microsoft?
  • the__alchemist 59 minutes ago
    With certain rough edges like complex traits and Async aside, rust is an S-tier lang in several domains. Of interest:

      - Embedded
      - PC desktop applications
      - Computationally-intense scientific programming. (Chem, structural bio etc)
      - OSes, drivers etc
      - High-performance tasks in general. CPU, GPU, etc.
    
    It's not a memory-safety one-trick pony; it's a well-rounded lang which has learned from its predecessors.
    • jdcasale 37 minutes ago
      Yeah I'd written some rust ~ 10 years ago when the language was very different and that led me to believe that it was a 'great within it's niche' sort of thing for a long time, but after spending the last couple of years with it as a daily driver I think it's a pretty great general-purpose language.

      The one really common gotcha with rust is that when trying to write concurrent code, newbies tend to throw Arc<RwLock<T>> goo around everywhere, and they end up with the world's shittiest garbage collector.

      • the__alchemist 24 minutes ago
        It is interesting to see the different patterns used due to different cases and tastes. For example, my concurrency patterns rarely use locks, and are instead usually one of:

          - Dedicated hardware via DMA, multiple cores/MCUs etc
          - Thread pools (e.g rayon)
          - GPU
          - SIMD
          - Atomics
          - Interrupts and their ISRs
          - Event loops
          - std::sync Thread and MPSC (My Std rust default for not blocking the GUI etc)
      • m00dy 34 minutes ago
        yeah, locks are expensive.
    • Verdex 24 minutes ago
      Yeah, I primarily use rust because it's got algebraic data types, pattern matching, and cargo.

      If ocaml had a cargo like experience, then I would migrate there.

      • saghm 10 minutes ago
        I've said for a while that the main reason Rust is so popular is that it has a lot of effort put into the developer experience, with the low-level safety honestly not being all that important to a large portion of the programmers who would be fine with a garbage collector. I used to think that maybe a "Rust with garbage collector" would come along, but at this point it honestly seems more likely that an optional garbage collector would be added to Rust (probably with just the primitives in std and leaving it up to libraries to provide a more full experience, like with async runtimes).
    • mook 4 minutes ago
      Oh, its good at doing desktop applications these days? Which GUI libraries are good these days? Some native win32 binding? Are there good equivalents for Qt?

      I'm interested in getting back to native application development; the job is on Electron right now and it's… meh.

    • mgaunard 46 minutes ago
      All those applications area sensitive to asynchronous programming.
      • okanat 38 minutes ago
        Rust's async can be very lightweight depending on the runtime implementation. tokio and embassy are both runtimes but former is a throughput-optimized heavily multi-threaded while latter is a simple cooperative multitasking for embedded. We use both at my day job. Even 64k flash and 16k ram is enough for embassy.
    • bigfishrunning 51 minutes ago
      Honestly, the only domains that I think rust isn't suitable for are:

      * rapid-prototyping, where javascript and python are still top-tier

      * adding scriptability to existing programs, where lua and scheme (and python) are popular

      * Server-side API implementation (rust is usable here, but I think Go fits the slot better)

      • vablings 6 minutes ago
        Rapid prototyping is almost a meme at this point. If you are hand rolling code old school, you will waste more time shoehorning JavaScript and python semantics into rust code and end up with worse quality that takes more time rather than writing it from rust.

        People did this a lot when rust was not as popular but there are plenty of very good rust programmers now who understand the language and can make programs that are significantly more performance for a marginal development cost.

        Script ability can also be done in rust, Notably Zed (rust ide/vscode whatevers) is written in rust, and all the plugins are compiled to WASM, sandboxed and loaded.

        Go is pretty nice for server-side API but if your application share types between boundries then rust is better

      • bryanlarsen 6 minutes ago
        Rust is great for rapid protoyping, IMO. Or, at least the subset of rapid prototyping that involves massive rewrites to try out different approaches. Rust has a saying "if it compiles, it works", the compiler really ensures that you don't miss something when doing that rewrite.
      • larme 1 minute ago
        GPU programming?
      • edukite 39 minutes ago
        My employer company go through JavaScript, Java, Golang and at the end landed on Rust for srver side and don't want to change anything. Everything is Rust now, regardless of traffic.

        I don't know why you think it's only usable but this is your right.

    • varjag 51 minutes ago
      Calculate ackermann(4,4), make no mistakes.
  • macleginn 28 minutes ago
    The text is mostly about rustc_codegen_utc; maybe this should be reflected in the title?

    Also the use of italics there is rather jarring.

  • _joel 1 hour ago
    Site down, maybe they need port it to use Rust...

    They use wordpress

    • seki285 36 minutes ago
      What is wrong with wordpress exactly?
      • bluGill 21 minutes ago
        there are a lot of really bad plugins that are used. Also there are a lot of really bad admins who have out of date versions that are misconfigured.
      • mcmcmc 25 minutes ago
        Matt Mullenweg
    • echelon 58 minutes ago
      A lot of infrastructure is going to be ported to Rust.

      It's fantastic for websites and servers, and LLMs are very good at generating it.

      The primary downside of Rust is the long compile times, especially with macros (serde, etc.) If that can be fixed, it will be sublime.

      • tonyedgecombe 47 minutes ago
        I like Rust a lot but I'm not sure it would come very high up my list for web applications.
        • echelon 9 minutes ago
          Axum and Actix are phenomenal web frameworks.

          The type system and error handling ergonomics make it easier to write defect-free code than, say, Go or Java.

          Simple servers are request scoped and mostly feature linear request handling, so you're writing simple vanilla Rust without the complex pointer semantics that you would use for systems programming. The async pieces aren't difficult either.

          Serde-annotated structs are the best serialization/deserialization story anywhere. It integrates super ergonomically into Axum and Actix to make writing request handlers a breeze. They're super easy to read, too.

      • edukite 38 minutes ago
        First compile. Every another will be significantly faster since compiler is incremental
  • mtgh2s 50 minutes ago
    You gotta have balls or be receiving tons of money to publicly celebrate the sloppiest software company of the decade making your programming language Tier 1 internally.
    • nazgulsenpai 7 minutes ago
      Probably the fact they're a $3.7tn company has something to do with it.
  • larodi 20 minutes ago
    ermm... which are the rust-native libs which enable winrt3.0 native apps?
  • mgaunard 48 minutes ago
    does it mean there is a rust.net?
    • dralley 45 minutes ago
      There is a rustc_codegen_clr which transpiles to .NET

      https://github.com/fractalfir/rustc_codegen_clr

      • mgaunard 35 minutes ago
        > This project is still early in its developement. Bugs, crashes and miscompilations are expected. DO NOT USE IT FOR ANYTHING SERIOUS.

        how can one claim it is tier-1?

        Also random student, nothing official from Microsoft.

        • pali6 10 minutes ago
          That project is not in any direct way related to Microsoft
    • DidntUseIt 22 minutes ago
      Just had a PTSD flashback...

      The year was 2002, VB6 had just been retired for VB.NET which had 0 backward compatibility.

      And then we all became Flash/AS3 developers.

      The End

  • DidntUseIt 1 hour ago
    Link doesn’t work.

    What’s a Tier 1 language?

    • gshubert17 1 hour ago
      (Link worked for me ...)

      This “Tier-1 language” engineering status for Rust means giving internal teams a paved path from local development to production: secure toolchain builds, productive developer tooling, quality workflows, deep platform integration, and compliance with the SDL requirements Microsoft software must meet.

      • swiftcoder 44 minutes ago
        Specifically, it joins a list of existing Tier 1 languages (C++, C#, and TypeScript), as "one of the best-supported languages for internal development at Microsoft"
    • meindnoch 57 minutes ago
      Tier 1 is the summit of summits - the summum bonum of languages, the highest order to which a language can aspire. Very few ever attain it. Non multa, sed multum: not many, but only those of extraordinary quality. Most languages remain forever in Tier 3, never passing beyond its gates. Of these, scarcely 1% ascend to Tier 2. And from that already distinguished company, a mere 0.1% possess the refinement, depth, and excellence required to cross the final threshold into Tier 1.

      Consider what that means: Tier 1 represents roughly the top 0.001% of languages. Pauci sed electi - few, but chosen. The crème de la crème. The aristocracy of languages. Primus inter pares, yet standing at the very edge of what programming language greatness can be.

      Ad astra per aspera. Through hardship, to the stars. Tier 1 is not merely another rank: it is the ultima Thule, the farthest frontier, the crown, the apotheosis.

    • flohofwoe 50 minutes ago
      It means it's about as good as C++ ;)
    • aynyc 17 minutes ago
      It means a language for the very elite special force unit. In MSFT, that means the Ads teams will be able to serve you Ads in excel very quickly. /s
  • this_user 16 minutes ago
    Now their broken slop code is at least memory safe.
  • LazyIDE 1 hour ago
    [flagged]
  • calvbak 1 hour ago
    This is great! Hope this trend will continue in the future; using a memory-safe language should be a top priority imo in context of the coming rogue AI swarms.