Saturday, November 1, 2014

Digest for comp.lang.c++@googlegroups.com - 12 updates in 4 topics

comp.lang.c++@googlegroups.com Google Groups
Unsure why you received this message? You previously subscribed to digests from this group, but we haven't been sending them for a while. We fixed that, but if you don't want to get these messages, send an email to comp.lang.c+++unsubscribe@googlegroups.com.
"K' Dash" <adnanrashidpk@gmail.com>: Nov 01 03:57PM -0700

what is the difference between
 
Mac48Address* Mac
 
and
 
Ptr<Mac48Address> Mac
 
where Mac48Address is a class
jacob navia <jacob@spamsink.net>: Nov 02 12:11AM +0100

Le 01/11/2014 23:57, K' Dash a écrit :
 
> and
 
> Ptr<Mac48Address> Mac
 
> where Mac48Address is a class
 
"Mac48Address* Mac"
 
You know immediately what "Mac" is: a pointer to some class, in this
case a Mac48Address.
 
"Ptr<Mac48Address> Mac"
 
Who knows?
 
You have to go fishing for the definition of "Ptr"
"Öö Tiib" <ootiib@hot.ee>: Nov 01 03:33PM -0700


> On clang 3.3, the make_unique version increases the size
> of a text segment by 112 bytes. I think I've tried it
> on some newer compilers and found similar results.
 
What the 112 bytes can possibly contain?
Didn't you make something odd there (like comparing "debug"
versions, or forbidding inlining)?
legalize+jeeves@mail.xmission.com (Richard): Nov 01 11:07PM

[Please do not mail me a copy of your followup]
 
woodbrian77@gmail.com spake the secret code
 
>On clang 3.3, the make_unique version increases the size
>of a text segment by 112 bytes. I think I've tried it
>on some newer compilers and found similar results.
 
A test on MSVC 2012 revealed an increase in the size of the debug
executable, but the release executable size was identical. Dumpbin
revealed the same "size of code" value.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
JiiPee <no@notvalid.com>: Nov 01 10:02PM

I wonder how C++ standard library has not implemented a very fast
integer-to-string conversion function. They have sprintf, snprintf,
stringstream and to_string.
 
From this site:
 
http://zverovich.net/2013/09/07/integer-to-string-conversion-in-cplusplus.html
 
we can see that sprintf is the fastest one of those.
But then I googled and found from this site:
 
http://stackoverflow.com/questions/4351371/c-performance-challenge-integer-to-stdstring-conversion
 
a very fast version, done by somebody. I run tests (using a integers
from 0 to 1294967295 by step 60 and converted all of them to strings. I
also used the sixth item from the result: cU += str2[6]; inside the loop
and then printed it at the end so that the compiler would not optimize
things out).
 
Results: the user made conversion function from the site was about 130
times faster than sprintf (and thus would be about 200 times faster than
to_string ).
 
How is it possible there is no fast std version? This is sometimes an
important function, for example when parsing a very large text and
checking integers from it.
 
Not really complaining but want to start a discussion about this: why
std sometimes does not make fast functions/classes?
 
For me, I already added that new fast conversion function to my
toolset... I rather use it than library versions. btw if somebody wants
my fast function please ask, I can give it then. Also, if somebody knows
faster way to convert, am ready to test it against this! I have a test
platform ready.
woodbrian77@gmail.com: Nov 01 11:19AM -0700

On Saturday, November 1, 2014 11:39:50 AM UTC-5, red floyd wrote:
> > your language seems like a bad idea. Especially when they accomplish
> > so little. What, again, is so horrible about underscores?
 
> Will his language also put biblical references into the output?
 
I think it's helpful to be candid about your approach.
There's a "General Background" section in the D&E book.
I'm glad to know something about what he believed/believes.
 
I'd use a biblical reference if I think it helps to
explain my understanding of something.
 
Brian
Ebenezer Enterprises - "A false witness will perish,
but the man who listens to the truth will speak forever."
Proverbs 21:28
 
http://webEbenezer.net
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 01 06:26PM

On 01/11/2014 10:54, Rick C. Hodgin wrote:
> give are given for that purpose -- so that people will not enter in to
> that most horrible place.
 
> Best regards,
 
Best regards? You are not showing the majority of this technical
newsgroup "best regards" by continuing with your Christian preaching.
Nobody cares about your evil, fucktarded, non-existent god.
 
/Flibble
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 01 06:29PM

> I'm glad to know something about what he believed/believes.
 
> I'd use a biblical reference if I think it helps to
> explain my understanding of something.
 
That limits your audience to people who know the bible inside-out or
carry a bible around with them; neither applies to me as I know the god
of the bible does not exist and hence also know the value of the bible
and its verses.
 
/Flibble
woodbrian77@gmail.com: Nov 01 11:30AM -0700

On Saturday, November 1, 2014 1:26:47 PM UTC-5, Mr Flibble wrote:
 
> Best regards?
 
Please don't swear here.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 01 11:31AM -0700

On Saturday, November 1, 2014 2:26:47 PM UTC-4, Mr Flibble wrote:
 
> Best regards? You are not showing the majority of this technical
> newsgroup "best regards" by continuing with your Christian preaching.
> Nobody cares about your evil....non-existent god.
 
You are not fighting me, Mr Flibble. You are free to insult me, harm
me, demean me. But there is One whom you are fighting in all of this,
and you will have no victory over Him, but only utter defeat.
 
http://biblehub.com/isaiah/5-20.htm
 
Jesus came to teach men the way, the truth path, and to warn men about
what is coming for those who will not receive it.
 
I pray you will hear Him, Mr Flibble, and receive the truth.
 
Best regards,
Rick C. Hodgin
woodbrian77@gmail.com: Nov 01 11:36AM -0700

On Saturday, November 1, 2014 1:29:20 PM UTC-5, Mr Flibble wrote:
> carry a bible around with them; neither applies to me as I know the god
> of the bible does not exist and hence also know the value of the bible
> and its verses.
 
They can use
 
http://Biblegateway.com
 
or other sites to look it up. They could also
email me or call me.
 
Brian
Ebenezer Enterprises
http://webEbenezer.net
woodbrian77@gmail.com: Nov 01 12:02PM -0700

> > and its verses.
 
> They can use
 
> http://Biblegateway.com
 
Should be
 
https://Biblegateway.com
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: