Hacker News new | past | comments | ask | show | jobs | submit login

Consider the other direction from Java, into the fully dynamic languages. Many of those give you even less ability to control heap vs. stack allocations than Java does and often present an everything-is-a-reference facade even on things that are often optimized to stack objects (Fixnum in Ruby for eg).

But yes, a java programmer with embedded or native background would have a better understanding of this than people who learned Java first, which is what I'm really addressing here. And in the OP on SE you can clearly see that this is a big part of that person's confusion.




> optimized to stack objects (Fixnum in Ruby for eg)

I can't find any information on that, do you have a link on that subject?


Which part, that they're optimized to stack objects or that they appear as if they're referenced objects?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: