News for hackers. Stuff that matters.
Re:Getting Past C by pjmlp on Wednesday January 04, 2017 @12:55AM (#13315984)
> I don't know of a single language that comes with a GC that does this, do you?

Java, .NET, Go, ML and Lisp compilers.

Escape analysis allows to do that, even if just in certain special cases.

Plus the more one uses value types and less heap, the GC needs to work less, specially if we take languages like Modula-3 into this mix.

Re:Getting Past C by steveklabnik on Wednesday January 04, 2017 @01:41AM (#13316167)
This is more than escape analysis, this is removing the GC and associated runtime bits entirely.

Escape analysis may not use the GC for those variables, but it is still a pervasive runtime cost in both senses unless it's totally gone.

Re:Getting Past C by agumonkey on Wednesday January 04, 2017 @08:53AM (#13318221)
IIUC there's always some tagging or bit depth loss due to the use of GC ?
Re:Getting Past C by pjmlp on Wednesday January 04, 2017 @02:22AM (#13316344)
Yes, but making it run less also helps reducing the cost.
Re:Getting Past C by Veedrac on Wednesday January 04, 2017 @02:46PM (#13321415)
If you never allocate, escape analysis doesn't have anything to do.