The Enchanted Tavern
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf to Programmer Humor@programming.dev • 4 months ago

Trolley problem

sh.itjust.works

message-square
98
fedilink
583

Trolley problem

sh.itjust.works

Sjmarf to Programmer Humor@programming.dev • 4 months ago
message-square
98
fedilink
alert-triangle
You must log in or register to comment.
  • @kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    229•4 months ago

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

    • @Skullgrid@lemmy.world
      link
      fedilink
      67•4 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@lemmy.world
        link
        fedilink
        12•4 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.

      • @kryptonianCodeMonkey@lemmy.world
        link
        fedilink
        40•4 months ago

        Push him onto the pressure pad. Make it his fault.

      • Ricky Rigatoni
        link
        fedilink
        -22•4 months ago

        C++ is obsolete now that we have Go

        • KSP Atlas
          link
          fedilink
          15•4 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@lemmy.world
            link
            fedilink
            2•4 months ago

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

            • @ZILtoid1991@lemmy.world
              link
              fedilink
              3•4 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
                link
                fedilink
                2•4 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.

            • @dejected_warp_core@lemmy.world
              link
              fedilink
              5•4 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.

        • lime!
          link
          fedilink
          English
          13•4 months ago

          wat

          • Ricky Rigatoni
            link
            fedilink
            3•4 months ago

            I am currently in the process of completely rewriting the BSD kernel in go.

            • lime!
              link
              fedilink
              English
              7•4 months ago

              how are you handling the GC? how are you handling things like interrupts?

              • Ricky Rigatoni
                link
                fedilink
                10•4 months ago

                GOd will handle it 🙏

                • lime!
                  link
                  fedilink
                  English
                  0•4 months ago

                  oh so you haven’t actually done any of it.

          • @ZILtoid1991@lemmy.world
            link
            fedilink
            1•4 months ago

            I prefer the binary format over the text format of WASM.

    • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆
      link
      fedilink
      English
      2•
      edit-2
      4 months ago

      wait nvm I fucked up

  • @Evotech@lemmy.world
    link
    fedilink
    8•4 months ago

    Am I in the Metropolitan area?

    • @Ashelyn@lemmy.blahaj.zone
      link
      fedilink
      19•4 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

      • Steve Dice
        link
        fedilink
        English
        16•4 months ago

        So you’re saying there’s a 100% chance the comitees get vaporized by choosing the bottom track.

        • @Ashelyn@lemmy.blahaj.zone
          link
          fedilink
          7•4 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.

          • Steve Dice
            link
            fedilink
            English
            8•4 months ago

            You need to study up on your trolleys. That’s clearly a Vaporizer Trolleynator 3000.

      • @takenaps@lemmy.world
        link
        fedilink
        2•4 months ago

        Lmao

  • @zib@lemmy.world
    link
    fedilink
    English
    25•4 months ago

    I’d take my odds with the bottom track.

    • @Chakravanti@monero.town
      link
      fedilink
      English
      3•4 months ago

      I agree. And if it doesn’t fire the missile, I’ll go get that and hook it up to my Motorcycle like Raven (Snow Crash)!

      • @threshold_dweller@lemmy.today
        link
        fedilink
        0•4 months ago

        poor impulse control

        • @Chakravanti@monero.town
          link
          fedilink
          English
          1•4 months ago

          Oh, don’t misunderstand. I had that thought first time I read Snow Crash about a decade ago now. Haven’t found thought changing mind since. Just because Raven was poor doesn’t mean he made a “bad” decision in certain senses!

          • @threshold_dweller@lemmy.today
            link
            fedilink
            0•4 months ago

            He literally has it tattooed on his forehead.

            • @Chakravanti@monero.town
              link
              fedilink
              English
              1•4 months ago

              Been about a damn decade and I know I need to read it again.

  • @passiveaggressivesonar@lemmy.world
    link
    fedilink
    20•4 months ago

    Which metropolitan area?

    • @superkret@feddit.org
      link
      fedilink
      17•
      edit-2
      4 months ago

      Assuming it is in the US, at 4.5 million it can only be San Francisco/Oakland/Berkeley.

      • @underisk@lemmy.ml
        link
        fedilink
        33•
        edit-2
        4 months ago

        would the bomb also kill javascript and C++ or would I have to keep throwing trolleys at it until I get both silicon valley and the JS/C++ devs?

        • @jol@discuss.tchncs.de
          link
          fedilink
          19•4 months ago

          At that distance it also kills you, so it sounds like a good deal. No regrets.

          • @underisk@lemmy.ml
            link
            fedilink
            7•4 months ago

            win win win

      • @Drewfro66@lemmygrad.ml
        link
        fedilink
        English
        4•4 months ago

        Oh okay, so option 3 is a win/win

  • finley
    link
    fedilink
    English
    28•
    edit-2
    4 months ago

    removed by mod

  • @bleistift2@sopuli.xyz
    link
    fedilink
    English
    48•4 months ago

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

    That should make the decision somewhat easier.

    • @trxxruraxvr@lemmy.world
      link
      fedilink
      11•4 months ago

      If you make it “all human live” it starts to look quite attractive again

    • @Zozano@aussie.zone
      link
      fedilink
      English
      11•4 months ago

      By my definition, family is who you treat like family.

      • @Donkter@lemmy.world
        link
        fedilink
        6•4 months ago

        I try to treat everyone I meet like family

    • metaStatic
      link
      fedilink
      4•4 months ago

      I thought seaweed didn’t have a common ancestor

  • I Cast Fist
    link
    fedilink
    20•4 months ago

    I’ve played enough X-COM to know that 50/50 is actually 100%, I just don’t know which way. Better trigger it!!

    • @darkbaron202@lemmy.world
      link
      fedilink
      English
      9•4 months ago

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

  • @Whorehoarder@lemmynsfw.com
    link
    fedilink
    English
    8•4 months ago

    Are we in the blast zone of the nuke?

    • @xmunk@sh.itjust.works
      link
      fedilink
      13•4 months ago

      Maybe we could use Javascript to direct a simple robot to set the lever while we remain at a safe distance?

      Maybe the real solution to this diagram is to nuke it from orbit.

      • @seang96@spgrn.com
        link
        fedilink
        7•4 months ago

        But the robot has to run windows vista

        • @xmunk@sh.itjust.works
          link
          fedilink
          6•4 months ago

          And have a valid Apple developer account?

  • Dizzy Devil Ducky
    link
    fedilink
    English
    14•4 months ago

    I’ll take the 50/50 because those are some damn good odds!

    • @houstoneulers@lemmy.world
      link
      fedilink
      3•4 months ago

      those are the best odds i’ve had in years

      -dr. mann

  • @kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    81•4 months ago

    Javascript Standards Team is such an Oxymoron.

    • @kattfisk@lemmy.dbzer0.com
      link
      fedilink
      2•4 months ago

      They’ve done amazing work trying to turn the clusterfuck they started with into a good language

      • @scutiger@lemmy.world
        link
        fedilink
        6•4 months ago

        That “trying” is doing the heavy lifting in that sentence.

        • @kattfisk@lemmy.dbzer0.com
          link
          fedilink
          1•4 months ago

          What are some of the outstanding issues that haven’t been addressed? I feel like there are genuinely good ways of doing everything these days

          • @far_university190@feddit.org
            link
            fedilink
            English
            4•4 months ago

            Javascript

    • @rimjob_rainer@discuss.tchncs.de
      link
      fedilink
      4•
      edit-2
      4 months ago

      Yeah, didn’t know there was a standard committee and can’t believe how inept they are.

  • @AbsoluteChicagoDog@lemm.ee
    link
    fedilink
    12•4 months ago

    Joke’s on you I hate myself and my family

  • @samus12345@lemm.ee
    link
    fedilink
    English
    19•
    edit-2
    4 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

  • @Rivalarrival@lemmy.today
    link
    fedilink
    English
    19•4 months ago

    A Mark VI only has a 18 to 160 kiloton yield.

    Can we replace it with a B83?

  • Eager Eagle
    link
    fedilink
    English
    29•4 months ago

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

  • @rimjob_rainer@discuss.tchncs.de
    link
    fedilink
    62•4 months ago

    Bottom tracks, easy

    • The Giant Korean
      link
      fedilink
      English
      19•4 months ago

      Worth it

    • @ghost_of_faso3@lemmygrad.ml
      link
      fedilink
      English
      1•4 months ago

      deleted by creator

Programmer Humor@programming.dev

!programmer_humor@programming.dev
Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 23 users / day
  • 423 users / week
  • 1.1K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 1.4K Posts
  • 46.2K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • UI: unknown version
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org