Live data from Hacker News

Microsoft seeks Rust developers to rewrite core C# code

theregister.com

171–180 of 256 posts

Re: Microsoft seeks Rust developers to rewrite core C# code

#171
post #4

Can they start by not needing a multiple gigabyte download and admin rights to get the rust compiler to work on Windows?

Does C# not require a multiple gigabyte download and admin rights? FWIW I've gotten rust working with the GCC build tools on windows without admin rights, thought it's admittedly somewhat janky.

Not C# doesn’t need multiple gigabytes and admin rights. Dotnet tooling != Visual Studio

Re: Microsoft seeks Rust developers to rewrite core C# code

#172

Earlier quoted context omitted.

Agree, I am still looking for a Rust position, although I have more than 3 years of experience with it. And yes, it is very hard. It seems Rust is in a chicken/egg position: employers avoid it because "there are few developers", developers avoid it because "there are few jobs". Until recently the majority of Rust jobs were blockchain stuff. Now I see a rise in network infrastructure and security.

I know some teams that are hiring Rust devs. Please feel free to ping me if you would like to know more.

I sent you an email from diego.moita69 at gmail.

Thanks for reaching out!

Re: Microsoft seeks Rust developers to rewrite core C# code

#173

Earlier quoted context omitted.

Agree, I am still looking for a Rust position, although I have more than 3 years of experience with it. And yes, it is very hard. It seems Rust is in a chicken/egg position: employers avoid it because "there are few developers", developers avoid it because "there are few jobs". Until recently the majority of Rust jobs were blockchain stuff. Now I see a rise in network infrastructure and security.

Seems like RUST needs work to become easier to learn. Hard for a business to take a risk on using it (outside of a use case absolutely needing a memory safe language) if the talent pool is shallow.

It's not that hard for relatively easy work... I've written a few basic web services, as an example, using a few of the more popular web frameworks for Rust, it hasn't been much harder than say C# or Node.

Now some of the more complex things, have been far more complex to do by hand.. Shared data, channels, Arc, etc. Those have been a bit more cumbersome and still not sure I've done the right thing at times.

Re: Microsoft seeks Rust developers to rewrite core C# code

#174
post #164
post #127

Earlier quoted context omitted.

This effect of spreading everywhere is very frequently a novice mistake of putting temporary scope-bound loans (AKA references) in structs that aren't temporary views themselves. People used to C or C++ perspective tend to reflexively (over)use references to avoid copying, but references in Rust are to avoid owning , and not-copying is handled in different ways. BTW, apart from edgiest of edge cases, &String is a use…

I feel like this could be a great in depth blog post...unless such a blog post already exists? It would greatly benefit novices and those who haven't gotten to that stage where this mentality kicks in.

There's a pretty good YouTube video I saw pulling all the types of strings in rust.

I find it confusing still... Been wanting to do a few things that would mean dealing with it streams that could be cp437 or utt8, generally and haven't been quite sure how I want to deal with it.

Re: Microsoft seeks Rust developers to rewrite core C# code

#175

Earlier quoted context omitted.

"Dwarf"? "Dwarf"?! I may be biased (because I am very effective at Rust and terrible at C++) but I can't believe this seems probable. std::optional, move semantics, boost, template templates, SFINAE(!!) C++ has all the expressivity of Rust and more, with far less regulation to assist the programmer in using it effectively.

you don't have to know _any_ of what you just listed in order to be effective with C++. the closest thing to required would be move semantics.

Depends on what you're trying to do. The same can be said of Rust. You can write massive web services serializing days from RDBMS databases quite a bit easier in Rust than with C++ as an example.

Re: Microsoft seeks Rust developers to rewrite core C# code

#176

Earlier quoted context omitted.

Which is why some people push for no longer using C and C++ as much as possible. It's just not feasible to expect the average programmer to avoid all the security pitfalls. Of course, whether Rust is the best option isn't a given.

There aren’t a lot of memory safe options if you want the kind of performance rust offers. Rust is fine, but it’s far from perfect. It’s hard to learn, complex, and the macro and async systems are honestly a bit of a mess. I’m really looking forward to whatever comes after rust. I’m hoping some bright sparks out there manage to make a language with rust’s memory safety but that cleans up some of rust’s rough edges.

To be fair, how many applications really need Rust's level of performance? I mean operating system code and drivers... But, many apps are getting the job done in electron with a browser engine.

I like rust, I like the sensibilities. Maybe my experience is too limited to higher level problems though. There's plenty of room for the likes of Go, Java and C# is all I'm getting at.

Re: Microsoft seeks Rust developers to rewrite core C# code

#177
post #162

Earlier quoted context omitted.

In their defence, there are entire classes of security bugs that memory safe languages protect you from. A large percentage of the security bugs in Chrome, OpenSSL, iMessage and lots of other apps wouldn’t have happened in any of the languages you listed. Or, almost certainly, in Rust.

And how many of such bugs could be prevented with compiler warnings and flags?

If you're going to start writing it testing or C++ like Rust or follow certain guidelines, a lot of them. But if you're going to constrain how you do things, why not use a language that also gives you higher level functionality along the way?

Re: Microsoft seeks Rust developers to rewrite core C# code

#178

Earlier quoted context omitted.

We acquired a product last year, where the entire back-end was written in Rust. Unfortunately, Rust developers were hard to get by, and we didn't have any internally that could maintain the Rust code at such scale. The entire back-end ended up being re-written.

I honestly wish I could have been in that boat because I crave the opportunity to use rust on the job.

Same here... Job hunting right now and would love to bridge the gap to primarily using Rust

Re: Microsoft seeks Rust developers to rewrite core C# code

#179

Earlier quoted context omitted.

Yes, I did this at my startup. Fast forward a few years, and now the company has more Rust code than Python, and the majority of the company's IP is in Rust. I suggest beginning with small, one-off things that don't have much impact. People, even developers, tend to shy away from things that aren't familiar. By introducing Rust in a small, low-risk way, it helps people get familiar with it. They get to build familiar…

What domain are you working in where Rust is the replacement for Python?

Performance, portability, reduced memory use.. even containerization which can benefit from all of the above.

Re: Microsoft seeks Rust developers to rewrite core C# code

#180
post #39

Earlier quoted context omitted.

That’s funny because I downvote almost any “in Rust” post here! C# — and garbage collected languages in general — aren’t going anywhere. With the shift to Arm, languages compiled for a runtime interpreter will get even more important for Microsoft.

Given your username I suspect you're quite a bit older. I've mentored several grey beards on Rust and they weren't at all happy about it, at first. After a few months though, they were some of its strongest advocates. It's hard to not love Rust when you realize just how much pain it saves you from.

As a gray beard... I'd rather work in rust moving forward for a lot of things.
Post reply on HN