PHP Cross-Platform Desktop GUI Framework
github.com
github.com
Eventually if people like the core idea, these things enter a positive feedback loop and the quality goes up. If nobody likes it or uses it...no harm.
[1] https://www.w3.org/community/webed/wiki/A_Short_History_of_J...
However, on the other hand, there are also projects that start out as non-serious and get serious quick - the Linux kernel comes to mind.
I guess it can go two ways, but I'd contend a project that is started out with short-cuts because the author doesn't anticipate or plan for it to scale, will have a much tougher time doing so.
This isn't a problem in 5.5+ if you know what you're doing. That the language has a lot of people with no idea what they're doing is a testament to the fact PHP is easy to use and most others aren't for a novice, not that the language sucks.
I'm not the biggest PHP fan but since 5.3 most of the criticisms are unwarranted.
What's the multi-threading problem? The engine is thread-safe.
Originally he was not creating a language, but a set a scripts for common features.
No they don't.
Only if they chose to. Last time I checked, developers aren't slaves.
Besides it just starting and not having a big community atm, I don't see nothing "clear" about it now being "the best tool for an actual serious project".
Is it the "eww PHP" knee-jerk reaction some people have?
New functionality is in php on the internal site which makes distributing better. Another way to distribute tools though is not a bad thing.
Edit: besides Window and Menu, of course
Also, for example Mac OS X has lots of little widgets like the share button.
Maybe someone could make a Bootstrap-like project for these kinds of things?
If it was better done and with more manpower, there would be absolutely no problem with people using it...
There's a few comments here about using native GUI widgets and such but I think that's a tricky approach. Dealing with long-running state of a native app seems very un-PHP. I consider myself fairly experienced with PHP but I'm not familiar with creating background threads with PHP which you'd need for a responsive GUI.
My greatest fear with all of these various wrapper frameworks is that they become abandoned. With a node.js/Javascript one at least there are several out there and the code is likely to be portable from one to the next. With this PHP one, you'd be committed to Nighttrain.
Honestly, I still have a soft spot for PHP, mainly because its so easy to develop small things quickly. I'd love to see it move into other applications, much like JavaScript has...but the world is against the language, so I dont see that happening.
Anyway, I feel the same way about PHP. It's simple and easy and if you use it for the right job then it just works great. I think a lot of the hate is based on old, sloppy PHP code. Modern PHP apps are organized and use frameworks that don't look radically different from more popular languages.
I (once, ignorantly) tried to do some kind of super lightweight background-like worker with pthreads in PHP instead of bringing in a full queue and worker design and it turned out that there is absolutely 0 capability of doing it with the slightest hint of sanity. Having libraries like that is cool, but it's not for what PHP was designed for: web pages. Arguably and controversially, web applications are even a stretch for the language, but the support is and has been getting better with actual classes, namespaces, and tooling support like Composer and agreed-upon libraries like Doctrine. Then again, I just fled a company who's entire infrastructure was dependent on cronjobs running tasks using relational databases as queuing mechanisms with very little use of ORMs. It doesn't really matter if the language gets better, because the bar isn't really getting raised, unfortunately. After making the language more desirable (which has been done), a community effort needs to be made to shame and call out bad code, which might end up requiring a jump to 6.0 finally and breaking backwards compatibility with everything that's changed since 4.x (mysql_escape_string, mysql_x instead of mysqli_x or PDO, etc.) At least non-parseable code isn't going to fester bad practices.
Not true anymore, a lot of code is running in php-fpm nowadays.
The hell,you could do the exact same stuff with next to no "serverside" javascript by launching a PHP server yourself in node-webkit,with the advantage of using a better webview because i'm pretty sure the one used in wxPython is pretty old.
edit:s/bindings/server
Python GUI framework with PHP "bindings"
I don't think you should be dismissive of what the OP has done. You clearly believe this should be done differently. If that's the case I encourage you to spend your time and effort to do so just as the OP did. And then be brave enough to post your work on HN just as the OP was.
> HTML/CSS is a GUI framework
Sure,it's just not WPF,Flex,Swing,Gtk or whatever.That's what I expect when I hear GUI framework.
Just because I found the title of this news vague doesnt mean I'm dismissive of anything.
Finally I just pointed out that it's likely the webview used in that project wont run any modern javascript lib or framework.
node-webkit runs Webgl and all the latest web techs
Much rather prefer using node-webkit for this kind of desktop app (note: PHP is my go-to language)
I can see this being used in internal systems (to replace command line commands for non-technical colleges) but can't see the value in actual end user products
Oh, yeah, about the submission title, I couldn't find anything that described it better, even after a lot of head scratching. No, I'm not eloquent, I know... ;)
I am no fan of PHP myself and for this kind of requirement I would use node-webkit which provides seamless integration of the webview and host JS (node.js)
But the most important thing here is that it opens the doors to desktop programming to PHP devs and therefore we may see more useful apps for the desktop being developed, previously some PHP devs may have had some interesting concepts for the desktop but they weren't able to make them happen due to their lack of skills or time to learn GUI programming.
[1] http://winbinder.org/ (inactive since '10)
[2] http://wxphp.org/ (active)
No, thank you.
More specifically, I spent last Saturday setting up PocketMine (a Minecraft server) for my kids. This remarkable piece of engineering is a console app done completely in PHP and one of the first things it logged was "Can't keep up! Is the server overloaded?". That's a completely idle server on a beefy box. And all I could think was how regrettable it was that a clearly capable programmer voluntarily painted himself in a corner by picking a language that wasn't fit for the job. Same thing with GUI in PHP - yes, it's doable, yes, there's probably a demand for it, but this demand is misplaced and misguided and it's not worth of endorsing. It's like giving devs a heavier weight to sink deeper into a tar pit instead of giving them a rope for getting out. Desktop apps should never ever be written in PHP unless it's some sort of quick and disposable hack, which is likely not what this project has in mind.
I'd more call it a GUI in HTML/CSS/JS. PHP is just for the backend.
That is, I have a problem with the labeling, not the contents.
I don't see anywhere in the documentation where it boasts as being more viable or comparing itself to other options in any way.
And to dispell the ignorance and knee jerk reaction, the message comes from Minecraft, not his PHP code itself:
http://minecraftserverhq.com/blog/can't-keep-up/
I'd rather hire an engineer that doesn't blame a language because of ignorance, and even knows how to Google to find out the root cause.