More evidence that memory safety is the future for programming languages

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Mar 31 11:38:40 UTC 2020


On Tuesday, 31 March 2020 at 07:26:38 UTC, Sebastiaan Koppe wrote:
> At first I tried reference counting, but found out there was 
> significant bloat (I like to keep my web binaries small), 
> eventually I settled for non-copyable objects so I get unique 
> references, and release them on the JS side when the last and 
> only reference goes out of scope.

How do you do this? Do you do ref counting on the JS side?

I see that there is a proposal for weak references for javascript:
https://v8.dev/features/weak-references

I guess that could be useful.



More information about the Digitalmars-d mailing list