Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> but because it will use ARC (a form of garbage collection), it will still end up slower than C++ in many benchmarks

Well, depends on the C++. ARC is reference counting behind the scenes; in Objective C and Swift, the compiler inserts retains and releases as appropriate. A lot of C++ code also uses reference counting a fair bit; that's what shared_ptr is for, for instance.



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

Search: