{"id":{"repo_id":"iastate","oai_identifier":"oai:dr.lib.iastate.edu:20.500.12876/79714"},"canonical_url":"https://search.ndltd.org/etd/iastate/oai:dr.lib.iastate.edu:20.500.12876/79714","repository":{"repo_id":"iastate","name":"Iowa State University","base_url":"https://dr.lib.iastate.edu/server/oai/request"},"display":{"title":"Idiom matching: an optimization technique for an APL compiler","abstract":"<p>This thesis describes the design of an idiom matching technique in a compiler for APL. Idioms are programming language constructs used by programmers for the logical primitive operations for which no language primitives exist. Due to APL's richness of operators, idioms tend to appear at the \"expression level.\" APL users have to pay a very high price to execute their APL programs with operator-by-operator execution in conventional translators. However, each idiom can be treated as a unit. It has been shown (2) that the saving from optimizing such idioms can be very impressive. Other researchers (1,3) have collected lists of idioms for APL;Idiom matching consists of two problems, recognition and selection, which are dealt with in this work. The idiom recognition problem is solved by a finite tree automaton. This approach constructs an automaton directly from a regular tree expression for a set of idioms. A practical automaton minimization algorithm is developed that obtains a time bound of O(n('2)(.)log n) for any binary tree automaton with n states. The selection problem, locating the best non-overlapping idioms in an expression tree, is solved in O(n) time;1. Brown, W. E. \"Toward an Optimizing Compiler for a Very HighLevel Language.\" Ph.D. dissertation, Iowa State University, 1979;2. Miller, T. C. \"Tentative Compilation: A Design for an APLCompiler.\" Ph.D. dissertation, Yale University, 1978;3. Perlis, A. J. and Rugaber, S. \"The APL Idiom List.\" ResearchReport #87, Department of Computer Science, Yale University,April, 1977.</p>","abstract_html":"&lt;p&gt;This thesis describes the design of an idiom matching technique in a compiler for APL. Idioms are programming language constructs used by programmers for the logical primitive operations for which no language primitives exist. Due to APL&#x27;s richness of operators, idioms tend to appear at the &quot;expression level.&quot; APL users have to pay a very high price to execute their APL programs with operator-by-operator execution in conventional translators. However, each idiom can be treated as a unit. It has been shown (2) that the saving from optimizing such idioms can be very impressive. Other researchers (1,3) have collected lists of idioms for APL;Idiom matching consists of two problems, recognition and selection, which are dealt with in this work. The idiom recognition problem is solved by a finite tree automaton. This approach constructs an automaton directly from a regular tree expression for a set of idioms. A practical automaton minimization algorithm is developed that obtains a time bound of O(n(&#x27;2)(.)log n) for any binary tree automaton with n states. The selection problem, locating the best non-overlapping idioms in an expression tree, is solved in O(n) time;1. Brown, W. E. &quot;Toward an Optimizing Compiler for a Very HighLevel Language.&quot; Ph.D. dissertation, Iowa State University, 1979;2. Miller, T. C. &quot;Tentative Compilation: A Design for an APLCompiler.&quot; Ph.D. dissertation, Yale University, 1978;3. Perlis, A. J. and Rugaber, S. &quot;The APL Idiom List.&quot; ResearchReport #87, Department of Computer Science, Yale University,April, 1977.&lt;/p&gt;","abstract_has_math":false,"creators":["Cheng, Feng"],"institution":null,"degree_name":"Doctor of Philosophy","degree_level":"dissertation","degree_discipline":null,"degree_department":"Department of Computer Science","school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":1981,"date_issued":"1981","date_published":"1981","updated_at":"2026-11-19T00:09:50Z","subjects":[],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/79714"],"render_values":[{"text":"https://dr.lib.iastate.edu/handle/20.500.12876/79714","href":"https://dr.lib.iastate.edu/handle/20.500.12876/79714","code":true}]},{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/rtd/6897/"],"render_values":[{"text":"archive/lib.dr.iastate.edu/rtd/6897/","href":null,"code":true}]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["7896","6298596"],"render_values":[{"text":"7896","href":null,"code":true},{"text":"6298596","href":null,"code":true}]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/rtd/6897/r_8128808.pdf|||Sat Jan 15 01:29:57 UTC 2022"],"render_values":[{"text":"archive/lib.dr.iastate.edu/rtd/6897/r_8128808.pdf|||Sat Jan 15 01:29:57 UTC 2022","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.31274/rtd-180813-4667","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.31274/rtd-180813-4667","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aiastate%3Aoai%3Adr.lib.iastate.edu%3A20.500.12876%2F79714","prefix":"oai_dc"},"source_record":{"url":"https://dr.lib.iastate.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.lib.iastate.edu%3A20.500.12876%2F79714","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.department","label":"Department","values":["Department of Computer Science"]},{"key":"dc:creator","label":"Author","values":["Cheng, Feng"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2018-08-17T12:59:25.000"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2020-07-02T05:57:10Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2020-07-02T05:57:10Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["Thu Jan 01 00:00:00 UTC 1981"]},{"key":"dc:date.issued","label":"Date","values":["1981"]},{"key":"dc:relation.orgunit","label":"Dc Relation Orgunit","values":["f7be4eb9-d1d0-4081-859b-b15cee251456"]},{"key":"dc:type","label":"Dc Type","values":["dissertation"]},{"key":"thesis:degree_level","label":"Degree Level","values":["dissertation"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.discipline","label":"Dc Subject Discipline","values":["Computer Sciences"]},{"key":"dc:subject.keyword","label":"Dc Subject Keyword","values":["Computer science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/rtd/6897/"]},{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.31274/rtd-180813-4667"]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["7896","6298596"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/79714"]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/rtd/6897/r_8128808.pdf|||Sat Jan 15 01:29:57 UTC 2022"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["<p>This thesis describes the design of an idiom matching technique in a compiler for APL. Idioms are programming language constructs used by programmers for the logical primitive operations for which no language primitives exist. Due to APL's richness of operators, idioms tend to appear at the \"expression level.\" APL users have to pay a very high price to execute their APL programs with operator-by-operator execution in conventional translators. However, each idiom can be treated as a unit. It has been shown (2) that the saving from optimizing such idioms can be very impressive. Other researchers (1,3) have collected lists of idioms for APL;Idiom matching consists of two problems, recognition and selection, which are dealt with in this work. The idiom recognition problem is solved by a finite tree automaton. This approach constructs an automaton directly from a regular tree expression for a set of idioms. A practical automaton minimization algorithm is developed that obtains a time bound of O(n('2)(.)log n) for any binary tree automaton with n states. The selection problem, locating the best non-overlapping idioms in an expression tree, is solved in O(n) time;1. Brown, W. E. \"Toward an Optimizing Compiler for a Very HighLevel Language.\" Ph.D. dissertation, Iowa State University, 1979;2. Miller, T. C. \"Tentative Compilation: A Design for an APLCompiler.\" Ph.D. dissertation, Yale University, 1978;3. Perlis, A. J. and Rugaber, S. \"The APL Idiom List.\" ResearchReport #87, Department of Computer Science, Yale University,April, 1977.</p>"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Idiom matching: an optimization technique for an APL compiler"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"local:admin","label":"Local Admin","values":["isulib-bepress-aws-west","rtd/6897"]}]}],"canonical_facts":{"dc:contributor.department":["Department of Computer Science"],"dc:creator":["Cheng, Feng"],"dc:date":["2018-08-17T12:59:25.000"],"dc:date.accessioned":["2020-07-02T05:57:10Z"],"dc:date.available":["2020-07-02T05:57:10Z"],"dc:date.copyright":["Thu Jan 01 00:00:00 UTC 1981"],"dc:date.issued":["1981"],"dc:description.abstract":["<p>This thesis describes the design of an idiom matching technique in a compiler for APL. Idioms are programming language constructs used by programmers for the logical primitive operations for which no language primitives exist. Due to APL's richness of operators, idioms tend to appear at the \"expression level.\" APL users have to pay a very high price to execute their APL programs with operator-by-operator execution in conventional translators. However, each idiom can be treated as a unit. It has been shown (2) that the saving from optimizing such idioms can be very impressive. Other researchers (1,3) have collected lists of idioms for APL;Idiom matching consists of two problems, recognition and selection, which are dealt with in this work. The idiom recognition problem is solved by a finite tree automaton. This approach constructs an automaton directly from a regular tree expression for a set of idioms. A practical automaton minimization algorithm is developed that obtains a time bound of O(n('2)(.)log n) for any binary tree automaton with n states. The selection problem, locating the best non-overlapping idioms in an expression tree, is solved in O(n) time;1. Brown, W. E. \"Toward an Optimizing Compiler for a Very HighLevel Language.\" Ph.D. dissertation, Iowa State University, 1979;2. Miller, T. C. \"Tentative Compilation: A Design for an APLCompiler.\" Ph.D. dissertation, Yale University, 1978;3. Perlis, A. J. and Rugaber, S. \"The APL Idiom List.\" ResearchReport #87, Department of Computer Science, Yale University,April, 1977.</p>"],"dc:format.mimetype":["application/pdf"],"dc:identifier":["archive/lib.dr.iastate.edu/rtd/6897/"],"dc:identifier.doi":["https://doi.org/10.31274/rtd-180813-4667"],"dc:identifier.other":["7896","6298596"],"dc:identifier.uri":["https://dr.lib.iastate.edu/handle/20.500.12876/79714"],"dc:language.iso":["en"],"dc:relation.orgunit":["f7be4eb9-d1d0-4081-859b-b15cee251456"],"dc:subject.discipline":["Computer Sciences"],"dc:subject.keyword":["Computer science"],"dc:title":["Idiom matching: an optimization technique for an APL compiler"],"dc:type":["dissertation"],"dspace:entity.type":["Publication"],"local:admin":["isulib-bepress-aws-west","rtd/6897"],"mods:identifier.filename":["archive/lib.dr.iastate.edu/rtd/6897/r_8128808.pdf|||Sat Jan 15 01:29:57 UTC 2022"],"thesis:degree_level":["dissertation"],"thesis:degree_name":["Doctor of Philosophy"]},"updated_at":"2026-11-19T00:09:50Z"}