Instantiation of Java generics

Soha Péter; Pataki Norbert: Instantiation of Java generics. In: Acta cybernetica, (25) 4. pp. 897-908. (2022)

[thumbnail of cybernetica_025_numb_004_897-908..pdf]
Előnézet
Cikk, tanulmány, mű
cybernetica_025_numb_004_897-908..pdf

Letöltés (262kB) | Előnézet

Absztrakt (kivonat)

Type parametrization is an essential construct in modern programming languages. On one hand, Java offers generics, on the other hand, C++ offers templates for highly reusable code. The mechanism between these constructs differs and affects usage and runtime performance, as well. Java uses type erasure, C++ deals with instantiations. In this paper, we argue for an approach in Java which is similar to C++ template construct. We evaluate the runtime performance of instantiated code and we present our tool which is able to use Java generics as templates. This tool generates Java source code. We present how this approach improves the usage of Java generics.

Mű típusa: Cikk, tanulmány, mű
Befoglaló folyóirat/kiadvány címe: Acta cybernetica
Dátum: 2022
Kötet: 25
Szám: 4
ISSN: 2676-993X
Oldalak: pp. 897-908
Nyelv: angol
Kiadó: University of Szeged, Institute of Informatics
Kiadás helye: Szeged
Befoglaló mű URL: https://acta.bibl.u-szeged.hu/86901/
DOI: 10.14232/actacyb.284073
Kulcsszavak: Programozás - generikus, Programozási nyelv - C++, Java - programnyelv
Megjegyzések: Bibliogr.: p. 907-908. ; összefoglalás angol nyelven
Szakterület: 01. Természettudományok
01. Természettudományok > 01.02. Számítás- és információtudomány
Feltöltés dátuma: 2025. ápr. 15. 11:59
Utolsó módosítás: 2025. ápr. 15. 11:59
URI: http://acta.bibl.u-szeged.hu/id/eprint/86959
Bővebben:
Tétel nézet Tétel nézet