Re: Success story with BlackBox

From: [at]} <Rex>
Date: Mon, 17 Feb 2003 14:00:12 -0600

----boundary-LibPST-iamunique-1512239361_-_-
Content-type: text/plain

        Wojtek Skulski's success story is refreshing for those of us who need encouragement. However, Andreas Doerr does raise a legitimate question. I have a Fortran compiler that does only partial subscript range checking, by checking only to see whether the reference is within the allotted memory. The performance penalty is only around 20%. (Unfortunately, the documentation implies, incorrectly, that it checks all subscripts.) I have another Fortran compiler that checks all subscripts, but array access is many times slower with that compiler. The question is whether mandatory range checking unacceptably slow down memory access. Does anyone really know?

        On the other side, I have argued with C-tradition programmers that any compiler is unacceptable if memory violations are possible. Not surprisingly, my arguments have not been very successful.

        Is there no middle ground here? I have a very well-written public-domain Java program that stores two- and three-dimensional arrays as one-dimensional arrays, presumably to reduce the speed penalty. On rare occasions, I manually encode range checking outside the inner loops. Is it somehow possible to minimize the speed penalty? Could range checking be partially turned off, using the method of the first Fortran compiler?

Rex Couture
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-1512239361_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmb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XQgbW9kZXJhdGlv
biB3aWxsIG9mdGVuIGNhdXNlIHNvbWUgZGVsYXksIGluIHBhcnRpY3VsYXIgb3ZlciB3ZWVrZW5k
cyBvciBob2x5ZGF5c319ACBmb3Ig


----boundary-LibPST-iamunique-1512239361_-_---
Received on Mon Feb 17 2003 - 21:00:12 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:27 UTC