Thread with 17 posts

jump to expanded post

oh dear fucking lord microsoft have lost the plot

https://www.windowscentral.com/microsoft/windows-11/my-goal-is-to-eliminate-every-line-of-c-and-c-from-microsoft-by-2030-microsoft-bets-on-ai-to-finally-modernize-windows

I am nearly always in favour of rewriting things in Rust, but "we must rewrite the entirety of Windows in 5 years in a radically different language and we will achieve this with AI" is a recipe for a fucking catastrophe

Open thread at this post

especially because it's Windows. it's not a monolithic blob, it's a huge number of modular components (DLLs among other things), almost all of whose interfaces are described by and defined for C code, with 40 years of bug compatibility

and Rust FFI is inherently unsafe 😱

Open thread at this post
Joe Cooper 🇺🇦 🍉 , @swelljoe@mas.to
(open profile)

@hikari @mcc it's looking like the thing that will finally kill Windows in the gaming industry is the fact that, thanks to WINE and Valve's Proton, Linux now has a very close to perfect Windows ABI that can play most Windows games without much drama.

I have to assume they're going to spend at least half that time making tests to insure they don't break backward compatibility (and will still probably break it). They broke all their drivers a few years back, so Linux has more hardware support.

Open remote post (opens in a new window)
the esoteric programmer , @esoteric_programmer@social.stealthy.club
(open profile)

@hikari I mean, you can still keep the C interfaces intact, while implementing the actual body of those functions in rust. Will it actually happen? don't think so. Will AI contribute significantly to this? definitely not, unless we want people waking up at night, screaming, for generations to come

Open remote post (opens in a new window)
kasperd , @kasperd@westergaard.social
(open profile)

Whether it will be a catastrophe depends on what you hope the future for Windows will be. Personally I hope this will be the opportunity for driving computer vendors to ship with a different operating system preinstalled.

The entire idea of using AI to rewrite your C code in a safe language sounds inherently flawed. Aren’t we expecting AI to find a way to produce unsafe code in every language?

One thought I have had is that rather than rewriting all C code in a safe language, why not make a C compiler that outputs safe code? The C language is quite flexible in what architecture and ABI the output is produced for, so wouldn’t it be possible to output safe code as well? For example I don’t see any reason a C compiler couldn’t output code using fat pointers and utilize other safety mechanisms. Of course the resulting code wouldn’t be as fast as we are used to for C code, but in some cases that’s an acceptable trade off.

Open remote post (opens in a new window)