Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #42590

Re: CATCH and THROW

From rickman <gnuarm@gmail.com>
Newsgroups comp.lang.forth
Subject Re: CATCH and THROW
Date 2015-10-12 02:39 -0400
Organization A noiseless patient Spider
Message-ID <mvfkf0$os2$1@dont-email.me> (permalink)
References (3 earlier) <3af8e118-f284-449f-8da0-883fc125790c@googlegroups.com> <mvcvm1$jh9$1@dont-email.me> <87twpx3nkg.fsf@jester.gateway.sonic.net> <mvd5pc$601$1@dont-email.me> <87lhb838k8.fsf@jester.gateway.sonic.net>

Show all headers | View raw


On 10/12/2015 2:27 AM, Paul Rubin wrote:
> rickman <gnuarm@gmail.com> writes:
>> Multitaskers may not be overly hard, but they are not trivial to
>> design. The serial data protocol is not async, it is command/response.
>> The timeout is waiting for a "valid" reply.
>
> It sounds async in the sense that a command is sent and the other device
> replies some unpredictable time later.  Yeah I wouldn't write a
> multitasker just for the sake of something like that, but if the Forth
> you were using already had multitasking, it's just another approach you
> could use.  Mostly just commenting on alternative ways to organize this
> type of program.

The response delay is not significant to the functioning of the 
software.  In reality that delay is actually very predictable as it 
comes from a hardware process and the only variability is in the 
synchronization with the clock, approximately <= 40 ns.

I get the purpose of the comment.  I just don't agree with it.  I think 
using a multitasker doesn't address the issues in error recovery.  The 
problem I had was that it greatly complicates the control flow. 
CATCH/THROW simplifies this somewhat.  Multitasking is orthogonal to the 
issue.

-- 

Rick

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

CATCH and THROW Mark Wills <markwills1970@gmail.com> - 2015-10-09 05:46 -0700
  Re: CATCH and THROW anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-10-09 16:05 +0000
    Re: CATCH and THROW "Elizabeth D. Rather" <erather@forth.com> - 2015-10-09 08:30 -1000
      Re: CATCH and THROW JennyB <jennybrien@googlemail.com> - 2015-10-09 12:19 -0700
        Re: CATCH and THROW Mark Wills <markwills1970@gmail.com> - 2015-10-09 12:30 -0700
  Re: CATCH and THROW "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-10-09 23:21 -0400
    Re: CATCH and THROW Paul Rubin <no.email@nospam.invalid> - 2015-10-09 20:37 -0700
    Re: CATCH and THROW Mark Wills <markwills1970@gmail.com> - 2015-10-10 01:16 -0700
      Re: CATCH and THROW Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2015-10-10 19:18 +0100
    Re: CATCH and THROW "HAA" <someone@microsoft.com> - 2015-10-11 12:18 +1000
      Re: CATCH and THROW hughaguilar96@gmail.com - 2015-10-10 23:21 -0700
        Re: CATCH and THROW rickman <gnuarm@gmail.com> - 2015-10-11 02:32 -0400
          Re: CATCH and THROW Paul Rubin <no.email@nospam.invalid> - 2015-10-10 23:51 -0700
            Re: CATCH and THROW rickman <gnuarm@gmail.com> - 2015-10-11 04:16 -0400
              Re: CATCH and THROW Paul Rubin <no.email@nospam.invalid> - 2015-10-11 23:27 -0700
                Re: CATCH and THROW rickman <gnuarm@gmail.com> - 2015-10-12 02:39 -0400
                Re: CATCH and THROW "Elizabeth D. Rather" <erather@forth.com> - 2015-10-11 21:26 -1000
              Re: CATCH and THROW "Elizabeth D. Rather" <erather@forth.com> - 2015-10-11 21:22 -1000
        Re: CATCH and THROW "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-10-12 01:29 -0400
          Re: CATCH and THROW rickman <gnuarm@gmail.com> - 2015-10-12 02:23 -0400
            Re: CATCH and THROW "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-10-12 19:52 -0400
              Re: CATCH and THROW rickman <gnuarm@gmail.com> - 2015-10-12 21:14 -0400
      Re: CATCH and THROW "Elizabeth D. Rather" <erather@forth.com> - 2015-10-10 21:19 -1000

csiph-web