473,327 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

pleac and Cookbook

Hi,

After a search on
http://pleac.sourceforge.net/pleac_c++/index.html
why C++/STL/Boost have a low %?

I have also wondered about this, being a newbie.

Is it mostly because:
1) All the easy tasks have been accomplished?
2) Remaining problems are idiosyncratic to Perl?
3) Nobody bothers to finish it?

And why C++ Cookbook, and others how-to, manuals, etc. don't have
chapters like:
-Internet Services
-CGI Programming
The Perl, Python, Ruby, etc. have!? why?

Thanks in advance

May 8 '06 #1
4 1715
jonas wrote:
Hi,

After a search on
http://pleac.sourceforge.net/pleac_c++/index.html
why C++/STL/Boost have a low %?

I have also wondered about this, being a newbie.

Is it mostly because:
1) All the easy tasks have been accomplished?
2) Remaining problems are idiosyncratic to Perl?
3) Nobody bothers to finish it?
Probably 3 :)
And why C++ Cookbook, and others how-to, manuals, etc. don't have
chapters like:
-Internet Services
-CGI Programming
The Perl, Python, Ruby, etc. have!? why?

C++ doesn't have built in support for these, unlike the scripting
languages. What is there to say about CGI that isn't in the specification?

--
Ian Collins.
May 8 '06 #2
In article <1147082782.725367.167940
@y43g2000cwc.googlegroups.com>, nx******@net.vodafone.pt
says...
Hi,

After a search on
http://pleac.sourceforge.net/pleac_c++/index.html
why C++/STL/Boost have a low %?
Because the "recipes" in this cookbook are oriented
toward things people do with PERL rather than things
people do with C++.

Quite a bit of it covers things most C++ programmers just
don't care about as a rule. Others (e.g. "Modifying a
File in Place with -i Switch") are simply meaningless in
the context of C++.
And why C++ Cookbook, and others how-to, manuals, etc.
don't have chapters like:
-Internet Services
-CGI Programming
The Perl, Python, Ruby, etc. have!? why?


Because people rarely use C++ (at least directly) for
these kinds of purposes. A typical CGI script would gain
virtually nothing by being written in C++. In most cases,
the computation takes far less time than the network
transmissions, so speeding up the computation (even by a
large factor) would contribute little to overall speed.

--
Later,
Jerry.

The universe is a figment of its own imagination.
May 8 '06 #3
Jerry Coffin wrote:
Because the "recipes" in this cookbook are oriented
toward things people do with PERL rather than things
people do with C++.
That's just a tautology. Yes, the average programmer will grab a Perl-style
language to manipulate strings. That doesn't mean C++ can't compete with
those languages in this space.
Quite a bit of it covers things most C++ programmers just
don't care about as a rule. Others (e.g. "Modifying a
File in Place with -i Switch") are simply meaningless in
the context of C++.
This is "language X for Y users" territory. If I know Perl, the first thing
that pops to mind when I have that problem is the -i switch. So leading me
from there to a clean and high-level C++ solution would be very useful and
helpful. Especially to rescue me from Perl!

The effect here should work like a "permuted index" at the end of a huge
reference book.
Because people rarely use C++ (at least directly) for
these kinds of purposes. A typical CGI script would gain
virtually nothing by being written in C++. In most cases,
the computation takes far less time than the network
transmissions, so speeding up the computation (even by a
large factor) would contribute little to overall speed.


Execution speed isn't the only reason to use C++.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
May 8 '06 #4
In article <Xx*************@newssvr24.news.prodigy.net>,
ph*******@gmail.com says...
Jerry Coffin wrote:
Because the "recipes" in this cookbook are oriented
toward things people do with PERL rather than things
people do with C++.
That's just a tautology.


Not really -- a tautology is something that's inescapably
true based on the definitions of terms involved. OTOH, I
agree that this is somewhat similar. It's a circular
problem that C++ programmers don't use it that way, so
there's no tutorials for using it that way, so nobody
uses it that way, etc.
Yes, the average programmer will grab a Perl-style
language to manipulate strings. That doesn't mean C++ can't compete with
those languages in this space.
True -- but quite a bit of it is sufficiently specific
that it goes a bit beyond "manipulate strings" and into
subjects that aren't really very meaningful, at least as
stated.

[ ... ]
This is "language X for Y users" territory. If I know Perl, the first thing
that pops to mind when I have that problem is the -i switch. So leading me
from there to a clean and high-level C++ solution would be very useful and
helpful. Especially to rescue me from Perl!
It might be meaningful in that context, but simply as a
C++ cookbook, it's not meaningful at all.
The effect here should work like a "permuted index" at the end of a huge
reference book.
I'm not sure whether you're saying that's the program
you're trying to write, or whether you're saying that's
the basic intent of the web site...
Execution speed isn't the only reason to use C++.


True -- but most of the other purposes are even less
interesting. Just for example, I have precisely zero
interest in creating a CGI script (in any language) to
allow people to manipulate ACLs on the files on my
machine. The difference between C++ and PERL is
irrelevant here -- I don't want it happening regardless
of language.

I can see a situations where using C or C++ for CGI can
be useful. Just for one example, Comeau's online C++
compiler. There are certainly a lot more were a bit of
CGI acts as little more than a front end to some large
piece of software that may well be written in C or C++
(e.g. talking to a SQL database).

The question in my mind, however, is what exactly is
unique to CGI in this scenario -- if memory serves, CGI
basically says you receive a couple of environment
variables as input, and write something like an HTTP
packet on standard output.

I guess what I'm trying to say is that I can't think of
much that's unique about doing it in C++ vs. anything
else. At least to me, it seems like pretty basic
application of everyday programming techniques.

--
Later,
Jerry.

The universe is a figment of its own imagination.
May 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ringwraith | last post by:
Hello! I want to ask You the question about the licence of ASPN online Python Cookbook recipes. Under what licence are those recipes. If I want to use in my application some parts of the code...
0
by: F. GEIGER | last post by:
Does anybody know of a cookbook for Twisted? It's not that helpful for me to see how an echo server is written (can do this with std sockets) and success stories are too little concrete. What I...
0
by: Alex Martelli | last post by:
Greetings, fellow Pythonistas! We (Alex Martelli, David Ascher and Anna Martelli Ravenscroft) are in the process of selecting recipes for the Second Edition of the Python Cookbook. Please...
2
by: Jonathan Gennick | last post by:
Alex Martelli, Anna Ravenscroft, and I are trying to locate the following people, whose Actionstate Python Cookbook recipes we are wishing to use in the second, printed edition of the Python...
0
by: TechBookReport | last post by:
TechBookReport (http://www.techbookreport.com) has just published a review of the Python Cookbook. This is an extract from the full review: We're big fans of cookbooks here at TechBookReport,...
0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
3
by: jonas | last post by:
Hi, I'm new to python. After a search on http://pleac.sourceforge.net/pleac_python/index.html why python have a low %? Thanks in advance
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
3
by: Steve Howell | last post by:
George Sakkis produced the following cookbook recipe, which addresses a common problem that comes up on this mailing list: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/521877 I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.