Sunday, March 5, 2017

Digest for comp.lang.c++@googlegroups.com - 19 updates in 4 topics

"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 04 08:27PM -0800

The Creator of the universe calls you to be with Him where He is in
the paradise of Heaven. He wants to forgive your sin and give you
eternal life in a body like the angels, young, beautiful, strong,
and without weakness or failing.
 
Jesus is the way to forgiveness, and His free gift of eternal life.
 
Go to church. Ask the Christians there to explain this to you in
a way you can understand. Before you go, say a prayer asking God
to guide you rightly, to the right church, to the right people. If
you are sincere in your search, He will do this for you, because He
loves you and He will honor your request.
 
Thank you,
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 05 06:05PM

On 05/03/2017 04:27, Rick C. Hodgin wrote:
> the paradise of Heaven. He wants to forgive your sin and give you
> eternal life in a body like the angels, young, beautiful, strong,
> and without weakness or failing.
 
No gods detected. Heaven not detected.
 
> Jesus is the way to forgiveness, and His free gift of eternal life.
 
Jesus never existed; we know this because evolution is a fact.
 
> to guide you rightly, to the right church, to the right people. If
> you are sincere in your search, He will do this for you, because He
> loves you and He will honor your request.
 
Fuck off and die you obtuse off topic cunt.
 
/Flibble
Gareth Owen <gwowen@gmail.com>: Mar 05 06:07PM


>> Jesus is the way to forgiveness, and His free gift of eternal life.
 
> Jesus never existed; we know this because evolution is a fact.
 
Worst. Syllogism. Ever.
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 05 10:20AM -0800

People believe Jesus never existed. There is secular evidence of
His existence:
 
https://answersingenesis.org/jesus-christ/incarnation/jesus-did-not-exist/
 
Birth of Jesus and secular references:
https://www.youtube.com/watch?v=2IkPpnRVfSw
 
Thank you,
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 05 06:43PM

On 05/03/2017 18:20, Rick C. Hodgin wrote:
> People believe Jesus never existed. There is secular evidence of
> His existence:
 
> https://answersingenesis.org/jesus-christ/incarnation/jesus-did-not-exist/
 
There is absolutely no contemporary evidence of Jesus's existence, none.
The gospels were written in the latter part of the first century and
not by people who were "eye witnesses" to Jesus as your shite website
claims.
 
As we know Evolution is a fact we know that Jesus's parents as described
in the Bible could never have existed and it follows that neither did Jesus.
 
[snip]
 
/Flibble
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 05 11:01AM -0800

People believe evolution is a fact. It does not align with observational
science or genetic research. The Biblical account of "kinds" being made,
diversifying out to the forms we see today does align with both:
 
Science Confirms the Bible:
https://www.youtube.com/watch?v=CFYswvGoaPU
 
The Wonder of DNA:
https://www.youtube.com/watch?v=0ACCIu3jPrc
 
One Race One Blood:
https://www.youtube.com/watch?v=KbODW6XO8zY
 
Thank you,
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 05 08:46PM

On 05/03/2017 19:01, Rick C. Hodgin wrote:
> People believe evolution is a fact. It does not align with observational
> science or genetic research. The Biblical account of "kinds" being made,
> diversifying out to the forms we see today does align with both:
 
More false assertions.
 
Evolution is fact regardless of whether or not people believe it is
fact: the evidence is there proving that evolution happens. There is a
theory of evolution that attempts to explain the fact of evolution but
the theory is quite separate from the fact.
 
/Flibble
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 05 02:10PM -0800

It is the ministry Paul faced in reaching the Gentiles (non-Jews). They
do not have the foundation to simply be persuaded. The enemy has
spent their entire lives teaching them false things which now they hold
on to as though they are truths. Any efforts of outreach face that inertia,
and are severely hampered by its effect on intelligent people.
 
https://image.slidesharecdn.com/judepart8-091029052835-phpapp02/95/jude-part-8-33-728.jpg?cb=1256794141
 
Thank you,
Rick C. Hodgin
Alvin <Alvin@invalid.invalid>: Mar 05 02:09PM +0100

I'm wondering if there is a more elegant way to write the following code
in C++14. The purpose is to duplicate a set of statements (fully unroll
a loop). The loop index isn't required.
 
 
#include <iostream>
#include <utility>
 
using expand = size_t[];
 
template<typename fn_t, size_t... seq>
void unroll_helper(const fn_t& fn, std::index_sequence<seq...>) {
expand{ (fn(), seq)... };
}
 
template<size_t cnt, typename fn_t>
void unroll(const fn_t& fn) {
unroll_helper(fn, std::make_index_sequence<cnt>());
}
 
int main() {
unroll<4>([]() { std::cout << "Hello world.\n"; });
}
Dombo <dombo@disposable.invalid>: Mar 05 02:48PM +0100

Op 05-Mar-17 om 14:09 schreef Alvin:
 
> int main() {
> unroll<4>([]() { std::cout << "Hello world.\n"; });
> }
 
I'm wonder why you don't just use a for loop? If loop unrolling makes
sense then chances are the optimizer will do that for you. If it doesn't
make sense (like the example above where streaming to std::cout will
make the loop overhead negligible) why would you want to unroll it any way?
Alvin <Alvin@invalid.invalid>: Mar 05 02:57PM +0100

On 2017-03-05 14:48, Dombo wrote:
> sense then chances are the optimizer will do that for you. If it doesn't
> make sense (like the example above where streaming to std::cout will
> make the loop overhead negligible) why would you want to unroll it any way?
 
The real usage is a bunch of timing-sensitive inline assembly. A loop
won't do it.
Dombo <dombo@disposable.invalid>: Mar 05 03:30PM +0100

Op 05-Mar-17 om 14:57 schreef Alvin:
>> way?
 
> The real usage is a bunch of timing-sensitive inline assembly. A loop
> won't do it.
 
In that case you might want to make sure that the inline assembly does
not upset the optimizer too much (i.e. check the assembly output to see
if produces what you want to). For example on Visual Studio (since you
are talking about timing sensitive I'm pretty sure that is NOT what you
are using) inline assembly effectively disables the optimizer for that part.
 
To get back to your question; an alternative way unroll would be to use
partial template specialization:
 
 
template<size_t count>
struct unroll : unroll<count - 1>
{
template<typename F>
unroll(F& f) : unroll<count - 1>(f)
{
f();
}
};
 
template<>
struct unroll<0>
{
template<typename F>
unroll(F& f)
{
}
};
Wouter van Ooijen <wouter@voti.nl>: Mar 05 06:08PM +0100

Op 05-Mar-17 om 14:09 schreef Alvin:
> I'm wondering if there is a more elegant way to write the following code
> in C++14. The purpose is to duplicate a set of statements (fully unroll
> a loop). The loop index isn't required.
 
This seemed to work for me (at least with the higher optimization settings):
 
template< int N >
struct loop_unrolled{
template< typename Body >
loop_unrolled( const Body & body ){
body();
loop_unrolled< N - 1 > dummy( body );
}
};
 
template<>
struct loop_unrolled< 0 >{
template< typename Body >
loop_unrolled( const Body & body ){}
};
 
int n = 0;
loop_unrolled< 8 >( [&]{
std::cout << static_cast( n++ )<< " ";
});
 
see http://www.voti.nl/blog/?p=81
 
Wouter "Objects? No Thanks!" van Ooijen
Manfred <noname@invalid.add>: Mar 05 09:38PM +0100

On 3/5/2017 2:57 PM, Alvin wrote:
>> way?
 
> The real usage is a bunch of timing-sensitive inline assembly. A loop
> won't do it.
You know that you can do this all in assembly, like using %rep in nasm
and REPEAT in masm, right? Not sure if they are supported by your
compiler, though.
Jorgen Grahn <grahn+nntp@snipabacken.se>: Mar 05 01:45PM

On Thu, 2017-03-02, Real Troll wrote:
> find books for that IDE and so on that point and that point only
> Microsoft's Visual Studio comes out on top.
 
> You need to prepare for the job market
 
Unless it's a hobby thing for him/her.
 
> with Visual Studio or Embarcadero
> <https://www.embarcadero.com/products/cbuilder> C++ Builder. These
> products have tools to create UI.
 
[Citation needed] for the implied claim that the C++ job market wants
you to create GUIs (that's what I think you mean). I create
command-line interfaces and file formats fairly frequently, but last
time I did GUIs was in 1994.
 
I'm sure there is such a market; I just doubt most C++ programmers
work there. The ones I know don't ...
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Mar 05 10:23AM -0800

For basic standalone app development:
 
Visual Studio 2015 is the best. I also use Visual Studio 2008, and 2010.
 
It integrates development, compilation, debugging, and help and
reference materials into a single GUI.
 
Thank you,
Rick C. Hodgin
kushal bhattacharya <bhattacharya.kushal4@gmail.com>: Mar 04 08:41PM -0800

but how does it solve the race condition issue if i use future or async?
Dombo <dombo@disposable.invalid>: Mar 05 11:16AM +0100

Op 05-Mar-17 om 5:41 schreef kushal bhattacharya:
> but how does it solve the race condition issue if i use future or async?
 
Without context that question is impossible to answer. If you just use
std::future to wait for a task to complete and to retrieve its return
value you won't need any further synchronization primitives. However it
won't help however if you share objects between threads.
kushal bhattacharya <bhattacharya.kushal4@gmail.com>: Mar 05 03:22AM -0800

ok actually i have written the complete scenario about where i am about to use this in couple of posts before this you can read this.That is my whole context where i am using
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: