• 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle
  • Lower performance though. At each iteration through the string you need to compare the length with a counter, which if you want strings longer than 255 characters will have to be multibyte. With NTS you don’t need the counter or the multibyte comparison, strings can be indefinitely long, and you only need to check if the byte you just looked at is zero, which most CPUs do for free so you just use a branch-if-[not-]zero instruction.

    The terminating null also gives you a fairly obvious visual clue where the end of the string is when you’re debugging with a memory dump. Can you tell where the end of this string is: “ABCDEFGH”? What about now: “ABCD\0EFGH”?












  • Finland’s russian community need to have a good think about what happened to Ukraine’s russian community. Then either shut up or fuck off back to russia. I’m sure Finland would be happy to pay for a one-way ticket to the russian shithole of their choice and three months’ rent to get them started, given the alternative cost of putin deciding the Finnish russians need “liberating” from “nazis”.








  • You need to understand some history, and the bigger picture.

    Ukraine isn’t Putin’s endgame. He wants to rebuild the USSR, which means after taking Ukraine he’s coming for the Baltics and parts of Poland and Romania, and we now know his playbook: cause political instability in the area, replace the locals with Russians, then claim they need to be “liberated” from “Western Nazis”; that’s what he’s already done several times, and is also why Moldova need to be seriously concerned about Transnistria (I’m sure they already are).

    The history you need to understand is that of appeasement. It was tried with Hitler. But it didn’t stop his lust for more and more, and the millions of deaths from WWI and WWII were the results. Giving Ukraine to Russia increases the chance of nuclear war; it doesn’t decrease it.

    So Putin must be stopped in Ukraine. And he must be pushed completely out of Ukraine including Crimea because otherwise he’ll just regroup and try again later. Which he might still do anyway, but he’ll have had to deal with the fallout of the huge cost of the Ukraine invasion for zero benefit and the Russian reputation and economy in tatters. But appeasement doesn’t work and doesn’t stop wars.

    We don’t need to completely defeat Russia. We just need to push them out of Ukraine and hold them back. What Russians do in their own country is their business. And when they’re ready to rejoin the civilised world we should be equally ready to welcome them back. We also need to strengthen our entire eastern flank: not aggressively sabre-rattling, just enough to make Putin think twice about launching an invasion or starting any funny business there.

    There’s a similar problem on the horizon with China, and Taiwan isn’t Xi’s endgame.

    Main sources: Vlad Vexler, Peter Zeihan, China Uncensored.