Live data from Hacker News

100 days with Rust: a series of brick walls

brandur.org

321–323 of 323 posts

Re: 100 days with Rust: a series of brick walls

#321
post #77

Earlier quoted context omitted.

> lifetime system logical on its own terms but very, very unnatural to learn That is a succinct explanation of it, yes! Like I can read the documentation and nod along, and the rules seem simple. Actually then remapping your brain and how you want to achieve things seems incredibly challenging

Well, that's down to practice. And on that subject... One thing I like to do with a new language is to re-implement a self-contained but non-trivial program that I've built before. I have a few but my favorite is a genetic algorithm which breeds rule sets for a cellular automaton to get the CA to solve some simple computation problems. It's not at all complex, a few hundred lines when done in Python, but it's more th…

I have been looking for such a problem to use as you to, to kick the wheels of languages. I would like to also include some basic linear algebra and/or signal processing to test numeric stuff. But do you have an example upbon github or similar? I've got a couple decades of c++ experience and I'd like to move more into rust for my home projects but I haven't had one that really tested me with data structures and threads.

Re: 100 days with Rust: a series of brick walls

#322

Earlier quoted context omitted.

Well, that's down to practice. And on that subject... One thing I like to do with a new language is to re-implement a self-contained but non-trivial program that I've built before. I have a few but my favorite is a genetic algorithm which breeds rule sets for a cellular automaton to get the CA to solve some simple computation problems. It's not at all complex, a few hundred lines when done in Python, but it's more th…

I have been looking for such a problem to use as you to, to kick the wheels of languages. I would like to also include some basic linear algebra and/or signal processing to test numeric stuff. But do you have an example upbon github or similar? I've got a couple decades of c++ experience and I'd like to move more into rust for my home projects but I haven't had one that really tested me with data structures and threa…

I'm still in the early stages with this one in Rust. I spent a lot of time this weekend on it and I'm finding no exaggeration in those stories of fighting the borrow checker! It's been a pig, honestly. I am OK with the point of it all, if anything it's made me more aware of limitations of not taking this strict approach in other languages. I can see all sorts of possible bugs that can't happen in Rust. Doesn't make writing it any easier.

I'm starting to think that Rust is really just a clever set of constraints that forces good behavior on the programmer.

Happy to throw the Python stuff over the wall at you although it isn't especially pretty (it was my 'learn Python' project). I'll put it up on Github this week & ping you back here.

Re: 100 days with Rust: a series of brick walls

#323
post #317
post #312

Earlier quoted context omitted.

There is a big demand for programmers, so raising the bar doesn't make sense.

If companies payed programmers properly, gave training and benefits, there wouldn't be lack of programmers. Raising the bar makes sense in any engineering.

It doesn't make sense if the country cannot afford to properly educate all those programmers.

Don't shift the argumentation towards inequality.

Post reply on HN