Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jessinra98
3 months ago
|
parent
|
context
|
favorite
| on:
Project Valhalla, Explained: How a Decade of Work ...
The article has a section about that. For me, a struct in C/C# can be modified and is passed by copy while a value class can not be modified and is passed by value.
I do not think you can do stack allocation in Java.
joe_mwangi
3 months ago
[–]
Yup. By design, value classes will use cpu registers as a 1st priority instead.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I do not think you can do stack allocation in Java.