This is a great way to ensure that you get mercilessly slashdotted back in to the stone age - make a post that doesn't give any real information besides a link to a site.
All I can say is this is a completely misdirected use of talent. You're right, no one should be stupid enough to do this. I always get a laugh when someone points at Nanoweb (another webserver in php) and the authors actually have the balls to say it's "fast and robust". That guy has been the laughing stock of #php/Freenode for a while now, second only to the author of PHPNuke, for obvious repeat security issues.
As a proof of concept, well, _anyone_ with some knowledge of PHP could have _told_ you it could be done. Those same people with enough knowledge to know it could be done also would have told you _not to do it_. It's impractical, and a total waste of time to do what you've done.
Not only do you incur the overhead of the interpreter, which is rather nasty all on it's own, but PHP has lousy garbage collection, and is not meant to write applications with a sustained runtime. I'm very surprised it hasn't crashed.
I do love the php language for it's simplicity, and ease of use. As a web developer, it has aided me greatly, and I've done much with it. However, we should get back to using it for what it's actually meant for, building great websites.
Of course, this won't happen, because most linux users have already proven again and again that they're not capable of acting responsibly. Just look around slashdot.
All this is is a government cash grab. No one is forced to use windows media player. There are many other alternatives to using it, and users are free to pick whichever they want.
This isn't about monopolies, this is about opportunistic government offices and greedy people. Don't try to tell me that close to a half-billion dollars in cash is not a determing factor in this all. You can bet that at least a few people are going to retire on this. Think about that before you decide that the European government is some kind of altruistic entity. These are the same people who brought you the soon-to-be-abused patent system EVEN AFTER seeing the damage it caused in the US.
Next they'll be telling us that "You can't ship a filesystem with an operating system because it will hurt people's ability to interoperate with filesystems". It just won't end, and it's rediculous. Governments need to wake up to the stupidity around them.
If you want to bring the Microsoft empire down, make linux better by fixing it's obvious flaws and bringing it to the general user arena.
except mozilla based browsers only account for about 2% of all browsers used. It works well with IE and most popups blockers in IE. So to say "this is already dying" is not really true.
I've verified that the latest versions of mozilla have patched this, it's about time!
There are amazingly easy ways to get around today's popular popup blockers. for example: this page (will open google in a popup when you move the mouse anywhere on the page, but only once, this is not a JS bomb) will quite happily circumvent both the google toolbar, and mozilla's internal popup blocker. I was truly surprised to see my beloved mozilla was so prone to easy workarounds.
I'm surprised that advertizers have not been exploiting things like this sooner.
So now they want to scan the contents of my harddrive to deliver relevant ads with their adsense/adwords BS? Kickass, where do I sign up$@#?
Excuse me if i'm not overly enthusiastic about things like this. It's bad enough that GMail will do the same thing with your private mail, but allowing them to do it to the data on your drive is just silly.
Wow, that is the single most stupid thing I've read on slashdot today. Because MS *might* have taken some action against opera (unlikely, opera versions before 7 were horrible. It's no wonder it breaks. There is no return on investment to fix things for opera either, market share is too small - notice how opera isn't even IN their statistics, it's lumped with "other") you should CUT YOUR OWN BALLS OFF IN PROTEST.
MSIE is still the browser with the most market share in the world. Like it or not, we *need* to support it. Pages that break in IE will more likely be bypassed rather than the user getting a new browser.
It has a high learning curve for initial setup, but it can drasticly reduce the attack vector given to malicious scripts and programs as it's not just a firewall, but also a very elaborate application sandboxing system.
Another solution is to get quickfix which applies blanket fixes to many unpatched IE and Windows vulnerabilities.
Remember, security is YOUR responsibility. If you run Windows, YOU need to take your own steps to ensure the security of your system.
With all these additional features getting strapped on to phones, they must be coming up with some unique new battery solutions.
I wonder if it would be too much to ask for a cellphone that *just* made calls and lasted a really long time between charges. I think I could safely trade in the dog bark translator for that.
You don't need an illuminated keyboard if you just learn to type. Personally, it would take more that a mere light to sway me from my Logitech Cordless MX Duo. What ever happened to the days when modding something meant making it look good AND adding some kind of useful functionality?
According to netcraft's poll of nearly 50 million webservers apache is already the dominant webserver in the world. Assuming that 50% of these servers are running a unix or linux (and this is a guess only, the statistics do not extend to the actual operating system being used), non-microsoft operating systems would still be in a very viable position to dominate at least the webserver market. Time will tell i suppose.
The problem isn't that he benchmarked it, it's that he fails to show us HOW he benchmarked it. Most people try to benchmark things one way only, disregarding that results can change dramaticly based on many factors. How he benchmarked it is completely relevant, and his results are completely useless without it.
Thanks for that completely useless analysis that doesn't even do us the favor of showing us the actual benchmark code.
How many times did you need to iterate to make the script run that long? i'm guessing somewhere in the neighborhood of 100,000 - 250,000 iterations, which no sane web-based script would ever do.
I do fully agree that you should quote array keys, however *speed* is not the reason to do it right. What it actually does *is*. Too many people bring up the "X is faster than Y" argument using completely unrealistic benchmarks to show their reasoning. A classic example of this brought up by people who go to fanatical lengths to optimize is double vs single quotes, which is so slight in it's speed difference it probably shouldn't be considered an optimization unless you're interpolating on the order of 100,000 - 200,000 times. If your PHP web-based script needs to do something like this for some real-world application, you need to rethink your logic.
In fact, if you feel you really need to be splitting hairs over a fraction of a millisecond of execution time, you probably should be using a lower-level language (such as C) for the operation.
This is a great way to ensure that you get mercilessly slashdotted back in to the stone age - make a post that doesn't give any real information besides a link to a site.
...if the US would just catch up with the rest of the world and thinKMetric !
Haven't we seen this before?
How exactly did this get marked insightful? it should be marked appropriately as a flame.
So .. instead of bad Head, we get good Head now?
...While question like that is bound to generate flamewars between the usual Perl vs PHP, Python vs Perl, VBScript vs everything crowds...
-- snip
Unlikely, since Perl is the only of all those scripting languages mentioned which is actually covered. You can't argue with results that aren't there.
All I can say is this is a completely misdirected use of talent. You're right, no one should be stupid enough to do this. I always get a laugh when someone points at Nanoweb (another webserver in php) and the authors actually have the balls to say it's "fast and robust". That guy has been the laughing stock of #php/Freenode for a while now, second only to the author of PHPNuke, for obvious repeat security issues.
As a proof of concept, well, _anyone_ with some knowledge of PHP could have _told_ you it could be done. Those same people with enough knowledge to know it could be done also would have told you _not to do it_. It's impractical, and a total waste of time to do what you've done.
Not only do you incur the overhead of the interpreter, which is rather nasty all on it's own, but PHP has lousy garbage collection, and is not meant to write applications with a sustained runtime. I'm very surprised it hasn't crashed.
I do love the php language for it's simplicity, and ease of use. As a web developer, it has aided me greatly, and I've done much with it. However, we should get back to using it for what it's actually meant for, building great websites.
Of course, this won't happen, because most linux users have already proven again and again that they're not capable of acting responsibly. Just look around slashdot.
All this is is a government cash grab. No one is forced to use windows media player. There are many other alternatives to using it, and users are free to pick whichever they want.
This isn't about monopolies, this is about opportunistic government offices and greedy people. Don't try to tell me that close to a half-billion dollars in cash is not a determing factor in this all. You can bet that at least a few people are going to retire on this. Think about that before you decide that the European government is some kind of altruistic entity. These are the same people who brought you the soon-to-be-abused patent system EVEN AFTER seeing the damage it caused in the US.
Next they'll be telling us that "You can't ship a filesystem with an operating system because it will hurt people's ability to interoperate with filesystems". It just won't end, and it's rediculous. Governments need to wake up to the stupidity around them.
If you want to bring the Microsoft empire down, make linux better by fixing it's obvious flaws and bringing it to the general user arena.
except mozilla based browsers only account for about 2% of all browsers used. It works well with IE and most popups blockers in IE. So to say "this is already dying" is not really true. I've verified that the latest versions of mozilla have patched this, it's about time!
There are amazingly easy ways to get around today's popular popup blockers. for example: this page (will open google in a popup when you move the mouse anywhere on the page, but only once, this is not a JS bomb) will quite happily circumvent both the google toolbar, and mozilla's internal popup blocker. I was truly surprised to see my beloved mozilla was so prone to easy workarounds.
I'm surprised that advertizers have not been exploiting things like this sooner.
I thought everything in the post was good, except the part about it being interesting.
Why only 50? Why not _all_ of them?
If we know about 100 murderers, do we only go after 50?
or you can just click the provided link that turns it off in the search dialog.
So now they want to scan the contents of my harddrive to deliver relevant ads with their adsense/adwords BS? Kickass, where do I sign up$@#?
Excuse me if i'm not overly enthusiastic about things like this. It's bad enough that GMail will do the same thing with your private mail, but allowing them to do it to the data on your drive is just silly.
"O! I forgot one thing. PC's are extremely ugly"
Spoken like a true mac using troll. at least you have a *choice* as to what cases you use with a PC.
Buy Macs - the last word in hardware lock-in.
Wow, that is the single most stupid thing I've read on slashdot today. Because MS *might* have taken some action against opera (unlikely, opera versions before 7 were horrible. It's no wonder it breaks. There is no return on investment to fix things for opera either, market share is too small - notice how opera isn't even IN their statistics, it's lumped with "other") you should CUT YOUR OWN BALLS OFF IN PROTEST.
MSIE is still the browser with the most market share in the world. Like it or not, we *need* to support it. Pages that break in IE will more likely be bypassed rather than the user getting a new browser.
Anyone serious about securing a home windows box should look in to tiny's personal firewall
It has a high learning curve for initial setup, but it can drasticly reduce the attack vector given to malicious scripts and programs as it's not just a firewall, but also a very elaborate application sandboxing system.
Another solution is to get quickfix which applies blanket fixes to many unpatched IE and Windows vulnerabilities.
Remember, security is YOUR responsibility. If you run Windows, YOU need to take your own steps to ensure the security of your system.
Yes, you're absolutely right. It *couldn't* have had *anything* to do with *your* own neglegence regarding security, could it?
In the end, securing your box is your responsibility, and not anyone elses.
With all these additional features getting strapped on to phones, they must be coming up with some unique new battery solutions.
I wonder if it would be too much to ask for a cellphone that *just* made calls and lasted a really long time between charges. I think I could safely trade in the dog bark translator for that.
You don't need an illuminated keyboard if you just learn to type. Personally, it would take more that a mere light to sway me from my Logitech Cordless MX Duo. What ever happened to the days when modding something meant making it look good AND adding some kind of useful functionality?
According to netcraft's poll of nearly 50 million webservers apache is already the dominant webserver in the world. Assuming that 50% of these servers are running a unix or linux (and this is a guess only, the statistics do not extend to the actual operating system being used), non-microsoft operating systems would still be in a very viable position to dominate at least the webserver market. Time will tell i suppose.
The problem isn't that he benchmarked it, it's that he fails to show us HOW he benchmarked it. Most people try to benchmark things one way only, disregarding that results can change dramaticly based on many factors. How he benchmarked it is completely relevant, and his results are completely useless without it.
Thanks for that completely useless analysis that doesn't even do us the favor of showing us the actual benchmark code.
How many times did you need to iterate to make the script run that long? i'm guessing somewhere in the neighborhood of 100,000 - 250,000 iterations, which no sane web-based script would ever do.
I do fully agree that you should quote array keys, however *speed* is not the reason to do it right. What it actually does *is*. Too many people bring up the "X is faster than Y" argument using completely unrealistic benchmarks to show their reasoning. A classic example of this brought up by people who go to fanatical lengths to optimize is double vs single quotes, which is so slight in it's speed difference it probably shouldn't be considered an optimization unless you're interpolating on the order of 100,000 - 200,000 times. If your PHP web-based script needs to do something like this for some real-world application, you need to rethink your logic.
In fact, if you feel you really need to be splitting hairs over a fraction of a millisecond of execution time, you probably should be using a lower-level language (such as C) for the operation.
If you call .000025 seconds "significant"
Speed is not the reason to do it the right way, what it does behind the scenes is.