Sunday, July 31, 2016

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

Mark <ma740988@gmail.com>: Jul 31 10:26AM -0700

Consider:
 
# include <iostream>
# include <cstring >
 
template < size_t Rows, size_t Cols, typename ElemType = double >
class TestMatrix
{
public :
ElemType elems[Rows ] [ Cols ];
 
//ElemType elems[Rows * Cols ];
};
 
class Foo
{
static const TestMatrix < 2, 2 > test ;
static const unsigned int val[2][2]; // Specify all dimensions.
public :
Foo () ;
};
 
 
Foo::Foo()
{
 
}
 
// works C style for multi-dimensional
const unsigned int Foo::val[][2] = { { 0, 1 } , { 2, 3 } };
 
const TestMatrix < 2, 2 > Foo::test =
{ { 0.1, 1.1 } , { 2.2, 3.2 } };
 
 
int main()
{
 
}
 
The compiler I'm using has no C++11 support, that said, how can I initialize the static const test member within Foo? Unclear why the initialization of test fails when the TestMatrix effectively mimics the c-style approach to a multi-dimensional array
 
Thanks in advance
red floyd <no.spam.here@its.invalid>: Jul 31 01:34PM -0700

On 7/31/2016 10:26 AM, Mark wrote:
 
> }
 
> The compiler I'm using has no C++11 support, that said, how can I initialize the static const test member within Foo? Unclear why the initialization of test fails when the TestMatrix effectively mimics the c-style approach to a multi-dimensional array
 
> Thanks in advance
 
If all you have is C++03 support, then provide a constructor that takes
an N by M array
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jul 31 04:03AM -0700

On Saturday, July 30, 2016 at 12:29:04 PM UTC-4, JiiPee wrote:
> > not appropriate.
 
> Even though am a christian, i kind of agree that C++ forum is not a
> place to start religious arguments :)
 
I don't argue or debate with people. I teach them. I teach the truth
about sin, their nature, eternity and eternal life, and their need for
a savior (Jesus Christ) to pay the price of their sin for them, so that
they are set free from the punishment of sin.
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jul 31 04:06AM -0700

On Saturday, July 30, 2016 at 10:39:06 AM UTC-4, Öö Tiib wrote:
> If there is God then He will not thank you for that imago.
 
There is a God. Jesus Christ is God in the flesh. Why flesh when we can't
see God? Because He came here to save us. He came to here to give us a way
out of the punishment required by God for sin.
 
Jesus told us the world would hate us. He told us that they would kill us
even. It's no surprise that many are offended by the gospel message because
many people are not going to be saved (because they will not be saved).
 
Best regards,
Rick C. Hodgin
"Öö Tiib" <ootiib@hot.ee>: Jul 31 09:42AM -0700

On Sunday, 31 July 2016 14:07:06 UTC+3, Rick C. Hodgin wrote:
> On Saturday, July 30, 2016 at 10:39:06 AM UTC-4, Öö Tiib wrote:
> > If there is God then He will not thank you for that imago.
 
> There is a God.
 
Ok, then be prepared to meet His endless forgiveness for being such an
arse of a person.
 
> Jesus told us the world would hate us. He told us that they would kill us
> even. It's no surprise that many are offended by the gospel message because
> many people are not going to be saved (because they will not be saved).
 
You misunderstood John 15. May be you did not even read it. Lot of idiots
like you are too impatient to read the Book. They think it is like license
agreement, scroll to end and press yes and you are forgiven and in heaven.
 
Jesus told in John 15 that people will hate you because they hate Him and
His Father. That may well be. However on current case you make people to
hate you because of being annoying self-centered asshole. That has nothing
to do with Jesus. That wasn't what Jesus suggested you to be at first place.
"Öö Tiib" <ootiib@hot.ee>: Jul 31 09:45AM -0700

On Sunday, 31 July 2016 14:03:40 UTC+3, Rick C. Hodgin wrote:
 
> > Even though am a christian, i kind of agree that C++ forum is not a
> > place to start religious arguments :)
 
> I don't argue or debate with people. I teach them.
 
No, you annoy people. We try to forgive you that sin because we understand
that you are self-centered idiot and can't help yourself.
Good Guy <hello.world@example.com>: Jul 31 04:31AM +0100

Some of you here would benefit from attending this webinar:
 
<http://community.embarcadero.com/blogs?view=entry&id=8637>
 
All the experts are there to answer all your questions and you can also
get a free license
<https://www.embarcadero.com/app-development-tools-store/cbuilder> for
your own copy of C++ Builder.
 
 
 
 
--
With over 350 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.
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.

Saturday, July 30, 2016

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

"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jul 29 07:26PM -0700

The Problem with Christianity:
 
Ken Ham lays out the problem with Christianity very very clearly:
 
https://www.youtube.com/watch?v=KUdBBH7bRoY&t=14m6s
 
Best regards,
Rick C. Hodgin
Christian Gollwitzer <auriocus@gmx.de>: Jul 30 07:17AM +0200

Am 30.07.16 um 04:26 schrieb Rick C. Hodgin:
> The Problem with Christianity:
 
> Ken Ham lays out the problem with Christianity very very clearly:
 
> https://www.youtube.com/watch?v=KUdBBH7bRoY&t=14m6s
 
I think the best description of its problems can be found here:
 
https://www.youtube.com/watch?v=8r-e2NDSTuE
 
Christian
"J. Clarke" <j.clarke.873638@gmail.com>: Jul 30 06:10AM -0400

In article <nnhd8m$ihi$1@dont-email.me>, auriocus@gmx.de says...
 
> I think the best description of its problems can be found here:
 
> https://www.youtube.com/watch?v=8r-e2NDSTuE
 
> Christian
 
The biggest problem with Christianity is morons who give it a bad name
by constantly bringing it up in venues where discussion of religion is
not appropriate.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jul 30 04:57AM -0700

On Saturday, July 30, 2016 at 6:11:11 AM UTC-4, J. Clarke wrote:
> The biggest problem with Christianity is morons who give it a bad name
> by constantly bringing it up in venues where discussion of religion is
> not appropriate.
 
There are no inappropriate venues, J. Clarke. Everyone who has rejected the
truth will come to this knowledge as the first thing they're aware of
happening immediately after death, because they will go to sleep, and then
be summoned by name to appear before God and give an account of their life.
 
At that point, everyone will know the truth. People will see God, see
Heaven, see eternity, and they will want it because it really is glorious.
But, because they were not forgiven by Jesus Christ, their sin debt remains,
and their name was not written down in the Lamb's Book of Life. As such,
they will be cast headlong into the burning lake of fire:
 
http://biblehub.com/kjv/revelation/20-15.htm
"And whosoever was not found written in the book of life was cast into
the lake of fire."
 
J. Clarke, Christians speak these things to people to warn them. When a
person is not actively seeking after truth, God, the Bible, a personal
relationship with Jesus Christ, there is another spirit here on this Earth
who is more than willing to step in and guide you falsely. As such, that
spirit asserts itself in your life and you begin to take on that spirit's
thinking, beliefs, etc. But that spirit is the spirit of the anti-Christ,
and it is an enemy of God, and of you.
 
It becomes so pervasive that when someone like me speaks about the things
of the Bible, they are immediately ridiculed and cast negatively in people's
thinking. The person who does not seek after Jesus Christ sees no need or
value in doing so, because that enemy spirit has been teaching them alternate
ways which do not require those things. However, that non-requirement is
only focused here on the flesh, and not on the eternal needs of our soul and
our eternal life.
 
To be clear, it's an attack against you by that enemy who uses the limited
form of our fallen-in-sin nature here upon this Earth (our flesh only) to
leverage our reason, our thinking, our feelings against the things of God.
That enemy does this because he's an enemy.
 
What Jesus Christ did coming to this Earth was to undo the work of the enemy,
and to make it possible for us to, once again, know God, and walk with God,
even here in this fallen world.
 
I come forward, and other Christians come forward, to teach you these things,
so that you won't be deceived, so that you'll have the opportunity to hear
and know the truth.
 
If your pursue the truth, it won't be me or any other Christian who teaches
you these things, but God Himself will assert knowledge of them within your
very soul. You will hear things from me and others, and you, on your own,
by His gift to you in your inmost man, will know the truth of what I say.
 
But for those who are not seeking the truth, they will never come to know
this information as it will be forever hidden from them, only because they
would not seek or hear the truth, but were content to believe the lie, so
God gave them what they were in pursuit of after many attempts to reach
them.
 
Do not be so quick to dismiss what I'm teaching you, J. Clarke. You owe it
to yourself, your family, your friends, co-workers, neighbors, to seek out
the truth for yourself, and to prove it to yourself one way or the other.
 
My words point you to Jesus Christ and the Bible. There you will find truth
in all its Earthly glory for us to come to a saving knowledge of Jesus
Christ, and the recognition that we are here upon this Earth for but a tick
of the clock, and then eternity begins.
 
Our goals are far better suited considering eternity first, then the needs
of the things of this world second, because the things of eternity endure,
and the things of this world are temporal, which means the purpose of our
goals here upon this Earth are to come to a saving knowledge of Jesus Christ,
so that we can be part of that eternity in a state reconciled rightly with
God, rather than being still in enmity with Him.
 
It's the best offering Jesus Christ has to give you, and the best offering
I have to give you: pointing you to Him for salvation, and eternal life.
And it's free for the taking ... all you have to do is come to Him and ask
Him to forgive you, and He will:
 
http://www.libsf.org/misc/love.html
 
Best regards,
Rick C. Hodgin
"Öö Tiib" <ootiib@hot.ee>: Jul 30 07:38AM -0700

On Saturday, 30 July 2016 14:57:47 UTC+3, Rick C. Hodgin wrote:
> > by constantly bringing it up in venues where discussion of religion is
> > not appropriate.
 
> There are no inappropriate venues, J. Clarke.
 
Most people know that they are about as good as others so they listen
to opinions of others. They see that they are weak, ignorant and
fallible.
 
However there are also morons who do think they are better than others,
always knowledgeable, always correct and may do what they want to and
do not need to listen to others. They think that others must listen to
them. There are no inappropriate venues for those rude morons.
 
Other people consider them repulsive, Rick. If there is God then He
will not thank you for that imago.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jul 30 08:19AM -0700

On Saturday, July 30, 2016 at 10:39:06 AM UTC-4, Öö Tiib wrote:
> them. There are no inappropriate venues for those rude morons.
 
> Other people consider them repulsive, Rick. If there is God then He
> will not thank you for that imago.
 
There is a God. He has commanded us to go forth and teach and make
disciples. This is not an "I'll be over here with a sign. If any of
you, on your own, decide that you too want to follow Jesus, then I'll
be here waiting for you" type of endeavor.
 
Christianity is active. We teach people the truth. We warn them of
sin and the consequences of sin. We do this so they too can come to
know the truth, repent of their sin, ask forgiveness, and be saved.
 
That is all.
 
Best regards,
Rick C. Hodgin
JiiPee <no@notvalid.com>: Jul 30 05:28PM +0100

On 30/07/2016 11:10, J. Clarke wrote:
> The biggest problem with Christianity is morons who give it a bad name
> by constantly bringing it up in venues where discussion of religion is
> not appropriate.
 
Even though am a christian, i kind of agree that C++ forum is not a
place to start religious arguments :)
David Brown <david.brown@hesbynett.no>: Jul 30 12:34AM +0200

On 29/07/16 16:41, Jerry Stuckle wrote:
> comfortable pensions.
 
> And they don't think it's dull at all. But who are they do judge - they
> only do it 40 hours a week.
 
People are willing to do /very/ dull jobs for 40 hours a week for good
salaries, a safe position, and a comfortable pension. In fact, those
are the sorts of compensations you need to provide in order to get
someone to do a job that requires skill, intelligence, education, and
responsibility - but is incredibly dull.
 
I have never had the "pleasure" of programming in COBOL, so I can't
judge if it really is dull or not. But your description here of COBOL
programmers does nothing to dispel the common view of COBOL's dullness.
Jerry Stuckle <jstucklex@attglobal.net>: Jul 29 08:01PM -0400

On 7/29/2016 6:34 PM, David Brown wrote:
 
> I have never had the "pleasure" of programming in COBOL, so I can't
> judge if it really is dull or not. But your description here of COBOL
> programmers does nothing to dispel the common view of COBOL's dullness.
 
You seem to be an expert in /very/ dull jobs - despite your lack of
experience in COBOL.
 
Yes, the common view of those who don't know COBOL is that it's dull.
Those who have programmed in it know better. It's no more or less dull
than C or any other programming language.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
"J. Clarke" <j.clarke.873638@gmail.com>: Jul 30 06:07AM -0400

In article <78d5c206-6717-48eb-8d92-dd029c52b329@googlegroups.com>,
woodbrian77@gmail.com says...
 
> How to explain the lower turnover rate for such
> a dull language like COBOL? I'm not sure which
> is worse Java or COBOL.
 
Because professionals work in the language that does what is needed, not
the language that is "exciting". COBOL may be "dull" but it runs
immense businesses.
Good Guy <hello.world@example.com>: Jul 30 05:08AM +0100

For those interested in a free download of C++ Builder starter Edition
then use this link:
 
<https://www.embarcadero.com/app-development-tools-store/cbuilder>
 
Scroll down and you will see the ICON that looks like this:
 
Download Icon
<http://content.screencast.com/users/JT19560819/folders/Jing/media/cc2cc54b-cb0c-4286-960d-cb4f3fa9f20f/2016-07-30_0505.png>
--
With over 350 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.
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.

Friday, July 29, 2016

Fwd: Share with you have a nice day



Sent from my iPad

Begin forwarded message:

From: Lu Pao-ching <pda6666@gmail.com>
Date: July 13, 2016 at 9:31:27 AM CDT
To: undisclosed-recipients:;
Subject: Share with you have a nice day

2016年最佳中文組詞能力:
      "錢是沒有問題 」 就這六個字的組詞成句,可以變成不同意思的句子!哈哈,偉大的中文能力!
  錢是沒有問題
  問題是沒有錢
  有錢是沒問題
  沒有錢是問題
  問題是錢沒有
  錢沒有是問題
  錢有沒有問題 
  是有錢沒問題
  是沒錢有問題
  是錢沒有問題
  有問題是沒錢
  沒問題是有錢
  沒錢是有問題
  太有趣了!

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

Jerry Stuckle <jstucklex@attglobal.net>: Jul 28 09:09PM -0400

On 7/28/2016 2:06 PM, Mr Flibble wrote:
 
Nothing of interest.
 
But he has proven time and time again to be nothing better than a troll
- and a stoopid (but entertaining in his own way) one at that.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
woodbrian77@gmail.com: Jul 28 09:04PM -0700

On Thursday, July 28, 2016 at 1:06:55 PM UTC-5, Mr Flibble wrote:
woodbrian77@gmail.com: Jul 28 09:34PM -0700

On Tuesday, July 26, 2016 at 11:35:12 AM UTC-5, Jerry Stuckle wrote:
 
> And there are many compilers which do NOT support #pragma once - I use
> some on embedded systems. And these are popular compilers in their
> market.
 
What compilers? I'd like to check if the developers
of the compilers are planning to support #pragma once.
 
 
Brian
Ebenezer Enterprises - In G-d we trust.
http://webEbenezer.net
red floyd <no.spam@its.invalid>: Jul 29 11:00AM -0700

> On Thursday, July 28, 2016 at 1:06:55 PM UTC-5, Mr Flibble wrote:
 
Fuck off.
Good Guy <hello.world@example.com>: Jul 29 02:06PM -0400

>> <NOTHING>
 
So Is it all right to swear in the body of the message?
 
--
With over 350 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.
woodbrian77@gmail.com: Jul 29 01:08PM -0700

On Friday, July 29, 2016 at 1:08:31 PM UTC-5, Good Guy wrote:
> On 29/07/2016 05:04, woodbrian77@gmail.com wrote:
> >> <NOTHING>
 
> So Is it all right to swear in the body of the message?
 
Previously I've asked people not to swear in the body of messages.
 
 
Brian
Ebenezer Enterprises - "I dare not trust the sweetest frame,
but wholly lean on Yeshua's/Jesus' Name."
 
http://webEbenezer.net
Good Guy <hello.world@example.com>: Jul 29 09:14PM +0100


> Previously I've asked people not to swear in the body of messages.
 
I think this is a very good idea. How people started swearing on these
newsgroups is beyond me but I am a Good Guy and people in Windows
newsgroups knows me. They all like reading my posts.
 
 
--
 
If you want to filter all of my posts then please read this article:
<https://support.mozilla.org/en-US/kb/organize-your-messages-using-filters>
In step 7 select "Delete"
 
With over 350 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.
Jerry Stuckle <jstucklex@attglobal.net>: Jul 29 04:17PM -0400

On 7/29/2016 4:14 PM, Good Guy wrote:
> In step 7 select "Delete"
 
> With over 350 million devices now running Windows 10, customer
> satisfaction is higher than any previous version of windows.
 
People swear when they aren't able to make an intelligent post. It
makes them feel like a big person.
 
To other people they are just small-minded.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Lynn McGuire <lmc@winsim.com>: Jul 28 08:10PM -0500

On 7/28/2016 2:28 PM, jacobnavia wrote:
 
>> Lynn
 
> Interesting
 
> Nobody commented on why C++ went from the third to the fourth place.
 
The wild thing that nobody commented on was Go at #10 spot.
 
Lynn
Jerry Stuckle <jstucklex@attglobal.net>: Jul 28 09:17PM -0400

On 7/27/2016 5:50 PM, Lynn McGuire wrote:
 
> "C is No. 1, but big data is still the big winner"
 
> Where is Fortran ?
 
> Lynn
 
The problem here is their sampling is flawed. For instance, they don't
look at large enterprises which typically have a low turnover rate and
when they are looking for programmers, use headhunters.
 
As a good example, approximately 5 billion lines of COBOL are written
each year (https://cis.hfcc.edu/faq/cobol). But the list doesn't even
show COBOL.
 
Looking at the number of jobs, etc. is a good way to check for job
openings - but due to the difference in turnover rates (i.e. C
programmers have a much higher turnover rate than COBOL programmers) is
not a good measurement.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
woodbrian77@gmail.com: Jul 28 08:56PM -0700

On Thursday, July 28, 2016 at 8:17:09 PM UTC-5, Jerry Stuckle wrote:
> openings - but due to the difference in turnover rates (i.e. C
> programmers have a much higher turnover rate than COBOL programmers) is
> not a good measurement.
 
How to explain the lower turnover rate for such
a dull language like COBOL? I'm not sure which
is worse Java or COBOL.
 
 
Brian
Ebenezer Enterprises - In G-d we trust.
http://webEbenezer.net
 
Brian
scott@slp53.sl.home (Scott Lurndal): Jul 29 12:36PM

>> not a good measurement.
 
>How to explain the lower turnover rate for such
>a dull language like COBOL?
 
Dull?
 
> I'm not sure which
>is worse Java or COBOL.
 
Who are you to judge?
 
Why does one language need to be "better" than any other? Use
what solves the problem most effectively - and one can solve business
problems in COBOL much more effectively (and quickly) than one can
solve them with C or C++.
Cholo Lennon <chololennon@hotmail.com>: Jul 29 09:53AM -0300

On 07/28/2016 04:28 PM, jacobnavia wrote:
 
>> Lynn
 
> Interesting
 
> Nobody commented on why C++ went from the third to the fourth place.
 
I don't trust in those rankings. If you consider TIOBE for example, C++
is in 3rd place and R is in the position 17th (not to mention that the
1st and 2nd places are swapped in both rankings)
 
Regards
 
--
Cholo Lennon
Bs.As.
ARG
Daniel <danielaparker@gmail.com>: Jul 29 06:35AM -0700


> How to explain the lower turnover rate for such
> a dull language like COBOL?
 
Legacy software. Legacy software is software that works, if it hadn't worked,
it wouldn't have become legacy.
 
> I'm not sure which is worse Java or COBOL.
 
It's hard to complain about software that works.
 
Daniel
Jerry Stuckle <jstucklex@attglobal.net>: Jul 29 10:41AM -0400

> Ebenezer Enterprises - In G-d we trust.
> http://webEbenezer.net
 
> Brian
 
Solid job, good salary, great benefits, excellent working conditions.
Most of the COBOL programmers I know have been at it for 20 years or
more with the same company. And the ones who have retired have
comfortable pensions.
 
And they don't think it's dull at all. But who are they do judge - they
only do it 40 hours a week.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Jerry Stuckle <jstucklex@attglobal.net>: Jul 29 10:44AM -0400

On 7/29/2016 9:35 AM, Daniel wrote:
>> a dull language like COBOL?
 
> Legacy software. Legacy software is software that works, if it hadn't worked,
> it wouldn't have become legacy.
 
I wouldn't consider 5 billion lines of new code every year to be "legacy".
 
I also forgot to mention - the figures I remember from IBM stats was 2
billion each year. While looking for the reference, I came across this
one, which looks to be more accurate (IBM made their estimates based on
surveys of their customer base - large, but hardly all-encompassing).
 
>> I'm not sure which is worse Java or COBOL.
 
> It's hard to complain about software that works.
 
> Daniel
 
Which is another reason why it's so popular.
 
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
"Chris M. Thomasson" <invalid@invalid.invalid>: Jul 28 11:49PM -0700

On 7/28/2016 11:10 AM, Mr Flibble wrote:
> library "neoGFX".
 
> Screenshot:
 
> http://neogfx.org/temp/subpixel3.png
 
Looking very nice! :^)
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jul 29 03:19AM -0700

Looks truly awesome, Leigh. Something to be proud of.
 
Best regards,
Rick C. Hodgin
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Jul 29 01:33AM +0200

On 28.07.2016 01:48, Frank Tetzel wrote:
 
> does anybody know of any library transforming a regular expression
> as a string to an equivalent automaton (minimized DFA preferable)?
 
std::regex
 
 
> I don't want to do string matching directly, so most of the regex
> library can't really help me. I want access to the automaton. Does
> anybody know of a library or framework providing this?
 
Nope, sorry.
 
But why exactly doesn't std::regex fit your use case (i.e., what
/exactly/ is your use case)?
 
 
Cheers,
 
- Alf
Christian Gollwitzer <auriocus@gmx.de>: Jul 29 09:52AM +0200

Am 28.07.16 um 01:48 schrieb Frank Tetzel:
> a string to an equivalent automaton (minimized DFA preferable)? I don't
> want to do string matching directly, so most of the regex library
> can't really help me. I want access to the automaton.
 
Hmm, why is it not possible to inspect the internals of a library? Too
much detail?
 
Maybe this site is helpful to you: https://swtch.com/~rsc/regexp/
The details of the transformation are explained in the first link
https://swtch.com/~rsc/regexp/regexp1.html
and an implementation is linked from the main page. I haven't studied it
in detail, but it looks close to what you are looking for.
 
Christian
Frank Tetzel <s1445051@mail.zih.tu-dresden.de>: Jul 29 11:59AM +0200


> Nope, sorry.
 
> But why exactly doesn't std::regex fit your use case (i.e., what
> /exactly/ is your use case)?
 
My usecase are regular path queries (RPQ) on directed, labeled graphs.
Basically you want to check if a vertex pair is connected by a path
whose label (concatenation of the edge labels) satisfies a regular
expression. The alphabet for the regular expression is the set of edge
labels.
 
Yeah, that's a very special usecase. So, i think, i need direct access
to the automaton as i have to take transitions more directly (during
traversing the graph). I don't think one can use std::regex for that.
Is it even possible to define an aplhabet for std::regex?
 
Regards,
Frank
Frank Tetzel <s1445051@mail.zih.tu-dresden.de>: Jul 29 11:59AM +0200

> > library can't really help me. I want access to the automaton.
 
> Hmm, why is it not possible to inspect the internals of a library?
> Too much detail?
 
It is probably possible to rip the specific parts out of the library. I
was just wondering if there was something more readily available.
 
 
> https://swtch.com/~rsc/regexp/regexp1.html
> and an implementation is linked from the main page. I haven't studied
> it in detail, but it looks close to what you are looking for.
 
I found this site too and i plan to use it as a reference for my own
implementation. Thanks for pointing out that there's also an
implementation available on the site. I missed that before.
 
Regards,
Frank
Daniel <danielaparker@gmail.com>: Jul 28 04:16PM -0700

On Thursday, July 28, 2016 at 7:01:08 PM UTC-4, Öö Tiib wrote:
> > I want to have a class template that has a specialization for bool, and
> > also for std::vector<bool>::const_reference if that type differs from bool.
 
> That is odd ... AFAIK it is *required* to be bool.
 
I was under that impression too, but based on cppreference, which is
perhaps not the best source. Does anyone know for sure?
 
Anyway, it's been reported to me that with
 
Xcode, Apple LLVM 7.1 with -std=c++14 and libc++
(LLVM C++ standard library with C++11 support)
 
it seems not to be the case.
 
Daniel
"Öö Tiib" <ootiib@hot.ee>: Jul 28 05:04PM -0700

On Friday, 29 July 2016 02:16:36 UTC+3, Daniel wrote:
 
> Xcode, Apple LLVM 7.1 with -std=c++14 and libc++
> (LLVM C++ standard library with C++11 support)
 
> it seems not to be the case.
 
You are correct clang version 3.8.0 with libc++:
http://coliru.stacked-crooked.com/a/d4dfc706d72fc3bd
 
The libc++ architect Howard Hinnant explains why is that in answer to
same question:
http://stackoverflow.com/questions/31974237/why-is-libcs-vectorboolconst-reference-not-bool
 
I myself think that 'std::vector<bool>' was mistake.
I prefer 'std::bitset' instead of 'std::array<bool, N>' and
'boost::dynamic_bitset' instead of 'std::vector<bool>'.
Daniel <danielaparker@gmail.com>: Jul 28 07:16PM -0700

On Thursday, July 28, 2016 at 8:04:26 PM UTC-4, Öö Tiib wrote:
 
> The libc++ architect Howard Hinnant explains why is that in answer to
> same question:
> http://stackoverflow.com/questions/31974237/why-is-libcs-vectorboolconst-reference-not-bool
 
Thanks for looking into that!
 
> I myself think that 'std::vector<bool>' was mistake.
> I prefer 'std::bitset' instead of 'std::array<bool, N>' and
> 'boost::dynamic_bitset' instead of 'std::vector<bool>'.
 
Agreed.
 
Daniel
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.

Thursday, July 28, 2016

Fwd: Hot Enough For You?



Sent from my iPad

Begin forwarded message:

From: Gladys Schupbach <sissy-gms@live.com>
Date: July 28, 2016 at 7:36:29 PM CDT
To: Gladys Schupbach <sissy-gms@live.com>
Subject: Fw: Hot Enough For You?





Fromu




Subject: Fwd: Hot Enough For You?
 



 


Subject: Hot Enough For You?
                             How Do You Know When It's Really Hot?

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



--

We Ride for Jesus !!!
With out him we have nothing !!!
 
Darvel Hutchins
President,
Heart of Texas Son Riders

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

Daniel <danielaparker@gmail.com>: Jul 28 02:31PM -0700

I want to have a class template that has a specialization for bool, and also for std::vector<bool>::const_reference if that type differs from bool.
 
I came up with this:
 
template<class T, class Enable = void>
class A
{
public:
A()
{
std::cout << "default" << std::endl;
}
};
 
 
template <class T>
class A<T,typename std::enable_if<std::is_same<T,bool>::value>::type>
{
public:
A()
{
std::cout << "bool" << std::endl;
}
 
};
 
template<class T>
class A<T,typename std::enable_if<std::is_same<T,
std::conditional<!std::is_same<bool,std::vector<bool>::const_reference>::value,
std::vector<bool>::const_reference,
void>::type>::value>::type>
{
public:
A()
{
std::cout << "std::vector<bool>::const_reference" << std::endl;
}
};
 
// With VS, the types are the same
A<std::vector<bool>::const_reference> a1; // With VS, prints bool
A<bool> a2; // With VS, prints bool
 
Is there a simpler way?
 
Thanks,
Daniel
"Öö Tiib" <ootiib@hot.ee>: Jul 28 04:00PM -0700

On Friday, 29 July 2016 00:31:27 UTC+3, Daniel wrote:
> I want to have a class template that has a specialization for bool, and
> also for std::vector<bool>::const_reference if that type differs from bool.
 
That is odd ... AFAIK it is *required* to be bool.
 
 
> I came up with this:
 
...
 
 
> Is there a simpler way?
 
Wasn't it simple enough?
May be if you write that, then it is simpler to follow logically:
 
template<class T>
class A< T, typename std::enable_if<
std::is_same< std::vector<bool>::const_reference, T>::value
&& !std::is_same<bool, T>::value >::type >
Lynn McGuire <lmc@winsim.com>: Jul 27 04:50PM -0500

"The 2016 Top Programming Languages"
http://spectrum.ieee.org/computing/software/the-2016-top-programming-languages
 
"C is No. 1, but big data is still the big winner"
 
Where is Fortran ?
 
Lynn
Ian Harvey <ian_harvey@bigpond.com>: Jul 28 01:07PM +1000

On 2016-07-28 07:50, Lynn McGuire wrote:
 
> http://spectrum.ieee.org/computing/software/the-2016-top-programming-languages
 
> "C is No. 1, but big data is still the big winner"
 
> Where is Fortran ?
 
Is that a rhetorical question?
 
Number 28 otherwise, depending on your weighting.
Richard Heathfield <rjh@cpax.org.uk>: Jul 28 07:17AM +0100

On 27/07/16 22:50, Lynn McGuire wrote:
 
> http://spectrum.ieee.org/computing/software/the-2016-top-programming-languages
 
> "C is No. 1, but big data is still the big winner"
 
> Where is Fortran ?
 
Have you checked down the back of the settee?
 
--
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within
jacobnavia <jacob@jacob.remcomp.fr>: Jul 28 09:28PM +0200

Le 27/07/2016 à 23:50, Lynn McGuire a écrit :
 
> "C is No. 1, but big data is still the big winner"
 
> Where is Fortran ?
 
> Lynn
 
Interesting
 
Nobody commented on why C++ went from the third to the fourth place.
"Öö Tiib" <ootiib@hot.ee>: Jul 28 03:08PM -0700

On Thursday, 28 July 2016 22:29:02 UTC+3, jacobnavia wrote:
 
> > Lynn
 
> Interesting
 
> Nobody commented on why C++ went from the third to the fourth place.
 
What it is? How to comment it? What went from where to where?
There that statistics programming language "R" is at #5 and
wins C#, PHP and Javascript. Really? At place #11 there is "Andruino".
Isn't it hardware platform? :D It feels like some sort of bad joke.
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jul 28 07:10PM +0100

Just implemented FAST sub-pixel text rendering in my OpenGL C++ GUI/game
library "neoGFX".
 
Screenshot:
 
http://neogfx.org/temp/subpixel3.png
 
/Flibble
Jerry Stuckle <jstucklex@attglobal.net>: Jul 27 04:22PM -0400

On 7/27/2016 12:23 PM, Mr Flibble wrote:
> implementation in one of its header files that you included (either
> directly or indirectly) before your header file.
 
> /Flibble
 
Weasel response. Show a specific example where it DOES fail.
 
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Jerry Stuckle <jstucklex@attglobal.net>: Jul 27 04:23PM -0400

On 7/27/2016 12:26 PM, Mr Flibble wrote:
> header file was included before the implementation's header file was
> included (either directly or indirectly).
 
> /Flibble
 
Which is why it's a good idea to use a header guard related to the file
name. But you missed that part - because you don't read so well.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Jerry Stuckle <jstucklex@attglobal.net>: Jul 27 04:49PM -0400

On 7/27/2016 3:01 PM, Paavo Helde wrote:
 
> PeopleConcert concert;
> concert.Organize();
 
> }
 
Two things.
 
First of all, that's not the header guard I said.
 
Second of all, I don't have MSVC 2103 (does anyone? That's not for
another 87 years), but your code compiles just fine with gcc 5.4.0.
Either the code you presented is not what you compiled (maybe you have
another PeopleConcert.h?), or you have a problem with your compiler.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
David Brown <david.brown@hesbynett.no>: Jul 28 10:37AM +0200

On 27/07/16 22:49, Jerry Stuckle wrote:
> another 87 years), but your code compiles just fine with gcc 5.4.0.
> Either the code you presented is not what you compiled (maybe you have
> another PeopleConcert.h?), or you have a problem with your compiler.
 
Whoosh! That's the sound Paavo's example makes as it passes completely
over your head.
 
Since this seems too subtle for you to follow, I'll explain it in small
steps.
 
The standards (C and C++) make certain classes of identifiers
"reserved". This includes identifiers that start with two underscores,
and identifiers that start with one underscore then a capital letter.
Some of these are reserved for future language changes, others are
reserved for the implementation.
 
It is good programming practice to take this into account when choosing
your own identifiers.
 
"Why?", I hear you ask (since you clearly don't understand at the
moment). Avoiding reserved identifiers in your own code means your
identifiers won't crash with reserved identifiers in a different or
future compiler. Similarly, implementations avoid non-reserved
identifiers to avoid crashes with the user code.
 
So you don't avoid using an identifier like "_PPLCONCRT_H" just because
it might cause trouble /now/, you avoid using it because it might cause
trouble in the future. A future C compiler - such as MSVC 2103 - might
use that as an include guard in one of its own implementation-supplied
header files.
 
Do you see the point now?
Jerry Stuckle <jstucklex@attglobal.net>: Jul 28 01:53PM -0400

On 7/28/2016 4:37 AM, David Brown wrote:
> use that as an include guard in one of its own implementation-supplied
> header files.
 
> Do you see the point now?
 
Whoosh. You completely missed my response.
 
No, I didn't miss Paavo's comment. I just pointed out he has a problem
in either his code or his compiler, and that he didn't use the example I
did. Nothing more, nothing less.
 
But you're too dense to understand that.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jul 28 07:06PM +0100

Frank Tetzel <s1445051@mail.zih.tu-dresden.de>: Jul 28 01:48AM +0200

Hello,
 
does anybody know of any library transforming a regular expression as
a string to an equivalent automaton (minimized DFA preferable)? I don't
want to do string matching directly, so most of the regex library
can't really help me. I want access to the automaton. Does anybody know
of a library or framework providing this?
 
Regards,
Frank
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jul 28 01:18AM +0100

On 28/07/2016 00:48, Frank Tetzel wrote:
> want to do string matching directly, so most of the regex library
> can't really help me. I want access to the automaton. Does anybody know
> of a library or framework providing this?
 
Sausages.
 
Seriously though, sausages.
 
Really seriously though don't get hung up finite state machines; they
are usually a generalization on something that doesn't need generalizing.*
 
/Flibble
 
* Just finished my third double vodka.
Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid>: Jul 28 10:31AM +0200

> want to do string matching directly, so most of the regex library
> can't really help me. I want access to the automaton. Does anybody know
> of a library or framework providing this?
 
Some of my students have used
http://hackingoff.com/compilers/regular-expression-to-nfa-dfa
I don't know if its available for download.
 
But then, it is not a bad exercise to do it yourself... Especially if
you have special requirements on characters, etc.
 
(This has little to no relation to C++, you may get more help from
comp.theory or comp.compilers I guess.)
 
-- Alain.
Frank Tetzel <s1445051@mail.zih.tu-dresden.de>: Jul 28 05:16PM +0200


> Some of my students have used
> http://hackingoff.com/compilers/regular-expression-to-nfa-dfa
> I don't know if its available for download.
 
It doesn't look like there's a download somewhere but it's a nice
visualization. Thanks.
 
 
> But then, it is not a bad exercise to do it yourself... Especially if
> you have special requirements on characters, etc.
 
Yeah, i probably have to do that. For my current project it would just
be a nice-to-have, a simple string interface. Let's see if i find the
time for that. A nice description:
https://swtch.com/~rsc/regexp/regexp1.html
 
 
> (This has little to no relation to C++, you may get more help from
> comp.theory or comp.compilers I guess.)
 
I might ask there when i have more specific questions during
implementing it. Thanks for the pointers.
 
Regards,
Frank
Ramine <ramine@1.1>: Jul 28 01:54PM -0400

On 7/27/2016 7:48 PM, Frank Tetzel wrote:
> of a library or framework providing this?
 
> Regards,
> Frank
 
I have worked with the following program, and it works great:
 
http://max99x.com/school/automata-editor
 
 
Thank you,
Amine Moulay Ramdane.
bleachbot <bleachbot@httrack.com>: Jul 28 07:52PM +0200

jarausch@skynet.be: Jul 28 07:00AM -0700

Hi,
 
the following code should compile according to the standard (library).
 
#include <iostream>
using std::ios;
#include <fstream>
 
 
 
int main() {
int offset = 0;
ios::seek_dir org;
org= ios::beg;
std::ifstream input("Test.txt");
input.seekg(offset, org);
return 0;
}
 
 
g++ (5.4.0) gives the following error messages:
 
IOS_Test.C: In function 'int main()':
IOS_Test.C:12:26: error: invalid conversion from 'std::ios_base::seek_dir {aka int}' to
'std::ios_base::seekdir {aka std::_Ios_Seekdir}' [-fpermissive]
input.seekg(offset, org);
^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/iostream:40:0,
from IOS_Test.C:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/istream:602:7: note:
initializing argument 2 of 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::seekg
(std::basic_istream<_CharT, _Traits>::off_type, std::ios_base::seekdir)
[with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT,
_Traits>::off_type = long int; std::ios_base::seekdir = std::_Ios_Seekdir]'
seekg(off_type, ios_base::seekdir);
 
Is this a bug or what am I missing?
 
Many thanks for a hint,
Helmut
"Öö Tiib" <ootiib@hot.ee>: Jul 28 10:21AM -0700

> Hi,
 
> the following code should compile according to the standard (library).
 
What standard library? Cite, link, quote?
 
> _Traits>::off_type = long int; std::ios_base::seekdir = std::_Ios_Seekdir]'
> seekg(off_type, ios_base::seekdir);
 
> Is this a bug or what am I missing?
 
Yes it is your bug and compiler complains cleanly. All you need is to
read a bit of docks. I can highlight the points: That 'ios_base::beg'
is of type 'ios_base::seekdir'. That 'ios_base::seek_dir' that you use
is deprecated member type and compatibility with 'ios_base::seekdir'
is nowhere required. See yourself:
http://en.cppreference.com/w/cpp/io/ios_base
jarausch@skynet.be: Jul 28 10:35AM -0700

Many thanks!
I didn't realize that there are two different type(def)s:
seekdir and seek_dir.
 
Helmut.
Will Watts <ais@no.spam.please.cix.co.uk>: Jul 28 06:05PM +0100

In article <kamdnZFwo7Qm0QjKnZ2dnUU7-e-dnZ2d@giganews.com>, Mr Flibble
wrote:
> In case you were wondering Mr Flibble is a minor character from the UK
> comedy sci-fi TV series Red Dwarf.
 
A favourite episode, I think. The one where Lister contracts a luck
virus.
 
Will@AIS
Jerry Stuckle <jstucklex@attglobal.net>: Jul 27 04:26PM -0400

On 7/27/2016 3:51 PM, Daniel wrote:
 
> Actually, the affectionate, pet form for Flibble is "Flibbie", not "Fibbie."
 
> Just trying to be helpful,
> Daniel
 
Ah, thank you, Daniel. I appreciate the correction.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
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.