←back to thread

131 points apta | 2 comments | | HN request time: 0s | source
Show context
barsonme ◴[] No.9266431[source]
His Go is a little disingenuous. This (https://gist.github.com/EricLagerg/105431503d32f18d239b) is almost as short as his D code, and functions the same.
replies(3): >>9266456 #>>9266519 #>>9267772 #
NateDad ◴[] No.9266519[source]
Use io.Copy to copy from the file to os.Stdout. no need to read the whole thing into memory.
replies(1): >>9266577 #
1. barsonme ◴[] No.9266577[source]
Hadn't even thought of that! Nice catch. It's even shorter: https://gist.github.com/EricLagerg/c3ccf96f6ed90d8b4557
replies(1): >>9268128 #
2. EugeneOZ ◴[] No.9268128[source]
Stop it please, or PHP will win this race easily. With just 1 line of code. And it doesn't mean anything.