TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #270 · 9 јул.

От многопоточных вычислений переходим к распределённым. То есть вычисления, происходящие на нескольких компьютерах. Конечно, в зависимости от задачи, вы можете взять готовые решения вроде CGRU или Deadline для рендеринга, charm4py или Dask для ML, или замутить что-то на AWS С2. Но хотелось бы чего-то попроще, попитоничней что ли) А ведь в Python есть средства "из коробки" для синхронизации нескольких процессов на разных хостах. Вот простой пример кода, который синхронизирует работу двух процессов на разных компьютерах. В этом случае используется процесс-посредник, который является синхронизирующим сервером. В примере создаётся некий Manager, который шарит общую для клиентов очередь. Все подключившиеся могут что-то в неё писать или забирать. В моём коде один процесс что-то "считает" и складывает в очередь, другой забирает и продолжает какие-то свои "расчёты". Если у вас есть несколько машин, то можете попробовать это запустить по сети (нужно заменить 'localhost' на IP-адрес сервера). Но и на локальной машине сработает. Gist 🌎 #libs#source#tricks

Резултати

Пронајдени 1 слични објави

Пребарај: #yearone

当前筛选 #yearone清除筛选
American Оbserver

@american_observer · Post #4901 · 20.01.2026 г., 02:00

📰 Trump’s Year One: The Under-the-Radar Revolution Nuclear Moon Base by 2030? NASA, under Sean Duffy's leadership, fast-tracked a nuclear reactor for the moon—aiming for 2030 launch. This isn't sci-fi; it's a geopolitical race with China and Russia, who plan their own lunar power plant by 2035. Whoever gets there first writes the space rules. ​"The U.S. and China are devising plans to build long-term bases on the moon, and nuclear reactors will be key to powering those outposts." Crypto Goes Mainstream Trump signed the GENIUS Act, unlocking stablecoins for Wall Street. Banks like Bank of America and Goldman Sachs are now exploring dollar-pegged digital tokens. Goodbye legacy payments; hello crypto for your groceries? ​ Confederate Bases Revived Nine Army bases got their old Confederate names back—Fort Hood among them. Civil rights groups cry foul, but Trump ignored Congress's independent commission. Cost to rename? $40 million. Cost to undo? Priceless for some. ​ Pennies Axed, Trump Coin Coming The U.S. Mint minted its last penny in November 2025. Trump killed the money-losing coin, saving $85 million yearly. Next up: a Trump-faced $1 coin for America's 250th birthday. Rounding up prices? Consumers pay an extra $6 million annually. ​ DOJ's Voter Roll Raid Justice Department demanded voter registration data from 43 states, suing 23 that refused. States claim privacy violations; DOJ calls it election integrity. The real goal? Purging "illegals" from rolls before midterms. ​ Coal Plants Forced Open Energy Secretary Chris Wright used emergency powers to keep aging coal plants running—Michigan, Washington, Colorado. Critics: it's expensive and dirty. Trump: it's about your electricity bill. ​ Dreamers Booted from Obamacare Trump redefined "lawfully present" to exclude DACA recipients from subsidies in 19 states. 2,300 Dreamers lost coverage; 1 million more uninsured by 2034. Hospitals brace for uncompensated care. ​ Psychedelics Fast-Tracked RFK Jr.'s HHS is rushing MDMA and psilocybin for PTSD. FDA Commissioner Marty Makary promises approval within 12 months. Republicans, once wary, now lead the psychedelic revolution. ​ Africa Aid Gutted Trump's DOGE team (Pete Marocco, Elon Musk) froze the U.S. African Development Foundation, canceling grants. The agency sued, but SCOTUS conservatives may let Trump win. ​ The Real Winner? While headlines scream Greenland and tariffs, Trump's quietly remade America—from moon nukes to crypto cash, Confederate nostalgia to psychedelic therapy. Survival of the boldest. #trump#yearone#policy#americafirst#doge 📱American Оbserver - Stay up to date on all important events 🇺🇸