News for hackers. Stuff that matters.
Re:Swift is a lot like Scala by danieldk on Sunday August 24, 2014 @11:50AM (#8218819)
Reference counting and multi-core performance are not mutually exclusive at all. In a lot of applications where you exploit parallelism, you parallelise loops (e.g. via OpenMP), usually objects go out of scope outside the parallelized loop (single threaded code), so you can use a bare pointer. In the loop you do mostly stack allocations.

Of course, there are degenerate cases where there's a lot of lock contention on the reference count. However, there are degenerate cases in most garbage collectors for multi-core as well. Isn't Go still using a stop-the-world GC?

Edit: I wanted to add that I am not against garbage collectors. You lose deterministic destructors, but a well-developed garbage collector like the JVM's is very performant in most situations, and in many cases indeed more performant than reference counting.

Re:Swift is a lot like Scala by bjourne on Sunday August 24, 2014 @12:29PM (#8218915)
Then what languages or virtual machines uses reference counting and is performant in a muti-core context?

:-)

Re:Swift is a lot like Scala by pjmlp on Sunday August 24, 2014 @12:33PM (#8218921)
You can have deterministic destruction in GC enabled languages.