Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pcwalton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
691.
▲
by
pcwalton
5y ago
cxx doesn't rely on reference counting. If you're using reference counted smart pointers in C++, then cxx can bind to them. But it won't impose the overhead of reference counting if you aren't already using it.
692.
▲
by
pcwalton
5y ago
The pull request workflow is not "anti-productive derpiness". You literally click one button and the pull request is merged. With email you have to save the patch from your webmail client† somewhere, then apply it on the command l
693.
▲
by
pcwalton
5y ago
Thanks, I knew I had seen other examples other than the one I cited but had forgotten what they were.
694.
▲
by
pcwalton
5y ago
Well, that's clearly not the way Go operates. Go makes incompatible changes between minor releases; they just don't break type signatures . For example, debug/pe ImportedLibraries(), which is supposed to return all the libra
695.
▲
by
pcwalton
5y ago
This is correct. My vote in favor of the recall was about Collins' lawsuit abuse, the school closures, the nationwide embarrassment that the renaming debacle made of our school district, and general discontent with the abuse of the SF
696.
▲
by
pcwalton
5y ago
The problem with WaitForMultipleObjects (WFMO) is that it's limited to 64 handles, which basically makes it useless for anything where the number of handles is dynamic as opposed to static. There are ways to get around this limitation
697.
▲
by
pcwalton
5y ago
> I have no idea what would happen to even a "single threaded" Go program if you forked it, and I have no intention of finding out. I'm not an expert on Go internals, but the GC in Go is multithreaded, so I would assume fo
698.
▲
by
pcwalton
5y ago
It was a long and hard road toward democracy for the Taiwanese and it is both (a) very impressive and commendable on their part and (b) a definitive refutation to the "Asian values" nonsense that the CPC likes to use to justify au
699.
▲
by
pcwalton
5y ago
The US doesn't need Russian oil. It's 7% of the country's total petroleum imports, compared to over 50% for Canadian oil.
700.
▲
by
pcwalton
5y ago
South Korea and Taiwan currently have more functional democracies than the United States does. The Economist's Democracy Index classifies Taiwan and South Korea as full democracies, while the US is a flawed democracy: https:/
701.
▲
by
pcwalton
5y ago
I mean, that's debatable. But in any case Xlib, Xaw, and Motif can be completely bypassed nowadays--XCB and Wayland are complete replacements for Xlib (with EGL finally providing the needed XCB-compatible alternative to GLX), and GTK+&
702.
▲
by
pcwalton
5y ago
The US is way more self-sufficient than Russia is: we have abundant natural resources, plenty of food, technology that puts that of Russia to shame, a far more modern and competent military, several times the GDP per capita, etc. But nobody
703.
▲
by
pcwalton
5y ago
You can say that, but you look at the chart of GDP per capita of Russia vs. the US since 2000: https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?end=2020... Let's just say this does not paint a picture of Russia
704.
▲
by
pcwalton
5y ago
What's in it for China? Unlike North Korea, Russia isn't a buffer state between US military installations and the Chinese border. And it would cost far more to prop up Russia than it does to prop up North Korea.
705.
▲
by
pcwalton
5y ago
> Asia alone is almost entirely either anti or apathetic towards NATO and Western sanctimonious BS, and that's 60% of the world's population. There's more to Asia than China, Russia, and North Korea. Taiwan, South Korea, a
706.
▲
by
pcwalton
5y ago
Here's the first Google result for [10 largest economies in 2050]: https://www.theceomagazine.com/business/competition/pwc-worl... We have (1) China; (2) India; (3) US; (4) Indonesia; (5) Brazil; (6) Russia;
707.
▲
by
pcwalton
5y ago
The Soviet Union didn't, in Afghanistan.
708.
▲
by
pcwalton
5y ago
What you're describing is the North Korean playbook: completely cut yourself off from the rest of the world and let your people starve in order to hang on to power. North Korea shows that it is possible--in North Korea. But is it possi
709.
▲
by
pcwalton
5y ago
https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukrai... The blue area is not limited to Europe and the US.
710.
▲
by
pcwalton
5y ago
What can Russia do? Putin lacks the ability to respond proportionately in a way that doesn't hurt Russia as much, or more, as it does NATO. Putin wants a "might makes right" world. Well, he's getting one, and he gets to
711.
▲
by
pcwalton
5y ago
But pthread_cancel isn't exposed in the Rust standard library! It's marked unsafe in libc, as it should be.
712.
▲
by
pcwalton
5y ago
You don't remove people from a project for being wrong about whether a proposed feature works in the syntax. That's silly.
713.
▲
by
pcwalton
5y ago
If you fix some issues but not others (the fact that we aren't being specific about which POSIX issues we're referring to is driving me crazy, but anyway) you have in fact improved security. The "well, if it can't be p
714.
▲
by
pcwalton
5y ago
It's not dishonest to point out that the syntax would have to be made more complex and that there are downsides to that. It takes 30 seconds to find a comment somewhere here on HN decrying the complexity of modern languages. None of th
715.
▲
by
pcwalton
5y ago
This is why it's more useful to talk about blame : http://blog.pnkfx.org/blog/2022/02/09/what-is-rusts-hole-pur... Regarding memory safety, C++ says: "It's your fault if you get it wrong.
716.
▲
by
pcwalton
5y ago
Your comment would be better without the last sentence. And the handling of that CVE does illustrate a key difference between Rust and C++. Rust says "it's our fault if we get the intuitive semantics wrong". C++ says "
717.
▲
by
pcwalton
5y ago
People disagree about proposed language features. That's not a surprise. It's a sign of a healthy community where debate is encouraged. Besides, C++ ships features at a glacial pace compared to Rust, so I'm not sure what your
718.
▲
by
pcwalton
5y ago
NATO has not authorized direct action, but seeing as how NATO states border Russia and Ukraine, and given the alliance's founding principle of deterrence of the historical USSR, it has an obvious concern. And NATO signatories have more
719.
▲
by
pcwalton
5y ago
If you have to ask, lone wolf behavior is more likely to end up with you in jail than to do anything that helps Ukraine. If you are serious and are a citizen of a signatory to NATO, consider enlisting with your country's cyber force.
720.
▲
by
pcwalton
5y ago
Thanks, but it's my employer's permission I'm concerned with. :)
More ›