News for hackers. Stuff that matters.
Re:Crystal 1.0 – What to expect by the_duke on Tuesday March 23, 2021 @01:29AM (#26551436)
You can group languages in different ways.

VM vs native is one way, but you can also go by the level of abstraction they provide, which very much puts them in the same category.

Also, this debate comes up every time, but ARC is widely classified as a form of garbage collection, just not a tracing one. It is transparent and automatic to the user. (Well, apart from cycles)

Re:Crystal 1.0 – What to expect by viktorcode on Tuesday March 23, 2021 @03:41AM (#26552149)
I disagree with that classification, as there's no "garbage" state for references as they are destroyed immediately. All garbage collecting languages on the other hand have period of time where the references are intact but marked as garbage.

FWIW Chris Lattner, the language creator, put Swift into a non-GC camp.

Re:Crystal 1.0 – What to expect by pjmlp on Tuesday March 23, 2021 @05:44AM (#26552936)
Because he needs to sell it, and Apple developers got a bad taste of Objective-C GC implementation that never worked out properly.

Widely acknowledged CS books see it differently,

https://gchandbook.org/

Re:Crystal 1.0 – What to expect by pulse7 on Tuesday March 23, 2021 @07:03AM (#26553536)
Even in Swift the references are not "destroyed immediately" but because of various performance optimizations this "garbage state removal" is deferred - for example to the end of scope... The truth is, that they >>don't want to call it GC<< for marketing and other reasons... One could implement ARC with cycle collector for Java as well - and it would be just another form of GC... it would use less memory (because garbage would be released faster), but it would be slower...
Re:Crystal 1.0 – What to expect by mega-tux on Friday March 26, 2021 @10:29AM (#26592573)