lemmy.dexlit
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Albin Jose to Programmer Humor@programming.dev • 2 years ago

They Need To Stop Doing This

kerala.party

message-square
95
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.18K

They Need To Stop Doing This

kerala.party

Albin Jose to Programmer Humor@programming.dev • 2 years ago
message-square
95
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • @elvith@feddit.de
    link
    fedilink
    31•2 years ago

    You may joke, but if I had a penny for every time someone asked me to solve a problem, that basically boils down to the halting problem, I’d be rich.

    • xigoi
      link
      fedilink
      10•2 years ago

      Yeah, accidentally running into the halting problem is common in automatic code analysis.

      • @PoolloverNathan@programming.dev
        link
        fedilink
        English
        15•2 years ago

        It’d be nice if we wrote something to detect it running into the halting problem.

    • @randon31415@lemmy.world
      link
      fedilink
      7•2 years ago

      I have always wondered why the answer to the halting problem isn’t: “If no output has been returned in X time, BREAK, restart program from beginning.”

      • @niartenyaw@midwest.social
        link
        fedilink
        English
        27•2 years ago

        what if it needed just one more second to complete?

        • @WhiskyTangoFoxtrot@lemmy.world
          link
          fedilink
          8•2 years ago

          Damn Vogons.

      • @Shalaska@programming.dev
        link
        fedilink
        15•2 years ago

        Because that will fail to detect a program that halts in X+1 time. The problem isn’t to detect if a program that halts halts, the problem is to generally create an algorithm that will guarantee that the analyzed program will always halt given an infinite time running on an infinite computer.

        • @randon31415@lemmy.world
          link
          fedilink
          6•2 years ago

          Yes, that is the theoretical rational, but in use cases, if users always restart the program after X minutes, practical you can just hard reboot

        • @Brainsploosh@lemmy.world
          link
          fedilink
          2•
          edit-2
          2 years ago

          But you could also do a mean time analysis on specific tasks and have it cut off at a standard deviation or two (90-98% of task times covered), and have a checkbox or something for when the user expects longer times.

          You could probably even make this adaptive, with a cutoff at 2x the standard time, and updating the median estimate after each run.

    • @drcobaltjedi@programming.dev
      link
      fedilink
      7•2 years ago

      I was recently tasked with the traveling salesman problem on a project. My first pass was quick but produced sloppy inefficient results. Well boss didn’t like it so he had me go back at it again so it would be far more accurate. Well now it slogs through figuring out an optimal solution of several thousand points.

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
  • 1.28K users / day
  • 3.64K users / week
  • 9.59K users / month
  • 19.7K users / 6 months
  • 24.6K subscribers
  • 1.52K Posts
  • 53.7K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org