• kryptonianCodeMonkey
    link
    fedilink
    arrow-up
    227
    arrow-down
    1
    ·
    9 months ago

    Option 3 means that the Javascript standards team dies either way, right? Number 3. No hesitation.

    • Skullgrid
      link
      fedilink
      arrow-up
      68
      arrow-down
      2
      ·
      9 months ago

      the c++ team is a sacrifice I’m willing to make. can we just shoot Brendan Eich in the head if he’s not in there too?

      • RoyaltyInTraining
        link
        fedilink
        arrow-up
        14
        arrow-down
        2
        ·
        9 months ago

        I feel like all C++ does these days is badly and very slowly copy other languages. It wouldn’t be a huge loss.

        • KSP Atlas@sopuli.xyz
          link
          fedilink
          arrow-up
          15
          ·
          9 months ago

          C++ is better suited to lower level operations than Go, C++ can have huge control over the environment (allowing it to be run on bare metal with no OS) while Go is limited due to it using a garbage collector

          If there was a replacement for C++, the best bet IMO would be Zig

          • stetech
            link
            fedilink
            arrow-up
            2
            ·
            9 months ago

            As someone who knows neither of the three: Why Zig over Rust as a Cpp replacement?

            • dejected_warp_core
              link
              fedilink
              arrow-up
              4
              ·
              9 months ago

              As someone who just picked through the Zig docs (take this with a mountain of salt), Zig has a few things going for it:

              • spec is simple and closer to C in scope
              • modern language design, toolchain, and overall ergonomics
              • Go-like struct & interface system
              • 1st-class C interoperability

              Go foists co-routines on you and the runtime, and Rust has the borrow checker. Both of these things deeply impact language design, standard libraries, and the overall developer experience. So Zig might actually be a “more modern C” in many ways which makes it a contender. That said, it’s not a 1:1 comparsion since it lacks everything else that C++ does: you’d have to re-envision your software designs as something other than OOP if that’s what you’re used to.

            • ZILtoid1991
              link
              fedilink
              arrow-up
              3
              ·
              9 months ago

              Rust has its own issues.

              Before the memory safety craze, Rust was hyped as a functional programming language, meaning it not only has lambdas and monads, but also const by default, which will force you to rethink all your programming decisions. Also no classes, so you do even more rethinking.

              • optional@sh.itjust.works
                link
                fedilink
                arrow-up
                2
                ·
                9 months ago

                I don’t just rethink my programming decision but all my life decisions every night. Seem like Rust is the perfect language for me.

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    49
    arrow-down
    1
    ·
    9 months ago

    “You and your entire family” means “All life on Earth”.

    That should make the decision somewhat easier.

  • Eager Eagle
    link
    fedilink
    English
    arrow-up
    30
    arrow-down
    1
    ·
    9 months ago

    there might be an argument that JavaScript kills more than a nuclear bomb

  • peoplebeproblems@midwest.social
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    1
    ·
    9 months ago

    Ok so this one just isn’t fair.

    Two possibilities end up with me dead, two end up with millions dead, and one ends up with me being unemployed.

    Sorry not sorry Team A and B, sacrifices must be made.

  • zib
    link
    fedilink
    English
    arrow-up
    24
    ·
    9 months ago

    I’d take my odds with the bottom track.

    • darkbaron202
      link
      fedilink
      English
      arrow-up
      9
      ·
      9 months ago

      30%? Let me deliver that shot with crit across the map to your teammate hunkered down behind full cover for you!

  • samus12345@lemm.ee
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    9 months ago

    Well, you can take yourself out of the equation because you’re not tied down and can just move after flipping the switch.

    chooses bottom track

    “C’mon…c’mon!”

    trolley heads towards committe members

    “Dammit!”

    runs over and jumps on the nuclear bomb pressure pad

    • Ashelyn@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      18
      ·
      9 months ago

      You are on track A and the bomb is within sight. If you get the shit end of the 50/50, everyone in the diagram would be vaporized instantly

        • Ashelyn@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          7
          ·
          9 months ago

          Well, no.

          In scenario A they are instantly vaporized. In scenario B they are brutally sliced into multiple pieces and crushed to death, rather painfully depending on the speed of the trolley.