News for hackers. Stuff that matters.
Re:Beating C with 70 lines of Go by devjam on Wednesday November 20, 2019 @06:44PM (#21589882)
Under the "Better parallelisation" section, you don't need to proxy methods for your sync.Mutex if you embed the type.

    type FileReader struct { 
        File            *os.File
        LastCharIsSpace bool
        sync.Mutex
    }
And your Lock() and Unlock() calls on FileReader would just work.
Re:Beating C with 70 lines of Go by ajeetdsouza on Wednesday November 20, 2019 @08:46PM (#21590684)
Fixed, thank you!