News for hackers. Stuff that matters.
Re:Fergulator - NES emulator, written in Go by voidlogic on Tuesday April 16, 2013 @01:36PM (#5559536)
It is interesting to read and compare both, but I would avoid a simple LOC comparison as the Go versions have a lot of extra lines (newlines, unneeded selects, redundant case statements) that could easily be eliminated.
Re:Fergulator - NES emulator, written in Go by Evbn on Tuesday April 16, 2013 @02:18PM (#5559808)
What is the difference between sigle-case select vs just reading from the channel?
Re:Fergulator - NES emulator, written in Go by ferg on Tuesday April 16, 2013 @02:21PM (#5559828)
Nothing, just a remnant from aggressive debugging. I had a default clause in there at some point probably.