News for hackers. Stuff that matters.
Re:What's new in PHP 8? by clon on Friday August 14, 2020 @08:40AM (#24157105)
This timeout issue is indeed baffling. I believe many Go services out there may have set their timeouts to something ridiculous like 3600 or 86400 as a "fix". Hello slow lori.

Another concern is that the lifetime of a PHP app is rather short, measured in milliseconds. This is actually a rather robust approach. Crashes, memory leaks, all sort of weird states are brushed away immediately to be replaced with fresh state for the next request. Apache/nginx is acting as a supervisor and allowing a lot of shit code live out it's days unnoticed.

Contrast that with long-running Golang processes. You won't get away with sloppy code there, raising he bar considerably. Running a Go executable without a monitoring supervisor is sketchy at best.

Re:What's new in PHP 8? by eggsnbacon1 on Friday August 14, 2020 @08:51AM (#24157199)
I'll be honest, I'm pretty anti-Go. Its filled with hacky workarounds for when various things don't fit their "simple" abstractions. File IO and paths is laughably not cross-platform because of this, for example.

Networking is another example. And casting to interface while the built-in collections secretly use generics.

A good way to avoid all these problems is to use a language with great cross-platform support like Java or C#.