{"id":{"repo_id":"ohiolink","oai_identifier":"oai:etd.ohiolink.edu:osu1041551800"},"canonical_url":"https://search.ndltd.org/etd/ohiolink/oai:etd.ohiolink.edu:osu1041551800","repository":{"repo_id":"ohiolink","name":"OhioLINK","base_url":"https://etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai"},"display":{"title":"Optimizing Threads of Computation in Constraint Logic Programs","abstract":"<p>This research concentrates on the optimization of Constraint Logic Programming, or CLP, languages, and in particular, a significant class of optimizations that focus on program loops.</p> <p>Declarative systems represent loop state by chains of variables, whether in call stack frames, or the rows of a system of equations, and the time costs are significant compared to imperative languages that can reuse variables during iteration. In particular, some procedures add numerical constraints to the solver in a predictable pattern, using far less than the full power of the constraint solver. We wish to optimize these chains of constraints, or <em>threads</em> .</p> <p>We use a matrix-vector pair, an <em>affine transform</em> , to represent the incremental computation that occurs at each iteration of a recursive predicate. By the associativity of transform multiplication, we may compose a chain of ground transforms prior to their application to program variables. The accumulated composition is then applied to relate the procedure parameters in a single step outside the loop, reducing the number of solver calls from O(n) to O(1).</p> <p>An implementation of the thread optimization for a CLP system requires compile-time analysis, source translation, and specialized code generation. We modify an existing CLP compiler, <em>CLPR</em> , to add the analysis, translation and code generation phases, and run timing tests to determine the actual speedup.</p> <p>This work defines and proves correct a broad class of CLP optimizations, the thread optimizations, which apply to a wide variety of recursive procedures in any practical CLP language; describes our implementation of the thread optimization of numeric constraints, for an instance of the CLP family, CLPR; and demonstrates that this implementation achieves a significant speedup for optimized programs.</p>","abstract_html":"&lt;p&gt;This research concentrates on the optimization of Constraint Logic Programming, or CLP, languages, and in particular, a significant class of optimizations that focus on program loops.&lt;/p&gt; &lt;p&gt;Declarative systems represent loop state by chains of variables, whether in call stack frames, or the rows of a system of equations, and the time costs are significant compared to imperative languages that can reuse variables during iteration. In particular, some procedures add numerical constraints to the solver in a predictable pattern, using far less than the full power of the constraint solver. We wish to optimize these chains of constraints, or &lt;em&gt;threads&lt;/em&gt; .&lt;/p&gt; &lt;p&gt;We use a matrix-vector pair, an &lt;em&gt;affine transform&lt;/em&gt; , to represent the incremental computation that occurs at each iteration of a recursive predicate. By the associativity of transform multiplication, we may compose a chain of ground transforms prior to their application to program variables. The accumulated composition is then applied to relate the procedure parameters in a single step outside the loop, reducing the number of solver calls from O(n) to O(1).&lt;/p&gt; &lt;p&gt;An implementation of the thread optimization for a CLP system requires compile-time analysis, source translation, and specialized code generation. We modify an existing CLP compiler, &lt;em&gt;CLPR&lt;/em&gt; , to add the analysis, translation and code generation phases, and run timing tests to determine the actual speedup.&lt;/p&gt; &lt;p&gt;This work defines and proves correct a broad class of CLP optimizations, the thread optimizations, which apply to a wide variety of recursive procedures in any practical CLP language; describes our implementation of the thread optimization of numeric constraints, for an instance of the CLP family, CLPR; and demonstrates that this implementation achieves a significant speedup for optimized programs.&lt;/p&gt;","abstract_has_math":false,"creators":["Pippin, William E., Jr."],"institution":"The Ohio State University","degree_name":"Doctor of Philosophy","degree_level":"doctoral","degree_discipline":"Computer and Information Science","degree_department":null,"school":null,"contributors":[],"advisors":["Soundarajan, Neelam"],"committee_chairs":[],"committee_members":[],"year":2003,"date_issued":"2003-01-29","date_published":"2003-01-29","updated_at":"2026-11-27T04:31:43Z","subjects":["Computer Science","constraint logic programming","logic programming","programming language optimization","CLPR","affine transforms","source to source translation","code hoistin"],"languages":["English"],"rights":["unrestricted","This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"http://rave.ohiolink.edu/etdc/view?acc_num=osu1041551800","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"http://rave.ohiolink.edu/etdc/view?acc_num=osu1041551800","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","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%3Aohiolink%3Aoai%3Aetd.ohiolink.edu%3Aosu1041551800","prefix":"oai_dc"},"source_record":{"url":"https://etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Aetd.ohiolink.edu%3Aosu1041551800","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Soundarajan, Neelam"]},{"key":"dc:creator","label":"Author","values":["Pippin, William E., Jr."]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2003-01-29"]},{"key":"dc:publisher","label":"Institution","values":["The Ohio State University / OhioLINK"]},{"key":"dc:type","label":"Dc Type","values":["Electronic Thesis or Dissertation"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer and Information Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["The Ohio State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Computer Science","constraint logic programming","logic programming","programming language optimization","CLPR","affine transforms","source to source translation","code hoistin"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["English"]},{"key":"dc:rights","label":"Dc Rights","values":["unrestricted","This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["http://rave.ohiolink.edu/etdc/view?acc_num=osu1041551800"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["<p>This research concentrates on the optimization of Constraint Logic Programming, or CLP, languages, and in particular, a significant class of optimizations that focus on program loops.</p> <p>Declarative systems represent loop state by chains of variables, whether in call stack frames, or the rows of a system of equations, and the time costs are significant compared to imperative languages that can reuse variables during iteration. In particular, some procedures add numerical constraints to the solver in a predictable pattern, using far less than the full power of the constraint solver. We wish to optimize these chains of constraints, or <em>threads</em> .</p> <p>We use a matrix-vector pair, an <em>affine transform</em> , to represent the incremental computation that occurs at each iteration of a recursive predicate. By the associativity of transform multiplication, we may compose a chain of ground transforms prior to their application to program variables. The accumulated composition is then applied to relate the procedure parameters in a single step outside the loop, reducing the number of solver calls from O(n) to O(1).</p> <p>An implementation of the thread optimization for a CLP system requires compile-time analysis, source translation, and specialized code generation. We modify an existing CLP compiler, <em>CLPR</em> , to add the analysis, translation and code generation phases, and run timing tests to determine the actual speedup.</p> <p>This work defines and proves correct a broad class of CLP optimizations, the thread optimizations, which apply to a wide variety of recursive procedures in any practical CLP language; describes our implementation of the thread optimization of numeric constraints, for an instance of the CLP family, CLPR; and demonstrates that this implementation achieves a significant speedup for optimized programs.</p>"]},{"key":"dc:format","label":"Dc Format","values":["application/pdf","1.22 MB"]},{"key":"dc:title","label":"Title","values":["Optimizing Threads of Computation in Constraint Logic Programs"]}]}],"canonical_facts":{"dc:contributor.advisor":["Soundarajan, Neelam"],"dc:creator":["Pippin, William E., Jr."],"dc:date":["2003-01-29"],"dc:description":["<p>This research concentrates on the optimization of Constraint Logic Programming, or CLP, languages, and in particular, a significant class of optimizations that focus on program loops.</p> <p>Declarative systems represent loop state by chains of variables, whether in call stack frames, or the rows of a system of equations, and the time costs are significant compared to imperative languages that can reuse variables during iteration. In particular, some procedures add numerical constraints to the solver in a predictable pattern, using far less than the full power of the constraint solver. We wish to optimize these chains of constraints, or <em>threads</em> .</p> <p>We use a matrix-vector pair, an <em>affine transform</em> , to represent the incremental computation that occurs at each iteration of a recursive predicate. By the associativity of transform multiplication, we may compose a chain of ground transforms prior to their application to program variables. The accumulated composition is then applied to relate the procedure parameters in a single step outside the loop, reducing the number of solver calls from O(n) to O(1).</p> <p>An implementation of the thread optimization for a CLP system requires compile-time analysis, source translation, and specialized code generation. We modify an existing CLP compiler, <em>CLPR</em> , to add the analysis, translation and code generation phases, and run timing tests to determine the actual speedup.</p> <p>This work defines and proves correct a broad class of CLP optimizations, the thread optimizations, which apply to a wide variety of recursive procedures in any practical CLP language; describes our implementation of the thread optimization of numeric constraints, for an instance of the CLP family, CLPR; and demonstrates that this implementation achieves a significant speedup for optimized programs.</p>"],"dc:format":["application/pdf","1.22 MB"],"dc:identifier":["http://rave.ohiolink.edu/etdc/view?acc_num=osu1041551800"],"dc:language":["English"],"dc:publisher":["The Ohio State University / OhioLINK"],"dc:rights":["unrestricted","This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws."],"dc:subject":["Computer Science","constraint logic programming","logic programming","programming language optimization","CLPR","affine transforms","source to source translation","code hoistin"],"dc:title":["Optimizing Threads of Computation in Constraint Logic Programs"],"dc:type":["Electronic Thesis or Dissertation"],"thesis:degree_discipline":["Computer and Information Science"],"thesis:degree_level":["doctoral"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:institution_name":["The Ohio State University"]},"updated_at":"2026-11-27T04:31:43Z"}