ShinyLemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months ago

Trolley problem

sh.itjust.works

message-square
90
fedilink
582

Trolley problem

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months ago
message-square
90
fedilink
alert-triangle
You must log in or register to comment.
  • kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    arrow-up
    230
    arrow-down
    1
    ·
    3 months ago

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

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      68
      arrow-down
      1
      ·
      3 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?

      • kryptonianCodeMonkey@lemmy.world
        link
        fedilink
        arrow-up
        40
        ·
        3 months ago

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

      • RoyaltyInTraining@lemmy.world
        link
        fedilink
        arrow-up
        14
        arrow-down
        2
        ·
        3 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.

      • Ricky Rigatoni@lemm.ee
        link
        fedilink
        arrow-up
        2
        arrow-down
        24
        ·
        3 months ago

        C++ is obsolete now that we have Go

        • KSP Atlas@sopuli.xyz
          link
          fedilink
          arrow-up
          15
          ·
          3 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
            arrow-up
            2
            ·
            3 months ago

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

            • dejected_warp_core@lemmy.world
              link
              fedilink
              arrow-up
              5
              ·
              3 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@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              3 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
                ·
                3 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.

        • lime!@feddit.nu
          link
          fedilink
          English
          arrow-up
          13
          ·
          3 months ago

          wat

          • Ricky Rigatoni@lemm.ee
            link
            fedilink
            arrow-up
            4
            arrow-down
            1
            ·
            3 months ago

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

            • lime!@feddit.nu
              link
              fedilink
              English
              arrow-up
              7
              ·
              3 months ago

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

              • Ricky Rigatoni@lemm.ee
                link
                fedilink
                arrow-up
                10
                ·
                3 months ago

                GOd will handle it 🙏

                • lime!@feddit.nu
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  3 months ago

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

          • ZILtoid1991@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            3 months ago

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

    • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆@yiffit.net
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      3 months ago

      wait nvm I fucked up

  • kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    arrow-up
    82
    arrow-down
    1
    ·
    3 months ago

    Javascript Standards Team is such an Oxymoron.

    • rimjob_rainer@discuss.tchncs.de
      link
      fedilink
      arrow-up
      7
      arrow-down
      3
      ·
      edit-2
      3 months ago

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

    • kattfisk@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      3 months ago

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

      • scutiger@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        3 months ago

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

        • kattfisk@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          3 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
            arrow-up
            5
            arrow-down
            1
            ·
            3 months ago

            Javascript

  • rimjob_rainer@discuss.tchncs.de
    link
    fedilink
    arrow-up
    62
    ·
    3 months ago

    Bottom tracks, easy

    • The Giant Korean@lemmy.world
      link
      fedilink
      English
      arrow-up
      19
      ·
      3 months ago

      Worth it

    • ghost_of_faso3@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      deleted by creator

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

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

    That should make the decision somewhat easier.

    • trxxruraxvr@lemmy.world
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      3 months ago

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

    • Zozano@aussie.zone
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      3 months ago

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

      • Donkter@lemmy.world
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        3 months ago

        I try to treat everyone I meet like family

    • metaStatic@kbin.earth
      link
      fedilink
      arrow-up
      4
      ·
      3 months ago

      I thought seaweed didn’t have a common ancestor

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    30
    arrow-down
    1
    ·
    3 months ago

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

  • finley@lemm.ee
    link
    fedilink
    English
    arrow-up
    28
    ·
    edit-2
    3 months ago

    Removed by mod

  • peoplebeproblems@midwest.social
    link
    fedilink
    English
    arrow-up
    29
    arrow-down
    1
    ·
    3 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.

    • BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      3 months ago

      Wait, which one leaves you unemployed?

      • peoplebeproblems@midwest.social
        link
        fedilink
        English
        arrow-up
        10
        ·
        3 months ago

        The lack of standards path of course.

        • BatmanAoD@programming.dev
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          3 months ago

          Unless you work for the committee or for ISO somehow, then I don’t think that really follows. C++ and JavaScript were both used in production for decades before they had standards, and the dissolution of the standards committee wouldn’t cause compiler vendors to stop developing compilers.

          • peoplebeproblems@midwest.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 months ago

            Ok.

            Fair.

  • zib@lemmy.world
    link
    fedilink
    English
    arrow-up
    25
    ·
    3 months ago

    I’d take my odds with the bottom track.

    • Chakravanti@monero.town
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 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
        arrow-up
        1
        arrow-down
        1
        ·
        3 months ago

        poor impulse control

        • Chakravanti@monero.town
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 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
            arrow-up
            1
            arrow-down
            1
            ·
            3 months ago

            He literally has it tattooed on his forehead.

            • Chakravanti@monero.town
              link
              fedilink
              English
              arrow-up
              1
              ·
              3 months ago

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

  • I Cast Fist@programming.dev
    link
    fedilink
    arrow-up
    20
    ·
    3 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
      arrow-up
      9
      ·
      3 months ago

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

  • passiveaggressivesonar@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    3 months ago

    Which metropolitan area?

    • superkret@feddit.org
      link
      fedilink
      arrow-up
      17
      ·
      edit-2
      3 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
        arrow-up
        33
        ·
        edit-2
        3 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
          arrow-up
          19
          ·
          3 months ago

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

          • underisk@lemmy.ml
            link
            fedilink
            arrow-up
            7
            ·
            3 months ago

            win win win

      • Drewfro66@lemmygrad.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 months ago

        Oh okay, so option 3 is a win/win

  • samus12345@lemm.ee
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    3 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
    arrow-up
    19
    ·
    3 months ago

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

    Can we replace it with a B83?

  • Dizzy Devil Ducky@lemm.ee
    link
    fedilink
    English
    arrow-up
    14
    ·
    3 months ago

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

    • houstoneulers@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      those are the best odds i’ve had in years

      -dr. mann

  • AbsoluteChicagoDog@lemm.ee
    link
    fedilink
    arrow-up
    12
    ·
    3 months ago

    Joke’s on you I hate myself and my family

  • Evotech@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    3 months ago

    Am I in the Metropolitan area?

    • Ashelyn@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      19
      ·
      3 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@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        16
        ·
        3 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
          arrow-up
          7
          ·
          3 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@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            8
            ·
            3 months ago

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

      • takenaps@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Lmao

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

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
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 744 users / day
  • 4.64K users / week
  • 9.23K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.35K Posts
  • 46.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org