Re: Thou shalt have no other gods before the ANSI C standard

From: Tom Linden (tom_at_kednos.com)
Date: 02/28/05


Date: Sun, 27 Feb 2005 18:10:57 -0800

On Sun, 27 Feb 2005 22:12:33 +0000 (UTC), David Wagner
<daw@taverner.cs.berkeley.edu> wrote:

> Morten Reistad wrote:
>> Don't put too much emphasis on performance problems when the product
>> itself is to enhance security. Previously in this thread we seemed
>> near a consensus that memory-safe languages carry an overhead of 5-15%
>> in terms of execution time.
>
> I agree completely with the first sentence. But just to make sure
> you're not underestimating the costs, I want to make sure you are aware
> that the 5-15% figure might be optimistic.
>
> If we're talking about bounds-checked versions of C, you should be
> prepared for something more like 50% (or even 100% in some bad cases)
> overhead. If we're talking about other languages, then I don't know
> what kind of overhead to expect, but I wouldn't be surprised if it is
> measurably more than 15% overhead.

I think we are going about this all wrong. First we create this euphemism,
"memory safe" and its cost to justify doing a number of things in a less
than
desirable way. I would like to suggest that we consider this as a mandate
and see where it takes you. If it costs 50% more to implement the heap
manager, then so be it. Maybe we need to rethink some fundemantals here.
I have always regarded range/bounds checking and exception handling as
necessary and integral to well designed code.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


Relevant Pages

  • Re: Thou shalt have no other gods before the ANSI C standard
    ... >> I agree completely with the first sentence. ... If it costs 50% more to implement the heap ... In many engineering disciplines the term "margin of safety" applies. ...
    (sci.crypt)
  • Re: NASA Picks In-Line (Maybe)
    ... >> Based on previously quoted costs, it looks like a Delta IV engine costs ... >> Figure another $10 million for upper stage engine, airframe, etc. ... >> Roughly $100 million, plus overhead. ...
    (sci.space.policy)
  • Re: Overheads take up to 1/3 of tsunami funds
    ... >appears to have been spent on administration, staff and related costs. ... >percent of project funds for administration costs, ... Just 32% overhead? ...
    (soc.culture.thai)
  • Re: Would patients like to be able to email their doctors?
    ... running tests. ... Instead of that being a source for overhead, ... These figures do not include professional costs, rent, utilities etc. ... nor do they include possibble revenue from emails, lab tests, group ...
    (sci.med)
  • Re: K & K Vs Pick up of the World
    ... >>> It won't fit in the overhead and weighs over 200 pounds. ... It also costs ...
    (rec.music.makers.guitar.acoustic)