On 9 Apr 99, at 8:00, Matthew Soffen wrote:
> You could use the standard C API that comes with MySQL. It will
> be faster than an interpreted language like Perl or PHP or Python.
I am very curious. I have not programmed in C. 99% of my experience
is with perl. I am of the impression that the same functions can be
programmed in perl in much less time than in C; a programer using
perl could get the same work done in say 50% of the time needed to do
it in C. Now the argument is "but it will run 50% faster forever".
Then you argue but there is no forever for these programs because
actually they will be modified so often. But certainly, I think a
program in C will perform better than a program in perl; but do you
weigh how much a cpu costs against how much a programmer's time
costs?
This leads to mod_perl (and using Apache::DBI). I installed it on my
intranet. Database programs respond nearly as fast as just
requesting a normal page. Should I still consider writing these perl
programs in C? I cannot see how it could improve performance in
"response on the website". Would it reduce memory consumption? Does
that matter so much when memory is so cheap? Do I use my car less
because the price of gasoline could go up in the future?
I am interested in how others consider this. If it were not for
mod_perl I would say that if you initially use perl you should move
it to C or C++ once you are satisfied with what it does. But with
mod_perl, I don't see the need to move it. And now I hear that there
is a perl to C program.
Peter
Might is not Right. But there is a lot of Might knocking
about in this world, and something has to be done about it.
-- King Arthur, The Once and Future King
____________________________________________________________________
--------------------------------------------------------------------
Join The NEW Web Consultants Association FORUMS and CHAT:
Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
Give the Gift of Life This Year...
Just4U Stop Smoking Support forum - helping smokers for
over three years-tell a friend: http://just4u.com/forums/
To get 500 Banner Ads for FREE
go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------