Saturday, January 19, 2019

Digest for comp.lang.c++@googlegroups.com - 25 updates in 6 topics

"Chris M. Thomasson " <ahh_f_it@crap.nothing>: Jan 18 04:00PM -0800

On 1/18/2019 5:51 AM, Queequeg wrote:
 
>> Subject: Re: You are still so full of shit
 
> Actually, he was. He was so full that he finally exploded and it floods
> the group since then.
 
This reminds me of a funny scene in Big Trouble in Little China:
 
https://youtu.be/A65Jq6NKdeI?t=98
 
;^)
"Chris M. Thomasson " <ahh_f_it@crap.nothing>: Jan 18 04:06PM -0800

On 1/18/2019 7:23 AM, Mr Flibble wrote:
> I have to disagree: that god provably does not exist because it is
> predicated on the Abrahamic bible being true and that bible is provably
> false.
 
Is this one of God's many forms:
 
https://youtu.be/aighXfsZkPg
 
;^)
"Chris M. Thomasson" <ahh_f_it@crap.nothing>: Jan 18 04:22PM -0800

On 1/18/2019 9:08 AM, Mr Flibble wrote:
 
> No I am not wrong: yes it is not possible to prove there are no gods at
> all but it is entirely possible to disprove a SPECIFIC god such as the
> god of Abraham.
 
I am wondering what you might think about the following:
 
https://groups.google.com/forum/?hl=de#!original/comp.arch/V1PRvI3U7vU/YUXVL3Vd5nIJ
 
I received the following response from a _very_ smart person, that
happens to be an Atheist:
 
https://groups.google.com/forum/?hl=de#!original/comp.arch/V1PRvI3U7vU/ZO9_EShYy6wJ
 
Pretty nice. This is kind of similar to my A religion posted in here:
 
 
A says:
_______________
Try to live a good life, because there is this thing called Jail.
 
If you want to donate to A, please give your money to a charity of your
own choice. Red Cross? Wounded Warriors? A friend in need, ect...
 
A says, try to do these things wrt money/donations when you can
comfortably afford it. Never give your money away if you cannot afford
to do so, family first! A says becoming rich is not bad.
 
A says living a good life is a given for we should all strive for that
simple thing.
_______________
End Of Line.
 
 
If LR_H can create a religion, anybody can?
fir <profesor.fir@gmail.com>: Jan 18 05:15PM -0800

W dniu piątek, 18 stycznia 2019 18:27:39 UTC+1 użytkownik David Brown napisał:
> people would not need to have faith. Indeed, the Christian god
> /requires/ that there be alternative rational explanations for our
> existence, so that people can choose to believe in him/her/it.
 
faith is what lier imposes on cheated
 
find me other case of faith..this could be a problem
"Chris M. Thomasson " <ahh_f_it@crap.nothing>: Jan 18 09:26PM -0800

On 1/9/2019 2:31 PM, Rick C. Hodgin wrote:
> goal, and I am moving steadily toward achieving all of it. My
> current timeline takes me through 2025 ... but we'll see, many
> many many things can happen between now and then.
 
How can one install it for themselves?
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 19 02:30AM -0800

On Saturday, January 19, 2019 at 12:26:54 AM UTC-5, Chris M. Thomasson wrote:
> > current timeline takes me through 2025 ... but we'll see, many
> > many many things can happen between now and then.
 
> How can one install it for themselves?
 
There's a plan, a process, and a schedule I'm on. At various
milestones there will be installation bundles available for people
to download and try. These will likely consist of Oracle VirtualBox
virtual machines at first.
 
It's going to be a while, Chris. At east mid-2020 as it's looking
now due to my several-month delay for my current side-step gaming
projects diversion.
 
--
Rick C. Hodgin
queequeg@trust.no1 (Queequeg): Jan 19 11:57AM


> This reminds me of a funny scene in Big Trouble in Little China:
 
> https://youtu.be/A65Jq6NKdeI?t=98
 
Yup, something like that, only more brown :)
 
--
https://www.youtube.com/watch?v=9lSzL1DqQn0
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 19 03:51PM

On 19/01/2019 10:30, Rick C. Hodgin wrote:
 
> It's going to be a while, Chris. At east mid-2020 as it's looking
> now due to my several-month delay for my current side-step gaming
> projects diversion.
 
So God's work is no longer a priority? Video games are of the Devil.
 
/Flibble
 
--
"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."
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 19 10:19AM -0800

On Saturday, January 19, 2019 at 10:51:13 AM UTC-5, Mr Flibble wrote:
> > now due to my several-month delay for my current side-step gaming
> > projects diversion.
 
> So God's work is no longer a priority? Video games are of the Devil.
 
In case the content of this post wasn't clear to you, I'll re-iterate
so it will be clear now:
 
https://groups.google.com/d/msg/comp.lang.c++/CKm7XiUNp4M/mfHeCBUHCQAJ
 
I'm done communicating with you, Leigh. I wish you well in your life,
I wish you success in your various endeavors, I hold no ill will a-
gainst you, nor wish any harm unto you, but you and I will part ways
at this time.
 
Take care of yourself. Go back and read the many things you glossed
over with your [tl;dr] replies. The content I posted for you is on
the public / permanent record, and it will serve you well.
 
Good bye.
 
--
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 19 06:23PM

On 19/01/2019 18:19, Rick C. Hodgin wrote:
> I wish you success in your various endeavors, I hold no ill will a-
> gainst you, nor wish any harm unto you, but you and I will part ways
> at this time.
 
Answer the question. So God's work is no longer a priority? Video games
are of the Devil.
 
> Take care of yourself. Go back and read the many things you glossed
> over with your [tl;dr] replies. The content I posted for you is on
> the public / permanent record, and it will serve you well.
 
Serve me well? Nonsense.
A) Your bible is false.
B) Your god the existence of which is predicated on your bible being true
is, given (A) also false.
 
/Flibble
 
 
--
"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."
fir <profesor.fir@gmail.com>: Jan 19 10:46AM -0800

W dniu sobota, 19 stycznia 2019 19:20:01 UTC+1 użytkownik Rick C. Hodgin napisał:
> over with your [tl;dr] replies. The content I posted for you is on
> the public / permanent record, and it will serve you well.
 
> Good bye.
 
your assumptions that you will go to heaven ery stupid dik are not much justified im afraid
 
youre terrible dork imbecile and moron
and that is quite common opinion - ahat would be that heven if you would go there before normal people (people of somewhat higher quality than you- simple moron ad impertinent dick)
 
that would be poor heaven, heaven for pigs, annoying idiots? i guess you would rather go to hell as being preposterous well know shit maker and imbecile redneck and so on
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 19 11:17AM -0800

On Saturday, January 19, 2019 at 1:47:01 PM UTC-5, fir wrote:
> [snip]
 
I haven't yet given up on you, fir.
 
You call me names, insult, and belittle me, fir, because you've
let sin into your life by your choices against God. With that sin
has come evil spirits, literal spirit beings co-habitating within
your one body. It causes you to hear their thoughts, feel their
emotions, be driven by their impulses, all of which you think are
only your own thoughts, feelings, emotions, because all you have
to discern your existence is your flesh, and are therefore unaware
they are there causing you much harm.
 
Jesus is the way to overcome them because He overcame them by His
death on the cross, and subsequent resurrection from the dead.
 
You spew venom at me because those evil spirits you harbor know I
am speaking the truth and do not want you to believe it, for if
you did they would be cast out and no longer have physical inter-
action with this world (as spirits are literally non-corporeal).
 
I know you won't believe any of this, and will choose to call me
additional names with further insults, but I tell you the truth
because I care about you and want you to be saved.
 
Seek to prove or disprove what I've written, but do so in a full
pursuit of the truth. Seek the true answer whether it leads you
this way or that way. Just seek the honest truth with sincerity
and singular focus.
 
--
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 19 07:19PM

On 19/01/2019 19:17, Rick C. Hodgin wrote:
 
> I haven't yet given up on you, fir.
 
> You call me names, insult, and belittle me, fir, because you've
> let sin into your life by your choices against God.
 
Nonsense.
A) Your bible is false.
B) Your god the existence of which is predicated on your bible being true
is, given (A) also false.
 
[snip tl;dr]
 
/Flibble
 
--
"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."
fir <profesor.fir@gmail.com>: Jan 19 11:37AM -0800

W dniu sobota, 19 stycznia 2019 20:17:58 UTC+1 użytkownik Rick C. Hodgin napisał:
> pursuit of the truth. Seek the true answer whether it leads you
> this way or that way. Just seek the honest truth with sincerity
> and singular focus.
 
you talk lies on me stupid moron - and that is why you rather will go to hell.. along with many other things you heard
poor psychopath dick
Lynn McGuire <lynnmcguire5@gmail.com>: Jan 19 01:13PM -0600

"Is C++ fast?"
https://www.osnews.com/story/129217/is-c-fast/
 
"A library that I work on often these days, meshoptimizer, has changed
over time to use fewer and fewer C++ library features, up until the
current state where the code closely resembles C even though it uses
some C++ features. There have been many reasons behind the changes –
dropping C++11 requirement allowed me to make sure anybody can compile
the library on any platform, removing std::vector substantially improved
performance of unoptimized builds, removing algorithm includes sped up
compilation. However, I've never quite taken the leap all the way to C
with this codebase. Today we'll explore the gamut of possible C++
implementations for one specific algorithm, mesh simplifier, henceforth
known as simplifier.cpp, and see if going all the way to C is worthwhile."
https://zeuxcg.org/2019/01/17/is-c-fast/
 
Lynn
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 19 07:18PM

On 19/01/2019 19:13, Lynn McGuire wrote:
> for one specific algorithm, mesh simplifier, henceforth known as
> simplifier.cpp, and see if going all the way to C is worthwhile."
>    https://zeuxcg.org/2019/01/17/is-c-fast/
 
Who cares about the performance of unoptimized builds? I certainly don't.
std::vector will be slower probably due to checked iterators which can be
highly useful in finding problems in debug builds (and you can also turn
that feature off).
 
Seriously changing an existing C++ codebase to make it pre-C++11 really is
a dumb idea. This is 2019.
 
/Flibble
 
--
"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."
Paul <pepstein5@gmail.com>: Jan 19 03:45AM -0800

I compiled and ran the following:
Note that the whole purpose is to learn about
how the destructor works. I'm not saying that
explicitly calling the destructor here is good practice.
 
I have two questions.
1) Why do I need this-> for an explicit destructor call?
~Test() gives a compiler error on the grounds of no match for
operator ~ I don't understand why we need an explicit this here.
 
2) The output is "yes x = 0 yes". Why does the call to print() work
after the destructor has been called to destroy the object?
 
Thank you,
 
Paul
 
#include<iostream>
using namespace std;
 
class Test
{
private:
int x;
public:
~Test() { cout << " yes ";}
Test() {x = 0;}
void destroy() {this->~Test(); }
void print() { cout << "x = " << x; }
};
 
int main()
{
Test obj;
obj.destroy();
obj.print();
return 0;
}
Barry Schwarz <schwarzb@dqel.com>: Jan 19 05:13AM -0800

On Sat, 19 Jan 2019 03:45:46 -0800 (PST), Paul <pepstein5@gmail.com>
wrote:
 
> Test obj;
> obj.destroy();
> obj.print();
 
This statement causes undefined behavior since obj no longer exists
(in the way the standard describes the lifetime of an object).
However, the memory it occupied still exists physically in the
machine. You had the misfortune of being able to access that memory
and it had not yet been overwritten or reused for some other purpose.
 
The worst form of undefined behavior is to do "something reasonable"
or "what you expect".
 
--
Remove del for email
Manfred <noname@add.invalid>: Jan 19 07:10PM +0100

On 1/19/2019 2:13 PM, Barry Schwarz wrote:
> However, the memory it occupied still exists physically in the
> machine. You had the misfortune of being able to access that memory
> and it had not yet been overwritten or reused for some other purpose.
 
There is a second consideration here: even if you remove the "print()"
call, still the destructor gets called twice, which is obviously wrong,
like e.g. in the following:
 
#include <iostream>
 
class X
{
public:
X() { }
~X() { std::cout << "~X();" << std::endl; }
};
 
int main()
{
X x;
x.~X();
}
 
I believe this is forbidden by the standard, but more practically it
just confirms that destructor semantics is meant to be handled by the
language itself. It is allowed to be called by the programmer only to
allow for those cases where object deallocation is not automatically
paired by object destruction, like e.g. in some vector implementation,
and in those cases it is meant as a companion to placement new.
 
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 19 06:19PM

On 19/01/2019 18:10, Manfred wrote:
> those cases where object deallocation is not automatically paired by
> object destruction, like e.g. in some vector implementation, and in those
> cases it is meant as a companion to placement new.
 
The following is legal however:
 
int main()
{
X x;
x.~X();
new(&x) X{};
}
 
/Flibble
 
--
"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."
Jorgen Grahn <grahn+nntp@snipabacken.se>: Jan 19 10:37AM

I'm curious how people use Google's AddressSanitizer with Clang and
GCC in practice.
 
I've toyed with it, by adding this to one of my Makefiles:
 
CXXFLAGS+=-fsanitize=address,leak,undefined
 
but my code didn't seem to have those flaws, apart from a leak I knew
about already.
 
I've used valgrind a lot (in its default modes) so I know fairly well
what to expect from that tool. I know what errors it will flag, how
much slower my code will run (sometimes too slow for use) and I know I
don't have to instrument anything.
 
- Which sanitizers do people enable, as a rule?
 
- If you use valgrind, which sanitizers are still relevant?
 
- When I use valgrind, a segmentation fault crash is almost always
preceded by useful valgrind errors. Is the same true for ASan?
 
- When do you use them? I suppose at least when running unit and
component tests. Does anyone use them in production?
 
- I'm unused to tools that require instrumentation. Is it a problem
that the standard library and other libraries aren't instrumented?
 
- Etc.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
ram@zedat.fu-berlin.de (Stefan Ram): Jan 19 06:14AM

>you'll be better off with the latest draft version: n4659.pdf
 
n4659 2017-03-21
n4750 2018-05-07
n4762 2018-07-07
n4778 2018-10-08
ram@zedat.fu-berlin.de (Stefan Ram): Jan 19 06:30AM

Supersedes: <draft-20190119071318@ram.dialup.fu-berlin.de>
 
>you'll be better off with the latest draft version: n4659.pdf
 
date id targeting or similar to
2018-10-08 n4778 C++2a
2018-07-07 n4762 C++2a
2018-05-07 n4750 C++2a
2017-10-16 n4700 C++17
2017-03-21 n4659 C++17
2016-07-12 n4604 C++17
ram@zedat.fu-berlin.de (Stefan Ram): Jan 19 10:09AM

Supersedes: <draft-20190119072804@ram.dialup.fu-berlin.de>
 
ram@zedat.fu-berlin.de (Stefan Ram) writes:
>you'll be better off with the latest draft version: n4659.pdf
 
date name revises comments (target, similarity)
 
2018-12-07 n4791 n4778 C++20, now with ranges *
2018-10-08 n4778 n4762 C++20
2018-07-07 n4762 n4750 C++20
2018-05-07 n4750 n4741 C++20
2018-04-02 n4741 n4727 C++20
2018-02-12 n4727 n4713 C++20
2017-11-27 n4713 n4700 C++20
2017-12 14882,5 14882,4 C++17= approved 2017-09-06
2017-10-16 n4700 n4687 C++20
2017-07-30 n4687 n4659 C++20
2017-03-21 n4660 - C++17*
2017-03-21 n4659 n4640 C++17*
 
* ezoeryou.github.io/blog/article/2019-01-10-range-view.html
"Chris M. Thomasson " <ahh_f_it@crap.nothing>: Jan 18 08:18PM -0800


> Interestingly, I found an article "Can Seqlocks Get Along with Programming Language Memory Models?" by Hans-J. Boehm
 
> http://www.hpl.hp.com/techreports/2012/HPL-2012-68.pdf
 
> For what I could see, Boehm does not exactly consider the problem I raised here (so, his attitude and a range of discussed issues is rather different), yet it still worth reading for those interested in the topics discussed here.
 
This discussion is very informative, real, and nice. Thanks again
Michael. It brings back some memories.
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: