• 0 Posts
  • 27 Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle

  • Personal pet theory that may also play into it: Trans people are also often in information security roles. Potentially, because when you have to hide your real identity, you start to get good at it.
    And Rust also has various security benefits, especially when compared to C, but also when compared to garbage-collected languages (race conditions are largely prevented).





  • Ephera@lemmy.mltolinuxmemes@lemmy.worldRust? Like what's on some metals?
    link
    fedilink
    English
    arrow-up
    110
    arrow-down
    1
    ·
    5 days ago

    It’s a programming language, which is particularly relevant for Linux, because it doesn’t require a runtime (separate program that runs the code). This allows it to be used in the kernel.

    But it also means that it’s very good for building libraries. With a small bit of extra work, virtually any other programming language can call libraries implemented in Rust (like you can with livraries implemented in C).
    Add to that, that Rust allows for performance similar to C and makes lots of typical C bugs impossible, and suddenly you’ve got folks rewriting all kinds of C libraries and applications in Rust, which is something you might have also heard about.



  • Right, so you might want ask about this on !askscience@lemmy.world or such, as science-y folks tend to not be comfortable with what I’m about to say, but to the best of my knowledge, that’s all just complete horseshit. Like, no, your understanding of the photograph is not somehow incorrect. It’s just two halves of a photograph and because you know the first half, you know what’s on the second half. The second half does not get changed by you looking at the first half. Nor does the entangled quantum get changed by you looking at the first quantum.

    I think, a big part of this mass confusion is that at the size that quanta have, looking at them does actually change/move the quantum that you look at (not a potentially entangled one). This is not for crazy reasons, but because looking at them requires light, which is the equivalent of blasting them with photons, and photons are themselves quanta.
    It’s like if you had a dark room with a ball in it and you can only throw other balls into there to try to figure out where the first ball is. You need to hit the first ball, in order to have a chance of working out where it might be based on the angle that your thrown ball returns at. If you do hit the first ball, it will move. So, you only really know where it was at the time of impact. Quanta are not balls, but they do still interfere with each other when they get close to each other.

    Entanglement in this analogy is that you’ve spun up two balls next to each other like cogwheels, so you know them to have the opposite (and equally strong) spin. Then you’ve released those into the dark room and start throwing other balls at them to try to work out their spin. If you hit one of the spinning balls, your thrown ball will come back out with a spin opposite to that and the spin of the ball that was hit will have reduced. In this moment, you know that the other spinning ball also has an opposite spin, because you originally spun the two balls like cogwheels. The other ball does not get changed by you measuring the first, but there’s no way for you to know, because you have to measure it to find out, which means also throwing a ball at it and therefore changing it, too.

    As far as I can tell, this is the other big part of where the confusion comes from. Because measuring necessarily also involves changing the thing and because it’s actually impossible to disprove that the entangled quantum didn’t get changed by us measuring the first, you get folks that follow a school of thought of things being non-deterministic. Of things only being set in stone once you measure them. There’s lots of vested interest in things being non-deterministic for religious or moral reasons and there is no way to disprove it at the quantum level. These folks then propagate concepts like superposition and that when you open the box, you’re the one that forces the cat to be killed. (Schrödinger was not one of them, by the way. The cat analogy was a critique of superposition as an idea.)

    To my knowledge, there’s no evidence for non-determinism (folks will sometimes argue with quantum fluctuation showing it, but it doesn’t happen in complete isolation, so that disqualifies it in my opinion) and given that the rest of our reality seems to be perfectly deterministic, I think we should assume the quantum stuff to be like that, too, unless proven otherwise, but unfortunately not everyone goes along with that.


  • I’ve heard this explanation of it once from a physicist: Imagine you have a photograph. You rip that photograph in half. Now you put both halves into envelopes and mix them up. At this point, you don’t know which half is in which envelope. Now you send one of the envelopes to Australia. You open your half. Because you see that you have the left half of the photograph, you gain instant knowledge that the right half is in Australia.

    With quanta, you can for example have a subatomic particle which decays into two quanta and then you know those quanta to have certain similar properties. As Wikipedia puts it:

    For instance, a spin-zero particle could decay into a pair of spin-1/2 particles. If there is no orbital angular momentum, the total spin angular momentum after this decay must be zero (by the conservation of angular momentum). Whenever the first particle is measured to be spin up on some axis, the other, when measured on the same axis, is always found to be spin down.
    https://en.wikipedia.org/wiki/Quantum_entanglement#Meaning_of_entanglement


  • I figured, I’d ruffle some feathers by saying that. 😅
    But yeah, I stand by my point. Just because your target users are capable of dealing with complexity, doesn’t mean you should be making use of that rather than simplifying usability, since your users have plenty other things they could be learning instead.

    I will caveat that I can see it becoming worth it to learn an intricate logic for a power user, when things fall into place and make sense at a higher level as you learn more about it.
    But in my experience, that’s just not the case with package managers. You need a few specific commands to be obvious and then the special cases can be obscure flags.


  • Arch’s package manager is pretty terrible.

    Here’s two commands. See if you can guess what they might do:

    pacman -S package_name
    pacman -Syu
    
    Solution

    The first command installs a package.
    The second command updates all packages.

    I believe, there’s some sort of logic to the letters, but man, most users seriously do not care. They just want to install, update and remove packages 99% of the time, so they shouldn’t need to learn that intricate logic for three commands.
    I guess, you could use pkcon to do that instead, but that doesn’t really help new users…


  • Ephera@lemmy.mltoMemes@lemmy.mlDiversity in your ear holes
    link
    fedilink
    English
    arrow-up
    5
    ·
    10 days ago

    Yeah, I just put my whole collection on shuffle and have come to appreciate the simplicity of that.

    I use this web music player at home, which only supports shuffle and because it’s a web thing, I can’t either use keyboard shortcuts to skip songs (without switching to that window).
    And I actually like that I can’t distract myself with selecting just the right music. Because if I don’t distract myself and just get into coding or whatever, I’ll quickly stop noticing what precise music is playing.









  • I have this problem with Android. Google has turned the filesystem into unusable garbage, so you’re lucky, if you can launch a gallery app with a file path and it allows you to actually go through the images in that folder.

    And of course, that’s with a local file path, so the situation is completely hopeless when your images are on a network share. Unless the gallery app itself implements the network protocol, you’re out of luck.
    Wanna guess how often that happens? Yeah, it simply doesn’t. Even if it’s theoretically just a library, when you build it into the gallery app, that dev has to continually maintain and test it.