🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #2060

Re: cout vs printf speed (was: Should I learn C or C++ first?)

#2060
From: Philip Shearer
Date: Tue, 12 Sep 1995 08:23
39 lines
2090 bytes
In article <9525008.24470@mulga.cs.mu.OZ.AU>
           fjh@munta.cs.mu.OZ.AU "Fergus Henderson" writes:

> kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) writes:
> 
> >matt@godzilla.EECS.Berkeley.EDU (Matt Austern) writes:
> >
> >|> There's nothing wrong with a C++ implementation parsing
> >|> printf's format string at compile time, doing error checking to
> >|> make sure that there aren't any type errors, and putting in the
> >|> appropriate low-level calls.
[snip]
> >
> >Actually, I doubt it.  Normally, the format string in production code
> >will not be a string literal, but rather something read from a
> >configuration file, dependant on the locale setting.
> 
> That has not been my observation.
> 
> >Or do you really think everyone in the world can read English
> >fluently.
> 
> That's not relevant.  The issue is optimization, not
> internationalization.  What is relevant is that in many C programs,

If you worked in Europe then locale settings are relevent and important. 
For example on the Swiss electronic stock exchange project, All screens 
for the dealers have to be presented in German, French and English. 
Without correct implementations of locale, the job of programming 
the screens to be canton configrable would have been much more complicated.

The German: 100,001 is the same as in English 100.001.
To a German "100.001" means one hundered thousand and one".

-- 
Regards Philip Shearer 
 
Civilization advances by extending the number of important operations which we
can perform without thinking of them.
Technical Details
Message-ID: <810894181snz@lmrln.demon.co.uk>
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!lmrln.demon.co.uk
References: <9525008.24470@mulga.cs.mu.OZ.AU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!lmrln.demon.co.uk
From: Philip Shearer <pbs@lmrln.demon.co.uk>
Newsgroups: rec.games.programmer,comp.lang.c++
Subject: Re: cout vs printf speed (was: Should I learn C or C++ first?)
Date: Tue, 12 Sep 95 08:23:01 GMT
Organization: Lomarlin Ltd
Message-ID: <810894181snz@lmrln.demon.co.uk>
References: <9525008.24470@mulga.cs.mu.OZ.AU>
Reply-To: pbs@lmrln.demon.co.uk
X-NNTP-Posting-Host: lmrln.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.29