Recent submissions

Comment · 6 months ago
Of all the ways to program with async, I like transparent asynchrony the most. Even though it may seem implicit, it turns out to be the most convenient.
Comment · 6 months ago
Great article. I like how it presents a realistic view without hype, showing both the benefits and the tradeoffs.
Comment · 6 months ago
Swoole Compiler v4 introduces a native AOT (Ahead-of-Time) compiler that radically changes the landscape. The AOT compiler abandons traditional PHP interpretation and allows code to be compiled directly into native binary executables. Performance can increase by orders of magnitude compared to the classic interpreter, reaching levels comparable to Rust and Go.
Comment · 6 months ago
> No actually it's a joy to have no multithreading.

To build CPU-bound applications in PHP, you have to install a bunch of packages, rely on Redis, and try to approximate what Python or Go can do in a dozen lines of code. Can that really be enjoyable?

Comment · 6 months ago
It seems like you’re talking about something similar: https://true-async.github.io/en/docs/components/thread-pool....

I’ve also wanted parallelism in PHP for a long time. Especially the kind of parallelism that works together with concurrent I/O. That’s when it becomes truly useful, not just a toy.

Asynchrony will always be a complex tool because of the number of states involved. That’s true. But if it’s made convenient and used properly, it becomes enjoyable to work with.

Comment · 6 months ago
I also feel a shift in what I spend my time on. Sometimes I just don’t feel like thinking about complex things. But is that really a problem? If you’re too lazy to do something, maybe it doesn’t need to be done at all?
Comment · 6 months ago
Nice to see more native C extensions pushing performance boundaries in PHP. Writing grep as an extension rather than shelling out or using preg_match for large file scanning makes a lot of sense — you skip the regex overhead for fixed-string patterns entirely.
Comment · 6 months ago
> PHP SDK is in the works and should be out by end of day Glad to hear that! Thank you!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton