Skip to Main content Skip to Navigation

Designing efficient and safe non-strong references in Eiffel with parametric types

Frederic Merizen 1 Olivier Zendra 1 Dominique Colnet 1
LORIA - Laboratoire Lorrain de Recherche en Informatique et ses Applications
Abstract : In this partial report, we present the current state of our work in 2004 within the SmartEiffel project on the design and implementation of several kinds of object references. We introduce the known concept of weak references, reminding how this peculiar kind of references can be used to optimize and fine-tune the memory behavior of programs, thus potentially speeding up their execution. We show that genericity (parametric types in Eiffel) is the key to implementing weak references in a statically-checked hence safer and more efficient way. We compare our solution for weak references to similar notions in other languages and stress the advantages it offers. We present practical examples to support our claim that weak references can be both safe and efficient, and can help optimize programs memory-wise. We further extend our work to other kinds of references --- soft references, tunable strength references and programmable references --- that provide extra degrees of flexibility and correspond to actual practical needs.
Document type :
Complete list of metadatas

Cited literature [8 references]  Display  Hide  Download
Contributor : Publications Loria <>
Submitted on : Thursday, October 19, 2006 - 9:10:30 AM
Last modification on : Tuesday, April 24, 2018 - 1:36:25 PM
Long-term archiving on: : Friday, November 25, 2016 - 12:39:45 PM


  • HAL Id : inria-00107810, version 1



Frederic Merizen, Olivier Zendra, Dominique Colnet. Designing efficient and safe non-strong references in Eiffel with parametric types. [Intern report] A04-R-149 || merizen04a, 2004, pp.30. ⟨inria-00107810⟩



Record views


Files downloads