• Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    ·
    3 days ago

    I work as a software engineer and honestly, it’s ridiculous how often I’m asked to or tempted to violate the laws of physics.

    There’s classics like measuring how long it takes to send a network packet from one device to another – you can’t, because the two devices might have wildly different understandings of what time it currently is. The only way to get an accurate measurement is by measuring how long it takes to send it there + back (a.k.a. the round-trip time).
    And then you divide that by 2 and pretend there’s no asymmetry in transmission speed, nor delay between the other device receiving it and sending it back. 👍

    In our previous project, we were recording audio chunks of one second each and then feeding it into a detector. At some point, we got asked, if we could reduce the delay until the user gets feedback from the detector. Also, we can’t make the detector detect things more often, because it might make more mistakes. Alright, I guess, I’ll just break up the time continuum then and give the user feedback before it has finished recording. 👍

    And now in our current project, we’re supposed to send network packages across the globe and also we basically can’t have any latency. Yeah, so there’s this thing called the speed of light/causality at about 300000 km/s. Halfway around the globe is about 20000 km. That leaves us with 66.7 ms of latency, at its theoretical minimum. Guess I’ll just quickly invent a way to create worm holes, no problem. 👍

    • CaptainBlagbird@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      3 days ago

      Send it through the earth, you can reduce it theoretically to 42.5ms (using mean radius and speed of light in vacuum).

      • JATth@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        2 days ago

        Send it through the earth, you can reduce it theoretically to 42.5ms

        This isn’t as ridiculous as it sounds and you just need a neutrino-beam… which has a horrible bandwidth (of 0.1 bits/s) plus the ridiculous upfront cost of running two particle-accelerators for a full-duplex link. (Google it up, this exists.)

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        Unfortunately you then get the low bandwidth of the frequencies that can penetrate that much ground

    • MonkderVierte@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      Alright, I guess, I’ll just break up the time continuum then and give the user feedback before it has finished recording. 👍

      Quantum physics might work too. No, seriously.

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 days ago

      That speed of causality is usually at least 3 times better than you can get in real life

      You get 300 million metres per second in light (including radio in free space) so wifi to your laptop is at that speed

      A wave in wire (eg ethernet over cat6 cable) is seldom better than 0.9c

      Laser light in an optic fibre (how almost all data moves long distance) is about 200 million metres per second as it follows a zig zag path in the fibre reflecting off the walls of the fibre

      The future promise of starlink – where your connection goes to a satellite then to another and another satellite until being down linked to the server farm hosting the content – should provide much lower latency

    • mmddmm@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      There’s classics like measuring how long it takes to send a network packet from one device to another

      That one is on your clocks quality, not on physics. People do it all the time.

      Probably on equipment that is orders of magnitude more expensive than yours, but the post isn’t about costs.

        • psud@aussie.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          Sure, but if we take it as true that light speed is the same in every direction – which is perfectly consistent with everything ever measured – you can measure speed between two endpoints using two atomic clocks and a synchronised experiment, with corrections for the relativistic effect of moving the clocks to the different places

          • koper@feddit.nl
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            if we take it as true that light speed is the same in every direction

            This is the crucial assumption, that to my knowledge hasn’t been proven or disproven. Because the alternative, light goes faster in one particular direction, is also perfectly consistent with everything. And if you’re moving atomic clocks, correcting for time dilations requires you to make assumptions about the one-way speed of light (which we only know from measuring roundtrip times)

  • Rikudou_Sage@lemmings.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    Is this a logical statement? And does the runtime support short-circuiting? It would mean you don’t have to obey physics if you don’t love your mom, which is neat.