{"id":{"repo_id":"rit","oai_identifier":"oai:repository.rit.edu:theses-12421"},"canonical_url":"https://search.ndltd.org/etd/rit/oai:repository.rit.edu:theses-12421","repository":{"repo_id":"rit","name":"Rochester Institute of Technology","base_url":"https://repository.rit.edu/do/oai/"},"display":{"title":"Revisiting Ad-hoc Polymorphism","abstract":"Ad-hoc polymorphism is a type of polymorphism where different function definitions can be given the same name. Programming languages utilize constructs like Type classes and Object classes to provide a mechanism for implementing ad-hoc polymorphism. System O, by Odersky, Wadler, and Wehr is a language which defines a dynamic semantics that supports ad-hoc polymorphism. It also describes static type checking for its programs and a transformation to the Hindley/Milner system. In this study, we present extensions to System O by defining constructs that make the language more practical to use. We utilize the dynamic semantics to define the ability to express type classes. We define additional optimizations on the transform that aim to reduce redundant function calls at run-time and simplify the generated code. Finally, we implement an interpreter for this programming language in Clojure, and provide several examples of programs utilizing ad-hoc polymorphism with the constructs we have defined.","abstract_html":"Ad-hoc polymorphism is a type of polymorphism where different function definitions can be given the same name. Programming languages utilize constructs like Type classes and Object classes to provide a mechanism for implementing ad-hoc polymorphism. System O, by Odersky, Wadler, and Wehr is a language which defines a dynamic semantics that supports ad-hoc polymorphism. It also describes static type checking for its programs and a transformation to the Hindley/Milner system. In this study, we present extensions to System O by defining constructs that make the language more practical to use. We utilize the dynamic semantics to define the ability to express type classes. We define additional optimizations on the transform that aim to reduce redundant function calls at run-time and simplify the generated code. Finally, we implement an interpreter for this programming language in Clojure, and provide several examples of programs utilizing ad-hoc polymorphism with the constructs we have defined.","abstract_has_math":false,"creators":["Khare, Apurav"],"institution":null,"degree_name":"Computer Science (MS)","degree_level":"Thesis","degree_discipline":"Computer Science (GCCIS)","degree_department":null,"school":null,"contributors":["Arthur Nunes-Harwitt"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-19T09:05:05Z","subjects":["Overloading","Polymorphism","Programming language","System-O"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://repository.rit.edu/theses/11290","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://repository.rit.edu/theses/11290","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://repository.rit.edu/do/oai/?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Arepository.rit.edu%3Atheses-12421","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Arthur Nunes-Harwitt"]},{"key":"dc:creator","label":"Author","values":["Khare, Apurav"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.available","label":"Dc Date Available","values":["2022-09-01T07:00:00Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2022-08-01T07:00:00Z"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science (GCCIS)"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Thesis"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Computer Science (MS)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Overloading","Polymorphism","Programming language","System-O"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://repository.rit.edu/theses/11290"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Ad-hoc polymorphism is a type of polymorphism where different function definitions can be given the same name. Programming languages utilize constructs like Type classes and Object classes to provide a mechanism for implementing ad-hoc polymorphism. System O, by Odersky, Wadler, and Wehr is a language which defines a dynamic semantics that supports ad-hoc polymorphism. It also describes static type checking for its programs and a transformation to the Hindley/Milner system. In this study, we present extensions to System O by defining constructs that make the language more practical to use. We utilize the dynamic semantics to define the ability to express type classes. We define additional optimizations on the transform that aim to reduce redundant function calls at run-time and simplify the generated code. Finally, we implement an interpreter for this programming language in Clojure, and provide several examples of programs utilizing ad-hoc polymorphism with the constructs we have defined."]},{"key":"dc:title","label":"Title","values":["Revisiting Ad-hoc Polymorphism"]}]}],"canonical_facts":{"dc:contributor":["Arthur Nunes-Harwitt"],"dc:creator":["Khare, Apurav"],"dc:date.available":["2022-09-01T07:00:00Z"],"dc:date.created":["2022-08-01T07:00:00Z"],"dc:description.abstract":["Ad-hoc polymorphism is a type of polymorphism where different function definitions can be given the same name. Programming languages utilize constructs like Type classes and Object classes to provide a mechanism for implementing ad-hoc polymorphism. System O, by Odersky, Wadler, and Wehr is a language which defines a dynamic semantics that supports ad-hoc polymorphism. It also describes static type checking for its programs and a transformation to the Hindley/Milner system. In this study, we present extensions to System O by defining constructs that make the language more practical to use. We utilize the dynamic semantics to define the ability to express type classes. We define additional optimizations on the transform that aim to reduce redundant function calls at run-time and simplify the generated code. Finally, we implement an interpreter for this programming language in Clojure, and provide several examples of programs utilizing ad-hoc polymorphism with the constructs we have defined."],"dc:identifier":["https://repository.rit.edu/theses/11290"],"dc:subject":["Overloading","Polymorphism","Programming language","System-O"],"dc:title":["Revisiting Ad-hoc Polymorphism"],"thesis:degree_discipline":["Computer Science (GCCIS)"],"thesis:degree_level":["Thesis"],"thesis:degree_name":["Computer Science (MS)"]},"updated_at":"2026-11-19T09:05:05Z"}