Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the Scala 3 memory model #19020

Open
armanbilge opened this issue Nov 22, 2023 · 0 comments
Open

Specify the Scala 3 memory model #19020

armanbilge opened this issue Nov 22, 2023 · 0 comments

Comments

@armanbilge
Copy link
Contributor

As part of the on-going work to specify the language, we should specify the Scala memory model á la the Java memory model (JMM).

AFAIK, there is no specification of a memory model even for Scala 2: it is currently implicitly defined via implementation details and the JMM. This situation becomes tenuous now that there is another multi-threaded implementation of Scala: Scala Native 0.5. The implementation details are completely different on the Native platform and there is no JVM runtime enforcing the JMM, so for a consistent, cross-platform language experience it is important that we independently define the memory model.

Linking to typelevel/cats-effect#3899.

@armanbilge armanbilge added the stat:needs triage Every issue needs to have an "area" and "itype" label label Nov 22, 2023
@szymon-rd szymon-rd added area:documentation itype:enhancement and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants