From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e61c8636ef35379d X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Ada Streams usage (was Escape Sequences in Strings) Date: 2000/11/16 Message-ID: <8v15uq$lq9$1@nnrp1.deja.com>#1/1 X-Deja-AN: 694395447 References: <3A17B0E2@MailAndNews.com> <3A129A89.1B69E2FE@acm.org> <3A13D59E.63A6F92@earthlink.net> <3A13F487.59859C0F@acm.org> <8v11gb$hln$1@nnrp1.deja.com> <3A14108E.CCB398A1@acm.org> X-Http-Proxy: 1.0 x72.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Nov 16 17:36:27 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001010 Date: 2000-11-16T00:00:00+00:00 List-Id: In article <3A14108E.CCB398A1@acm.org>, Marin David Condic wrote: > Well, part of my objection to streams is the overhead of the data > motion and the way it degenerates to a (potentially) large number of > small procedure calls. (It wouldn't be so bad if the compiler could > figure out when to generate a really fast block-move instruction > instead of a bazillion procedure calls. But I suppose there may be Quite true. There was one instance where we had to replace a 'Write on a large array to a dispatching call to Ada.Streams.Write. The old way was causing one 60Hz task to take 20ms to complete (Bzzzzt! Wrong. Thanks for playing...) Since it was an unstructured array of bytes already, it wasn't too painful to just change its native type to Ada.Streams.Stream_Element array that cut it to less than 1 ms. > Maybe my usage of the word is not entirely accurate. "Hard-real-time" > usually means that failure to meet deadlines constitutes failure of > the system. If your processor does a gazillion-instructions-per-second > and you're only using 1% of your CPU, it can still be a > "hard-real-time" system. Well, we admitedly do have a bit of headroom, since we are using a PC as our target. The last CPU utilization numbers I saw were running at about %35 (Contractually we have to be under %50). Even if we do cut it close, the march of technology will wipe out most problems. Now they are ordering them as PIII's, next year, who knows? > I suppose I was thinking more along the lines of "difficult" real time > systems. :-) Well, I don't know if there is a good word for that, but there probably ought to be. A lot of embedded real-time work is done on older (slower) microprocessors due to the cost factor. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.