• 0 Posts
  • 25 Comments
Joined 2 years ago
Cake day: July 3rd, 2023


  • I like the description by a Finn who said: Rust is like a car with automatic, while in C (or Zig) you need to change the gears.

    I don’t think this metaphor is correct. The automatic gear’s analogy would be the Garbage Collector, which almost every mainstream language has. Rust’s memory management, in comparison, is still manual. Maybe not as manual as C or Zig - but I’d say about as manual as C++. The difference is not that it has some weird gear-changing (memory cleanup) scheme that does not require human intervention - it’s that it yells at you when you don’t do the regular gear changing (memory management) properly.





  • I feel like I didn’t really recognize having different “platforms” like Mastodon, PixelFed, etc would give multiple opportunities for the fediverse to make a “first” impression with people.

    Corporations have learned long ago the importance of properly identifying your audience, and the Fediverse is not exempt from that rule. Lemmy is the Fediverse version of Reddit and Mastodon is the Fediverse version of Twitter, and just like these two giants could live together with each other and also with Instagram without stepping on each other’s toes, so do their Fediverse versions can live with the Fediverse version of Instagram, PixelFed.

    Now we’re just missing a Fediverse version of Facebook.







  • I just use this:

    #!/bin/bash
    
    keep_generating=1
    while [[ $keep_generating == 1 ]]; do
        dd if=/dev/random of=$1 bs=1 count=$2 status=none
        echo Contents of $1 are:
        cat $1
        echo
        read -p "Try generating again? " -s -n1 answer
        while true; do
            case $answer in
                [Yy] )
                    echo
                    break
                    ;;
                [Nn] )
                    keep_generating=0
                    break
                    ;;
                *)
            esac
            read -s -n1 answer
        done
    done
    







  • Depends on what you mean by that:

    1. A Russian/Chinese judge ordering the disclosure of data about a Spanish citizen? Then no, because judges from one country should hold no jurisdiction over citizens of other countries (unless it’s about things these citizens did in the judge’s country - which is not the hypothetical case here)
    2. A Russian/Chinese born person who became a judge in Spain? Then yes, because the judge’s ethnicity should not be a factor on whether or not their authority is respected.
    3. A Russian/Chinese judge ordering the disclosure of data about a Russian/Chinese (respectively) citizen? Then this depends on whether or not Proton Mail is willing to stop doing business in Russia/China (again - respectively). Though I’m not sure if that will save them, since it may still be possible, even after the cut ties with that country, for the government to go after them using international treaties.

    At any rate, my point is that the decision of whether you obey the law or protect your users should be about the country as a whole, not about any specific judge employed by it. Choosing to obey some judges of the country while ignoring the warrants signed by other judges of the same country is just stupid. The country will not trust you to respect their authority and will not permit you to do business there, while the users will not trust you to keep your promise to protect them and won’t use your service.