Igor Rakov (@IgorRakov) profile picture
Planet Earth
Joined November 2012
Photo by Igor Rakov (@IgorRakov)Photo by Igor Rakov (@IgorRakov)
В 1999 году вышла Quake III Arena. Пока одни разработчики пытались заставить компьютер не сдохнуть от трёх полигонов, ребята из id Software вытворяли с математикой такое, за что в приличном университете могли бы вызвать экзорциста. Игра летала даже на довольно скромном железе. В 2005 году открыли её исходный код, и программисты всего мира полезли выяснять, какой именно договор разработчики подписали с дьяволом. И обнаружили вот это: i = 0x5f3759df - (i >> 1); Причём в оригинальном коде рядом красовался комментарий: // what the fuck? То есть даже исходный код заранее сформулировал реакцию человека, который будет его читать. Эта хреновина вычисляла обратный квадратный корень: 1/√x. Казалось бы, возьми квадратный корень, раздели единицу на результат и не еби людям мозги. Но в те времена процессоры выполняли такие операции относительно медленно. А в трёхмерной графике постоянно требуется нормализовать векторы. Освещение, отражения, геометрия. Таких вычислений может быть огромное количество. И вот вместо того, чтобы честно считать квадратный корень, какой-то математический психопат решил взломать сам принцип хранения чисел в компьютере. Число с плавающей точкой хранится в формате IEEE 754: знак, экспонента и мантисса. Если посмотреть на те же биты как на обычное целое число, внезапно обнаруживается, что полученное значение приблизительно пропорционально двоичному логарифму исходного числа. А обратный квадратный корень в логарифмическом пространстве превращается в умножение на −0,5. То есть вместо сложной математической операции можно сдвинуть биты вправо, вычесть результат из специально подобранной константы и получить довольно приличное приближение. Константа эта: 0x5f3759df Выглядит как пароль от Wi-Fi в психиатрической больнице, но за ней стоит вполне серьёзная математика. Максимальная погрешность первоначального приближения составляет около 3,44%. Многовато? Не вопрос. Прихуячиваем одну итерацию метода Ньютона: y = y * (1.5 - 0.5 * x * y * y); И погрешность падает примерно до 0,175%. Ещё одна итерация, и остаётся около 0,00046%. Всё. Никаких квадратных корней. Никакого деления. Никакого шаманства с покупкой нового процессора. Особенно забавно, что алгоритм появился задолго до Quake III. Его происхождение связывают с Грегом Уолшем и разработками конца 1980-х. А позднее математик Крис Ломонт нашёл чуть более точную магическую константу. Люди буквально занимались научными исследованиями, выясняя, из какого именно шестнадцатеричного числа лучше вычитать половину другого числа, чтобы компьютер перестал тратить время на квадратный корень. Сегодня процессоры имеют специальные аппаратные инструкции для подобных вычислений, поэтому этот трюк во многом утратил практическое преимущество. Но сама инженерная философия прекрасна. Когда компьютер не успевал считать, программисты оптимизировали математику. Когда математика оказалась недостаточно быстрой, они полезли в устройство чисел. Когда и этого оказалось недостаточно, они заставили представление числа в памяти выполнять часть вычислений. А теперь представьте современное совещание по оптимизации программного обеспечения: «Может, оптимизируем алгоритм?» «Нахуя? У пользователей же 32 гигабайта оперативной памяти. Добавьте ещё один фреймворк». Вот и вся разница между двумя эпохами программирования.
114
473
40
4,211
172,640
This is the best video ever made to teach people about what plastic surgery does to you. It's like a proper horror experience.
585
2,227
385
18,409
6,564,434
Igor Rakov retweeted
The legendary fight that was 100% attack and 0% defense
359
2,009
225
23,924
2,412,176
INSANE: Footage shows aftermath of the Atlantic Asphalt tanker crash into the American Heritage river cruiser on the Mississippi River in New Orleans. 129 passengers were on board at the time of the crash. This is horrifying. Pray 🙏🏻
2,405
12,573
1,277
62,207
6,025,679
This is absolutely brilliant, by legendary Australian investor John Hempton, who explains the core financial paradox at the heart of the AI story (and which also, to some extent, may explain the Jensen Huang story). The numbers say that about $7 trillion in AI compute is set to be built by 2030. For the industry to earn that back, given those chips have a roughly 5-year lifespan and cost a lot to run, they need to generate about $2 trillion of AI revenue a year. Hempton says the only way you can get to these sorts of numbers is by selling AI as a productivity tool to businesses, meaning replacing workers. And since, for reasons he explains in the video, no company fires people to save just 10% in costs, the savings have to be about double what businesses pay for the AI: roughly $4 trillion in savings on wages a year. What does firing $4 trillion worth of workers mean concretely? Hempton calculated this equates to roughly 10% of the OECD’s total wage bill of about $40 trillion: one in every ten dollars paid to workers across the OECD’s 38 member countries. Which, naturally, when you suddenly take that much income out of people’s pockets, would trigger a massive global recession. And here's the paradox: in a massive global recession, there's no way businesses will pay $2 trillion a year for AI, so the return disappears anyway. In other words, AI's only possible path to success given the numbers requires destroying the very economy that is supposed to pay for it. HOWEVER - and here's where the Nvidia/Jensen Huang story might come into play (and, to be clear, this is now me speaking and not Hempton given this interview is prior to the whole Nvidia saga) - this all rests on a core assumption: that compute stays super expensive. Which in practice means Nvidia keeping its pricing power, with a 75% gross margin on its chips. Break Nvidia's pricing power, and the $7 trillion bill, the $2 trillion in revenue and the 10% of jobs all shrink with it. This would also put the whole China story in a different light. Maybe it's not so much a "we don't want the Chinese to be competitive with similar chips to us" story as it is a "we don't want Chinese demand to drive up chip prices" one. Or probably both. And, as such, you could actually think about the US export controls not as a national security measure but as a good old subsidy for US AI players (together with a handicap for their Chinese competitors), a way to limit the price of chips. This holds even with China itself blocking Nvidia imports, since Chinese firms simply rent the chips abroad instead, in places like Southeast Asia, which is precisely what this whole Alice Huang/Megaspeed story is about. The main obstacle for all this was, of course... Jensen. Obviously, the guy wanted the exact opposite: as many buyers as possible, Chinese players included, to keep chip prices and Nvidia’s margins sky-high. He was also the one man with the clout to make that happen. All hard to prove, of course, but I can imagine that quite a few corks popped this week in Anthropic's offices: nothing like the news that the man keeping your biggest cost sky-high is out when you're a week away from a $1.2 trillion IPO.
207
1,608
147
6,110
375,223
If AI is not art, then explain this If they ever did this move it would cost billions, and break the box office Well done Jaxon_Flix, legends
325
757
84
5,772
379,637
Igor Rakov retweeted
Блять чуваки, эффект Манделы реально! Я родился в СССР в 1976, я блять флаг СССР видел тысячу раз. Не было сука звезды — никогда ее не видел над серпом и молотом (то есть верхний вариант — то что я видел все детство и юность) Сейчас решил проверить и охуел. Звезда везде (как во втором варианте). Все сука картинки в Гугле с ней… кроме как сменой версии вселенной объяснить это сложно Охуеть!
A new Mandela Effect is rising. Since when does the Soviet flag carry a star above the hammer and sickle? Many of us remember it clearly without one. If you recall the flag without the star… you may be from the old Earth. Shifted into this denser, clown-world timeline. The memory itself is the proof. The body knows. The soul knows. We are not crazy. We are remembering. I miss the old Earth too. Yet we are here now to hold the Light and anchor a higher one. Who else feels this?
888
839
270
9,382
1,065,226
Whoever this officer is, send him to France NOW.
Readers added context they thought people might want to know
This video is from a Chinese anti-terrorism training drill at a Kunming hospital featuring a university student performer in a choreographed demonstration, not a real incident or officer response. chinatimes.com/realtimenews/2… youtube.com/shorts/Js3KOuF… calfkicker.com/real-or-staged…
1,512
13,124
964
133,008
5,994,948
Pat Buchanan, 1999: “By moving NATO onto Russia’s front porch, we have scheduled a twenty-first century confrontation. … America will face a hellish dilemma: risk confrontation with a nuclear-armed Russia determined to recreate its old sphere of influence, or renege on solemn commitments and see NATO collapse.” Therefore, he said, “Offering NATO memberships to Estonia, Latvia, Lithuania, and, as some urge, Ukraine is rashness bordering on madness.” Referring to maps the Clinton team must have ignored, Buchanan warned, “This would put the Russian base at Kaliningrad behind NATO lines and bring into a U.S.-led alliance three nations with huge Russian minorities.” Foreseeing future conflict, he observed that “Latvia is almost half Russian; eastern Ukraine, almost entirely Russian. America could neither defend nor liberate these nations without the risk of nuclear war.” Pat Buchanan, A Republic, Not an Empire: Reclaiming America’s Destiny (New York: Regnery, 1999), 17–18, 22.
353
2,681
300
8,740
239,256
Igor Rakov retweeted
In 1893 a Norwegian scientist deliberately froze his ship into the Arctic ice, let it drift for three years, and lost not a single man to scurvy or anything else. Then he walked off it and spent nine months in a hole in the ground eating bear. Fridtjof Nansen was thirty-two, a zoologist with a doctorate on the nervous system of a worm. His theory was that the polar current would carry a ship across the top of the world if the ship was built not to be crushed. He built one. He called it the Fram, took twelve men, and sailed into the pack. For three years they lived in the dark and the cold with no fresh food arriving from anywhere. On every previous expedition that had meant scurvy, the disease that had killed more sailors than the sea. Nansen's crew had none. They shot polar bear and seal, and ate the meat fresh and barely cooked, as the Inuit did. The doctor on board had almost nothing to do. In 1895 Nansen and one companion left the ship on skis to make for the Pole. They got further north than any human had been, turned back, and were caught by winter on an empty island. They built a hut of stones and walrus hide, and for nine months they ate bear meat and walrus blubber and nothing else. No vegetable, no grain, no fruit. They came out in the spring fatter than they went in. Then they walked home. Nansen went on to win the Nobel Peace Prize, and lived to 68. Every schoolchild is taught that a diet without vegetables will rot you from the inside. Two men spent a winter underground on nothing but fat and meat and came out fit to walk across the Arctic, and that was 130 years ago.
296
3,407
122
22,294
738,566
OMG… the Tesla Roadster just went upside down on a half pipe and landed!
2,659
12,029
2,930
81,651
15,412,722
🔥🚨DEVELOPING: The Red Hot Chili Peppers 1999 song “Californication” has started going viral after fans began uploading videos of their lyrics on TikTok that truly appear to prophesied life in 2026. This is one of the craziest things I’ve seen this year.
411
3,493
179
16,810
1,256,267
Shane Gillis might be an American hero. The gym today was INSANE. Apparently women heard “you dress like whores at the gym” and collectively decided the best response was to double down. Women are hilarious. Every dude actually working out is absolutely fine with this protest continuing indefinitely.
306
904
50
26,641
1,248,752
Igor Rakov retweeted
Ten years of Sad Affleck memes and it turns out he'd just been trying to install CUDA drivers the whole time.
58
1,151
67
15,390
272,112
Igor Rakov retweeted
your boss reminding you the employee survey is completely anonymous
239
2,775
368
63,729
6,626,065
Igor Rakov retweeted
Holy mother of copyright infringement, is this edit fire
435
14,194
666
87,359
2,757,207
Some high school kids were talking and said “No way Gen X wrote 10-page papers without AI.” Oh, honey. We wrote them without reading the book…the night before they were due…by hand and in cursive. We are not the same.
2,480
8,540
896
68,274
928,062
Igor Rakov retweeted
🦔An NYU mathematician says OpenAI used his own progress against him to beat him to one of the biggest unsolved problems in mathematics. Tristan Buckmaster had been working toward a Millennium Prize proof using OpenAI's Codex when information about his progress reached OpenAI. Days later, OpenAI published a full proof of the same problem using the same uncommon approach, after burning $22.5 million in compute to get there. When Buckmaster confronted them, exec Sébastien Bubeck allegedly said "Why would you ruin your career?" and "If you don't want me to be nice, then I don't have to be nice." My Take OpenAI spent $22.5 million to solve a problem with a $1 million prize. They didn't do this for the bounty. They needed a headline that says "our AI solved one of the hardest problems in mathematics" and they needed it before someone else got credit. They started days after they heard about Buckmaster's progress and took the same uncommon approach he'd pursued for months. That's hard to explain as coincidence. Buckmaster did his work inside Codex. OpenAI reserves the right to train on Codex data. They admit they can't rule out that his usage helped improve their models. So a customer used their product, potentially handed them the roadmap, and then OpenAI outran him with $22.5 million in compute he could never match. I don't know if any of this was intentional. But if you're a researcher and you just watched this happen, I don't think you'd keep your best ideas inside someone else's product. Hedgie🤗 techcrunch.com/2026/09/08/op…
310
2,482
398
9,210
1,021,759
Igor Rakov retweeted
This is not a photograph, and it's not an oil painting. It might be the most unbelievable watercolor ever made... It's called Sommarnöje, which means something like Summer Delight, and Anders Zorn painted it in 1886. Look at the water, the gentle ripples, the reflections, the wet sheen of it, and then look at the two people, the fine detail of the wooden rowboat, the woman's white dress, the light on her face. It has the near-photographic realism of an oil painting, and it was done in watercolor, a medium so unforgiving that a single wrong stroke ruins the entire piece. Zorn painted this in the first summer of his marriage: the woman in white waiting on the pier is his new wife, Emma, whom he had married only months before. They had just come back from their honeymoon and were staying with her family at Dalarö near Stockholm, still looking for the home where they would spend their life. The man rowing toward her is their friend Carl Gustav Dahlström. It is a real moment from the happiest season of a young couple's life, caught and held forever. In 2010 this single sheet of watercolor sold for twenty-six million Swedish kronor, over three million dollars, the highest price ever paid for a Swedish painting. In his own lifetime, Zorn was celebrated above all for two things: his handling of light, and his ability to paint water. Sommarnöje is where you see exactly why...
618
5,018
329
29,499
524,059
Igor Rakov retweeted
The engineer who designed that house's column structure deserves a national medal.
3,010
31,078
1,914
271,024
17,849,440