Sunday, March 4, 2018

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

"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Mar 04 04:35PM +0100

Mr. Flibble was right, I realized the name was too misleading.
 
That realization came now half a year /after/ publishing an article
about it.
 
Anyway, it's <url: https://github.com/alf-p-steinbach/Wrapped-stdlib> now.
 
 
Cheers!,
 
- Alf
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 04 03:57PM

On 04/03/2018 15:35, Alf P. Steinbach wrote:
 
> That realization came now half a year /after/ publishing an article
> about it.
 
> Anyway, it's <url: https://github.com/alf-p-steinbach/Wrapped-stdlib> now.
 
I never say I told you so but I told you so.
 
"stdwrap" would be a better name IMO. :)
 
/Flibble
Daniel <danielaparker@gmail.com>: Mar 04 10:57AM -0800

On Sunday, March 4, 2018 at 10:57:36 AM UTC-5, Mr Flibble wrote:
> On 04/03/2018 15:35, Alf P. Steinbach wrote:
 
> > Anyway, it's <url: https://github.com/alf-p-steinbach/Wrapped-stdlib> now.
 
> "stdwrap" would be a better name IMO. :)
 
Or possibly, stdwrp, for symmetrical dropping of vowels.
Pvr Pasupuleti <pvr.ram34@gmail.com>: Mar 04 09:30AM -0800

https://unacademy.com/course/part-2-concepts-of-c/1QC9XROZ
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 03 05:20PM -0800

On Saturday, March 3, 2018 at 6:20:30 PM UTC-5, Daniel wrote:
> On Saturday, March 3, 2018 at 7:23:15 AM UTC-5, Rick C. Hodgin wrote:
 
> > The Law is still in effect ... for all who are not under Grace.
 
> Please justify that exemption by citing statements attributed to
Jesus in the texts.
 
The woman caught in adultery. The Law demanded she (and her male partner)
be stoned to death, but Jesus showed her Grace and Mercy:
 
https://www.biblegateway.com/passage/?search=John+8%3A1-11&version=KJV
 
4 They say unto him, Master, this woman was taken in adultery,
in the very act.
5 Now Moses in the law commanded us, that such should be stoned:
but what sayest thou?
7b ... he ... said unto them, He that is without sin among you, let
him first cast a stone at her.
9 And they which heard it, being convicted by their own conscience,
went out one by one, beginning at the eldest, even unto the last:
and Jesus was left alone, and the woman standing in the midst.
10 When Jesus had lifted up himself, and saw none but the woman,
he said unto her, Woman, where are those thine accusers?
hath no man condemned thee?
==> 11 She said, No man, Lord. And Jesus said unto her, Neither
==> do I condemn thee: go, and sin no more.
 
And many other forgiven sins, for Jesus had authority to forgive sin
on Earth:
 
https://www.biblegateway.com/passage/?search=Matthew+9%3A6&version=KJV
 
6 But that ye may know that the Son of man hath power on
earth to forgive sins, (then saith he to the sick of the
palsy,) Arise, take up thy bed, and go unto thine house.
 
We learn the pattern of Christ's one-time human blood sacrifice,
being sprinkled on the mercy seat in Heaven, by studying the pattern
God gave Israel for their sacrifices ... and then in the rest of the
New Testament you learn from those prescribed by God to write our Bible
the details of the application of Grace, and how it works mechanically,
and spiritually. The blood of bulls were temporary appeasements,
a precursor foreshadowing of what Christ would do once and for all time.
 
It's there before you, Daniel. Stop being hostile toward it, and
approach the teachings of God as a little child and you will find it.
 
--
Rick C. Hodgin
Daniel <danielaparker@gmail.com>: Mar 03 05:28PM -0800

On Saturday, March 3, 2018 at 8:20:40 PM UTC-5, Rick C. Hodgin wrote:
 
> > Please justify that exemption by citing statements attributed to
> Jesus in the texts.
 
> The woman caught in adultery.
 
I don't think that story makes your point. It ends with "go, and sin no more", or in other words, from now on, follow the law. Do you follow the old Judaic law, Rick?
 
Daniel
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 03 05:46PM -0800

On Saturday, March 3, 2018 at 8:29:29 PM UTC-5, Daniel wrote:
 
> > The woman caught in adultery.
 
> I don't think that story makes your point. It ends with "go,
> and sin no more",
 
It ends with, "Neither do I condemn you. Go, and sin no more."
 
> or in other words, from now on, follow the law.
 
We are to obey His commands, but it's no longer for religious reasons,
as by the Law, but for this reason (at 28:29):
 
https://www.youtube.com/watch?v=XrbqVkoJa_s&t=28m29s
 
He explains why God gave us the Law, why He cursed the ground for our
sake. He's given us rigors to focus on to keep our attention on Him,
for if we lived as Adam and Eve did in the Garden of Eden before sin,
with nothing to terminate our physical bodies, no labor, no strife
or struggle, we would sit in idleness inventing ways to do new evil,
as we do in our modern world of convenience, even as history demonstrates
that man needs no additional encouragement to sin.
 
> Do you follow the old Judaic law, Rick?
 
I follow the guidance of the Holy Spirit, which is in agreement
with love ... love for God, love for man, and applications of that
love in our lives ... ie, you will see such fruit in all born again
believers as a general pattern of life.
 
--
Rick C. Hodgin
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Mar 03 06:48PM -0800

On 3/3/2018 5:46 PM, Rick C. Hodgin wrote:
 
>> I don't think that story makes your point. It ends with "go,
>> and sin no more",
 
> It ends with, "Neither do I condemn you. Go, and sin no more."
 
[...]
 
How many chances does she get before #$%^ hits the fan? I think I
actually read a number. Is it 70*7 times?
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 04 06:06AM -0800

On Saturday, March 3, 2018 at 9:49:01 PM UTC-5, Chris M. Thomasson wrote:
 
> [...]
 
> How many chances does she get ... ? I think I
> actually read a number. Is it 70*7 times?
 
Go to a local church and ask the people there. You'll find they're
pleasant, friendly, and helpful.
 
--
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 04 04:37PM

On 04/03/2018 14:06, Rick C. Hodgin wrote:
>> actually read a number. Is it 70*7 times?
 
> Go to a local church and ask the people there. You'll find they're
> pleasant, friendly, and helpful.
 
Every time you evade answering a direct question it speaks volumes about
the credibility of both yourself personally and what you write about.
 
So, answer the question. How many chances do you get?
 
/Flibble
 
--
"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>: Mar 04 09:30AM -0800

On Sunday, March 4, 2018 at 11:38:09 AM UTC-5, Mr Flibble wrote:
 
> Every time you evade answering a direct question it speaks volumes about
> the credibility of both yourself personally and what you write about.
 
> So, answer the question. How many chances do you get?
 
You don't care to hear the true response, Leigh. You and Stephen
Fry have it all figured out.
 
Go with what you believe. Demand answers that only give responses
framed in your dictate. See how much truth you find there in that
house of your own making.
 
> 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."
 
The answer Chris seeks is not an answer that can be given without
first correcting the underlying error in understanding which led to
the question being asked in the first place. We're back to:
 
"When you spread peanut butter on bread, Rick, what do
you do with the shells? Do you recycle them?"
 
In order to seek the truth, the baseline understanding must be corrected
so the questioner himself/herself will see the error of the question
and withdraw it, as the understanding lends the true question, and
the true answer, without the need to even ask.
 
--
Rick C. Hodgin
Pvr Pasupuleti <pvr.ram34@gmail.com>: Mar 04 09:30AM -0800

https://unacademy.com/course/part-2-concepts-of-c/1QC9XROZ
wyniijj@gmail.com: Mar 04 12:56AM -0800

libwy-0.53 is released:
https://sourceforge.net/projects/cscall/
 
For many in this forum, I'd say libwy features building from clib
calls, not using "std::" (except few). libwy is basically a
'wrapper' library, but don't be fooled by the word.
 
Firstly, because many subjects(inappropriate) had previously issued
about the One Religion in this forum. I'm going to start from this
point, because of the similarity.
There actually had been many religions developed in the world since
the written history. From where I live, many religious beliefs are
associated with, or derived from Budism. Honestly, I do not know
which is which. As to Christianity, a statistics I saw there could
be up to 5000 varieties in the world(or US alone, 20 years ago).
Now I just simply tell myself that nearly every church or temple have
their own "interpretation", quiet difference, but some of which differ
so much so as has to announce as a new branch... The problem might
have been so risen because the bible says Jehovah says He is the only
one true God... (and the strange thing I recall is that the old
testament says He protects jews from its enemy... suggesting every one
not jew might be what's protected against, but latter comes the new
(2nd)testament says God can turn stones into jews...?)
But History, Truth is so strange, beyond human/my/your comprehension,
there might even be no Truth/History at all.
On the other hand, as I know of, Buddha or Muhammad did not said so.
...As to me, God is merely The Mother Nature, we don't need say much.
Proof(just touches it): The timespan of human from ape is probably 200
thousand years, which is 1 of 20,000th of the earth history. If Nature
decides to change the earth or History, minor task. Religion or
civilization is very trivial in It.
 
So back to the subject. "std::" is your God. libwy is a naturally
humbly born library from history for programs migrating from C to
C++ (it has been a "C++ library" for many years). Though many
deficiency exist due to, mostly lack of man power and requirements.
For beginners, the common saying is that C++ is easier than C. But that
is what those simple codes want you to believe. As you read or know
more or need more, it (using standard library) quickly becomes a monster.
Have you ever read the wording "no one really understand C++"?
Because most underlying stuff of libwy are POSIX things. If you really
don't like what libwy presented, only half of your time can be wasted.
For experienced C++ programmer, appreciate your review and opinions.
You can see libwy as a way to accumulate experience for what a C++
library should be or should have from users.
 
Finally, I do not strongly persuade you to rely your project on it.
Small projects are OK. libwy is relatively small. It's easy to modify
for particular needs or mix with other "C++ library".
woodbrian77@gmail.com: Mar 04 07:58AM -0800

> libwy-0.53 is released:
> https://sourceforge.net/projects/cscall/
 
I tried downloading several versions of your software,
but got this: "Oh snap! We can't process this request."
 
 
> one true God... (and the strange thing I recall is that the old
> testament says He protects jews from its enemy... suggesting every one
> not jew might be what's protected against,
 
Moses led a mixed multitude out of Egypt.
Who Were the "Mixed Multitude"?
http://www.israelnationalnews.com/Articles/Article.aspx/16386
 
The book of Ruth is about a Moabite woman who chose to
worship the G-d of Abraham, Isaac and Israel.
 
G-d's protection has been and continues to be on those
who follow Him. "The Name of the L-RD is a strong tower;
the righteous run to it and are protected." Proverbs 18:10
 
> but latter comes the new
> (2nd)testament says God can turn stones into jews...?)
 
G-d made man from dirt/clay.
 
> But History, Truth is so strange, beyond human/my/your comprehension,
> there might even be no Truth/History at all.
 
I have a history and so do you. Your family has a
history and so does mine.
 
 
 
Brian
Ebenezer Enterprises - Enjoying programming again.
http://webEbenezer.net
woodbrian77@gmail.com: Mar 04 08:50AM -0800

> > https://sourceforge.net/projects/cscall/
 
> I tried downloading several versions of your software,
> but got this: "Oh snap! We can't process this request."
 
I just tried again and was able to get it.
Ian Collins <ian-news@hotmail.com>: Mar 04 03:54PM +1300

On 03/04/2018 10:03 AM, bartc wrote:
 
> If you can see the whole function in an editor window, then there is no
> need to make it any smaller unless that are other considerations for
> doing so.
 
There are other considerations, a very important one being ease of
testing. The longer a function becomes:
 
- The harder it is to test
- You need many more test cases, the growth is a non-linear
function of the line length.
- You end up with testable functionality buried in the function.
- You end up with reusable functionality buried in the function.
 
These effects and others are why you seldom see long functions in test
driven code.
 
 
> I can't imagine anything more exasperating than thousands of tiny
> functions so that have you have to keep chasing calls all over the
> source to help build a picture of what the code is supposed to be doing.
 
Very few (unless you are writing Java...) call trees have "thousands of
tiny functions". Like Richard, I much prefer seeing code like
 
void f()
{
getSomething();
 
processSomething()
 
sendSomething();
}
 
or
 
void f( Value n )
{
switch( n )
{
case A:
processA();
break;
 
case B:
processB();
break;
 
case C:
processC();
break;
}
}
 
Than seeing all of the guts in one place. If I want to get an overview
I can quickly do so and if I want to drill down, I can. The important
thing is I have a choice.
 
This style of code is much easier to write in C++ than it is in C, which
might be why someone coming from a C background isn't used to seeing it.
 
--
Ian
Ian Collins <ian-news@hotmail.com>: Mar 04 03:54PM +1300

On 03/03/2018 01:17 AM, JiiPee wrote:
>> If you used a goto in my team, you would probably end up wearing a
>> road code on your head for the week!
 
> even using goto in the above example?
 
Yes.
 
--
Ian.
Ian Collins <ian-news@hotmail.com>: Mar 04 03:56PM +1300

On 03/04/2018 02:33 AM, JiiPee wrote:
> But reducing repetion inside a function I found lambdas do a good job as
> you can place them also inside the function and near your code and they
> are easy to make.
 
Localised error handling is an excellent use case for lambdas, just take
care not to overuse them!
 
--
Ian
legalize+jeeves@mail.xmission.com (Richard): Mar 04 05:10AM

[Please do not mail me a copy of your followup]
 
Ian Collins <ian-news@hotmail.com> spake the secret code
 
>This style of code is much easier to write in C++ than it is in C, which
>might be why someone coming from a C background isn't used to seeing it.
 
Bingo. C++'s ability to define abstractions at zero runtime cost are
why you can do this reasonably in C++, but not in C.
--
"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>
Gareth Owen <gwowen@gmail.com>: Mar 04 09:36AM


> There are other considerations, a very important one being ease of
> testing. The longer a function becomes:
 
> - The harder it is to test
 
Hmmm. I'm not sure I agree with this. When testing a function, the
only thing I need to know are the pre-conditions and post-conditions.
Any properties of the implementation (function length, multiple
exit-points, modularity, use of sub-routines, dependence on external
libraries)
 
Indeed, if we write our tests first, how can the test suite possibly
depend on the function length?
 
Rather, everything you say applies to functions that only have a small
number of pre/post-conditions (i.e. *simple* functions, rather than
short [although we expect these to correlate pretty strongly, especially
if the language is sufficiently expressive (i.e. not C)]).
 
Of course, modularity makes it easier to test sub-components during
development...
JiiPee <no@notvalid.com>: Mar 04 03:31PM

On 04/03/2018 02:56, Ian Collins wrote:
>> are easy to make.
 
> Localised error handling is an excellent use case for lambdas, just
> take care not to overuse them!
 
I use lambdas also inside a function if there is repetition (even maybe
2-3 repetitions). I dont like to repeat things :)
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 04 04:51AM

Simplified the inline code specification of texture images (useful for
colourisable pixel perfect widget parts) in "neoGFX" my upcoming C++
game/app creation library and framework.
 
const char* spaceshipSpriteImagePattern
{
"[9,9]"
"{0,paper}"
"{1,ink1}"
"{2,ink2}"
 
"000010000"
"000121000"
"000121000"
"001222100"
"001222100"
"011222110"
"010111010"
"010000010"
"010000010"
};

auto& spaceshipSprite = spritePlane->create_sprite(
ng::image{
spaceshipSpriteImagePattern,
{ { "paper", ng::colour{} }, { "ink1", ng::colour::LightGoldenrod },
{ "ink2", ng::colour::DarkGoldenrod4 } } });
 
 
/Flibble
 
--
"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."
Gareth Owen <gwowen@gmail.com>: Mar 04 09:39AM

> game/app creation library and framework.
 
> const char* spaceshipSpriteImagePattern
> {
 
Reminds me very much of old-school XPM files (not a criticism, just an
observation).
 
https://www.fileformat.info/format/xpm/egff.htm#XPM-DMYID.2
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 03 05:51PM -0800

On Saturday, March 3, 2018 at 2:10:46 PM UTC-5, Rick C. Hodgin wrote:
> By the grace of God it is true that 2+2=5.
 
 
I, the real Rick C. Hodgin, did not write this post.
 
Please examine the headers to see that there is someone usurping my
identity (and without my permission). I post from Eternal September
and Google Groups only.
 
--
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 03 04:58PM -0800

On Saturday, March 3, 2018 at 5:54:29 PM UTC-5, Chris M. Thomasson wrote:
 
> Let me see it now... You grab me and shake me around, I retaliate, then
> you blame me for assault.
 
> What a joke. ;^o
 
That "whooshing" sound you heard, that was the proper understanding
of my statement going right past you. You've squarely missed it.
 
--
Rick C. Hodgin
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: