Sunday, November 3, 2019

Digest for comp.lang.c++@googlegroups.com - 15 updates in 3 topics

Bonita Montero <Bonita.Montero@gmail.com>: Nov 03 02:59PM +0100

C++20 includes specializations for atomic<float> and atomic<double>.
Can anyone here for what practicsal purpose this should be good for?
The only purpose I can imagine is when I have a thread that changes
an atomic double or float asynchronouslsy at random points. But the
need this should be extremely rare.
Bo Persson <bo@bo-persson.se>: Nov 03 04:07PM +0100

On 2019-11-03 at 14:59, Bonita Montero wrote:
> The only purpose I can imagine is when I have a thread that changes
> an atomic double or float asynchronouslsy at random points. But the
> need this should be extremely rare.
 
Probably added for completeness, which is what design by committee gets
us. :-)
 
Can't see much use for atomic<signed char> or atomic_uint_fast16_t
either. And those were there already.
 
 
Bo Persson
Bonita Montero <Bonita.Montero@gmail.com>: Nov 03 04:31PM +0100

> Can't see much use for atomic<signed char> or atomic_uint_fast16_t
> either. And those were there already.
 
Maybe for the counter of a mutex on platforms which have small atomic
types?
Bo Persson <bo@bo-persson.se>: Nov 03 07:07PM +0100

On 2019-11-03 at 16:31, Bonita Montero wrote:
>> either. And those were there already.
 
> Maybe for the counter of a mutex on platforms which have small atomic
> types?
 
But do we really need all of atomic_char, atomic_schar, atomic_uchar,
atomic_char8_t, atomic_int8_t, atomic_uint8_t, atomic_int_least8_t,
atomic_uint_least8_t, atomic_int_fast8_t, atomic_uint_fast8_t, and
atomic_bool?
 
And with C++20 we now also get atomic_signed_lock_free and
atomic_unsigned_lock_free which are "most efficient" (in an unspecified
way), and which may or may not be 8-bits wide.
 
Or could we manage with just a subset of 8-bit types? :-)
 
 
To be honest, I *can* see some advantage in that templated code could do
 
atomic<T> x;
++x;
 
and it just might work even for T being floating point. But that's about it.
 
 
Bo Persson
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Nov 02 10:59PM -0700

On 11/2/2019 2:32 PM, Vir Campestris wrote:
>> You still don't know what I'm doing. Because I haven't told you.
 
> My earlier comment stands: Protect something important enough, and your
> code will be cracked in weeks. Ours always was.
 
Fwiw, the games Dungeon Master and Crystal Dragons had some interesting
copy-protection:
 
http://dmweb.free.fr/?q=node/210
(interesting read...? ;^)
 
DM had a fuzzy bit that made it hard for the crackers. It was able to
sell a lot of copies before it was busted.
 
https://www.myabandonware.com/game/crystal-dragon-77e
 
Most of the game code was encrypted. DM had hidden data inside of some
of the graphics.
 
Iirc, Starcraft had a hidden track on its CD that would not copy.
 
 
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Nov 02 11:00PM -0700

On 11/2/2019 10:59 PM, Chris M. Thomasson wrote:
> (interesting read...? ;^)
 
> DM had a fuzzy bit that made it hard for the crackers. It was able to
> sell a lot of copies before it was busted.
[...]
 
Here is the patent:
 
https://patents.google.com/patent/US4849836
David Brown <david.brown@hesbynett.no>: Nov 03 11:40AM +0100

On 03/11/2019 06:59, Chris M. Thomasson wrote:
 
> Most of the game code was encrypted. DM had hidden data inside of some
> of the graphics.
 
> Iirc, Starcraft had a hidden track on its CD that would not copy.
 
Successful copy protection always relied on something physical, such as
intentionally bad CD tracks, or asking the user to look up a page, line,
word reference in the manual.
 
Andy is right - you protect the keys, not the code. The bad CD track is
the key here.
woodbrian77@gmail.com: Nov 02 05:14PM -0700

On Saturday, November 2, 2019 at 2:16:59 PM UTC-5, David Brown wrote:
 
 
I find most of your replies to be spam.
 
 
Brian
Ebenezer Enterprises
woodbrian77@gmail.com: Nov 02 05:49PM -0700

On Saturday, November 2, 2019 at 4:01:41 PM UTC-5, Real Troll wrote:
 
> These newsgroups have never discussed anything useful
> for the past 10 years.
 
This group has been helpful to me for years now. Some may
not like the way things are going, e.g. SaaS, but that's not
my fault. Honk if you love SaaS.
 
 
Brian
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 03 01:15AM

> On Saturday, November 2, 2019 at 2:16:59 PM UTC-5, David Brown wrote:
 
> I find most of your replies to be spam.
 
Oh the irony. Do as I say, not as I do eh Brian? Cockwomble.
 
/Flibble
 
--
"Snakes didn't evolve, instead talking snakes with legs changed into
snakes." - Rick C. Hodgin
 
"You won't burn in hell. But be nice anyway." – Ricky Gervais
 
"I see Atheists are fighting and killing each other again, over who
doesn't believe in any God the most. Oh, no..wait.. that never happens." –
Ricky Gervais
 
"Suppose it's all true, and you walk up to the pearly gates, and are
confronted by God," Bryne asked on his show The Meaning of Life. "What
will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery
that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates a
world that is so full of injustice and pain. That's what I would say."
woodbrian77@gmail.com: Nov 02 07:01PM -0700

On Saturday, November 2, 2019 at 8:15:15 PM UTC-5, Mr Flibble wrote:
 
> Oh the irony. Do as I say, not as I do eh Brian?
 
Sorry, but as Ben Shapiro says, "capitalism always wins."
In order for communism to not die even more quickly than
it otherwise would, you trolls actually need a quality
basis for your pogroms. Let's see, what quality
products/companies have come from communism? Oh, none?
 
 
Brian
Ebenezer Enterprises - "They stab it with their steely knives,
but they just can't kill the beast."
https://github.com/Ebenezer-group/onwards
 
"it" in this context is capitalism, free markets, free speech...
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 03 03:51AM

> it otherwise would, you trolls actually need a quality
> basis for your pogroms. Let's see, what quality
> products/companies have come from communism? Oh, none?
 
Who mentioned communism? Pathetic attempt at misdirection, Brian.
 
This "Ben Shapiro" guy is just as much of a religious bigot as you are,
Brian, but of course you know this already which is why you keep spamming
him here. Cockwomble.
 
/Flibble
 
--
"Snakes didn't evolve, instead talking snakes with legs changed into
snakes." - Rick C. Hodgin
 
"You won't burn in hell. But be nice anyway." – Ricky Gervais
 
"I see Atheists are fighting and killing each other again, over who
doesn't believe in any God the most. Oh, no..wait.. that never happens." –
Ricky Gervais
 
"Suppose it's all true, and you walk up to the pearly gates, and are
confronted by God," Bryne asked on his show The Meaning of Life. "What
will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery
that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates a
world that is so full of injustice and pain. That's what I would say."
Bonita Montero <Bonita.Montero@gmail.com>: Nov 03 05:20AM +0100

> I find most of your replies to be spam.
 
LOL!
David Brown <david.brown@hesbynett.no>: Nov 03 11:12AM +0100

> On Saturday, November 2, 2019 at 2:16:59 PM UTC-5, David Brown wrote:
 
> I find most of your replies to be spam.
 
You are free not to like my replies or posts. You can call them
insulting, argumentative, pointless, off-topic, rambling - there are
plenty of reasonable complaints you could make. But one thing they are
not, is spam. I have never once posted unwanted adverts for my services
or software.
David Brown <david.brown@hesbynett.no>: Nov 03 11:35AM +0100

> On Saturday, November 2, 2019 at 8:15:15 PM UTC-5, Mr Flibble wrote:
 
>> Oh the irony. Do as I say, not as I do eh Brian?
 
> Sorry, but as Ben Shapiro says, "capitalism always wins."
 
For those that don't know who Shapiro is, but (for some reason) want to
know, here is an introduction.
 
<https://rationalwiki.org/wiki/Ben_Shapiro>
 
I love the description of him as a "professional idiot".
 
Now, people can have whatever view they like on politics - this is not a
political group. And it is not an American group, and most certainly
not an American political group.
 
People don't get to have the same breadth of views on bigotry and
prejudice. But while I will condemn prejudice whenever I see it, it is
also off-topic for the group.
 
What is more relevant is does this Shapiro guy have the slightest
relevance to C++? Is anything he says remotely connected to the
language, or its use? The answer, of course, is no. Anything Shapiro
says is of no more interest here than the wisdom of Kermit the Frog.
 
> it otherwise would, you trolls actually need a quality
> basis for your pogroms. Let's see, what quality
> products/companies have come from communism? Oh, none?
 
Again, politics has nothing to do with anything under discussion.
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: