Skip Navigation
I'm breakin' rocks in the hot sun
  • I'm fine with bank heists but please don't loiter :(

    edit: English not my first language yada yada, I confused "loitering" for "littering"... I'm fine with loitering after all

  • Anon doesn't like any web browsers
  • One workaround has been to spoof your Firefox user agent so Teams believes it's Chrome, and would you believe it the feature worked. I don't know if this trick is still relevant.

  • Leaving Rust gamedev after 3 years
  • Antagonizing the borrow checker is wrong. If it screams it does so to prevent you from writing a mistake. Eventually once you have enough experience you should write code in such a way that doesn't trip the borrow checker because you know how to properly handle your references.

    Is it difficult to learn at first? Yes, but the benefits of learning this outweighs the downsides such as writing code that may use references when it shouldn't.

    I'm not a Rust aficionado, but the few Rust I've written opened my eyes on issues that I have been dealing with in other languages but for which I was blind.

    Lastly I tried following a Godot project tutorial that was using GDScript except I challenged myself to follow it but rewrite the examples given using Rust's bindings for Godot. It was definitely more cumbersome to work with, but I might also have been doing something wrong (such as blindly transcribing GDscript instead of writing more idiomatic Rust).

    All of that to say 1) borrow checker is your friend and 2) scripting languages will always be more convenient at the cost of being way more dirty (way less safeties)

    In the end you need to pick the right tool for the job. Multiple tools may be used within the same project.

  • Hardcore mode is coming to Minecraft Bedrock edition and you can test it now
  • I've been told that they didn't offer a hardcore mode because the game had a few bugs that could kill you for no good reason. Imagine losing your save because of the game's bullshit. I find this decision smart even though I find stupid the fact that these bugs persisted for so long in the first place.

  • The reason why we never meet time travelers is because our civilization ends before the technology can come to fruition.
  • The message transferred between the particles supposedly FTL does contain information though. What I meant was that we cannot encode our own arbitrary information on top of it. The message has a physical effect on reality, without it the state we find the particles in cannot be respected.

    Just reconsider this: If we agree that the result of a measurement is totally random (no hidden variable predetermining the result of the measurement) but that once we measure and know the state of one particle then we know with certainty the state of the other particle (entanglement): information about the collapse of the first measured particle was shared to the other so that it's no longer random.

    edit: If your argument is about "sharing information doesn't imply transmission" then let's stop here and leave this thread agreeing that "information was shared" :)

    I have no opinions on what shape the information sharing takes. Nor am I interested in guessing.

  • The reason why we never meet time travelers is because our civilization ends before the technology can come to fruition.
  • I mean you can setup a source of entangled particles and two very far detectors that would do measurements roughly at the same time on each particle in such a way that information traveling at the speed of light wouldn't have time to travel the distance between both detectors.

    You can then just gather roughly simultaneous measurements and at a later time join the datasets from both detectors to see what one measured vs the other for each pair.

    If I understand correctly the current observations show that collapsing the state of one of the particle influences the other all the way at the other detector. Since there's no hidden variables that predetermine the result of measurements while the result of the collapse is random, and the fact that particles still respect the correlation over any distance is why there seem to be a FTL communication between the particles.

    Something has to be communicated between the particles for the influence to work FTL, but it also seem we cannot leverage this phenomenon to send "actual information" this way :/

    edit: Important point with that experiment: once the particles have been observed, if you try the experiment a second time using the same particles, then you'll get different results, this time in line with hidden variables because the particle's state already collapsed.

  • Critical Rust flaw enables Windows command injection attacks
  • If you can avoid running batch files altogether then great, amazing. But there are projects out there using Rust that still depend on running those and that's the focus of the issue... But yeah I cannot wait until the day I won't hear about cmd.exe again.

  • Critical Rust flaw enables Windows command injection attacks
  • https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa

    To run a batch file, you must start the command interpreter; set lpApplicationName to cmd.exe and set lpCommandLine to the following arguments: /c plus the name of the batch file.

    Because a batch file (.bat or .cmd) is basically a set of cmd.exe instructions I guess that's why you can't get away from it.

    And as if making sense of this CreateProcessA system call wasn't funny enough, you also need to figure out how to safely prepare that lpCommandLine for it following all of cmd.exe's weird escaping rules... lol

  • Critical Rust flaw enables Windows command injection attacks
  • It's definitely not Rust's fault, but it's kinda Windows' one and cmd.exe escape logic... It's really difficult to write logic that will correctly escape any argument given to it, cmd.exe really is a pain to deal with :/

    The Rust security team faced a significant challenge when dealing with cmd.exe's complexity since they couldn't find a solution that would correctly escape arguments in all cases.

    As a result, they had to improve the robustness of the escaping code and modify the Command API. If the Command API cannot safely escape an argument while spawning the process, it returns an InvalidInput error.

    "If you implement the escaping yourself or only handle trusted inputs, on Windows you can also use the CommandExt::raw_arg method to bypass the standard library's escaping logic," the Rust Security Response WG added.

    I get that in situations where they can't safely escape a parameter they'll just stop with an error, which sound as sane as one could go with this!

  • A Filipino villager is nailed to a cross for the 35th time on Good Friday to pray for world peace
  • It's like piercings that healed except the hole is in the hands? I want to believe he did something so that they didn't have to mutilate his hands every 35 times they did this... But at the same time the face he makes when they remove the nails is not reassuring me :/

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)WK
    wkk @lemmy.world
    Posts 0
    Comments 53