Loved the article, such a nice read. I am still slowly ramping up my proficiency in Rust and this gave me a lot of things to think through. I particularly enjoyed the temporary mutability pattern, very cool and didn't think about it before!
> I particularly enjoyed the temporary mutability pattern, very cool and didn't think about it before!
It's not too uncommon in other languages (sometimes under the name "immediately invoked function expression"), though depending on the language you may see lambdas involved. For example, here's one of the examples from the article ported to C++:
auto data = []() {
auto data = get_vector();
auto temp = compute_something();
data.insert_range(data.end(), temp);
std::ranges::sort(data);
return data;
}();
Out of curiosity, I see my website not being well indexed and I wondered whether it is because I include
```
User-agent: *
Disallow: /
```
in my robots.txt. What should one add to allow Marginalia to crawl their website?
Why spend electricity and time to read the text in a screenshot, and then more time making sure there are no mistakes. When the sender could have just copied the original text?
I tried we mentions for a while, but then switched to just POSSE (publish (on your) own site, syndicate elsewhere). So the comments are moved to other platforms atm.
How does the space you are in, the environment, affect the way you think? Do you "think differently", or does your mind behave differently, when you are in a small restricted space, compared to a large and vast opening?
reply