Size dependent type in accessing dynamically typed array objects
Abstract
A method and an apparatus for providing a flat array type in an object model for dynamically typed programs are described. Whether an array object is of a flat array type can be dynamically tracked for a dynamic language based program. Array elements of an array object of the flat array type may be stored in an inline storage within an object cell of the array object. The inline storage may be limited by available memory space between adjacent object cells. The flat array type of an array object may be detected based on whether the inline storage has sufficient memory space to store elements of the array. An array object of the flay array type may allow array elements of the array object to be accessed within a object cell without additional memory loading via a pointer stored in the object cell.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A machine-readable non-transitory storage medium having instructions therein, which when executed by a machine, cause the machine to perform a method, the method comprising: allocating an object cell in a memory during runtime to represent a dynamically typed object according to an object model for a dynamically typed programming language, the object specified with one or more properties in a source code of the dynamically typed programming language, each property having a property name associated with a property value, the properties of the object having an array relationship, the object cell
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- “Inline caching,” Wikipedia, Wikimedia Foundation, Inc., Jan. 2, 2012, downloaded from http://en.wikipedia.org/w/index.php?title=inline—caching&printable=yes, Apr. 1, 2014, 4 pages.
- Andreas Gal et al., “Trace-based Just-in-Time Type Specialization for Dynamic Languages”, Proceedings of the 2009 ACM Sigplan Conference on Programming Language Design and Implementation, PLDI '09, vol. 44, Jan. 1, 2009.
- Daniele Bonetta et al., “TigerQuoll”, Association for Computing Machinery, ACM Press, New York, New York, USA, vol. 48, No. 8, Feb. 23, 2013.
- Davide Ancona et al., “RPython: a step towards reconciling dynamically and statically typed 00 languages”, Proceedings of the 2007 Symposium on Dynamic Languages, DLS '07, Jan. 1, 2007, pp. 53-64.
- Jennifer B. Sartor et al. “Z-rays: divide arrays and conquer speed and flexibility”, Proceedings of the 2010 ACM Sigplan Conference on Programming Language Design and Implementation, PLDI '10, Jun. 5, 2010, pp. 471-482, XP055148793, New York, New York, USA.