Hacker Newsnew | past | comments | ask | show | jobs | submit | cadu2's commentslogin

Can you comment you some of these decisions in Rust that you feel are bad? I enjoy the language and have done quite a bit of work with it so I might be blinded/biased. I feel some warts here and there (async fns, anyone?), but overall the thing works and `cargo` is really a blessing.


Horrendous compilation time. Unnecessary complexity everywhere, basically C++ but worse.


There's a lot less complexity in Rust than C++. Compilation times are mostly due to lack of compiled code reuse, which is bad but not unsolvable.


> There's a lot less complexity in Rust than C++.

Eh, I don't know, I don't think so absolutely. I think in the general "application" paths yes there's less complexity but as a language overall, no.

The thing is Rust has all the same capabilities of C++, that is to say, everything. With that same strong emphasis on free abstractions - meaning, abstractions that do not cost anything more than if you wrote the implementation yourself.

Templates and stuff are a rabbit hole but if you go down the path of procedural macros and generics in Rust it's more of the same. It gets crazy, wild, and super complex. But most people don't have to worry about that, because these sort of "squeeze every last bit of juice" features are most useful for library authors.


I'm not sure into what kind of industry you're in, but having most functions as (args, *kwargs) is not the way I deal with most of my code and the libraries I work at all (backend development). Everything is typed fully.

Maybe you're in a niche spot, or using scientist-based code. I've seen plenty of trainwrecks in 'conda-only' ""libraries"" done by scientists. Maybe that's the niche you're at?


This thread convinced me that my next language to learn will be Rust (coming from a C/C++/Python career path).

Can somebody point out a list of resources to start on Rust? Do we already have a good IDE with proper autocomplete support?

Thank you!


The canonical source to learn is The Book: https://doc.rust-lang.org/book/

However, a second edition of the book is in the works and a lot of people have said good things about it. I think enough of it is filled out to be a good starting point: https://doc.rust-lang.org/nightly/book/second-edition/


Thanks! I'll burn my sushi to this!


How hard DF is compared to Nethack? I've ascended on Nethack and it is always a very tricky business... this game seems on a whole new level.


Well for one, there's no victory condition. At best, its do so well that you try to see how well you can survive is the face of stupid decisions/goals


You can't win. That hard.


just to stir things up, "... begs to raise the question..." is not unheard of :)

if the message is getting through, that's what matters in my book :)


This! Also, probably connected to bad posture, specially when sitting in front of a computer.

My posture when using the computer is terrible and usually when I'm distracted, I slouch and kinda slide down on the chair, that makes my back arch forward and compresses my stomach. Since I'm distracted reading or gaming or something I just notice it when I already start feeling my heart on my chest, or slight discomfort or shortness of breath.

I have health related anxiety and this has caused me lots of stress in the past (bad posture making me overly mind how heavy it is to breathe, or starting to feel my heart beat on my stomach out of nowhere and get stressed out etc). I've been focusing on sitting better when in front of the PC and correcting myself early when I slide down and the issue has gone away so quickly and in such a way that it even feels ridiculous to have been so stressed out about it. I truly believe our best friend and also our worst enemy is the self, so we need to get our feelings in control, and that means good breathing... and that can require you to better your posture :)

The timing of this post was very good because I tried doing the breathing exercise 5 mins ago and while I didn't had shortness of breath like the poster above us, it wasn't calming to me either... I then corrected my posture, redid the exercise and yes, it did relax me quite a bit :)

Good posture, mates!


Interesting! Do you think this could be used to augment our capabilities beyond normal strength/fitness levels?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: