Live data from Hacker News

Rust is tier-1 language at Microsoft

rustfoundation.org

61–70 of 522 posts

Re: Rust is tier-1 language at Microsoft

#63
post #50
post #16

Good news they adopted Rust as Tier-1 language. I hope their Weather app stop consuming more than 1GB RAM https://www.notebookcheck.net/Windows-11-s-built-in-Weather-...

I feel like the weather app makes a lot of sense from a corporate politics point of view. A 1mb weather app would have a significantly less impressive pie chart associated with it come "here are our improvements" presentation. Also if times get tough and you're told to reduce headcount by 10%, who do you want to get rid of. Sally who knows the USB driver end to end or Todd who wrote the bloated 1gb weather app. (Don'…

[flagged]

Re: Rust is tier-1 language at Microsoft

#67
post #32

Earlier quoted context omitted.

There is a rustc_codegen_clr which transpiles to .NET https://github.com/fractalfir/rustc_codegen_clr

> This project is still early in its developement. Bugs, crashes and miscompilations are expected. DO NOT USE IT FOR ANYTHING SERIOUS. how can one claim it is tier-1? Also random student, nothing official from Microsoft.

That project is not in any direct way related to Microsoft

Re: Rust is tier-1 language at Microsoft

#68
post #54

With certain rough edges like complex traits and Async aside, rust is an S-tier lang in several domains. Of interest: - Embedded - PC desktop applications - Computationally-intense scientific programming. (Chem, structural bio etc) - OSes, drivers etc - High-performance tasks in general. CPU, GPU, etc. It's not a memory-safety one-trick pony; it's a well-rounded lang which has learned from its predecessors.

Yeah, I primarily use rust because it's got algebraic data types, pattern matching, and cargo. If ocaml had a cargo like experience, then I would migrate there.

I've said for a while that the main reason Rust is so popular is that it has a lot of effort put into the developer experience, with the low-level safety honestly not being all that important to a large portion of the programmers who would be fine with a garbage collector. I used to think that maybe a "Rust with garbage collector" would come along, but at this point it honestly seems more likely that an optional garbage collector would be added to Rust (probably with just the primitives in std and leaving it up to libraries to provide a more full experience, like with async runtimes).

Re: Rust is tier-1 language at Microsoft

#69
post #17

Earlier quoted context omitted.

A lot of infrastructure is going to be ported to Rust. It's fantastic for websites and servers, and LLMs are very good at generating it. The primary downside of Rust is the long compile times, especially with macros (serde, etc.) If that can be fixed, it will be sublime.

I like Rust a lot but I'm not sure it would come very high up my list for web applications.

Axum and Actix are phenomenal web frameworks.

The type system and error handling ergonomics make it easier to write defect-free code than, say, Go or Java.

Simple servers are request scoped and mostly feature linear request handling, so you're writing simple vanilla Rust without the complex pointer semantics that you would use for systems programming. The async pieces aren't difficult either.

Serde-annotated structs are the best serialization/deserialization story anywhere. It integrates super ergonomically into Axum and Actix to make writing request handlers a breeze. They're super easy to read, too.

Post reply on HN