|
|
|
|
|
by bheadmaster
787 days ago
|
|
> System.in.transferTo(System.out); Ok, that's really convenient :) I suppose it would be much harder to do it without the transferTo function, but that would be beyond the point. I'll instead focus on the example 2. > 2 is anything but trivial in any language, unless it is some kind of a language specifically designed to build gRPC programs. The gRPC protocol here is only an example. Feel free to use any protocol you like.
As a counter-example, here's a TCP version in <200 lines of Go: https://gist.github.com/paskozdilar/6871fef7b0b245a0846bd27e... > Never versions of Java are quite pleasant to work with I know this is a typo, but you accidentally wrote something completely true :') |
|
No, it would not:
I imagine it will look pretty much the same in the majority of languages which have similar I/O abstractions.