Memory safe and coroutines are the focus of D.

Paulo Pinto pjmlp at progtools.org
Mon Oct 17 06:19:37 UTC 2022


On Sunday, 16 October 2022 at 23:28:15 UTC, rassoc wrote:
> On 10/17/22 00:07, Per Nordlöw via Digitalmars-d wrote:
>> Can you give elaborate or give references on the topic of 
>> using managed pointers that do ARC?
>
> Aside from Swift, you might also want to check out Nim. They 
> have tracing (ref) and untracing (ptr) pointers and recently 
> made the jump to ARC/ORC by utilizing destructors and move 
> semantic optimization which allows them to avoid certain RC 
> downsides. But I'm clueless about what impact that had in the 
> Nim world, I did not follow it closely.
>
> [1] 
> https://nim-lang.org/blog/2020/10/15/introduction-to-arc-orc-in-nim.html
> [2] https://nim-lang.org/docs/destructors.html
> [3] https://zevv.nl/nim-memory/

Or go all the back back to the early 80's with Mesa/Cedar used 
for a Xerox PARC graphical workstation, and component based OS.

This session from Eric Bier at Computer History Museum, demos the 
OS, https://www.youtube.com/watch?v=z_dt7NG38V4

Mesa/Cedar used reference counting with a cycle collector.

"On Adding Garbage Collection and Runtime Types to a 
Strongly-Typed, Statically-Checked, Concurrent Language" Xerox 
report,

http://www.bitsavers.org/pdf/xerox/parc/techReports/CSL-84-7_On_Adding_Garbage_Collection_and_Runtime_Types_to_a_Strongly-Typed_Statically-Checked_Concurrent_Language.pdf








More information about the Digitalmars-d mailing list