Live data from Hacker News

Rust Foundation: Hello, World

foundation.rust-lang.org

91–100 of 284 posts

Re: Rust Foundation: Hello, World

#91
post #11

Awesome news! Rust is easily the best programming experience I've had--the language feels incredibly well thought out, common tooling like doc generation and dependency management are included with the language, and the compiler takes full advantage of language features such that my editor's linter is able to detect most mistakes I make and the language itself guards me from doing anything obviously unsafe. I thought…

> Rust is easily the best programming experience I've had When you make this statement, what languages are you comparing it against?

Currently: C, C++, Python, Go, JS, C#, Java, Lua (if that counts), Kotlin, Julia, Scala. I've dabbled in a bunch of other ones but haven't made anything noteworthy with them.

You may notice a lack of other modern compiled languages like Zig, so take that bias in mind :)

Re: Rust Foundation: Hello, World

#92
post #90

Earlier quoted context omitted.

The amount of damage stupid and overconfident people can cause with sharp tools like C is a too high to bear risk. That’s why we instead use Java or (God forbid) JavaScript, but at the expense of speed. Rust tries to gain back this lost speed without making it too easy for idiots to destroy everything. Such code can of course look larger and more convoluted than over decades on every corner optimized C code, but at l…

Making tools for "idiots" didn't really work out so far, that's how we got Cobol and Java. From my experience, empathy works better as a design strategy.

What's the issue with Java? It empowers teams consisting of many heterogeneous people to get work done easier and limits the scope to logical errors only.

Re: Rust Foundation: Hello, World

#93
post #76
post #66

Earlier quoted context omitted.

I don't think I understand. Those are both just time zones, right? So knowing what time it happens elsewhere requires a conversion no matter what time zone you gave originally, doesn't it?

I think the point is that most people will know the offset of their own timezone from GMT/UTC. If you specify time in another timezone, they now need to know two offsets - theirs AND yours. Chances are they won't know yours and they have to look it up.

This is a very "HN bubble" perspective. No, most people do not know their time zone's offset from GMT and go through a timezone converter. When they have to set a timezone, they click a spot on a map or look up, "What timezone is Pittsburgh?" For most, it's faster to search "12:00 GMT to EST" or whatever than it is to remember it and do the arithmetic.

Re: Rust Foundation: Hello, World

#94
post #35

A win for Rust for sure, but it also seems like a loss for Mozilla.

In what way?

Mozilla was sort of de-facto the steward of the language up until recently. They stupidly fired the teams behind their most promising R&D project and lost any semblance of control over it.

Re: Rust Foundation: Hello, World

#95
post #64

Earlier quoted context omitted.

serious question : would you recommend Rust for CRUDdy type of web applications -- stuff where mostly you are firing off prepared statememts at a SQL db and then applying business logic to result set. This is what most J2EE apps do currently.

I have a app that have been ported from old python -> f# -> rust (e-commerce like) and the transition was great ( https://www.reddit.com/r/rust/comments/hh9tz6/does_rust_have... ). You need to pay attention in how align the whole software stack. Pairing Rust with tailwinds and htmx or Hotwire simplify so much stuff is like cheating. For regular CRUD flows having enums/traits/iterators make domain modeling very good a…

Could you comment a bit more on how Rust let you model the domain better than F# did?

Re: Rust Foundation: Hello, World

#96
post #87

As someone who wants to use Rust for real world applications, what are some good use cases for Rust? Web development is not its strong suite, apparently. Or, better still, what have you personally built using Rust?

I mentioned elsewhere in this thread that I built a jigsaw puzzle website [1] with a Rust API backend and I launched it last week. It definitely took longer than if I had used Node, but I enjoy working with Rust much more.

Apart from that website, I have also open sourced a Rust CLI task runner [2] which uses markdown files as a command definition format. This is probably the most important tool I've ever written, as I have used it every single day since.

[1]: https://puzzlepanda.com

[2]: https://github.com/jakedeichert/mask

Re: Rust Foundation: Hello, World

#97
post #87

As someone who wants to use Rust for real world applications, what are some good use cases for Rust? Web development is not its strong suite, apparently. Or, better still, what have you personally built using Rust?

Some off the top of my head are Alacritty (terminal emulator), exa (ls alternative), bat (cat alternative), and dog (dig alternative). Discord is rewriting a lot of their services from Go to Rust [0]. I personally built a CLI text editor in Rust [1] (very early development).

[0] https://blog.discord.com/why-discord-is-switching-from-go-to...

[1] https://github.com/andrewkdinh/via

Re: Rust Foundation: Hello, World

#98

Earlier quoted context omitted.

> I heard of ripgrep, an amazing twenty-first century revolution that beats grep in the dust. So, when you heard that, you thought "LOC"? Not safety, not speed, not features, not FFI, but LOC? why?

Maybe because that's the only metric that C is better at (I jest)

I'm sure every project having it's own buffer, list, config, logging, hashmap and endianness implementation helps a lot with that :)

Re: Rust Foundation: Hello, World

#99
post #87

As someone who wants to use Rust for real world applications, what are some good use cases for Rust? Web development is not its strong suite, apparently. Or, better still, what have you personally built using Rust?

Some off the top of my head are Alacritty (terminal emulator), exa (ls alternative), bat (cat alternative), and dog (dig alternative). Discord is rewriting a lot of their services from Go to Rust [0]. I personally built a CLI text editor in Rust [1] (very early development). [0] https://blog.discord.com/why-discord-is-switching-from-go-to... [1] https://github.com/andrewkdinh/via

Small erratum: Your first link describes re-writing a back-end service from go to rust; the first-party Discord client is Electron.

Re: Rust Foundation: Hello, World

#100
post #76

Earlier quoted context omitted.

I think the point is that most people will know the offset of their own timezone from GMT/UTC. If you specify time in another timezone, they now need to know two offsets - theirs AND yours. Chances are they won't know yours and they have to look it up.

This is a very "HN bubble" perspective. No, most people do not know their time zone's offset from GMT and go through a timezone converter. When they have to set a timezone, they click a spot on a map or look up, "What timezone is Pittsburgh?" For most, it's faster to search "12:00 GMT to EST" or whatever than it is to remember it and do the arithmetic.

It might be different elsewhere, but most people in Europe really do know their GMT offset.
Post reply on HN