let thread : &'static Rust = "The Rust Thread".into()

koala

Ars Tribunus Angusticlavius
7,579
Hmmm... I think it's more like Rust is not the right language to use Starlark with- or even to do the thing I want to do.

I'm basically writing a small package manager, where packages are recipes. So a sandboxable/DSL-y language seems like a good idea. But really I really don't need fearless concurrency, not having a GC, or superstrict type-checking. I'm definitely, as always, enjoying how pleasant some things in Rust are (learning thiserror and color-eyre, from blessed.rs) but if I liked Go, I think I'd got this done much much faster. Or if there were reasonable ways to sandbox Python. Or if I some day decide to write JS/TS...
 

koala

Ars Tribunus Angusticlavius
7,579
Oh, actually I got it working. Luckily the tests are quite comprehensive, so I just had to do the "the tests are the docs" ("the docs are the docs" tend to be nicer, but "the code are the docs" would be worse, so I'm not complaining). My code is ugly, but I managed to get something useful working. I'm working now on setting up binary releases through GitHub actions, will add some documentation after that... and I might publish it in a few places to see if anyone is interested.
 
  • Like
Reactions: ShuggyCoUk

senan79

Ars Scholae Palatinae
827
What resources do experienced programmers who have programmed in rust used in the beginning?

I have gone through the rust book 4 or 5 times since 2016 and lose interest soon and forget all about it. Usually I give up after 3 chapters. The last attempt was a bit better with me going upto chapter 10.

The low level is not a problem. I have programmed professionally in C++ 20 years ago. The material just doesn't seem that engaging to me.

I have a hard time going through videos for learning new stuff.
 

koala

Ars Tribunus Angusticlavius
7,579
I don't do videos either. I've eyed a couple of Rust books- "The Rust Programming Language, 2nd Edition" (with Steve Klabnik as an author) and "Programming Rust, 2nd Edition" are both on O'Reilly. I've read more of the first, though.

But my learning is based on programming. I think you need to jump into a project of the right size to learn, really.

(If you install some software by fetching binaries from the Internet, then I have a project that could be interesting. It's just 350 lines of code right now. Wink, wink, nudge, nudge.)
 

koala

Ars Tribunus Angusticlavius
7,579

QuadDamaged

Ars Praefectus
3,955
Subscriptor++
What resources do experienced programmers who have programmed in rust used in the beginning?

I have gone through the rust book 4 or 5 times since 2016 and lose interest soon and forget all about it. Usually I give up after 3 chapters. The last attempt was a bit better with me going upto chapter 10.

The low level is not a problem. I have programmed professionally in C++ 20 years ago. The material just doesn't seem that engaging to me.

I have a hard time going through videos for learning new stuff.
Rust book and the diverse and sometimes defunct irc/zulip/discords.

I was very lucky to have several of my SO questions answered by ShepMaster - and could learn a lot from his answers.

All the rest I learned from the compiler error messages and reading the source of some of my dependencies.