minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Albin9326@kerala.party 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.19K

They Need To Stop Doing This

kerala.party

Albin9326@kerala.party to Programmer Humor@programming.dev · 2 years ago
message-square
95
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • randon31415@lemmy.world
    link
    fedilink
    arrow-up
    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
      arrow-up
      27
      ·
      2 years ago

      what if it needed just one more second to complete?

      • WhiskyTangoFoxtrot@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        2 years ago

        Damn Vogons.

    • Shalaska@programming.dev
      link
      fedilink
      arrow-up
      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
        arrow-up
        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
        arrow-up
        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.

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.

  • 117 users / day
  • 265 users / week
  • 8.34K users / month
  • 12.5K users / 6 months
  • 1 local subscriber
  • 23.7K subscribers
  • 1.44K Posts
  • 45.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org