News for hackers. Stuff that matters.
Re:NativePHP: A framework for building desktop apps using PHP by madeofpalk on Friday July 21, 2023 @08:57PM (#36822071)
I guess PHP is native in the same way JS/HTML is native?
Re:NativePHP: A framework for building desktop apps using PHP by dopidopHN on Friday July 21, 2023 @09:34PM (#36822287)
* * *
Re:NativePHP: A framework for building desktop apps using PHP by Phrodo_00 on Friday July 21, 2023 @09:43PM (#36822339)
PHP 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
Re:NativePHP: A framework for building desktop apps using PHP by toomanydoubts on Friday July 21, 2023 @10:10PM (#36822483)
How is that not true for JS given node?
Re:NativePHP: A framework for building desktop apps using PHP by least on Friday July 21, 2023 @10:24PM (#36822558)
It'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.
Re:NativePHP: A framework for building desktop apps using PHP by Phrodo_00 on Tuesday July 25, 2023 @02:13PM (#36866859)
But 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.
Re:NativePHP: A framework for building desktop apps using PHP by deaddodo on Friday July 21, 2023 @11:42PM (#36823017)
PHP 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).

Re:NativePHP: A framework for building desktop apps using PHP by madeofpalk on Saturday July 22, 2023 @07:05AM (#36825226)
Is Nodejs native?
Re:NativePHP: A framework for building desktop apps using PHP by deaddodo on Sunday July 23, 2023 @06:10AM (#36833965)
JS executed in a browser is not. The constraints were pretty specific.