Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bdd8f1df777b
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
151.
▲
by
bdd8f1df777b
3y ago
`dup` and `read` returns -1 on error and set the `errno` variable. If they were redesigned, they should just return `-errno` on failure.
152.
▲
by
bdd8f1df777b
3y ago
Put the original return value in a pointer argument, and return errno (or -errno).
153.
▲
by
bdd8f1df777b
3y ago
Most of the POSIX functions that use errno for error signaling simply return 0 for success and -1 for error. They could have returned errno directly.
154.
▲
by
bdd8f1df777b
3y ago
You have a rosery view of the board. I on the hand believe that the it was the intention of the board to sell that ridiculous plan. The CEO was a scapegoat, or rather, he was going to leave anyway, so he took the blame in place of the other
155.
▲
by
bdd8f1df777b
3y ago
It does work. The "different" coordinate system is only a facade.
156.
▲
by
bdd8f1df777b
3y ago
Yes, but the restrictions have mostly been a thin veil for programmers. If this trend continues, we will see the real effects of GFW on China software development.
157.
▲
by
bdd8f1df777b
3y ago
China censors the Internet because it doesn’t want its citizens to receive information from outside or unite together without its control. Censoring foreigners is not useful for either purpose so they don’t bother.
158.
▲
by
bdd8f1df777b
3y ago
A foreigner won’t be treated in the same way. The Chinese government is cruel to its own people but quite friendly to outsiders.
159.
▲
by
bdd8f1df777b
3y ago
The default congestion control is CUBIC, which is very slow for connections between China and the rest of the world. Google's BBR is a great improvement, and sometimes I use "brutal" congestion control, which is basically a c
160.
▲
by
bdd8f1df777b
3y ago
hysteria and tuic. Both are based on QUIC. But you need a server outside China though.
161.
▲
by
bdd8f1df777b
3y ago
As a Chinese user who regularly breaches the GFW, QUIC is a god send. Tunneling traffic over a QUIC instead of TLS to breach the GFW has much lower latency and higher throughput (if you change the congestion control). In addition, for those