PHP: The Toyota Corolla of programming 💬 Длинная дискуссия
—
Комментарии (190)
Java is more akin to the Corolla. Utterly insipid (by design), lacking in refinements compared to competitors like the Mazda3, and made for people who just see it as a way to get from point A to point B.PHP is the Hyundai Elantra of programming. It used to be popular because of l
Perplexity is using stealth, undeclared crawlers to evade no-crawl directives 🔥 Горячее 💬 Длинная дискуссия
—
Комментарии (741)
I find this problem quite difficult to solve:1. If I as a human request a website, then I should be shown the content. Everyone agrees.2. If I as the human request the software on my computer to modify the content before displaying it, for example by installing an ad-blocker into
Комментарии (108)
New vibe coding definition just dropped! "Vibe-Coding is a dialogue-based coding process between a human and an AI where the human guides and the AI implements."Reminds me of Steve Yegge's short-lived CHOP - Chat Oriented Programming: https://sourcegraph.com/blog/chat-oriented-pr
Комментарии (47)
Original paper at https://doi.org/10.1117/1.NPh.12.2.025014 >The group measured the times that millions of photons took to travel from a 1.2-watt laser emitting 800-nanometer wavelength light into one side of the head to a detector on the other side.Sunlight contains copious amou
Комментарии (71)
Strange to read this article and find no mention of Julia (but APL, Mojo, MLIR BQN etc.. which are not exactly widely used languages). It checks many of the boxesUser-Extensible Rank Polymorphism is just beautiful with the broadcast dot syntax. I don't think any other language ha
Комментарии (61)
Fun facts, Fukushima Daiichi Nuclear Power Plant was built beyond the warning limit of the tsunami stones.If those people that setup the tsunami stones are still alive during the incident they will have a kahuna of "I told you" moment. This is a deeper dive on the stones and thei
Is the interstellar object 3I/ATLAS alien technology? [pdf] 💬 Длинная дискуссия
—
Комментарии (232)
Most reasoned take is directly from the paper itself:"We strongly emphasize that this paper is largely a pedagogical exercise, with interesting discoveries and strange serendipities, worthy of a record in the scientific literature. By far the most likely outcome will be that 3I/A
DrawAFish.com Postmortem 🔥 Горячее
—
Комментарии (103)
I was one of the “lucky” few to witness the school of slur-fish.Being in security I laughed because of how egregious it was but also because I knew someone on HN with some actual time on their hands to help properly would be along soon.I also appreciate this post mortem. Vibe-cod
Window Activation
Как приложение получает фокус в Wayland
В X11 окно могло «захватить» внимание само; в Wayland это невозможно. Приложение может лишь получить фокус, если композитор одобрит запрос. Для этого используется протокол XDG Activation.
- Приложение-источник (например, мессенджер) запрашивает у композитора токен активации.
- Токен передаётся целевому приложению через переменную окружения
XDG_ACTIVATION_TOKENили полеactivation-tokenв DBus. - Получив токен, приложение просит композитор активировать своё окно.
- Композитор проверяет подлинность: наличие токена, серийный номер события, ID приложения и т.д. При сомнении запрос отклоняется.
Готовые решения в KDE/Qt
QWindow::requestActivate()сама использует токен из окружения или запрашивает новый.OpenUrlJob,ApplicationLauncherJob,KDBusServiceуже умеют работать с токенами.
Благодаря этому большинство KDE-приложений работают без изменений.
Почему X11 не идеален
У KWin-X11 была «защита от кражи фокуса», но она опиралась на эвристики и могла быть обойдена.
Тестируем правильность
В свежем KWin включите «Extreme»-режим предотвращения кражи фокуса: окно поднимется только при валидном токене. За последние дни исправлены:
- Dolphin терял токен при новом запуске;
- KRunner, Kickoff и прочие плазмоиды не запрашивали токен;
- LayerShell-Qt теперь читает переменную и запрашивает активацию при показе;
- привилегированные клиенты (Plasma, KGlobalAccel) могут получать токены;
- нажатия модификаторов больше не считаются «пользовательским взаимодействием».
Спецификация DBusRunner получила метод SetActivationToken, который теперь используют Baloo и KClock для корректного открытия файлов в уже запущенных окнах.
Комментарии (124)
- Пользователи рады, что Wayland запрещает приложениям «воровать» фокус, в отличие от X11/macOS/Windows, где авто-обновления и всплывающие окна прерывают работу.
- Некоторые жалуются: из-за новых правил пароли и другие важные диалоги прячутся под окнами, пока не всё ПО перейдёт на XDG Activation.
- Дискуссия о том, кто должен решать передачу фокуса: само приложение, оконный менеджер или пользователь.
- Название «Window Activation» ввело в заблуждение: многие ждали статью о лицензировании Windows.
Palantir is extending its reach even further into government 🔥 Горячее 💬 Длинная дискуссия
—
Комментарии (292)
We received a presentation/demo of their products when I worked in the gov (not the US gov. though) a couple of years ago.They seemed, okay? I mean nothing seemed mind-blowing. I worked on surveillance in a specific sector, where interagency collaboration is important. Hence why