5 ms·
Subsonic is a similar project, and has a mature ecosystem of client apps. (Added bonus: no PHP.)
by sneak 11y ago
Subsonic is a similar project, and has a mature ecosystem of client apps. (Added bonus: no PHP.)
- mschuster91 11y ago> (Added bonus: no PHP.) It uses Java, a pile of (insert swear word) so high that nothing comes close.
- mahouse 11y agoAre you seriously comparing PHP with Java? Not saying Java is the best, but dude, at least it was not designed by monkeys.
- mschuster91 11y agoThere's a lot of high-performance, widely used PHP projects: MediaWiki, Drupal (to a certain degree though), Wordpress, Facebook... Now let's take a look at some popular Java apps: Eclipse, SAP's frontend, Lotus Notes, Atlassian JIRA/Confluence, JDownloader... recognize the pattern of slowness? PHP might have been designed by monkeys (and many of the early design mistakes are gone by now, anyway!), but at least PHP kept the 10-abstraction-layers-minimum monkeys away. Also, a PHP web (or CLI, or GUI) app will in most cases eat far less RAM than a Java app of same functionality. Also, PHP projects are far faster to develop because the intermediate step of compiling is removed, and it's far easier (and faster) to deploy PHP projects than a Java web app. Edit: did some quick measurement on a RPi 1, java hello world vs PHP hello world vs C hello world: javac takes 16.8s wall time, 28MB peak RSS. Running the program itself is 1.99s wall time, 13MB peak RSS. PHP in contrast is a single process with 0.7s wall time, 14MB peak RSS. C takes 1.24s wall time for the compile, 15MB peak RSS. The resulting program takes 0.01s wall time, 1MB peak RSS. Versions are openjdk 7u91-2.6.3-1+rpi1, php 5.6.14+dfsg-1+b1 and gcc 5.2.1-23+rpi1. That compile time of javac is simply... wtf.
- mahouse 11y agoYou are right about the slowness, that's not exactly the point I wanted to make. Anyway, calling wordpress or drupal "high performance" is a joke.
- mschuster91 11y ago> Anyway, calling wordpress or drupal "high performance" is a joke. Well, these two platforms are by far the leader in the CMS space. It's either usability, ease of administration or speed that keeps people using WP/Drupal over alternatives in other languages/frameworks.
- creshal 11y agoSeeing it from the point of view of a company with a few hundred Wordpress deployments: Definitely usability (if you want laypersons to be able to author content, there's little competition), largely availability of plugins, a bit ease of administration (it's getting better), but definitely not speed. Wordpress is so mindbogglingly slow that we have to use excessive amounts of caching for anything even remotely resembling medium traffic.
- sbarre 11y agoHonest question: do you not consider caching to be a normal part of a dynamic web application? I've never worked with a CMS or web app - in any language - that didn't include caching as a core part of the performance layer once it reaches a certain amount of load.. I'm sure it's possible, with enough money to throw at hardware, to scale without it, but why would you? Caching is a completely valid optimization approach in my view..
- mschuster91 11y agoWell Wordpress long came without any caching at all, dunno if that's changed by now. Drupal in contrast comes with its own DB caching. Both can be plugged into memcache and friends, and if done right you can put in Cloudflare or other frontend caching systems in front. Biggest performance +1, though, is enabling php opcache.
- jenscow 11y agoThe answer to "what's the best language?" should not be "language X", but "what are you making?" Once you've defined the requirements, restrictions, and personal abilities, only then you can have a meaningful discussion on what the "best" language is - and even then there is more than one answer.
- vincentkriek 11y agoI use subsonic and like it a lot. However, it could use a webinterface update. The default is old and ugly, but works very well. Jamstash (another web interface) looks nice but doesn't work well.
- maaaats 11y agoGreat minds discuss the product, small minds belittle the language it was written in.
- progrn 11y agoIt is fair to discuss the language of an open source project in a technical leaning forum.
- maaaats 11y agoYeah, but this discussion was not very fruitful. Just language-bashing.
- devNoise 11y agoI agree. PHP isn't as sexy as node.js or rails. Though the project is using PHP 5.5.9, composer and the Laravel framework. It seems like author is making an effort to make good PHP code. The only thing he could have done to make the code base cooler for PHP was to use HHVM.
- skeletonjelly 11y agoI'm not sure this is a saying
- lostsock 11y agoHave you actually even looked at the source code for this project before you jumped in with the snark of it being written in PHP?