Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. AI agents can modify themselves without humans telling them to do so(theregister.com ↗)
    discuss
  2. When A.I. Becomes an Enemy [video](youtube.com ↗)
    1comments
  3. Lakera – Test your AI hacking skills(lakera.ai ↗)
    discuss
  4. From Operations to a Robot Arm(huggingface.co ↗)
    discuss
  5. GrapheneOS accuses Google of gatekeeping Android 17 features and security fixes(androidauthority.com ↗)
    discuss
  6. Apprentice: A Slim, Extensible Coding Harness (Written in Common Lisp)(github.com/skarnati20 ↗)
    2comments
  7. Getting Outbound Email to Work on DigitalOcean(mailfully.com ↗)
    discuss
  8. Anthropic says Claude now leads a quarter of work building its next AI models(businesstimes.com.sg ↗)
    1comments
  9. Mini-Jev – typesafe's Jev implemented on top of an LLM locally(github.com/r-ms ↗)
    discuss
  10. Inside Microsoft and OpenAI, Worry About Damaging the Publishing Industry(nytimes.com ↗)
    discuss
  11. Richard Feynman – The World from another point of view [video](youtube.com ↗)
    discuss
  12. Talk to JEV(chatgpt.site ↗)
    2comments
  13. Muse for macOS(meta.com ↗)
    discuss
  14. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    discuss
  15. Where Awareness Is Not the Problem(medium.com/gurvinder372 ↗)
    discuss
  16. Microsoft exec called AI scraping 'the largest theft of labor in human(techcrunch.com ↗)
    1comments
  17. NASA satellite discovers a new crater on the moon bigger than the Colosseum(cbc.ca ↗)
    1comments
  18. Forget doomsday: The AI hacking crisis is here(axios.com ↗)
    1comments
  19. Base's B20 Bet Is Growing – Could the Next Billion-Dollar Project Be Built Here?(fika.bar ↗)
    1comments
  20. The FAA's plan to fix air traffic? $875M worth of AI(techcrunch.com ↗)
    discuss
  21. Red and Blue America Have Found Something to Agree On: Flock Cameras Must Go(wsj.com ↗)
    discuss
  22. LawConnect(lawconnect.com ↗)
    1comments
  23. Email marketing from Grok Bot official integration(twitter.com/migma_ai ↗)
    discuss
  24. OSU's Bag Man - What was his bag, man?(oregonstater.org ↗)
    discuss
  25. Mistral Hacked(frenchbreaches.com ↗)
    discuss
  26. Dear developers, we are open‑sourcing our dictation app, Blurt(assemblyai.com ↗)
    discuss
  27. Can an AI chatbot save lives by answering texts about pregnancy?(npr.org ↗)
    discuss
  28. Publishers block the robots.txt path their own affiliate redirects live on(disclosed.info ↗)
    discuss
  29. Productivity Effects Across Generations of AI Coding Tools(ssrn.com ↗)
    1comments
  30. Talk to JEV(github.com/mkotlikov ↗)
    discuss

SHOW HN: I built the fastest PHP webserver in the world

2 pointsby 1h ago
1 comments
After over a decade of writing apps in PHP, I always wondered why we needed all that extra tooling around it just to serve websites. I suspected PHP alone could be faster. I didn’t realize how right I was.

It’s finally done! Two months after I initially announced it, Qbix webserver 1.2 is out. It is written in pure PHP, meaning you can run web applications without nginx for serving files and websites, certbot for certificates, cron for periodic tasks, node for realtime sockets, etc. It comes out of the box with a user friendly dashboard and control panel, too. There are even standalone binaries you can download for Linux and MacOS that can contain your entire web application:

https://qbixserver.com

Originally it was much faster than php-fpm, but now it is also faster than even the fastest PHP runtimes. And unlike those runtimes, it is able to run existing PHP apps without modification!

First, how it can be this fast:

The vast majority of PHP apps make blocking I/O calls (to the database, files, network calls etc) While that happens, the thread is blocked.

FrankenPHP, Swoole, amphp and others take the “evented” approach which is much faster, but require all I/O calls to be rewritten to use their async libraries. But most existing PHP code would need a lot of work to be ported to async style, and even if it was, sometimes the async libraries don’t handle everything the mainstream ones do.

Qbix Webserver takes a different approach: it spawns hundreds, sometimes thousands of processes on Linux, Mac etc. When a process is blocked waiting on I/O, the rest of the application can handle thousands of concurrent users.

The reason this works is that that Qbix server allows apps to preload files and classes before it forks the worker processes. It can do this while being written in pure PHP.

While php-fpm can prefork workers, this causes each worker to take up a lot of memory, eg 40MB, duplicating all the bytecode from your entire framework and app. By contrast, Qbix Webserver is able to spawn workers that are around 140KB each for a typical Wordpress app. This is because pcntl_fork on Linux and MacOS only copies on write, so 4-16KB memory pages are only copied when you make a change to a variable. If all the variables are on one page (eg in one array) you can even have workers weighing 4-16KB total, allowing you to run TENS OF THOUSANDS of workers on a 4GB machine.

If you use composer install amphp, your code will use epoll instead, causing your app on Qbix Server to be even more efficient.

Second, the other features:

This is 2026. It would be great if your PHP was able to work with the latest socket.io and handle rooms and socket connections. Imagine a chat server that’s entirely in memory, and also able to handle 40,000 simultaneous users and connections.

Well, now you can. Qbix Webserver handles HTTP Requests, Websockets and rooms, even HTTP Push (for streaming AI tokens etc).

It also can manage your TLS certificates, run cron jobs, and more.

It supports headers like X-Accel-Redirect which lets you serve files with access control done by your app. (Though these aren’t as fast as nginx because PHP lacks support for sendfile, so if you want additional 2x boost in speed for protected static files, you should proxy these headers to NGINX. For public static files, just use a CDN.)

It even supports something new I invented, X-Cache-Tree allowing your code to cache parts of a webpage. Yes, that’s right — you are no longer required to render an entire page again if only a couple parts of it got invalidated. The X-Cache-Invalidate header can intelligently invalidate many pages at the same time!

How do I try it?

Visit qbixserver.com and grab the actual server. Launch it with PHP, and use the visual dashboard in your browser to manage your apps. Enjoy! It’s MIT licensed.

1h agoHN ↗

I like the idea of this, but PHP is such an ugly language.