News for hackers. Stuff that matters.
Re:Singleton Pattern in Go by jsprogrammer on Sunday July 12, 2015 @03:49PM (#9874674)
This has no contention and is essentially a no-op? Or do I not understand go?
Re:Singleton Pattern in Go by pcwalton on Sunday July 12, 2015 @04:02PM (#9874726)
It is a no-op, but Golang's Plan 9-based compilers don't do much optimization, so they aren't able to eliminate it.