logoalt Hacker News

DarkNova6today at 10:00 AM2 repliesview on HN

You can opt out of atomicity and make your type tearable, achiving the same performance as on any other platform.

This is the correct default as the vast majority of developers using value types will not be aware of tearability, being taught that "value types are safe for parallel programming" without knowing nuances.


Replies

joe_mwangitoday at 12:17 PM

Yeaaah. They are going to introduce approaches for the programmer to decide if tearability is allowed or not. Already there are internal annotations for fields and types to enable it that probably will become a language feature in future.

show 1 reply
germandiagotoday at 11:50 AM

What is terability in this context? Not a Java expert but 20 years coding and did not hear of this.

show 1 reply