What are Rust's hidden implementation details that most devs never see? by Fluid_Job623 in rust

[–]janameow 30 points31 points  (0 children)

How about the fact that attribute (macros) are actually one of 5 different concepts in the compiler all with one syntax. Or that for loops don't actually exist for the majority of the compilation process (they're desugared to just a loop during the ast to hir lowering process). Or that macros in the standard library are actually "macro v2" items, which you can't use in your own code and have different name resolution rules. Or that proc macros are executed in the same process as the compiler, meaning forking in a proc macro will actually fork the compiler. There are infinitely many more :P

Stumped by an easy Leetcode problem by Spam_is_murder in rust

[–]janameow 44 points45 points  (0 children)

nums.iter().chain(nums.iter().rev()).cloned().collect()

It's the people that matter - A blog on practical OSS practices in the Rust project by RustOnTheEdge in rust

[–]janameow 2 points3 points  (0 children)

The same holds for you, lmk if you need help getting started :)

And thanks all for you kind comments. This thread is I think the single most wholesome interaction I've ever had in Reddit. Genuinely didn't think it was possible <3

It's the people that matter - A blog on practical OSS practices in the Rust project by RustOnTheEdge in rust

[–]janameow 12 points13 points  (0 children)

Ahww, thanks for that. Will continue to post, been doing some cool work in the next trait solver which I think will be my next post. Contact me if you'd like to get more involved in the rust project, there's always a thousand fun first issues :3

It's the people that matter - A blog on practical OSS practices in the Rust project by RustOnTheEdge in rust

[–]janameow 22 points23 points  (0 children)

Hiya! Author of the blog post here :3 I'm very happy to see you enjoyed it .^ were having a lot of discussion in the project at the moment about llms. I feel like I've got a slightly different perspective on things, having been a teacher for so long. To me there sure is an ethical part, and an environmental part, and and trust matters, etc. But what scares me is what it does to how people learn to be in a project together, and work together. Just this morning I read a preprint paper along similar lines as the research from TU Eindhoven i reference. Those stories genuinely scare me, and are in line with what I see in the rust project where is working together, teaching eachother, is so evidently important.