274 points · by TanakaTarou · 6y ago · 194 comments
Slides: https://www.slideshare.net/KTNUK/digital-security-by-design-...
Let’s be a little more accurate here. Rust is an actively developed language, Cyclone was a research project that I don’t believe has received an update since 2006.
Rust also is explicit that it borrowed its lifetime concept from Cyclone. Rust is in use and gaining popularity in a way that Cyclone didn’t.
This is a bit like the debate between Apple and Xerox in terms of the beginnings of the desktop/mouse/GUI environment. Apple was the first to make it popular, xerox park invented it. Rust has a similar relationship with Cyclone.
- Need to keep old insecure code around, too much money to rewrite the world from scratch in Rust, C#, or whatever safe language makes your day
- They are just starting the project, so far only interpreter and runtime model
- It is based on CHERI CPU research (https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/), which has memory tagging
- They are planning to open source the existing work in a couple of months
- Looking for collaboration
That's what process boundaries are for. (As a bonus, you get protection from any Spectre-like issues arising in the old code.)
It wasn't until today I did a search on it, and it reached 1.0!
Why wasn't Cyclone being used or continue to be developed?
The big breakthrough with Rust was ownership, and Microsoft seems to agree on that. Rust has a lot of other baggage that could be dispensed with. Of course, Microsoft has their own baggage.
Microsoft has a huge problem: thousands of coders who aren't disciplined enough to write reliable code. They need a language to provide the needed discipline. They tried making their own language, and now understand that they are not good enough at that, either. Rust, or a fork of Rust, might suffice.
They are not interested in displacing Rust from wherever it is being used. They just need something for their things, that their customers can also use. Lock-in is exercised farther up the chain.
https://www.slideshare.net/KTNUK/digital-security-by-design-...
Talks about sandboxing C/C++ libraries that interact with Rust. Kinda make a safe unsafe sandbox Rust interface ("less unsafe?") if I understand it correctly (I likely don't).
The actual linked article is all over the place, I cannot make heads or tails of it and seems to be conflating multiple security issues/mitigations together into a mish mash.
Basically a new language for system software and containers that allow to tame existing software, due to the expenses of rewriting everything into safe languages.
It is based on the CHERI tagged architecture.
https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/
Just starting now, they have done the ground work, will open source it and are looking for collaborators.
Typical ZDNet.
I believe it's still in the roadmap for Go 2.0
The high-level-variant is a dynamic language with optional typing, which is good for scripting, fast prototyping, fast time-to-market, etc.
The low-level-variant is similar to the high-level-variant (same syntax, same features mostly, same documentation), but it has no garbage collector, typing is mandatory and it runs fast like C/C++/Rust. Compiled packages that are written in the low-level-variant can be used from the high-level-variant with minimal effort or without additional effort at all. The tooling to achieve this comes with the language.
Love the idea that a Netscape-legacy language has traction there. I hope they don’t return to their pre-Nadella practices.
[1]: https://github.com/rust-lang/rust/issues/53488
[2]: http://smallcultfollowing.com/babysteps/blog/2018/04/16/rust...
There are also Microsoft teams starting to use Rust, e.g.,
https://msrc-blog.microsoft.com/2019/11/07/using-rust-in-win...
Cool that MS is using something Ruat based. In no way does that opinion lead to a conclusion of ongoing support.
Windows on ARM is probably fine. Windows Phone and the like eventually lost (losing? I haven’t kept up) support, but phones are traditionally a 2ish year supported device and then they’re not targeted (specifically in the Android OEM arena). Windows proper they have business clients and if they don’t support it for a reasonable amount of time, Microsoft is basically hosed. It is, I imagine, why once they decided to kill off older IEs everything prior to latest and greatest was killed at the same time: they had supported them for far too long and it required killing them all Off in one move.
I’m pretty sure you’ve got your history backwards. GCC was created specifically to fill the need for a free C compiler for GNU. By that time C was already popular by association with Unix.
One reason of why I'm using Rust is because it's built by a group of people that I like, and Microsoft is not on that list.
However, I always keep a open-mind, I mean, I don't see anybody will be hurt if Microsoft become a direct contributor of Rust language itself. In fact, I could like Microsoft a bit if they did invest in Rust. I hope they do that <delete>instead of trying to fork things/build something alike (if that's the case here)</delete> (I watched their intro, their design is different than Rust and I somehow like what they did there).
If someone had told me ten years ago that my favourite code editing environment on the Linux desktop ten years later would be browser-tech-based, MIT-licensed, and made by Microsoft, I'd have stared at them like they had just grown a second head. But here we are. Interesting times, man.
https://www.slideshare.net/KTNUK/digital-security-by-design-...
It seems like they want to do something like Rust, but with a new focus on regionalized memory management.
But if it simply means they are making a new language using lessons from Rust - then why not.
Though I didn't quite get what problem they found with using the idea of scope based lifetimes per object, that they needed to redefine it in context of groups.
I guess shipping Windows API cargo crates makes too much sense. Does anyone have any context for gaps in Rust they are addressing?
In TFA it mentions that ownership will be based on groups of objects, but I’m not sure I understand what this solves that a struct doesn’t.
I haven't finished digging through the OP, but it looks like a bunch of Microsoft employees (already aware of Rust's safety benefits) have started recognizing the commitment to FFI as well. My last project had a feature that depended on a bind to win32, which turned out to be the most time consuming aspect - as it demanded a bunch of tooling that was otherwise unnecessary (valgrind, etc). If they were to take stewardship of that interface, lots of unsafe{} would disappear overnight.
Linux tools run on Windows 10 just fine. WSL 2 even uses an actual Linux kernel.
https://msrc-blog.microsoft.com/?s=rust
And the talks done about the internal adoption,
https://www.youtube.com/watch?v=qCB19DRw_60
https://www.youtube.com/watch?v=o01QmYVluSw
And the author from C++/WinRT is now working on Rust/WinRT.
https://kennykerr.ca/2019/11/05/rust/
So lets wait a bit before going to the castle with the pitchforks and torches.
It almost makes me wonder how they/we can work around that sentiment now. Either hope for generational shift to eventually kill it, or perhaps have them make a point of landing projects outside of MS and hoping nobody notices(GitHub R++ or whatever).
Tips on how others approach these discussions with Microsoft haters greatly appreciated!
I try to be objective as much as possible, but having witnessed almost all of Microsoft’s behavior through history, we have been fooled 100s if not 1000s of times. How many times do you let the fox back into the hen house?
The only thing I think when I read recent “Microsoft is so great” comments is that the person is either too young to have any real knowledge, or they have simply not been paying attention for the past few decades.
For anyone who has seen what they have done through all of history, it will take decades to believe they have truly changed.
I don't think your opinion is objective at all. It's based on treating a collective as a single mind.
Microsoft didn't change out of charity or ethics. They were forced by the direction industry was heading as a whole. Cloud, opensource software, Google, AWS started making Microsoft irrelevant unless they changed.
Not really trying to protect Microsoft here but them companies are all the same, just different degree of "success".
From my perspective, the issue ultimately is - why? What do I gain from using Microsoft software?
I worked at a Microsoft shop for a short period. All of the 'new MS' stuff I've personally worked with has certainly been Windows first.
Take C#. It might work on Linux, sure, but you have stuff like the .NET runtime taking forever to start, the reliance on Visual Studio, .NET Framework isn't open source because.... why?
Or perhaps you have Microsoft Teams - for which, despite it effectively being a web app - there is no Linux client and in Firefox half the features are disabled. Even on Windows it's literally a shit version of Slack which presumably exists solely because it's bundled with other Microsoft stuff or because the name has appeal to some PHBs.
For the most part from what I can tell it's all still either Windows first, or a crap version of something else, or both. There might be some minor researchy fun bits, but anything that seems to actually see wide use is all Windows stack.
What's the point? I read the article, and it pretty much feels like they want to Windowsify Rust. Why should I care about that?
Literally everything I read about Microsoft seems to be from people who want an excuse to use Windows, or something. I want Windows to burn and die in a fire; so what is there for me?
OCaml cannot do that. I say this as someone who currently is finishing a year of F# study with plans to study Rust in 2020 and OCaml in 2021.
(And this is just the most obvious and clear way that they support Rust, it’s not limited to that.)
"The ownership model in Verona is based on groups of objects, not like in Rust where it's based on a single object.
> plenty of Wnd handles to be thrown around
That is not really a language issue, is it?