Hacker News Digest

Обновлено: 28 ноября 2025 г. в 08:55

Постов: 4635 • Страница 454/464

PHP: The Toyota Corolla of programming (deprogrammaticaipsum.com) 💬 Длинная дискуссия

by secstate • 04 августа 2025 г. в 13:49 • 184 points

ОригиналHN

#php#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 (blog.cloudflare.com) 🔥 Горячее 💬 Длинная дискуссия

by rrampage • 04 августа 2025 г. в 13:39 • 1282 points

ОригиналHN

#web-crawling#no-crawl-directives#cloudflare

Комментарии (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

Read your code (etsd.tech)

by noeclement • 04 августа 2025 г. в 13:33 • 189 points

ОригиналHN

#code#programming#development#software

Комментарии (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

Scientists shine a laser through a human head (spectrum.ieee.org)

by sohkamyung • 04 августа 2025 г. в 13:07 • 107 points

ОригиналHN

Комментарии (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

My Ideal Array Language (ashermancinelli.com)

by bobajeff • 04 августа 2025 г. в 13:05 • 145 points

ОригиналHN

#programming-languages#arrays

Комментарии (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

Century-old stone “tsunami stones” dot Japan's coastline (2015) (smithsonianmag.com)

by deegles • 04 августа 2025 г. в 12:51 • 151 points

ОригиналHN

#history#geology#japan

Комментарии (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] (lweb.cfa.harvard.edu) 💬 Длинная дискуссия

by jackbravo • 04 августа 2025 г. в 12:48 • 143 points

ОригиналHN

Комментарии (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 (aldenhallak.com) 🔥 Горячее

by hallak • 04 августа 2025 г. в 12:10 • 387 points

ОригиналHN

#postmortem#website#online-service

Комментарии (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 (blog.broulik.de)

Как приложение получает фокус в Wayland
В X11 окно могло «захватить» внимание само; в Wayland это невозможно. Приложение может лишь получить фокус, если композитор одобрит запрос. Для этого используется протокол XDG Activation.

  1. Приложение-источник (например, мессенджер) запрашивает у композитора токен активации.
  2. Токен передаётся целевому приложению через переменную окружения XDG_ACTIVATION_TOKEN или поле activation-token в DBus.
  3. Получив токен, приложение просит композитор активировать своё окно.
  4. Композитор проверяет подлинность: наличие токена, серийный номер события, 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 для корректного открытия файлов в уже запущенных окнах.

by LorenDB • 04 августа 2025 г. в 12:03 • 213 points

ОригиналHN

#wayland#xdg-activation#qt#kde#dbus#x11

Комментарии (124)

  • Пользователи рады, что Wayland запрещает приложениям «воровать» фокус, в отличие от X11/macOS/Windows, где авто-обновления и всплывающие окна прерывают работу.
  • Некоторые жалуются: из-за новых правил пароли и другие важные диалоги прячутся под окнами, пока не всё ПО перейдёт на XDG Activation.
  • Дискуссия о том, кто должен решать передачу фокуса: само приложение, оконный менеджер или пользователь.
  • Название «Window Activation» ввело в заблуждение: многие ждали статью о лицензировании Windows.

Palantir is extending its reach even further into government (wired.com) 🔥 Горячее 💬 Длинная дискуссия

by mooreds • 04 августа 2025 г. в 11:44 • 298 points

ОригиналHN

#palantir

Комментарии (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