[–] 7 points 3 weeks ago

The RustCrypto organization has a bunch of crates for common crypto schemes. From when I looked into some of it, it looked pretty solid. It seems well maintained compared to other options, although most crates still have not reached version 1.0 and might be relatively new in the grand scheme of things, which is something to consider when security is critical.

  • source
  • [–] 5 points 1 month ago

    It's really amazing that Adam and Tom had this very long plan for an entire day up to exactly the sunset, requiring so many train connections, and it all worked out. Every single train was incredibly reliable.

    Also, Sam feeding Ben a toxic Gingko nut is an absolutely iconic moment.

  • source
  • [–] 5 points 2 months ago (1 child)

    I can tell that you didn't read the article aside from the bullet points, because the point of the article is to refute these ideas presented at the beginning. It is about how tools are often culturally enshrined, how they directly affect people while also being designed by us. I encourage you to read it in full.

  • source
  • parent
  • context
  • [–] 1 point 2 months ago* (last edited 2 months ago)

    You would have to either mutate the original vector or clone it, yes. If you really want to iterate through an immutable Vec with only constant memory usage, then you probably can't get around O(n^2) runtime, but maybe there is some time-memory-tradeoff where a small memory usage can get some time reduction.

  • source
  • parent
  • context
  • [–] 4 points 2 months ago (2 children)

    Maybe a heap data structure is what you're looking for. Depending on the usecase you might have to first turn an unsorted Vec into a heap (runtime in O(n), which is still faster than fully sorting it), at that point you can both insert new elements and remove the minimum element within a time in O(log n).

  • source
  •  

    I saw this article by Nathan J. Robinson on Current Affairs and wanted to share. I do agree with the idea that the twitter format discourages deep conversation and debate. Lemmy is in general much better in this regard, but even still it is affected by the wider internet culture of our time, and a proper debate culture takes effort.

    Even on Lemmy I frequently see more nuanced takes being shut down by quick, snarky comments pushing the conversation into absolutes. And yes, a democratic society absolutely requires healthy discussion of difficult issues, not just outrage.

     

    I was thinking about how to improve my email situation, because at the moment I am using an address of a commercial mail provider, which obviously brings some concerns of lock-in.

    While fully self-hosting the email is an option, I am a bit wary of this, because having a working email is very critical and I do trust the commercial providers to give better uptime and reliability than my old server in the closet. Does anyone have experience hosting an email service and what is it like/could you recommend it?

    The other option that I am more inclined to is having the email hosted by some cloud provider, but using an address under my personal domain name. The point would be of course that I could change the email provider while keeping the address. Which providers supporting this could you recommend? What is the process like linking a domain to an email host?

     

    Now that Advent of Code 2024 has concluded, I wanted to get people's opinion on what puzzles they especially liked looking back. This could be because of the puzzle mechanics, the description, because you are especially proud of your solution that day, or for any other reason.

    Feel free to answer even if you only saw part of the puzzles.

    My picks would be:

    • 14 (Restroom Redoubt, robots moving into christmas tree shape). Even though it caught me off-guard in the moment, I did like that part 2 had this very imprecise requirement for once. Definitely made for varied, creative solutions.
    • 15 (Warehouse Woes, robots pushing boxes) The second part was a fairly big complexity spike with just a minor change in the tasks. Basically a form of simulation where the hard part is finding a good data representation for the setup. I liked this one because debugging was such a visual process for me, by printing the grids.
    • 17 (Chronospatial Computer, running a machine code) For me the first really tricky one, but still doable. These assembly puzzles are just neat. A lot of computation is started with a pretty small input, and the task is basically to really understand how this "computer" works.

    What have been your favorites?

    view more: next ›