skip to main content
article
Free Access

APL and Halstead's theory: A measuring tool and some experiments

Published:30 August 1982Publication History
Skip Abstract Section

Abstract

We have designed and implemented an algorithm which measures APL-programs in the sense of software science by M.H. Halstead /1/. The reader is assumed to be familiar with the theories of software science.

Our purpose has been to find the best possible algorithm to automatically analyse large quantities of APL-programs. We have also used our measuring tool to make some experiments to find out if APL-programs and workspaces obey the laws of software science or not.

Becasue our purpose was to analyse large quantities, i.e. hundreds of programs we have not implemented an algorithm, which gives exactly correct results from software science point of view, because this would necessitate manual clues to the analysing algorithm and thus an interactive mode of analysis. Instead of it we have strived for a tool, which carries out the analysis automatically and as correctly as possible.

In the next section some difficulties encountered in the design of the measuring algorithm and some inherent limitations of it are discussed. Section 3 summarises the sources of errors in the analysis carried out by our algorithm, while section 4 gives a more detailed description of the way analysis is carried out.

The remaining sections of this paper report on some experiments we have carried out using our measuring tool. The purpose of these experiments has been to evaluate the explaining power of Halstead's theory in connection of APL-programs. However, no attempt has been made to process the results of the experiments statistically. The results of the experiments have been treated here only when 'obvious' (in)compatibilities between the theory and the results have been observed. Possible reasons for the (in)compatibilities are also pointed out.

References

  1. 1 Halstead, M.H. 'Elements of Software Science', Elsevier North Holland, New York, 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 Henderson, P. 'Functional Programming - Application and Implementation', Prentice-Hall, London, 1980. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 'Tehokas APL-ohjelmointi', report S2, Finnish APL association, Helsinki, 1981.Google ScholarGoogle Scholar

Index Terms

  1. APL and Halstead's theory: A measuring tool and some experiments

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in

          Full Access

          • Published in

            cover image ACM SIGMETRICS Performance Evaluation Review
            ACM SIGMETRICS Performance Evaluation Review  Volume 11, Issue 3
            Fall 1982
            120 pages
            ISSN:0163-5999
            DOI:10.1145/1010675
            Issue’s Table of Contents
            • cover image ACM Conferences
              SCORE '82: Selected papers of the 1982 ACM SIGMETRICS workshop on Software metrics: part 2
              August 1982
              128 pages
              ISBN:0897910869
              DOI:10.1145/800201

            Copyright © 1982 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 30 August 1982

            Check for updates

            Qualifiers

            • article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader