A NEW COLLECTIONS FRAMEWORK FOR THE D PROGRAMMING LANGUAGE STANDARD LIBRARY

UNIVERSITY POLITEHNICA OF BUCHAREST SCIENTIFIC BULLETIN SERIES C-ELECTRICAL ENGINEERING AND COMPUTER SCIENCE(2022)

引用 0|浏览8
暂无评分
摘要
D is a general purpose, high level and high performance, programming language capable of interfacing with the operating system API and system's hardware. One of the core features of D is represented by ranges, a powerful and new approach of iterating through a set of elements. However, being a state of the art feature, ranges are not used in the D ecosystem at their full potential. In this work we provide a new collections framework for the D Standard Library that is compatible with the existing algorithms and that provides an API similar to the one provided by ranges. Our implementation enables the collections to infer the safety of the operations from the contained, user provided, type. We show that our implementation may provide performance benefits of up to 2x compared to the existing standard library implementations, when used in conjunction with a custom allocator.
更多
查看译文
关键词
ranges, D, collections, data structures
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要