Live data from Hacker News

Rust/WinRT Public Preview

blogs.windows.com

11–20 of 219 posts

Re: Rust/WinRT Public Preview

#11

Wish they'd open the source and let the Rust community do this kind of stuff instead. No need to waste Windows development time on niche stuff.

The article has a very prominent https://github.com/microsoft/winrt-rs in it, where you will find that this is MIT licensed.

Re: Rust/WinRT Public Preview

#12
post #6

I stopped reading at "The Windows Runtime is based on Component Object Model (COM) APIs..." Is that a bad choice on my part? I see COM and think of OLE, CORBA and I remember that I'm old and going to die pretty soon (within the next 40-50 years almost assuredly). https://en.wikipedia.org/wiki/Component_Object_Model

Windows UI and Framework beyond Win32 is solidly based on COM. Win 10 works for many years now with a deployment close to a billion. I would say: works.

Re: Rust/WinRT Public Preview

#13
post #6

I stopped reading at "The Windows Runtime is based on Component Object Model (COM) APIs..." Is that a bad choice on my part? I see COM and think of OLE, CORBA and I remember that I'm old and going to die pretty soon (within the next 40-50 years almost assuredly). https://en.wikipedia.org/wiki/Component_Object_Model

"Under the hood" makes it sound like you wouldn't deal with any COM stuff yourself, it's just how the different languages' APIs were implemented to interface with the OS runtime.

Re: Rust/WinRT Public Preview

#14

Wish they'd open the source and let the Rust community do this kind of stuff instead. No need to waste Windows development time on niche stuff.

Open what source? Everyone has access to the winmd files necessary, the COM ABI is documented - there’s been nothing stopping anyone from doing this.

All of the work MS has done on these bindings is MIT licensed as well.

Re: Rust/WinRT Public Preview

#15
You have to hand it to Microsoft: It may be the only large software company that doesn't seem susceptible to not-invented-here syndrome.

It's true that Microsoft historically has been an intensely competitive company, often trying to undermine competing technologies, e.g., with "embrace and extend" strategies.

But whenever a competing technology -- whether a language, or a framework, or an application -- gains adoption with developers or users, Microsoft to its credit will follow along, sooner or later, and do the work necessary for making it a first-class citizen on Windows.

(For those who don't know, Rust is originally a Mozilla project.)

Re: Rust/WinRT Public Preview

#16
post #14

Wish they'd open the source and let the Rust community do this kind of stuff instead. No need to waste Windows development time on niche stuff.

Open what source? Everyone has access to the winmd files necessary, the COM ABI is documented - there’s been nothing stopping anyone from doing this. All of the work MS has done on these bindings is MIT licensed as well.

In fact there were third-party bindings already which I worked on: https://github.com/contextfree/winrt-rust

the new first-party ones look to be more complete and polished but this is mainly due to time and skill limitations on my part. :)

Re: Rust/WinRT Public Preview

#17
post #5

I start to understand the Windows team desire for this WinRT. You can flow through time with these language bindings without being locked into a programming language. .NET, JS, C++ and now Rust. That is seriously cool.

It's been a reality on Windows for over 20 years, though. COM has made it possible to write applications on Windows and integrate with pretty much anything in it in any language with COM bindings.

Glad to see Rust is now one more such language.

Re: Rust/WinRT Public Preview

#18
Never really understood whether WinRT binds me to store apps, sandboxes, appx and so on.

Can I develop a single windows app with this that runs on Windows 10 desktop as a win32 app does (such as a plugin to another application where I can’t can’t decide the deployment model)?

Re: Rust/WinRT Public Preview

#19
post #5

I start to understand the Windows team desire for this WinRT. You can flow through time with these language bindings without being locked into a programming language. .NET, JS, C++ and now Rust. That is seriously cool.

To be fair, you could do this with plain C, then with COM, etc.

Re: Rust/WinRT Public Preview

#20
post #6

I stopped reading at "The Windows Runtime is based on Component Object Model (COM) APIs..." Is that a bad choice on my part? I see COM and think of OLE, CORBA and I remember that I'm old and going to die pretty soon (within the next 40-50 years almost assuredly). https://en.wikipedia.org/wiki/Component_Object_Model

COM is a fantastic invention and implementation.

Granted, it was pretty painful in C and somewhat in C++, but all the other languages (VB and C# mostly, but plenty of others) really unlock the power of COM.

Nothing like that remotely exists on Linux or macOS.

Post reply on HN