Monday, October 16, 2017

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

Lynn McGuire <lynnmcguire5@gmail.com>: Oct 16 02:14PM -0500

"How refactoring my C++ application into a Go library made it better in
every way"

https://medium.com/@brendanleglaunec/how-refactoring-my-c-application-into-a-go-library-made-it-better-in-every-way-b99aa15fcfdf
 
Interesting. Very specific though. And I have been watching Go very
loosely.
 
Lynn
legalize+jeeves@mail.xmission.com (Richard): Oct 16 08:25PM

[Please do not mail me a copy of your followup]
 
Lynn McGuire <lynnmcguire5@gmail.com> spake the secret code
 
>https://medium.com/@brendanleglaunec/how-refactoring-my-c-application-into-a-go-library-made-it-better-in-every-way-b99aa15fcfdf
 
>Interesting. Very specific though. And I have been watching Go very
>loosely.
 
Refactoring? More like rewrite.
 
Not knowing the difference I suppose is par for the course -- many
people don't seem to understand the difference.
 
Still, it makes me wonder about the rest of the observations in there.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
"Öö Tiib" <ootiib@hot.ee>: Oct 16 02:51PM -0700

On Monday, 16 October 2017 22:14:36 UTC+3, Lynn McGuire wrote:
 
> https://medium.com/@brendanleglaunec/how-refactoring-my-c-application-into-a-go-library-made-it-better-in-every-way-b99aa15fcfdf
 
> Interesting. Very specific though. And I have been watching Go very
> loosely.
 
Golang is just Google's java. It is like C# is Microsoft's java,
Swift is Apple's java and Java is Oracle's java. The javas are for
catching newbies into their farms to implement prototypes in easily
reverse-engineered languages.
 
Every of those monsters makes most of their own software in C++. ;)
Juha Nieminen <nospam@thanks.invalid>: Oct 16 05:35AM

> You underestimate the power of God, and of
> what Jesus did at the cross, if you think your sin is too weighty for
> God.
 
Besides you being a dishonest liar, you also make completely ridiculous
arguments. You seem to be preaching to completely imaginary people who
already believe in the existence of your god, but seem to have all kinds
of weird ideas about him, such as "god will not forgive me for my sins,
I'm doomed". It's like you are preaching to a strange choir.
 
WTF are you smoking? Those people do not exist.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 16 08:26AM -0700

On Monday, October 16, 2017 at 1:35:34 AM UTC-4, Juha Nieminen wrote:
> > what Jesus did at the cross, if you think your sin is too weighty for
> > God.
 
> Besides you being a dishonest liar...
 
I've asked you before, Juha, on what basis do you conclude I am a
dishonest liar? It's very easy to make statements. Are you able
to back this up with facts?
 
As a Christian who acknowledges sin exists, and the side-effects
of sin at work in my life, I can tell you that in my flesh I am
only deceitful continually. But I am also born again, and it is
my spirit I pursue, and God's Holy Spirit, and whereas I do still
at times make mistakes and operate in my flesh rather than in my
spirit, it is not my desire, it is not my intent, it is not part
of any of my goals, and it is not something I advocate anyone be
a part of.
 
Jesus teaches us to do all things right. It is that which I also
teach people.
 
Don't do wrong things.
Don't do deceitful things.
Don't teach wrong things.
Don't be a party to wrong things.
Stand up for what's right.
Teach people what's right.
Be honest and truthful in everything you're a part of.
 
Those are the things Jesus teaches, and those are also the things I
advocate, both for myself, and for all people.
 
Thank you,
Rick C. Hodgin
Daniel <danielaparker@gmail.com>: Oct 16 10:28AM -0700

On Monday, October 16, 2017 at 11:26:53 AM UTC-4, Rick C. Hodgin wrote:

> Jesus teaches us ...
 
Jesus doesn't want you to spam Usenet, Rick. "Give unto Usenet what is
Usenet's, give unto god what is god's."
 
Daniel
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 16 10:53AM -0700

On Monday, October 16, 2017 at 1:29:05 PM UTC-4, Daniel wrote:
> > Jesus teaches us ...
 
> Jesus doesn't want you to spam Usenet, Rick. "Give unto Usenet what is
> Usenet's, give unto god what is god's."
 
Does Jesus want that all men should come to repentance?
 
https://www.biblegateway.com/passage/?search=2+Peter+3%3A8-10&version=KJV
9 The Lord is not slack concerning his promise, as some men
count slackness; but is longsuffering to us-ward, not willing
that any should perish, but that all should come to repentance.
 
Did Jesus command to go ye therefore into all the world and teach?
 
https://www.biblegateway.com/passage/?search=Matthew+28%3A18-20&version=KJV
18 And Jesus came and spake unto them, saying, All power is
given unto me in heaven and in earth.
19 Go ye therefore, and teach all nations, baptizing them in
the name of the Father, and of the Son, and of the Holy
Ghost:
20 Teaching them to observe all things whatsoever I have commanded
you: and, lo, I am with you always, even unto the end of the
world. Amen.
 
-----
Did He say go to the "religious places?" Go to the places where
"religion" is on topic? Or did He says go ye therefore into all
the world and make disciples?
 
I will trust in the Lord's guidance ahead of all others because
IT IS JESUS CHRIST ALONE WHO GIVES MEN ETERNAL LIFE.
 
It's important, Daniel. It supersedes other things. All of them,
because everybody has an appointment with death, and none of us
know with surety in which second that appointment will fall upon us.
 
-----
Do you know Jesus Christ as Lord and Savior, Daniel? If not, then
I am exactly in the right place. If so, then join in with me to
reach the rest of those here who do not yet know Him as Lord and
Savior so their sin will not overtake them on the day of judgment.
 
Thank you,
Rick C. Hodgin
"Öö Tiib" <ootiib@hot.ee>: Oct 16 11:42AM -0700

On Monday, 16 October 2017 20:53:33 UTC+3, Rick C. Hodgin wrote:
 
> Did He say go to the "religious places?" Go to the places where
> "religion" is on topic? Or did He says go ye therefore into all
> the world and make disciples?
 
Stop lying to yourself, Jesus is not the reason of your bad behavior.
 
* How you think what is the likelihood of anyone disrespectful towards
audience of making disciples?
* Was Jesus himself impolite with listeners somewhere?
* Did He suggest anywhere others to behave rudely with people?
* Do you at least against all odds make any followers by being blunt?
* How many pupils have you made with such abusive behavior during
all those years?
* Isn't it madness that you do same thing over and over in all these
forums but still expect different results somehow?
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 16 12:03PM -0700

On Monday, October 16, 2017 at 2:43:00 PM UTC-4, Öö Tiib wrote:
 
> * How you think what is the likelihood of anyone disrespectful towards
> audience of making disciples?
> * Was Jesus himself impolite with listeners somewhere?
 
Judge for yourself. Here He's speaking to the Jewish leaders of
the day, those most likely to be part of His Kingdom by all Earthly
understanding:
 
https://www.biblegateway.com/passage/?search=Matthew+23%3A27-28&version=KJV
 
27 Woe unto you, scribes and Pharisees, hypocrites! for ye are
like unto whited sepulchres, which indeed appear beautiful
outward, but are within full of dead men's bones, and of
all uncleanness.
28 Even so ye also outwardly appear righteous unto men, but
within ye are full of hypocrisy and iniquity.
 
Here he tells a great multitude following Him that they must hate
their father, mother, wife, children, brothers, sisters, even their
own life, in order to be His disciple:
 
https://www.biblegateway.com/passage/?search=Luke+14%3A25-35&version=KJV
 
25 And there went great multitudes with him: and he turned, and
said unto them,
26 If any man come to me, and hate not his father, and mother,
and wife, and children, and brethren, and sisters, yea, and
his own life also, he cannot be my disciple.
27 And whosoever doth not bear his cross, and come after me,
cannot be my disciple.
...
33 So likewise, whosoever he be of you that forsaketh not all
that he hath, he cannot be my disciple.
 
Note: There's a great teaching on this passage here:
"It Will Cost You Everything" -- Steve Lawson
https://www.youtube.com/watch?v=VxnCD-yffWo
 
> * Did He suggest anywhere others to behave rudely with people?
 
The things we (Christians) teach are offensive to our flesh. The
teachings are not given for those who are perishing, but for those
who will be saved.
 
God's words are spirit and they are life, and all who can hear them
will come out and be saved:
 
https://www.biblegateway.com/passage/?search=John+6%3A37-39&version=KJV
37 All that the Father giveth me shall come to me;...
 
https://www.biblegateway.com/passage/?search=John+10%3A27-28&version=KJV
27 My sheep hear my voice, and I know them, and they follow me:...
 
> * Do you at least against all odds make any followers by being blunt?
 
Speaking the truth is commanded by the Lord. It is who He is, it is
what He calls us to, and the truth is the only thing that will work
when dealing with salvation against sin:
 
(1) All are sinners (Romans 3:23)
(2) All who come to Jesus will be saved (John 6:37)
(3) They have passed (past tense) from death to life, and will
not be judged (John 5:24).
 
This is information all people need. It is the only way to get out
of this world alive. It is more important than Usenet etiquette, for
example. It is crucial information of such grand importance, even if
the people the information is coming to do not realize it.
 
Only those given to Jesus Christ will hear these words and know they
are true, and come out from the world, and repent, and ask for their
sin to be forgiven, and be saved.
 
> * How many pupils have you made with such abusive behavior during
> all those years?
 
None that I am aware of.
 
> * Isn't it madness that you do same thing over and over in all these
> forums but still expect different results somehow?
 
It is madness to deny the living God, and to pursue "paths of wisdom"
other than His, for all of His only lead to truth, and all other of
alternate "wisdom" leads only to eternal Hellfire.
 
Even for those who cannot see this now, on the great day of judgment
they will know, and this testimony will be before all of their eyes,
and it will ring the word of truth they'll then know before their
life as a witness against them, for the truth was spoken to them, and
yet they denied it.
 
-----
These words of Christ will either lead to absolute salvation of a
person's eternal soul, or it will lead to testimony in their judgment.
In either way, these words are affecting every person's soul for all
of eternity. It is only the fool who will reject them, turn their
back on Jesus Christ, and purposefully dive headlong into Hellfire's
flames. Only the fool.
 
All who are wise will take heed of these words and ask forgiveness
and receive salvation for free.
 
I reach out to reach the wise, Öö Tiib, not to reach the foolish.
 
Thank you,
Rick C. Hodgin
"Öö Tiib" <ootiib@hot.ee>: Oct 16 02:06PM -0700

On Monday, 16 October 2017 22:03:24 UTC+3, Rick C. Hodgin wrote:
 
> > * How many pupils have you made with such abusive behavior during
> > all those years?
 
> None that I am aware of.
 
What is wrongly then? Christian faith is (as I have read) among most
popular and accepted on the planet of ours.
 
 
> It is madness to deny the living God, and to pursue "paths of wisdom"
> other than His, for all of His only lead to truth, and all other of
> alternate "wisdom" leads only to eternal Hellfire.
 
I did not suggest you to deny your God. All what I tried to tell
with those questions was that you have to respect other people
in order to expect them to listen you.
 
> I reach out to reach the wise, Öö Tiib, not to reach the foolish.
 
My impression is that all wise people have kill-filed you (because
of your repulsive behavior). Only few fools who have nothing better
to do like me read you now and then.
 
That can not be fault of Jesus nor those people.
Vir Campestris <vir.campestris@invalid.invalid>: Oct 16 09:30PM +0100

On 15/10/2017 21:17, Vir Campestris wrote:
 
> I've fixed the one class where I could prove it was causing problems.
> (now all are weak_ptr, shared_ptr, or reference) The rest will have to
> wait.
 
I've now discovered it's a coding style problem (and I'm not the only
one to have been confused!)
 
There's a class right down there....>>> at the bottom of the hierarchy
with a member that reads something like this:
 
template <typename T> std::shared_ptr shared_ptr(T* foo)
{
return foo->shared_from_this();
}
 
Andy
ram@zedat.fu-berlin.de (Stefan Ram): Oct 16 06:47PM

>That seems corrupt; C++ does not support identifiers that start
>with digits, like 6829_my_block_cc.
>If you remove each "6829_", then it looks more sensible,
 
Yes. But (not in the source code of the OP, but in the
general case) »6829_my_block_cc« also could be a
user-defined kind of a literal, which can be used similarly
to an identifier.
 
main.cpp
 
#include <iostream>
 
int a_value = 17;
 
constexpr double operator ""_value( unsigned long long const n ){ return 18; }
 
int main()
{ ::std::cout << a_value << '\n';
::std::cout << 2_value << '\n'; }
 
transcript
 
17
18
 
PS: Some parts of the Keyword-header of your post
do not seem to apply to the contents of your post.
Kalle Olavi Niemitalo <kon@iki.fi>: Oct 16 08:50PM +0300

> class my_block_cc;
> typedef boost::shared_ptr<6829_my_block_cc> 6829_my_block_cc_sptr;
> 6829_my_block_cc_sptr 6829_make_my_block_cc();
 
That seems corrupt; C++ does not support identifiers that start
with digits, like 6829_my_block_cc.
If you remove each "6829_", then it looks more sensible,
and the function you asked about becomes a constructor.
 
http://zoo.cs.yale.edu/classes/cs434/cs434-2012-fall/lectures/backup/6-gnuradio-jh.ppt
page 25 contains similar code, except it uses "cs434_" instead of "6829_".
That code doesn't work either.
fl <rxjwg98@gmail.com>: Oct 16 08:19AM -0700

Hi,
 
I know a class definition in general. When I see the below code snippet,
it is found there is a modification: 'MY_MODULE_API' after class keyword.
What is this thing?
 
Thanks in advance
 
 
 
 
 
 
 
//////////////
namespace gr {
namespace my_module {
 
/*!
* \brief <+description of block+>
* \ingroup my_module
*
*/
class MY_MODULE_API cognitive : virtual public gr::block
{
public:
typedef boost::shared_ptr<cognitive> sptr;
 
/*!
* \brief Return a shared_ptr to a new instance of my_module::cognitive.
*
* To avoid accidental use of raw pointers, my_module::cognitive's
* constructor is in a private implementation
* class. my_module::cognitive::make is the public interface for
* creating new instances.
*/
static sptr make();
};
 
} // namespace my_module
} // namespace gr
 

No comments: