Hacker News new | ask | show | jobs
by Xeoncross 3417 days ago
I've been writing PHP for over 10 years.

1) PHP is slow, uses too much memory. (I wrote the MicroMVC framework and IOSQL)

2) Makes concurrent (and especially parallel) computing hard (file locking and pcntl_fork())

3) PHP isn't well though-out (like Javascript) so you are always second-guessing the std lib because of odd/short-sighted design choices.

I moved to Go and lost nothing.

However, PHP is (like Javascript) improving and will probably eventually (like Javascript) get parallel computing right.

Where the users are the features are. That is why PHP, Java, and Javascript aren't going anywhere fast.

1 comments

What other languages are you familiar with to compare it too? Because Javascript is in no way well thought out and it doesn't do parallel computing let alone do it right, it's bound to a single core.
I didn't mean that javascript had parallel computing, but that it would get it. I know both PHP and Javascript will get it. Because they have the user-base, they will have the features. (Though I don't expect it until the end of EC6-7 and about PHP 10.)

My languages mostly are C-based Bash, Python, Lua, Objective-c, Javascript (EC5), Go, etc...

I wonder: What in JS ist not well thought. I don't like programming JS, but compared to PHP it has many neat features and ways to get things done. It's just different from other languages.

Parallel works. You can even create a deadlock very easy. Also, Node.js can spawn new processes.

Honestly, this has been done to death and it's pretty well accepted that it's not a great, or even good language, so I wont go over it again. It was a language designed in a few days to handle some basic client interactivity and it's good it that, it's just not good at anything more complicated than that, even despite the astronomical amount of effort people have put into working around it's warts.

> Also, Node.js can spawn new processes.

And yet it handles incoming requests on a single process.