logoalt Hacker News

aardvark179yesterday at 8:15 PM2 repliesview on HN

It’s certainly possible, but I worry that weird things can happen when doing something as “simple” as defining a property if another thread is messing with the prototype chain. Even thread safe property maps can’t entirely save you because operations that need to go up the prototype chain are not and cannot be atomic.


Replies

pizlonatoryesterday at 8:54 PM

My blog post explains how to make prototype chain operations work in the presence of threads

srousseyyesterday at 8:36 PM

This won’t work well without a few other things, like structs

https://tc39.es/proposal-structs/

show 1 reply