Saturday, March 25, 2017

Digest for comp.lang.c++@googlegroups.com - 24 updates in 14 topics

aminer68@gmail.com: Mar 25 04:05PM -0700

Hello,
 
 
THE DIABETES DRUG THAT COULD BE AN ANTI-AGING MIRACLE
 
In June, Barzilai, along with academics from the not-for-profit American Federation for Aging Research (AFAR), approached the Food and Drug Administration with an idea: the Targeting Aging With Metformin (TAME) study, to see if metformin could do for humans what it does for animals. It would be the first clinical trial to test if a drug could slow human aging. The FDA said yes, and since that June meeting the media has exploded with excitement over the purported "fountain of youth" drug, with rumors that it could extend human life span up to 120 years.
 
 
Read more here:
 
http://www.newsweek.com/2015/12/25/diabetes-drug-could-be-anti-aging-miracle-404370.html
 
 
Thank you,
Amine Moulay Ramdane.,
Lynn McGuire <lynnmcguire5@gmail.com>: Mar 24 07:34PM -0500

"Trip report: Winter ISO C++ standards meeting (Kona), C++17 is complete" by Herb Sutter
https://herbsutter.com/2017/03/24/trip-report-winter-iso-c-standards-meeting-kona-c17-is-complete/
 
"The big news is that we completed C++17, which dominated the work of the meeting: C++17 is now technically finished and being sent
out for its final ISO balloting. All that remains for C++17 now is some ISO red tape and minor touch-up to get it officially
published, which is expected to be just mechanical."
 
Lynn
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Mar 25 04:01AM +0100

On 25-Mar-17 1:34 AM, Lynn McGuire wrote:
> its final ISO balloting. All that remains for C++17 now is some ISO red
> tape and minor touch-up to get it officially published, which is
> expected to be just mechanical."
 
The `std::byte` thing is really sad.
 
Both that it was adopted, and Herb holding it up as a kind of positive
achievement.
 
Looking at the feature set over at <url:
https://en.wikipedia.org/wiki/C%2B%2B17>:
 
• Now optional message for `static_assert`, too late. Everybody has some
macro, and it will still need to be used to support feature-lagging
compilers. Otherwise one can just use "!" as message.
 
• UTF-8 character literal is a way to restrict a character literal on
octet-based machines (just about all modern computers) to ASCII. It's
IMHO the most useless and silly concept in all of C++ history. It could
possibly have been useful if it was named mnemonically for ASCII, had
some corresponding constraint feature for strings, and worked as a
constraint also on 16-bit byte and 32-bit byte architectures.
<url: https://isocpp.org/files/papers/n4267.html>
 
• Template fold expressions, sounds nice so one can avoid those silly
declare-an-array workarounds for pack transforms. But I guess the proof
is in the eating of the pudding. What does it really taste like, and
does it cause gas, or not?
 
• Initializers in conditions. That's ungood in itself, as I see it,
because it adds complicating syntax for something that can be simply
expressed without it. But, this feature can be abused to provide a
locally scoped variable declaration for a block guaranteed without any
overhead. That practically requires a macro like Expressive C++ `$with`,
or else writing painfully convoluted cryptic code, but still. This
feature is apparently an /enabling wart/! :)
 
• Template deduction of constructors, oh finally! Now /that/'s a nice
feature. No more silly factory functions, yay!
 
 
In the library, `std::string_view` is better than nothing, but has the
design problem of returning references instead of values, thus
preventing a later more sane string handling. Let's constrain things
just because we can. Ouch.
 
File system, hope that works out. It implies wide string constructors
for the fstreams, in Windows. Silly platform-specificity in a standard,
grumble. Yes I did something positive about it once: I filed a bug
report with Boost Filesystem, because BFS didn't work for the case of
international text filenames with MinGW g++, because that compiler's
standard library didn't have those wide string constructors. And I
created a workaround based on existing g++ extended standard library
functionality, so that's possible and shows that the Windows-specific
requirement of the C++17 standard isn't necessary at all: instead one
could have more general functionality, supporting more portable code.
 
The main problem I see is that at least the proposal used the phrasing
"/encouraged/ to provide" about the wide string constructors, and if
that's also the wording in the standard then one is not guaranteed that
international file names will work in Windows with g++. :(
 
 
- Alf (a bit disappointed)
Lynn McGuire <lynnmcguire5@gmail.com>: Mar 25 05:34PM -0500

On 3/24/2017 10:01 PM, Alf P. Steinbach wrote:
> that's also the wording in the standard then one is not guaranteed that
> international file names will work in Windows with g++. :(
 
> - Alf (a bit disappointed)
 
And there is no standard C++ user interface toolkit.
 
Lynn
Ian Collins <ian-news@hotmail.com>: Mar 26 11:36AM +1300

On 03/26/17 11:34 AM, Lynn McGuire wrote:
 
> And there is no standard C++ user interface toolkit.
 
> Lynn
 
Hooray!
 
--
Ian
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 25 10:40PM

On 25/03/2017 22:34, Lynn McGuire wrote:
>> international file names will work in Windows with g++. :(
 
>> - Alf (a bit disappointed)
 
> And there is no standard C++ user interface toolkit.
 
And hopefully there never will be!
 
My C++ user interface toolkit:
 
http://neogfx.org
 
/Flibble
aminer68@gmail.com: Mar 24 06:44PM -0700

Hello,
 
 
Survival and nazism..
 
I think there is a bug..
 
Because survival dictates to be nazism, that means to be more
efficient and survive better you have to fire other people !
it' like killing them... so to escape this living conditions we have
to be more organized to be helpful to less efficient people to
avoid them to suffer more and to avoid them to be fired and to avoid them to be killed !
 
 
Thank you,
Amine Moulay Ramdane.
bitrex <bitrex@de.lete.earthlink.net>: Mar 25 02:02PM -0400

> avoid them to suffer more and to avoid them to be fired and to avoid them to be killed !
 
> Thank you,
> Amine Moulay Ramdane.
 
"Survival" doesn't dictate any such thing. The giant sea turtle has
survived for ~100 million years, the extinction of the dinosaurs, even.
 
They spend most of their time swimming around eating sea-cabbage.
Real Troll <real.troll@trolls.com>: Mar 25 02:25PM -0400

On 25/03/2017 18:02, bitrex wrote:
 
> "Survival" doesn't dictate any such thing.
 
But Muslims do. Ramine is a devout Muslim and so killing comes
naturally to him!!.
Jerry Stuckle <jstucklex@attglobal.net>: Mar 24 08:49PM -0400

> is thinking stupidly.
 
> Thank you,
> Amine MoulAy RAMDANE.
 
Amine, I've been programming longer than you've been alive. I've worked
with programmers with less than six weeks of experience who are better
than you.
 
You are just plain stoopid.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
bitrex <bitrex@de.lete.earthlink.net>: Mar 25 02:08PM -0400

On 03/24/2017 08:49 PM, Jerry Stuckle wrote:
> with programmers with less than six weeks of experience who are better
> than you.
 
> You are just plain stoopid.
 
The first chapter of this book gives some good insights into the
psychological nature of Internet trolls. Psychological
reverse-projection, that sort of thing.
 
<https://www.amazon.com/Falling-Into-Fire-Psychiatrists-Encounters/dp/0143125710>
 
The chapter is actually about a chronic repeat patient to the
psychiatric unit who repeatedly swallows foreign objects when under
stress, like spark plugs, barbecue skewers, shower curtain rings, etc.
 
The frightening thing is that apparently in the psychiatric
classification literature, repeatedly swallowing large sharp objects is
categorized a "moderate" level of persistent self-injury behavior..
Alvin <Alvin@invalid.invalid>: Mar 25 03:41PM +0100

Is there a way to create a constexpr array in C++14, without using
variadic templates or template recursion? I want to achieve the following:
 
 
 
#include <array>
 
constexpr size_t array_size = 1000000;
 
constexpr auto makeArray() {
std::array<float, array_size> a = {};
for(int i = 0; i < a.size(); i++)
a[i] = 0.1f * i;
return a;
}
 
constexpr static auto a = makeArray();
 
 
 
This works with C++17, which made a lot of array members constexpr, but
doesn't work with C++14.
 
I know how to make it work using std::index_sequence or template
recursion, but that doesn't really work for large sizes.
 
I could easily make it work with my own array class, but I don't see how
I can efficiently convert it into a constexpr std::array.
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Mar 25 03:55PM +0100

On 25-Mar-17 3:41 PM, Alvin wrote:
> recursion, but that doesn't really work for large sizes.
 
> I could easily make it work with my own array class, but I don't see how
> I can efficiently convert it into a constexpr std::array.
 
One easy way to generate code or compile time data without cajoling the
C++ compiler or preprocessor into doing it, is to use a script (e.g.
Python, or node.js, whatever) to generate that code.
 
Easy peasy. ;-)
 
 
Cheers!,
 
- Alf
bitrex <bitrex@de.lete.earthlink.net>: Mar 25 01:12PM -0400

On 03/25/2017 10:41 AM, Alvin wrote:
> Is there a way to create a constexpr array in C++14, without using
> variadic templates or template recursion? I want to achieve the following:
 
No, probably not, but here's how to do it that way anyway if anyone's
interested:
 
https://ideone.com/K8eAsP
 
(Sourced and corrected from here:
<http://cplusadd.blogspot.com/2013/02/c11-compile-time-lookup-tablearray-with.html>)
 
> doesn't work with C++14.
 
> I know how to make it work using std::index_sequence or template
> recursion, but that doesn't really work for large sizes.
 
In GCC at least you can increase the template recursion depth (up to
some limit I don't know what, probably depending on hardware) with the
"-ftemplate-depth-X" flag.
 
As Alf P. says for truly gigantic constant lookup tables it probably
doesn't make sense to use C++ itself to generate them.
Alvin <Alvin@invalid.invalid>: Mar 25 06:38PM +0100

On 2017-03-25 18:12, bitrex wrote:
> As Alf P. says for truly gigantic constant lookup tables it probably
> doesn't make sense to use C++ itself to generate them.
 
The thing is, it works very well when using my own array class with the
proper constexpr members. A 1'000'000 array size still has very decent
compile time performance.
 
Not being able to use std::array (the custom array class is still usable
as plain C-style array) is not nearly as bad as having to resort to some
external code generation tool.
fir <profesor.fir@gmail.com>: Mar 25 08:29AM -0700

W dniu piątek, 24 marca 2017 23:18:40 UTC+1 użytkownik Chris M. Thomasson napisał:
> > my job.
 
> > This is why i am not seeking at discussing C++ with you on this forum.
 
> Why are you here?
 
ramine idiot is here to spam - to make advertisments of his idiot state to everybody
aminer68@gmail.com: Mar 24 06:20PM -0700

Hello,
 
 
C++ and programming and nazism..
 
When you are programming more and more efficiently, it's like
you are doing nazism, because you are killing less efficient code,
inside microsoft and other companies it's the same, they say
that if you are not an efficient programmer, so you are fired !
it's like killing less efficient people.
 
Thank you,
Amine Moulay Ramdane,
aminer68@gmail.com: Mar 24 06:18PM -0700

Hello,
 
 
C++ and programming and nazism..
 
When you ere programming more and more efficiently, it's like
you are doing nazism, because you are killing less efficient code,
inside microsoft and other companies it's the same, they say
that if you are not an efficient programmer, so you are fired !
it's like killing less efficient people.
 
Thank you,
Amine Moulay Ramdane,
aminer68@gmail.com: Mar 24 06:01PM -0700

Hello,
 
 
I think i am loving more this forum...
 
nazism is not the only invention of white europeans..
 
nazism is also inside microsoft, nazism means if you are not
an efficient programmer, so you are fired ! it's like killing less efficient people, this is how nazism has reacted , nazism has wanted its system to be efficient and he has started to fire other people, that means also to kill other people for efficiency.
 
arabs has also there microsoft etc. so arabs has also there nazism.
 
 
Thank you,
Amine Moulay Ramdane.
Jerry Stuckle <jstucklex@attglobal.net>: Mar 24 08:47PM -0400

On 3/24/2017 3:55 PM, Rick C. Hodgin wrote:
> and listen to God's Holy Spirit instead (John 4:24).
 
> Thank you,
> Rick C. Hodgin
 
Yes, it is, Rick. And quite frankly, I'm with the others here. Take
your Christian bullshit somewhere where it is accepted. It is off topic
here. I don't try to force my beliefs on you. Don't force yours on me.
 
But this is exactly how Satan acts. It serves his purpose of driving
people away from Christianity quite well.
 
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
aminer68@gmail.com: Mar 24 05:36PM -0700

Hello,
 
Do you know from where nazism comes from ?
 
nazism was invented by those stupid white europeans race..
 
But what is the cause of inventing nazism ?
 
When your life is shit you get into nazism..
 
Like when you are managing large projects you get angry and frustrated
and you get into intimidating others, like is doing this stupid white
of Bonita and Stuckle.
 
 
This is my last post on this forum.
 
 
Thank you,
Amine Moulay Ramdane.
aminer68@gmail.com: Mar 24 05:14PM -0700

Hello,
 
 
I have just said:
 
My way of doing also...
 
You will say that i am stupid, but i am not stupid..
 
Because if i say to you: 2 + 2 = 4
 
You can be completly conscious from where it comes from
and work with it, but you can also not be conscious of its details
and work with it, this is also my way of optimizing and being efficient,
even though i am not an expert, i can learn by avoiding to get into
details and be efficient, it's like doing modeling with mathematics,
it is like doing mathematical statistics, it's a practical way of doing
that is also efficient without getting into the details of mathematical theory.
 
This is how i am getting efficient.

I give you an example of what i am saying that looks like modeling with mathematics:
 
I have also understood linear regression and polynomial regression, and what i have found interesting is that to resolve the problem of linear regression or polynomial regression you have to fix some variables as constants to be able to resolve the system by partial derivatives that also simplify the resolution of the system, since it result in a system of linear equations that help us to obtain the unknown variables, so partial derivatives are a powerful tool that permit us to obtain the unknown variables of the linear regression or polynomial regression systems. But what we have to understand is that when you set the partial derivatives to zero, we obtain our system of linear equations that permit us to solve and find the unknown variables, and this explains how to solve linear regression
and polynomial regression, but we have to understood that the partial
derivatives have simplified solving the system by resulting in a quadratic equation that have the same global minimum, and that ensure that the linear system of equations does not result in contradictions
and are valid. So we have to notice that partial derivatives are a powerful tool that look like heuristics that permit us to solve the system faster and they simplify the system
 
 
 
Merci,
Amine Moulay Ramdane.
woodbrian77@gmail.com: Mar 24 05:01PM -0700

Has your user group lost some of its pizzazz? Are topics
like "Java" sometimes covered? I have an idea to help you
get things back on track. I'll travel to your location at
my own expense if you would like to have me talk about the
C++ Middleware Writer -- a free on line code generator -- at
your meeting. What I hope to do is make it into a working
vacation.
 
http://meetingcpp.com/index.php/newsreader/items/c-user-group-meetings-in-march-2017.html
 
I'm not sure if I'll do this more than one time. I'm willing
to travel overseas if that's where the interest is.
 
 
Brian
Ebenezer Enterprises - Enjoy programming again.
http://webEbenezer.net
aminer68@gmail.com: Mar 24 04:47PM -0700

Hello,
 
 
My way of doing also...
 
You will say that i am stupid, but i am not stupid..
 
Because if i say to you: 2 + 2 = 4
 
You can be completly conscious from where it comes from
and work with it, but you can also not be conscious of its details
and work with it, this is also my way of optimizing and being efficient,
even though i am not an expert, i can learn by avoiding to get into
details and be efficient, it's like doing modeling with mathematics,
it is like doing mathematical statistics, it's a practical way of doing
that is also efficient without getting into the details of mathematical theory.
 
 
This is how i am getting efficient.

 
 
Thank you,
Amine Moulay Ramdane.
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: