Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Mister M. T. Sack (thatbrickster@shitposter.club)'s status on Tuesday, 08-May-2018 07:34:04 EDT Mister M. T. Sack Mister M. T. Sack
    Perhaps aborting a program isn't an acceptable way of terminating it and should be considered a bug. Exit codes and properly defined behaviour sounds preferable.
    In conversation Tuesday, 08-May-2018 07:34:04 EDT from shitposter.club permalink
    1. Hattie Cat (hattiecat@shitposter.club)'s status on Tuesday, 08-May-2018 07:51:01 EDT Hattie Cat Hattie Cat
      in reply to
      @thatbrickster  I guess it depends on what context the program runs in and what you want to achieve. If it's something that interacts with a user then a program that bombs out with a naked error code is a crock - the program should either retry or if there's user-generated state the program should try to fail gracefully (drop work done so far to disk then try to recover on restart). Then there's the Erlang approach if you have a real-time system and want high reliability. Many faults in such systems are often caused by transient events so the best thing to do is fail and get restarted. Might have saved the Ariane V. 
      In conversation Tuesday, 08-May-2018 07:51:01 EDT from shitposter.club permalink
      1. Mister M. T. Sack (thatbrickster@shitposter.club)'s status on Tuesday, 08-May-2018 07:59:38 EDT Mister M. T. Sack Mister M. T. Sack
        in reply to
        @hattiecat I posted more about it further on.
        In conversation Tuesday, 08-May-2018 07:59:38 EDT from shitposter.club permalink
        1. Hattie Cat (hattiecat@shitposter.club)'s status on Tuesday, 08-May-2018 08:00:21 EDT Hattie Cat Hattie Cat
          in reply to
          @thatbrickster Beat me to it!
          In conversation Tuesday, 08-May-2018 08:00:21 EDT from shitposter.club permalink
          1. Hattie Cat (hattiecat@shitposter.club)'s status on Tuesday, 08-May-2018 08:05:49 EDT Hattie Cat Hattie Cat
            in reply to
            @thatbrickster Aside: There are some circumstances where you don't want to just abort on error for performance reasons. If you have a pipelined vector processor or similar, then for max. performance you want to keep on going, because of the large performance hit if you stop or branch elsewhere (pipeline stalls, context switch etc.). In any case, the error might not actually matter. So you just set an NaN or something and figure it out later. The old CDC mainframes used to do that. (Maybe not so relevant now but back in the day...)
            In conversation Tuesday, 08-May-2018 08:05:49 EDT from shitposter.club permalink
            1. Mister M. T. Sack (thatbrickster@shitposter.club)'s status on Tuesday, 08-May-2018 08:06:48 EDT Mister M. T. Sack Mister M. T. Sack
              in reply to
              @hattiecat You can see I've never worked with systems like that because I didn't think of that.
              In conversation Tuesday, 08-May-2018 08:06:48 EDT from shitposter.club permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.