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

I think that's part of the fun :)

Or cat night-before-christmas.txt | grep laugh

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;
    }();

A new principle underlying the physics of fragmentation explains why fragment sizes follow a specific, universal distribution.

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?

This should work

  User-agent: search.marginalia.nu
  Allow: /

Thank you! I just added it :)


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?


This has happened to me so many times...


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.


*webmentions


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?


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

Search: