4 ms·
I guess PHP is native in the same way JS/HTML is native?
by madeofpalk 3y ago
I guess PHP is native in the same way JS/HTML is native?
- dopidopHN 3y agoYou can have script interpreted by a binary. Without a browser involved.
- Phrodo_00 3y agoPHP itself is more native than that in the sense that you can basically run PHP scripts on top of your OS, just like Python or Ruby
- toomanydoubts 3y agoHow is that not true for JS given node?
- Phrodo_00 3y agoBut you specified JS/HTML, that's through the browser, and it doesn't have APIs for interacting with the OS as a normal language runtime does. JS on Node is about the same as PHP in this regard.
- least 3y agoIt's technically true, but JS/HTML is different from Node. JS/HTML is interfacing through the browser's DOM, while Node interfaces with the operating system itself.
- deaddodo 3y agoPHP is native in the same way Python, Red, Java, etc are native. They have a VM, but otherwise interface directly with the OS. It is in no way similar to JS/HTML in a browser (or Electron).
- madeofpalk 3y agoIs Nodejs native?
- deaddodo 3y agoJS executed in a browser is not. The constraints were pretty specific.