izpis_h1_title_alt

Len funkcijski programski jezik brez čistilca pomnilnika
ID Kocjan Turk, Toni (Author), ID Slivnik, Boštjan (Mentor) More about this mentor... This link opens in a new window

.pdfPDF - Presentation file, Download (572,06 KB)
MD5: 8582B97289174F07B304473B7058A0D3

Abstract
Moderni programski jeziki omogočajo dodeljevanje in sproščanje pomnilnika med izvajanjem programov. Ustrezno upravljanje s pomnilnikom je zato ključno. Razvili smo funkcijski programski jezik, ki je len in ne uporablja čistilca pomnilnika, kot je to običajno v praksi (Haskell, OCaml). Namesto čistilca predlagamo statično analizo, v osrčju katere sta princip enojnega lastništva in izposoja. Čiščenje pomnilnika v razvitem jeziku je v celoti deterministično, dodatnemu delu v času izvajanja se skoraj povsem izognemo, statična analiza pa zagotovi, da ne prihaja do smetenja in izvisenih kazalcev. Za programski jezik smo razvili tudi prototipni prevajalnik, s katerim dokažemo uspešnost statične analize in pokažemo, da upravljanje s pomnilnikom že v prototipni implementaciji deluje zelo dobro.

Language:Slovenian
Keywords:prevajalnik, interpreter, navidezni stroj, programski jezik, funkcijsko programiranje, leni izračun, upravljanje s pomnilnikom, čistilec pomnilnika, štetje referenc, lastništvo, izposoja, puščanje pomnilnika
Work type:Master's thesis/paper
Typology:2.09 - Master's Thesis
Organization:FRI - Faculty of Computer and Information Science
Year:2022
PID:20.500.12556/RUL-143251 This link opens in a new window
COBISS.SI-ID:136461571 This link opens in a new window
Publication date in RUL:09.12.2022
Views:1799
Downloads:147
Metadata:XML DC-XML DC-RDF
:
Copy citation
Share:Bookmark and Share

Secondary language

Language:English
Title:Lazy functional programming language without garbage collector
Abstract:
Modern programming languages allow for a dynamic memory allocation during program execution. Proper memory management is, consequently, vital. We developed a functional programming language that is lazy and does not rely on a garbage collector, which is the traditional technique for memory management in this domain (Haskell, OCaml). Instead of a collector, we propose a static analysis at the heart of which are the principle of single ownership and borrowing. As a result, memory management in the developed language is entirely deterministic, the overhead during runtime execution is minimal, and the static analysis ensures that there can be no garbage and dangling pointers. Additionally, we developed a compiler to demonstrate that the static analysis is functioning and to show that memory management works well even in the prototypical implementation.

Keywords:compiler, interpreter, virtual machine, programming language, functional programming, lazy evaluation, memory management, garbage collector, reference counting, ownership, borrowing, memory leaking

Similar documents

Similar works from RUL:
Similar works from other Slovenian collections:

Back