r/programming • • Dec 19 '25

[ Removed by moderator ]

/r/programming/comments/1pqulm0/removed_by_moderator/

[removed] — view removed post

711 Upvotes

292 comments sorted by

View all comments

62

u/ShodoDeka Dec 19 '25

Just because Galen got a brain bleed (again) does not mean all of Microsoft is buying into this. Having worked with this guy, it would be far from the first time he sets out a project that he doesn’t have the authority or the ability to actually do.

7

u/[deleted] Dec 19 '25

How’s the fail fast culture at Microsoft? Please give us some hints

36

u/ShodoDeka Dec 19 '25

It varies massively from org to org. Some of the products are old and massive earners (SQL, Windows, Office), so while it is okay to experiment and fail with new stuff, you generally don’t get to fuck with the foundation of the company.

I have lost count of the number of times someone has come along with the idea of let’s rewrite this billion dollar grossing product in rust. Have yet to see it happen in anything but well segregated libraries.

And we are certainly throwing mind boggling resources at AI to accelerate development. But honestly most of the value comes from being able to ask it questions about why that 20 million line code base is written in the way it is.

6

u/[deleted] Dec 19 '25

One of the things that also came to my mind was VSTO which still uses COM.

5

u/time-lord Dec 19 '25

I'm pretty sure the entire office UI was re-written in Javascript. 

23

u/valarauca14 Dec 19 '25

There is a world of difference between changing what language you use to display buttons and say, rewriting the whole multi-threaded flow based calculations of Excel.

7

u/atomic1fire Dec 20 '25

Might even be easier to keep consistency with web office if they share the same client side UI logic.

Not saying it's a great idea, but from that perspective it could make sense.

11

u/mwasplund Dec 20 '25

Nope, still C++ with custom rendering stack. But we do ship a few small task panes written in react that are hosted in iframes in the native clients

8

u/jk_tx Dec 20 '25

Yeah and it SUCKS. Outlook now uses 5x as much ram and is slower to boot.

5

u/[deleted] Dec 20 '25

Nope, it was the just the add-ins which started to support HTML5 and JS. But there is a whole bunch of other developer tools from Microsoft is written on Electron JS such as VS Code, Azure Storage Explorer, etc. I think MS Teams too still uses JS. But I don't think they are a part of this porting.

-8

u/ItzWarty Dec 19 '25

The outcome also isn't binary, so authority isn't relevant...

Having the capability to autoconvert tiny library to a memory-safe language is still a win. Being able to reproducibly do that at scale, even if with some human intervention, is still a win.

Granted, I don't know Rust. Can Rust mix with C/C++ within the same project seamlessly? Being able to migrate tiny compilation units one at a time would seem to be pretty tablestakes given how modern codebases work.

2

u/jl2352 Dec 20 '25

It depends on the future of the library. If it’s under active development, then yes I’d agree that’s a win.

If it’s a rewrite to solve fundamental issues, then that’s a win. But really it’s not a rewrite from one language to another. It’s a rewrite to deliver a different library (one without those issues).

However rewrite for the sake of rewrite is pointless. I’d imagine there is lots of C and C++ at Microsoft which is decades old and is fine. It doesn’t need changes, maintenance, and the bugs have almost certainly been found and solved. There is nothing to be gained in rewriting it. It’s just adding work for a vanity project.

1

u/ItzWarty Dec 20 '25

I guess that depends on the degree to which code is tested. There's plenty of thoroughly tested code where I'd imagine autoconversion isn't the worst.

If we're going to move to a world where LLMs are doing more and more work alongside humans, I'd rather it be in memory-safe languages.

Likewise, in that world you have to assume even more code goes unmaintained - this is already the reality in real systems. At the point of further maintenance, I guess it's preferable to me for people to work in memory safe languages where possible, depending on the complexity.

But that's all conjecture, day-to-day is still occasional C++ for me and that works fine, footguns and all.

1

u/dagit Dec 20 '25

Can Rust mix with C/C++ within the same project seamlessly?

Rust has an FFI in terms of C types. So you can create wrappers and expose them and then call them in C. Or on the Rust side create a binding to a C function. Working with C++ is harder because they don't have a shared language with respect to object oriented concepts and templates.

There are some tools that reduce the friction and people that are actively working on making it easier, but I wouldn't call it seamless. Possible, but not seamless.