Skip Navigation
Jump
(In Python) Can you save an object that is in memory to disk and reload it at a later time?
  • What is the “executable” in this context? I’m kinda confused as to what you are looking for.

    What’s wrong with parsing the input files at runtime? Is it performance? Do you want one file to load instead of multiple?

    Many have suggested pickle, which is kinda what you are asking for, but on some level it’s not much different from parsing the input files. Also, depending on your code, you may have to write custom serialization code as part of getting pickle to work.

    Note that pretty much every modern game is a bundle of often multiple pieces of executable code alongside a whole bunch of separate assets.

    5
  • Jump
    Half Of Magic: The Gathering Will Not Be Magic: The Gathering | Tolarian Community College
  • Honestly I’m not opposed to the occasional crossover set, but this does seem like way too much.

    I really liked the vibes of the magic sets this year! It’s clear they aren’t running out of their own ideas.

    7
  • Jump
    Here’s the paper no one read before declaring the demise of modern cryptography
  • That’s a good point which is part of why there is a lot of active research into quantum networking. Once you can connect two otherwise independent quantum computers, you no longer have the issue of increasing crosstalk and other difficulties in producing larger individual quantum chips. Instead you can produce multiple copies of the same chip and connect them together.

    2
  • Jump
    Here’s the paper no one read before declaring the demise of modern cryptography
  • Because the math checks out.

    For a high level description, QEC works a bit like this:

    10 qubits with a 1% error rate become 1 EC qubit with a 0.01% error rate.

    You can scale this in two ways. First, you can simply have more and more EC qubits working together. Second, you can near the error correcting codes.

    10 EC qubits with a 0.01% error rate become one double-EC qubit with a 0.0001% error rate.

    You can repeat this indefinitely. The math works out.

    The remaining difficulty is mass producing qubits with a sufficiently low error rate to get the EC party started.

    Meanwhile research on error correcting codes continues to try to find more efficient codes.

    2
  • Jump
    Here’s the paper no one read before declaring the demise of modern cryptography
  • I mean the known theory of quantum error correction already guarantees that as long as your physical qubits are of sufficient quality, you can overcome decoherence by trading quantity for quality.

    It’s true that we’re not yet at the point where we can mass produce qubits of sufficient quality, but claiming that EC is not known to work is a weird way to phrase it at best.

    3
  • Jump
    Confused about logical operators (i.e. "comparison operators", or "boolean operators") in Python
  • It’s all convention coming from older programming languages, particularly C, which comes from programmers wanting shorthand for things like “BRANCH_EQUAL $1 $2 $3” which is shorthand for some binary code.

    Python has changed the logical and and or operators to be and and or instead of && and ||.

    5
  • Jump
    Airplane seatbelts
  • Similar to a car crash, you are generally safer in your padded engineered metal box than being thrown out of it, or thrown around inside it.

    It’s like the difference between dropping a carton of eggs vs a bunch of loose eggs in a box.

    6
  • Jump
    Nintendo made a music streaming app for Switch Online subscribers
  • I’m already paying to play Smash Bros and Mario Maker online, so I might as well.

    I’d much, much rather have these in a form I could purchase or, on a bigger streaming service, but this is something at least.

    I do appreciate some of the neat gaming-specific features it has, like spoiler prevention (hiding songs you haven’t encountered yet) and looping tracks cleanly for extended periods of time.

    3
  • Jump
    Feedback about our name: someone's concerns on sharing
  • I started on lemmy.ml because I thought it was “the default one” to some extent. Learned that was a mistake pretty fast. Glad I found this one.

    21
  • Jump
    M4 Mac Mini Power Button Has New Bottom Location
  • Their trackpad can and does work via USB so ???

    I have one of their trackpads and it works great with Ubuntu over USB but not over Bluetooth for some reason. (It connects, but Ubuntu doesn’t handle it well.)

    7