Alternative Übersetzungsstrategie für Generics in Go
- Go ist eine 2009 veröffentlichte Programmiersprache mit einem statischen Typsystem. Seit Version 1.18 sind auch Generics ein Teil der Sprache. Deren Übersetzung wurde im de facto Standard-Compiler mittels Monomorphisierung umgesetzt. Diese bringt neben einigen Vorteilen auch Nachteile mit sich. Aus diesem Grund beschäftigt sich diese Arbeit mit einer alternativen Übersetzungsstrategie für GenericsGo ist eine 2009 veröffentlichte Programmiersprache mit einem statischen Typsystem. Seit Version 1.18 sind auch Generics ein Teil der Sprache. Deren Übersetzung wurde im de facto Standard-Compiler mittels Monomorphisierung umgesetzt. Diese bringt neben einigen Vorteilen auch Nachteile mit sich. Aus diesem Grund beschäftigt sich diese Arbeit mit einer alternativen Übersetzungsstrategie für Generics in Go und implementiert diese in einem neuen Compiler für Featherweight Generic Go, einem Subset von Go. Zum Schluss steht damit ein nahezu funktionierender Compiler, welcher schließlich Racket-Code ausgibt. Eine Evaluierung der Performanz der Übersetzungsstrategie ist allerdings noch ausstehend.…
- Go is a programming language, published in 2009, with a static type system. Since version 1.18, generics have been added as a part of the language. Their translation was implemented using monomorphization in the de facto standard compiler. This approach has both positive and negative sides. Therefore, this thesis describes an alternative translation strategy for generics in Go. This strategy isGo is a programming language, published in 2009, with a static type system. Since version 1.18, generics have been added as a part of the language. Their translation was implemented using monomorphization in the de facto standard compiler. This approach has both positive and negative sides. Therefore, this thesis describes an alternative translation strategy for generics in Go. This strategy is implemented in a new compiler for Featherweight Generic Go, a subset of Go. In the end, we have a nearly-working compiler emitting Racket code. An evaluation of the performance of this translation strategy has yet to be done, however.…
Document Type: | Master's Thesis |
---|---|
Zitierlink: | https://opus.hs-offenburg.de/7674 | Bibliografische Angaben |
Title (German): | Alternative Übersetzungsstrategie für Generics in Go |
Title Additional (English): | Alternative translation strategy for generics in Go |
Author: | Hannes BraunStaff MemberGND |
Advisor: | Stefan Wehr, Martin Sulzmann |
Year of Publication: | 2023 |
Granting Institution: | Hochschule Offenburg |
Page Number: | v, 40, x |
URN: | https://urn:nbn:de:bsz:ofb1-opus4-76746 |
Language: | German | Inhaltliche Informationen |
Institutes: | Fakultät Elektrotechnik, Medizintechnik und Informatik (EMI) (ab 04/2019) |
Institutes: | Abschlussarbeiten / Master-Studiengänge / INFM |
DDC classes: | 000 Allgemeines, Informatik, Informationswissenschaft |
GND Keyword: | Programmiersprache |
Tag: | Übersetzungsstrategie Generics; Go | Formale Angaben |
Open Access: | Open Access |
Diamond | |
Licence (German): | Urheberrechtlich geschützt |
SWB-ID: | 1871022940 |