Welcome Guest, Not a member yet? Register   Sign In
[split] Real time? [CodeIgniter 4 Important Features]

(This post was last modified: 09-22-2016, 06:20 PM by spjonez.)

Narf Wrote:Not that I care, but unless you can't open a file descriptor in JS, there's no inherent limitation in that regard.

Work with compressed files or perform any computationally expensive image manipulation. Or try to do any serious math because JS sucks at precision.

mwhitney Wrote:It also wasn't that long ago that most programmers held the opinion that JavaScript was useless.

A lot of developers still say that. I'd say that opinion is short sighted.  PHP doesn't have the best reputation either.

mwhitney Wrote:It is not JS that makes node.js non-blocking, nor does it prevent the developer from creating applications which block execution. What makes node.js non-blocking is that it uses a cross-platform library which performs "non-blocking I/O" by utilizing a combination of event-driven programming and a thread pool. The same library can be used in PHP. The library is written in C.

That's exactly my point. One technology pushes the developer to write asynchronous code and punishes you when you don't and another has no opinion. You can write subjectively equivalent PHP but that is not the norm and requires an exorbitant amount of effort compared to the other. I don't believe PHP is capable of pushing certain limits that Node.js is able to. There isn't a single major player who uses a PHP backend for realtime services.

Messages In This Thread
RE: [split] Real time? [CodeIgniter 4 Important Features] - by spjonez - 09-22-2016, 06:16 PM

Theme © iAndrew 2016 - Forum software by © MyBB