Originally posted by xenophobic I know plenty of people whom write web apps in C/C++ (or include inline C) ?
Of course it depends on the app, but when someone posts a msg calling for a web app developer on GFY, I doubt C is really needed. It just sounds nice, I guess.
Originally posted by azguy Of course it depends on the app, but when someone posts a msg calling for a web app developer on GFY, I doubt C is really needed. It just sounds nice, I guess.
I would imagine for IPC there would be great benefits to writing applications for the web in C, however we're not talking a guestbook here, or someone's photo gallery so I assume you're correct in the assumption that the person does not require C.
Originally posted by azguy I have had sites with over 2M hits before. Back then PHP 4 had absolutely no problem handling them all, quickly and efficiently.
What is funny, its the new legion of programmers, they think all can be done in php or visual basic. They know only this. They steal hotscripts scripts and mofidy them 90% of the time and resell them.
Yes almost all can be done in php or visual basic , but you dont always have the performance.
IE: Fetch 1M urls daily from a SE, and post to them daily.
Which one will be the more fast?
php interface with C and multi-threads?
php interface with curl ?
php only ?
Sure a PHP page that just inserts the date can handle lots of hits.
However when it gets more complex you really do need C.
If you put MySQL in that mix then just forget it.
If the project is interesting I might have a look.......
ICQ: 10638430
-Ben
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.
<- I in no way endorse whatever just got stuck on the left of my post.
Originally posted by Crypt What is funny, its the new legion of programmers, they think all can be done in php or visual basic. They know only this. They steal hotscripts scripts and mofidy them 90% of the time and resell them.
Yes almost all can be done in php or visual basic , but you dont always have the performance.
IE: Fetch 1M urls daily from a SE, and post to them daily.
Which one will be the more fast?
php interface with C and multi-threads?
php interface with curl ?
php only ?
If your reply is php only, apply to mcdonald.
LOL. Python & PHP man, I told you before. Adultie.com is powered by Python & PHP (and trust me, we are doing some serious processing. You will see when it's launched. This type of application has NEVER EVER been seen before, and no one has EVER thought about doing it).
Seriously dood.....
no programmer will ever argue that C is slower than PHP.
Depends on your application..... great.... PHP works for you...
I have things it would never work on, it would die well before C
for a lot of applications.
So great.... u live on.... but don't try and tell us that PHP is the
fastest thing in the world. It's an interpreted scripting language
and no more.
-Ben
Cyberwurx Hosting
After trying 5 different hosts, I found the best.
Since 1997 I've had 2 hours of downtime.
Fast support, great techs, no hype, no gimmicks.
<- I in no way endorse whatever just got stuck on the left of my post.
Originally posted by mryellow Guess that's why Adultie is timing out on me :-P
Seriously dood.....
no programmer will ever argue that C is slower than PHP.
Depends on your application..... great.... PHP works for you...
I have things it would never work on, it would die well before C
for a lot of applications.
So great.... u live on.... but don't try and tell us that PHP is the
fastest thing in the world. It's an interpreted scripting language
and no more.
-Ben
SCOTTSDALE, AZ - December 4, 2004 --
LOL. Not live yet, of course.
C is obviously faster than PHP, as PHP is freaking written in C. Common sense. What I'm saying is that people sometimes think that C is needed just for the heck of coding in C. I agree that some applications are better off enjoying the capabilities of C. I never said it's the fastest.
From my experience, MOST web apps are fairly simple and can benefit solely from PHP code. Since the first post was so basic and meaningless, I made the assumption that the person seeking programmers is one of those
Originally posted by Crypt
IE: Fetch 1M urls daily from a SE, and post to them daily.
Which one will be the more fast?
php interface with C and multi-threads?
php interface with curl ?
php only ?
If your reply is php only, apply to mcdonald.
Your problem has nothing to do with the performance of the language and everything to do with getting as many http requests going at the same time. i can think of at least 2 ways i can do this php only, that would be as fast as the c/multithread version. And a lot simplier to debug and support as well.
There are problem domains where c/c++ is a (much) better performer, for example the forex application I'm develoiping now, but for most web work, it's a wash.
I've seen a programmers whos programs written in C are slower than i write in PHP ;)
C always was and will be closer to the computer bones and therefore fast. PHP reduces development cost, but it would newer be as fast.
One thing to know language, other thing to know about the "programming". Having a little bit of serious approach to the task planing, complexity estimation and development model you can get some impressive results.
http://chokertraffic.com/
regular 2.4 xeon
2-3 million hits daily served, local response time less than 1 milisecond.
over 1k webmasters
cookie checking, language tracking, complex business logic, dynamic priorities, stats
online statistics and active mirroring
and soon - hitbot protection.
AND THE LOAD ON THE BOX IS 0.00 !!
At times of backup it raises to 0.04. Imagine the power - it hardly uses 1% of system capacity.
System uses FastCGI, C, PHP and MySQL, but what gives the power is a properly implemented in-memory cache.
so my point is:
If you are bad at programming, you would suck with any language.
Comment