Thursday, May 31, 2018

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

Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: May 31 08:19PM +0100

On 30/05/2018 14:35, Scott Lurndal wrote:
> #define ASTERISK *
> char ASTERISK p
 
> who cares?
 
There is an even simpler (and better) solution: DON'T DECLARE MULTIPLE
VARIABLES ON THE SAME LINE.
 
/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."
bart4858@gmail.com: May 31 02:30PM -0700

On Thursday, 31 May 2018 20:20:06 UTC+1, Mr Flibble wrote:
 
> There is an even simpler (and better) solution: DON'T DECLARE MULTIPLE
> VARIABLES ON THE SAME LINE.
 
That's not a solution, it's a workaround. And comes with a disadvantage; suppose that T includes any pointer, array, or function pointer modifiers, then instead of writing:
 
T x, y, z;
 
which tells you that these variables are likely related, and they have a common type which is automatically kept in sync, you have to write:
 
T x;
T y;
T z;
 
Then that relationship is lost, and it will need more maintenance to ensure they stay the same type.
 
So declaring several names with the same type spec is useful.
 
The original C syntax however allows you to declare several names together but with *different* types (and they can be wildly different), which is not useful and is bad practice.
 
--
bart
David Brown <david.brown@hesbynett.no>: May 31 11:49PM +0200

(Please get a real news client, or fix your line endings if you have to
use Google's broken interface. It makes it a pain for others to sort
out your messed up line breaks.)
 
 
 
>> There is an even simpler (and better) solution: DON'T DECLARE
>> MULTIPLE VARIABLES ON THE SAME LINE.
 
> That's not a solution, it's a workaround.
 
It is a solution to the problem "how should I declare several pointer
variables in a way that won't be confusing?".
 
> T z;
 
> Then that relationship is lost, and it will need more maintenance to
> ensure they stay the same type.
 
That might, occasionally, be a relevant point. I can't speak for Mr.
Flibble, of course, but I would be okay with "T x, y, z;" in such simple
cases. But I am /not/ okay with "char* c, d;" or "char *c, d;" - it is
far too easy to misread these.
 
More commonly, however, you have longer type names (including
qualifiers), initialisers, descriptive variable names, comments, etc.,
which mean putting multiple object definitions on one line becomes a mess.
 
 
 
> So declaring several names with the same type spec is useful.
 
/Occasionally/ useful.
 
 
> The original C syntax however allows you to declare several names
> together but with *different* types (and they can be wildly
> different), which is not useful and is bad practice.
 
Agreed. And for me, that rule includes cases like the sample one here
with a "char" and a "char*".
Lynn McGuire <lynnmcguire5@gmail.com>: May 31 05:55PM -0500

On 5/31/2018 2:19 PM, Mr Flibble wrote:
 
> There is an even simpler (and better) solution: DON'T DECLARE MULTIPLE
> VARIABLES ON THE SAME LINE.
 
> /Flibble
 
+1,000,000
 
Lynn
scott@slp53.sl.home (Scott Lurndal): May 31 06:00PM

>then passes control to the exception handler in the naughty program.
>This will take quite a long time. IF you're really concerned about
>security your kernel will make sure it's a _loooooong_ time.
 
I don't have a lot of time to respond to this, but if you google search for
 
"timewarp: rethinking timekeeping and performance monitoring mechanisms to mitigate
side-channel attacks"
 
There are descriptions of and references to the various side-channel
attacks via cache timing et alia in that paper.
Vir Campestris <vir.campestris@invalid.invalid>: May 31 11:03PM +0100

On 31/05/2018 19:00, Scott Lurndal wrote:
> side-channel attacks"
 
> There are descriptions of and references to the various side-channel
> attacks via cache timing et alia in that paper.
 
This paper?
 
<http://www.cs.columbia.edu/~simha/preprint_isca12_tw.pdf>
 
That's a much more complete solution to a much wider range of problems,
but one that requires that the CPU is modified.
 
As they say you can't afford to cache flush on every context switch.
There's also no way to flush the branch predictor cache (which I'd
forgotten about TBH) but for the class of attacks which rely on the
pipeline pre-fetching stuff to which the program has no right of access,
which causes detectable changes in the cache, clearing the cache ought
to destroy all that side channel data. Leaving only the branch predictor
(which someone will of course use...)
 
I also feel that killing the process after a few exceptions would be a
good thing to do. Though no doubt there will be a way around that too.
 
After an exception for an illegal access the state of the cache (and the
branch predictor cache) will be different depending on whether the page
accessed did not exist or was blocked, and also depending on the
contents of that page.
 
The attacks I have read about rely on detecting the state of the cache
after the exception.
 
Flushing the cache after such an exception and before returning control
to the user program will destroy that information in the cache.
 
I do not see that such a change would be harmful, and it would block one
class of attacks.
 
Andy
bintom <binoythomas1108@gmail.com>: May 30 10:50PM -0700

I noticed that there are no library functions in Dev C++ to display a blinking message. So I wrote this function, which I hope does the job for any oneout there.
 
void Blink(char *str)
{ cout << "\n";
 
while(true)
{ cout << str;
for(long l1=0; l1<300000000; l1++);

for(int i=0; i<5; i++)
cout << "\b";
for(int i=0; i<5; i++)
cout << " ";

for(long l1=0; l1<300000000; l1++);
 
for(int i=0; i<5; i++)
cout << "\b";
}
}
 
int main()
{ Blink("Message"); }
"Öö Tiib" <ootiib@hot.ee>: May 30 11:15PM -0700

On Thursday, 31 May 2018 08:50:59 UTC+3, bintom wrote:
> }
 
> int main()
> { Blink("Message"); }
 
Seems waste of computing power. There is usually something more sane
than busy loop for delaying an action. That Dev C++ is AFAIK MinGW and
So you can use Windows functions like Sleep in it.
David Brown <david.brown@hesbynett.no>: May 31 09:33AM +0200

On 31/05/18 07:50, bintom wrote:
> I noticed that there are no library functions in Dev C++ to display
> a blinking message. So I wrote this function, which I hope does the job
> for any oneout there.
 
There are a number of "improvement opportunities" in this code. I don't
want to demoralise you by listing everything I can think of, especially
as that would also lead to discussions about details or alternative
constructions that are probably beyond what you are interested in at the
moment.
 
But there is a /big/ mistake here, IMHO - your delay loops. These are
bad for a number of reasons:
 
1. They are totally dependent on the individual computer for their
timing. Faster or slower processors will give you shorter or longer delays.
 
2. They are busy-waiting, blocking a cpu core while waiting.
 
3. The delays will vary according what else is going on in your machine.
 
4. If you change the optimisation level, or other compiler details, the
loops will change timings - the compiler is also free to see that the
loops are pointless and can be removed altogether.
 
So a "count for a bit" delay loop is almost never a good idea. (They do
see occasional use in embedded systems, for very specific purposes on
specific known chips for short delays. And even then, they are written
differently.)
 
Standard C++ libraries do not have a "wait a bit function". But every
multi-threaded or multi-processing OS has a "sleep" function of some
sort. If you are writing for a specific operating system, find out what
kind of "sleep" call it supports, and use it. If you are writing with a
cross-platform toolkit (like Qt, wxwidgets, etc.), then use the call
from those libraries.
 
 
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: May 31 09:53AM +0200

On 31.05.2018 09:33, David Brown wrote:
> [snip]
> Standard C++ libraries do not have a "wait a bit function".
 
std::this_thread::sleep_for
 
Docs at
 
<url: http://en.cppreference.com/w/cpp/thread/sleep_for>
 
Example usage,
 
sleep_for( 2s );
 
 
Cheers!,
 
- Alf
David Brown <david.brown@hesbynett.no>: May 31 10:12AM +0200

On 31/05/18 09:53, Alf P. Steinbach wrote:
 
> <url: http://en.cppreference.com/w/cpp/thread/sleep_for>
 
> Example usage,
 
> sleep_for( 2s );
 
Of course you are right.
 
Depending on the versions of his tools and libraries, he might not have
a C++11 threading implementation. But it should be the first thing to try.
Manfred <noname@invalid.add>: May 31 03:53PM +0200

On 5/31/2018 7:50 AM, bintom wrote:
> }
 
> int main()
> { Blink("Message"); }
 
Besides the loop counting problem, the above code doesn't display
anything on my terminal, due to the lack of any std::flush usage.
Moreover, the amount of '\b' outputs should match the message length.
 
More generally, text decoration is not really part of the language (and
I think it shouldn't); C++ inherits the very basic text rendering
features of C, which do not include things like blinking.
This sort of things falls more properly into the category of either
text-based or GUI-based text rendering.
 
If working with gcc (or other compiler that supports the \e escape
sequence) and an ECMA-48[*] compliant terminal (thanks to
https://stackoverflow.com/questions/26522542/nesting-text-decoration-using-vt100-escape-sequences)
the following will do (it is C code, but that's irrelevant here):
 
/* ----------------------------- */
#include <stdio.h>
 
int main()
{
puts("foo \e[05mbar\e[25m baz\e[m");
}
/* ----------------------------- */
 
Examples of terminals that will show the above properly include xterm
and putty, I didn't try any Windows native terminal.
 
Thanks to the OP, that re-awakened my curiosity about text-decorations
in terminal output.
 
[*]
https://www.ecma-international.org/publications/standards/Ecma-048.htm
bintom <binoythomas1108@gmail.com>: May 31 07:03AM -0700

On Thursday, May 31, 2018 at 1:03:21 PM UTC+5:30, David Brown wrote:
> > }
 
> > int main()
> > { Blink("Message"); }
 
Thanks to the guidance from the group, I found the Sleep() function in windows.h that does what I need.
bintom <binoythomas1108@gmail.com>: May 31 07:04AM -0700

On Thursday, May 31, 2018 at 1:23:25 PM UTC+5:30, Alf P. Steinbach wrote:
 
> sleep_for( 2s );
 
> Cheers!,
 
> - Alf
 
Dev C++, which we use does not support sleep_for() but I found Sleep() from windows.h which does the job. Thanks.
David Brown <david.brown@hesbynett.no>: May 31 04:13PM +0200

On 31/05/18 16:04, bintom wrote:
 
>> - Alf
 
> Dev C++, which we use does not support sleep_for() but I found
> Sleep() from windows.h which does the job. Thanks.
 
Dev C++ is an IDE, not a compiler - it supports whatever compiler you
want, with whatever options you want, whatever libraries you want and
whatever standards you want (though it has a preference for gcc
compilers, I believe).
 
If you are using an older compiler, or not enabling C++11 (or newer)
standards, then you won't have sleep_for(). You might conceivably have
tools that support C++11 in general, but not all of the C++11 libraries.
 
Unless you have very good reasons not to (and programmer knowledge and
experience might be a good reason), I'd recommend using at least C++11
standard for new code - it is a significant step up in the language.
Jorgen Grahn <grahn+nntp@snipabacken.se>: May 31 02:43PM

On Thu, 2018-05-31, David Brown wrote:
...
> Unless you have very good reasons not to (and programmer knowledge and
> experience might be a good reason), I'd recommend using at least C++11
> standard for new code - it is a significant step up in the language.
 
I don't think not knowing all of C++11 is a reason to tell the
compiler to use C++98. I don't know all of C++98 either ...
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
"Öö Tiib" <ootiib@hot.ee>: May 31 08:34AM -0700

On Thursday, 31 May 2018 17:13:36 UTC+3, David Brown wrote:
> want, with whatever options you want, whatever libraries you want and
> whatever standards you want (though it has a preference for gcc
> compilers, I believe).
 
That is ideal talk about normal IDE. ;) Just like it is tricky to
integrate something but Apple-approved-LLVM stuff into X-Code it is
tricky to integrate something but that outdated version of MinGW gcc
into that Dev C++.
 
 
> Unless you have very good reasons not to (and programmer knowledge and
> experience might be a good reason), I'd recommend using at least C++11
> standard for new code - it is a significant step up in the language.
 
There are number of other 0 price IDEs that are easier to deal with.
Eclipse CDT, NetBeans, Qt creator, even free vesions of MS VS are
relatively easy to to deal with. But one who has picked Dev C++ or
Code::Blocks should first just dump it if they want to use modern
compilers IMHO, YMMV.
woodbrian77@gmail.com: May 31 11:11AM -0700

On Thursday, May 31, 2018 at 9:43:34 AM UTC-5, Jorgen Grahn wrote:
> > standard for new code - it is a significant step up in the language.
 
> I don't think not knowing all of C++11 is a reason to tell the
> compiler to use C++98. I don't know all of C++98 either ...
 
Agreed. There's also an increasing amount of software
that you won't be to use if you don't take steps toward
2011 ++C. That includes code from an online code generator
that has been mentioned here previously.
 
 
Brian
Ebenezer Enterprises - Enjoying programming again.
https://github.com/Ebenezer-group/onwards
scott@slp53.sl.home (Scott Lurndal): May 31 06:29PM


>Agreed. There's also an increasing amount of software
>that you won't be to use if you don't take steps toward
>2011 ++C.
 
Actually, that precludes the use of such software in many cases
where moving to a newer compiler isn't feasible.
 
On-line code generators aren't a viable solution - who wants to
be dependent upon a third-party that may disappear tomorrow?
David Brown <david.brown@hesbynett.no>: May 31 08:53PM +0200

On 31/05/18 20:29, Scott Lurndal wrote:
> where moving to a newer compiler isn't feasible.
 
> On-line code generators aren't a viable solution - who wants to
> be dependent upon a third-party that may disappear tomorrow?
 
I have only dealt with one on-line code generator (for making customised
SDK's for a family of microcontrollers), and I agree entirely. I'd
rather have a large download giving a big, fat tree of all the files for
all the devices in the family - so that I can pick the ones I want, when
I want, copy them, compare them, archive them.
Ralf Goertz <me@myprovider.invalid>: May 31 02:55PM +0200

Hi,
 
I have a problem with a program implementing the backtracking algorithm
shown in <https://en.wikipedia.org/wiki/Backtracking>. Everything is
fine except for the fact that the program seems to be leaking. I use a
variant of the algorithm that finds all solutions (find_all=true). In my
case the memory usage still increases considerably although I already
found solutions and accordingly recursion_depth stays at or below its
maximum value of 65. According to my understanding this shouldn't
happen. The relevant snippets are:
 
struct BT {

void bt() { //the bt "procedure" from wikipedia
++recursion_depth; //global variable
static bool found(false);
if (reject()) {
--recursion_depth;
return;
}
if (accept()) {
found=true;
output();
if (find_all) solutions.push_back(state);
--recursion_depth;
return;
}
BT s=first();
while (s.isValid) {
s.bt();
if (found && ! find_all) break;
s.next();
}
--recursion_depth;
}
BT first() {
BT result(*this);
//modify result
return result;
}
bool accept();
bool reject();
void next();
}
 
first() creates a copy of its class variable, modifies it and returns
the copy by value. The variable "result" goes out of scope and gets
destroyed. In bt() the copy is assigned to s and then s itself calls
bt(). But s also gets destroyed when bt() returns. So where does the
leaking come from? (solutions.push_back() is not the problem, memory
gets consumed even though no new solutions are found.) Is it a problem
inherent to recursion?
Barry Schwarz <schwarzb@dqel.com>: May 31 09:13AM -0700

On Thu, 31 May 2018 14:55:50 +0200, Ralf Goertz
>found solutions and accordingly recursion_depth stays at or below its
>maximum value of 65. According to my understanding this shouldn't
>happen. The relevant snippets are:
 
If you don't where or why the problem is occurring, then what is your
basis for deciding what is relevant? We need to see a complete
compilable example that demonstrates the problem. We don't need all
the internal details. If your sample exhibits the undesired behavior,
we have enough. The code you showed for first() is a suitable stub
for the function details we don't need and can be used as a template
for accept, reject, isValid, etc. We also need to see the actual
constructor for BT
 
I don't know if it is related or not but only one copy of a member
function exists, not a new copy for each class object. Consequently,
the variable found is common to all the objects and is initialized
before program execution begins. Once set to true, it is never set
back to false.
 
--
Remove del for email
Paavo Helde <myfirstname@osa.pri.ee>: May 31 09:25PM +0300

On 31.05.2018 15:55, Ralf Goertz wrote:
> leaking come from? (solutions.push_back() is not the problem, memory
> gets consumed even though no new solutions are found.) Is it a problem
> inherent to recursion?
 
If you don't have a new (or malloc;-S) in your program then you cannot
have a memory leak in the classical sense that the memory is lost and
cannot be freed. You can have accumulation of data somewhere where it
should not be.
 
You can also see an effect of memory fragmentation. In case of memory
fragmentation the apparent memory growth should eventually slow down and
approach a more or less stable level. However, if you have no explicit
dynamic allocations in your code you probably won't have memory
fragmentation either.
 
In recursive programs what takes memory is the stack, but if you say the
recursion depth is limited then it should not grow either.
 
So I guess there is either a bug in the code you did not show, or a bug
in the compiler related to recursion (very unlikely).
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.

Wednesday, May 30, 2018

Digest for comp.lang.c++@googlegroups.com - 17 updates in 2 topics

Jorgen Grahn <grahn+nntp@snipabacken.se>: May 30 11:19AM

On Tue, 2018-05-29, Jouko Koski wrote:
> Bjarne Stroustrup himself is expressing some concerns about the C++
> language development:
 
> http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0977r0.pdf
 
Good. People (hopefully) listen to Stroustrup, and I'm happy to see
that he hasn't join the ADD school of language design. (I wasn't
aware the committee had gotten that feature-happy though; that's a
bit worrying.)
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
Thiago Adams <thiago.adams@gmail.com>: May 30 06:42AM -0700

On Tuesday, May 29, 2018 at 7:47:18 AM UTC-3, Jouko Koski wrote:
> are stated at least now.
 
> --
> Jouko
 
Some C++ programmers were waiting someone else to say that
C++ is becoming too complex, and now they will be
more comfortable to repeat that.
 
"Modern C++" become a bad adjective in my option.
Jorgen Grahn <grahn+nntp@snipabacken.se>: May 30 02:53PM

On Wed, 2018-05-30, Thiago Adams wrote:
 
> Some C++ programmers were waiting someone else to say that
> C++ is becoming too complex, and now they will be
> more comfortable to repeat that.
 
In my case, I respect Stroustrup for his good taste in language
design, and haven't followed the ISO work in detail ...
 
Doesn't mean I will join the small Usenet choir of whiners anytime
soon.
 
> "Modern C++" become a bad adjective in my option.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
Christiano <christiano@engineer.com>: May 30 12:49PM -0300

On 05/30/2018 10:42 AM, Thiago Adams wrote:
 
Thiago, the C++11 has move semantics which is fundamental and has
improvements in the memory model (parallel programming), adds things
that were already language idoms (unique_ptr), etc, etc, etc.
 
You have a historic of pushing changes in C and C++ that are just what
the Stroustrup criticizes.
 
The fact is:
1- You push Absurd stupid ideas like "C array should be passed by
value", promote radical changes all the time like crazy Without any fear
in a mailing list (other)
2- At same time You criticize Just that you do !!!!
 
Is like a person who offers drugs to someone while saying "You see? This
person needs to get into my religion!!!"
 
What is my conclusion?
My conclusion is obvious:
 
You have your Language Project which you Insistently spam in a other C++
mailing list, abusing the fact that you're a moderator.
 
You play in the both sides (1 and 2) because at the end you want to
promote your "language". Your objective is destroy C and C++ and promote
your "language".
 
As the Scott said:
"That horse left the stable after C++11."
 
But you have a very long historic looking for problems in C++98, C++11,
C89, C11, etc and promoting radical breaking-code changes.
 
You're just trying (ONE MORE TIME) to get another opportunity to promote
your personal project and fuck all C and C++ tradition.
 
But you're not the only one. When a proposal is accepted, the person
proposing it gains prestige, prominence, media, etc. So it is obvious
that there will be various people in the world promoting things that
will destroy the language for personal gain.
 
That's why I'm against this committee thing. In my opinion C ++ should
be completely in the hand of Stroustrup. So it would be safe from
malicious idiots with low moral standards. Or there should be a model
like Parliamentary Monarchy which the king can intervene when he
realizes that there is a bad intention going on.
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: May 29 04:40PM -0700

On 5/29/2018 4:12 PM, Lynn McGuire wrote:
> "Why does most C/C++ developer prefers char *c instead of char* c?"
>    https://www.codeproject.com/Lounge.aspx?msg=5523356#xx5523356xx
 
> I prefer "char * c".
 
For me _personally_, I prefer the star to be closer to its type.
 
char const* const g = "Hello";
 
g is a const pointer, to a const char when read right to left.
legalize+jeeves@mail.xmission.com (Richard): May 29 11:48PM

[Please do not mail me a copy of your followup]
 
Lynn McGuire <lynnmcguire5@gmail.com> spake the secret code
 
>"Why does most C/C++ developer prefers char *c instead of char* c?"
> https://www.codeproject.com/Lounge.aspx?msg=5523356#xx5523356xx
 
Without reading the link first, my answer is....
 
Because that's the way it was shown to me in K&R "C Programming
Language", 1st ed.
 
Where I work, they like 'char* c'. They pay me to make code for them,
so I write it the way they want.
--
"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>
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: May 29 04:49PM -0700

On 5/29/2018 4:48 PM, Richard wrote:
> Language", 1st ed.
 
> Where I work, they like 'char* c'. They pay me to make code for them,
> so I write it the way they want.
 
No problem with that! :^D
Barry Schwarz <schwarzb@dqel.com>: May 29 08:10PM -0700

On Tue, 29 May 2018 18:12:39 -0500, Lynn McGuire
 
>"Why does most C/C++ developer prefers char *c instead of char* c?"
> https://www.codeproject.com/Lounge.aspx?msg=5523356#xx5523356xx
 
In my case because
char* c, d;
is visually misleading. d has type char, not char*. Using
char *c, d;
makes it clear, to me.
 
--
Remove del for email
James Kuyper <jameskuyper@alumni.caltech.edu>: May 29 11:35PM -0400

On 05/29/2018 07:12 PM, Lynn McGuire wrote:
> "Why does most C/C++ developer prefers char *c instead of char* c?"
> https://www.codeproject.com/Lounge.aspx?msg=5523356#xx5523356xx
 
> I prefer "char * c".
 
For me, it's because it reflects the C grammar. I don't mean that it's
required by the grammar. I mean that the grammar specifies that a
declaration consists of a series of declaration specifiers followed by a
list of init-declarators (6.7p1). In this declaration, the declaration
specifiers consist entirely of the type specifier "char", while *c is
the sole pointer declarator. Putting a space between the declaration
specifiers and the init-declarators (a space NOT required by the
grammar) helps remind me of that distinction.
 
Let me give a bigger example, where I use a newline for the same
purpose. In the declaration
 
static int const _Alignas(double)
array[32]={[1]=1, [2]=1, [4]=1, [8]=1, [16]=1},
* restrict pointer=array;
 
The first line of that declaration contains all of the declaration
specifiers. The second line contains the first init-declarator, and the
third line contains the second init-declarator. All of the specifiers
apply to both init-declarators, whereas nothing specified for the first
init-declarator carries over to the second init-declarator, which is why
it's important, in general, to keep the distinction between specifiers
and declarators clear. However, if you never declare more than one
identifier in a given declaration, you don't need to worry about that
distinction.
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: May 30 07:27AM +0200

On 30.05.2018 05:10, Barry Schwarz wrote:
> is visually misleading. d has type char, not char*. Using
> char *c, d;
> makes it clear, to me.
 
template< class T > using Type_ = T;
Type_<char*> a, b;
 
or
 
template< class T > using Ptr_ = T*;
Ptr_<char> a, b;
 
 
Going down to the fundamental type builders, as in the last example,
supports using prefix `const` everywhere.
 
Almost like a sane programming language.
 
Cheers!,
 
- Alf
David Brown <david.brown@hesbynett.no>: May 30 08:58AM +0200

On 30/05/18 05:10, Barry Schwarz wrote:
> is visually misleading. d has type char, not char*. Using
> char *c, d;
> makes it clear, to me.
 
To me, they are /both/ visually misleading (though the second one is a
little less bad), and I much prefer to write:
 
char * c;
char * d;
 
Since I don't usually define a variable until I have an initial value,
my identifiers are mostly more descriptive, and there may well be a
comment, I very rarely see any reason to squeeze more than one
identifier in the same declaration.
Jorgen Grahn <grahn+nntp@snipabacken.se>: May 30 08:51AM

On Tue, 2018-05-29, Lynn McGuire wrote:
> "Why does most C/C++ developer prefers char *c instead of char* c?"
> https://www.codeproject.com/Lounge.aspx?msg=5523356#xx5523356xx
 
> I prefer "char * c".
 
The question is flawed; C programmers and C++ programmers have
different conventions. You see more people saying 'char* c' in
C++ (although it's not a universal difference).
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
bart4858@gmail.com: May 30 02:38AM -0700

[Attempting to post to C++ group only]
On Wednesday, 30 May 2018 00:12:57 UTC+1, Lynn McGuire wrote:
> "Why does most C/C++ developer prefers char *c instead of char* c?"
> https://www.codeproject.com/Lounge.aspx?msg=5523356#xx5523356xx
 
> I prefer "char * c".
 
It's C type syntax, which has different characteristics depending on whether you're specifying a single nameless type, or declaring a list of N typed names.
 
So you have to make the best of bad job.
 
When declaring only a type (as in cast, or a nameless parameter), I would write "char*".
 
If declaring only a list of names but N=1, these days I might write "char* c" taking advantage that in this case, I can keep the type specifier in one group (but that doesn't work when declaring one array as in "char c[]" as the type is split around the name).
 
If declaring several such names, then I would probably write "char *c, *d" as otherwise "char* c, d" looks confusing: it resembles a saner language where you write "<typespec> c,d" with the same type applied to each name.
 
I would very rarely mix types in a declaration, so I wouldn't write "char *c, d" and intend that only one is a pointer.
 
And finally, if generating C code by software, I seem to remember using "char *" in each case, where the "*" looks rather lonely. But there, I only ever declare one name at a time so it probably doesn't matter.
 
--
bart
Juha Nieminen <nospam@thanks.invalid>: May 30 09:41AM

> "Why does most C/C++ developer prefers char *c instead of char* c?"
> https://www.codeproject.com/Lounge.aspx?msg=5523356#xx5523356xx
 
> I prefer "char * c".
 
C++ inherits a lot of bad decisions from C, and I think that the
rather convoluted syntax for pointers is one of them. Pointers,
and their syntax, is one of the hardest things for a beginner
programmer to learn, regardless of whether we are talking about
C or C++. (Heck, it took me years to fully remember all the
intricacies, even though I regularly coded in C and C++ as
a hobby.)
 
It's easy to think that the asterisk is tied to the type,
even though it's not. Thus it's easy to get confused by
declarations like: char* a, b;
 
Of course if you have learned to always attach the asterisk to the
type name, it's a habit that's hard to get rid of, even if you wanted
to. Thus you often resort to inconsistent compromises, such as writing:
 
char* a;
char *b, *c; // Would look weird as "char* b, *c;"
 
I know because I do that often, even though I try to avoid it.
 
Of course even if you try to learn to attach the asterisk to the name,
you then get dilemmas like:
 
std::vector<char*> v;
 
Now the asterisk looks like part of the type name, almost by necessity.
I suppose you could use some slightly weird spacing like:
 
std::vector<char *>v;
 
but that's even more awful.
 
Attaching the asterisk to the name actually makes a lot more sense when
we are talking about things like function and array pointers, ie:
 
int (*funcPtr)(int);
int (*tablePtr)[12];
 
Here it would be weird to try to attach the asterisk, somehow, to the
type name. Especially since the type name isn't a pointer (the "type
name" in this case is int, not int*.)
 
Incidentally, in Objective-C method declarations have the type of a
parameter specified in parentheses, and a very common convention is to
attach the asterisk to the variable name regardless. In other words,
rather than write a method as:
 
- (void) methodName: (int*) intPtr;
 
it's often written by convention (eg. by Apple) as:
 
- (void) methodName: (int *)intPtr;
bart4858@gmail.com: May 30 03:20AM -0700

On Wednesday, 30 May 2018 10:41:22 UTC+1, Juha Nieminen wrote:
 
 
> It's easy to think that the asterisk is tied to the type,
> even though it's not. Thus it's easy to get confused by
> declarations like: char* a, b;
 
I think it would be best to always think of the asterisk (it's harder with [] for arrays) as part of the type.
 
This would work well for parameters (only one type per name), and casts (only one type with no name).
 
For other name declarations, you can use a convention of only declaring one name per type. Or for several names all of the same type, it's possible to wrap the type in a typedef. Alternatively, using this gcc extension, you can do this:
 
typeof(char*) p,q,r;
 
Each of p, q and r has type char*. This extension also allows you to make an array specifier part of the type:
 
typeof(char[10]) a,b,c;
 
It even works for functions:
 
typeof(int(int,int)) F {}
 
although people might expect a mode traditional declaration here. Functions are usually declared one at a time.
 
--
bart
Ian Collins <ian-news@hotmail.com>: May 30 10:36PM +1200

On 30/05/18 18:58, David Brown wrote:
 
> To me, they are /both/ visually misleading (though the second one is a
> little less bad), and I much prefer to write:
 
> char * c;
 
That's a multiplication ! :)
 
--
Ian.
scott@slp53.sl.home (Scott Lurndal): May 30 01:35PM


>or
 
> template< class T > using Ptr_ = T*;
> Ptr_<char> a, b;
 
Good grief. What a waste of bytes.
 
char *p
char* p
#define ASTERISK *
char ASTERISK p
 
who cares?
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.

Digest for comp.programming.threads@googlegroups.com - 16 updates in 15 topics

Sky89 <Sky89@sky68.com>: May 29 09:52PM -0400

Hello...
 
Read this:
 
 
What is being idiot ? and what is being sophistication ?
 
As you have noticed i am capable of writing beautiful and more
sophisticated poetry ! now you have to understand what is
the essence of politics ! what do you think is the essence of politics ?
if the essence of politics is being too much violence as neo-nazism or
the like , that's not the essence of politics ! that's simply too much
violence that is not "order" that must be the very basis of politics !
so as you have noticed it becomes much more clear that what is the
essence of politics ! so the essence of politics comes from the essence
of being organized as a society and as a humanity ! and being organized
as a society and as a humanity needs from us more and more
"sophistication" that knows how to manage itself ! and as you notice
when you are in front of a real sophistication that knows how to manage
itself you are in general capable of feeling it by your senses ! this is
the secret of politics ! it is being sophistication that knows how to
manage itself and how to manage humanity ! so this is why i am
bringing my wisdom that permits you to use selection to select the best
governance ! and the best governance need also requirements such as
science and technology to better itself ! so as you have noticed
you have not to loose your way in more stupidity , so be capable
and be responsable using this wisdom !
 
And here is what i wrote before:
 
I am a white arab who lives in Quebec Canada, but i am working for
USA software companies, because i want to sell my scalable algorithms
and some of my other softwares to USA software companies like
Embarcadero and Google etc.
 
Now more about political philosophy..
 
Why do you think do I love USA ?
 
I love USA because i understand USA !
 
USA has not to loose its way and political spirit !
 
I explain more:
 
The political spirit of USA is that USA wants the well being of the
world, and we notice it by the fact that USA wanted to spread
"democracy" in other parts of the world.. but USA is not stupid
because it understand also the constrains of our world, it is
why USA is also pragmatic, not only that but USA wants to spread
"order" in the other parts of the world, this is why it has
wanted to defeat Saddam Hussein (that was a too violent man) and defeat
its army and defeat its governance, so as you notice USA wanted to
spread democracy and wanted to spread order and wanted to play the
policeman of the world, because without this involvement of USA the
world can be much worse than today ! also USA is like a sportive spirit
that wants to be the best in technology and science to also that wants
bring the best to humanity and that wants to be able to defend
civilization, this is why USA must keep all this spirit for the well
being of the world and this is is why i love USA.
 
And about "racial" nationalism..
 
As you have noticed, i said before that i am like high-tech
because i am an inventor of scalable algorithms and there
implementations and other softwares, but i am also following
high-tech in general like Intel and Google and Embarcadero etc.
but you have to understand me more , if you are high-tech like me and
you look at "racial" nationalism like neo-nazism and the like , you
will be capable of seeing that this racial nationalism philosophy is
"inferiority", because you have to understand what is happening in
"high-tech", we will soon have very powerful CPUs and computers as i
have told you, and this will permit to revolutionize genetics in about
12 years
or 15 years, so that we will be able to change the characteristics
of our genetics we humans, this is why we have to know how to be more
tolerance and not be extremism like nazism or neo-nazism and the like.
 
And read also what i wrote before:
 
I am an inventor of scalable algorithms and other softwares,
i am working also with USA companies , since i think i will sell
my scalable algorithms and there implementations and other
of my softwares to USA software companies..
 
What is USA for me ?
 
USA for me is high-techs companies like Intel and Google and Embarcadero
etc. , because i am mainly working on parallel computing and inventing
scalable algorithms and other softwares.. so USA for me is "very"
important because i am living also for high-tech goals , because i am
like high-tech , because i am inventing scalable algorithms
and there implementations, this is also my goals, and with this i am
participating in revolutionizing parallel computing..
 
This is why i wrote this before:
 
Here is my new invention:
 
I am finishing a C++ implementation of a "scalable" reference counting
with a scalable C++ shared_ptr and weak_ptr. Because the implementations
in Boost and C++ are not scalable. I will bring to you my new scalable
algorithms soon. So stay tuned !
 
 
And i wrote also the following:
I explain my work..
 
I am an inventor of scalable algorithms and other softwares..
 
Now you have to understand me more, why do you think i am posting on CPUs
and computers ?
 
Because parallel programming will "like" extend rapidly Moore's Law,
because look for example at this:
 
Intel: 1,000-core Processor Possible
 
An experimental Intel chip shows the feasibility of building processors
with 1,000 cores, an Intel researcher has asserted.
 
The architecture for the Intel 48-core Single Chip Cloud Computer (SCC)
processor is "arbitrarily scalable," said Intel researcher Timothy
Mattson, during a talk at the Supercomputer 2010 conference being held
this week in New Orleans.
 
Read more here:
 
https://www.pcworld.com/article/211238/intel_1000core_processor_possible.html
 
 
And look at this:
 
3D stacked computer chips could make computers 1,000 times faster
 
Read more here:
 
https://www.zmescience.com/research/technology/3d-stacked-computer-chips-43243/
 
 
This is why parallel computing and 3D stacking of memory and CPUs
beyond 1000 cores of Intel above, will make CPUs and computers rapidly
very powerful and this will permit to revolutionize rapidly
artificial intelligence and genetics etc., Look for example at the
following video to understand more:
 
Michio Kaku: Genetics: The Key to Immortality?
 
https://www.youtube.com/watch?v=QsHuGQieyjY
 
 
Thank you,
Amine Moulay Ramdane.
guinness.tony@gmail.com: May 30 12:43AM -0700

On Wednesday, 30 May 2018 02:52:28 UTC+1, Sky89 wrote:
> Hello...
 
> Read this:
 
> What is being idiot ?
 
Spamming a usenet group as if it were your own personal blog.
 
THAT is being an idiot.
Sky89 <Sky89@sky68.com>: May 29 09:21PM -0400

Hello....
 
Read this:
 
 
What about Frank Sinatra ?
 
What represents the following song of Frank Sinatra for me, is this song
represents transcendence by being "beautiful" and by being "order" and
by being "sophistication", it's a sophistication that makes us confident !
 
So listen to this beautiful song of Frank Sinatra to notice it:
 
Frank Sinatra & Antonio Carlos Jobim (1967) - Bossa Nova Medley
 
https://www.youtube.com/watch?v=0BPRYiZOlig
 
And here is another one of my beautiful poetry, notice how it
brings confidence too !
 
 
I am strong like patience
 
I am passionate like romance
 
I am right as the nuance!
 
I am compassionate as hope
 
It's like flowers and bees bringing honey
 
As our life is made of light and Rainbow
 
I am like love, joy and smiles
 
Who are also like diamond and sapphire
 
Who are also like Satin and Velvet
 
Since it's like the Elixir of love
 
Since our love is divine
 
As dawn is beautiful and comes back
 
With its sky and its stars and its divine silence
 
Who plunges us into the secrets of our beautiful garden
 
Like your emerald, ruby, sapphire and diamond eyes
 
We are sun and heat like lovers
 
Your soul is a sea of pretty perfumes
 
Where love and hope are intertwined
 
Like flowers and bees
 
Like the taste of honey
 
You are like the beauty of dawn that comes back
 
And who bathes me in the depths of our destiny
 
Of our love which is divine
 
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 08:45PM -0400

Hello...
 
Read this:
 
 
Is it my country ? do you know what is beautiful USA country music ?
 
When you understand beautiful poetry, you will understand the following
beautiful country song, because what it represents it is being more
popular, that means being near the people and it means also being
decency ! and this behavior do engender the strenght that we need to
survive as a society and as a humanity ! so listen to this beautiful
country song to notice it:
 
John Denver - Take Me Home, Country Roads
 
https://www.youtube.com/watch?v=1vrEljMfXYo
 
 
 
I am also capable of beautiful poetry, here is one of my poetry:
 
 
And beyond the shadows
 
Beyond the moon
 
And beyond the stars
 
And beyond the lightness and darkness
 
We will live forever
 
And we will live over and over
 
And beyond the Universe
 
Will our love rest foerever !
 
And with just a flower, and a last wisper of love !
 
It is like the sound of thunder !
 
It is like the sound of thunder !
 
We will keep it like a silence
 
We will keep it like a secret
 
We will keep it like a light
 
We will keep it from inside our hearts
 
Because it is like a fight !
 
Because it is like time that is running away
 
Because it is like a river that is running away
 
Because it is like suffering that is going away
 
We will walk like the night
 
And we walk like the day
 
And we will surrender like the dark and bright
 
Because we are both life and death
 
Because it is like sadness, love and hope
 
Because the time is walking
 
Because the time is running
 
Because time is disappearing
 
And with just a flower, and a last wisper of love !
 
It is like the sound of thunder !
 
It is like the sound of thunder !
 
We will keep it like a light
 
We will keep it like a silence
 
We will keep it like a secret
 
We will keep it from inside our hearts
 
Because it is like a fight !
 
Because it's life !
 
 
By Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 08:08PM -0400

Hello..
 
Read this:
 
 
I am a white arab who lives in Quebec Canada, but i am working for
USA software companies, because i want to sell my scalable algorithms
and some of my other softwares to USA software companies like
Embarcadero and Google etc.
 
Now more about political philosophy..
 
Why do you think do I love USA ?
 
I love USA because i understand USA !
 
USA has not to loose its way and political spirit !
 
I explain more:
 
The political spirit of USA is that USA wants the well being of the
world, and we notice it by the fact that USA wanted to spread
"democracy" in other parts of the world.. but USA is not stupid
because it understand also the constrains of our world, it is
why USA is also pragmatic, not only that but USA wants to spread
"order" in the other parts of the world, this is why it has
wanted to defeat Saddam Hussein (that was a too violent man) and defeat
its army and defeat its governance, so as you notice USA wanted to
spread democracy and wanted to spread order and wanted to play the
policeman of the world, because without this involvement of USA the
world can be much worse than today ! also USA is like a sportive spirit
that wants to be the best in technology and science to also that wants
bring the best to humanity and that wants to be able to defend
civilization, this is why USA must keep all this spirit for the well
being of the world and this is is why i love USA.
 
And about "racial" nationalism..
 
As you have noticed, i said before that i am like high-tech
because i am an inventor of scalable algorithms and there
implementations and other softwares, but i am also following
high-tech in general like Intel and Google and Embarcadero etc.
but you have to understand me more , if you are high-tech like me and
you look at "racial" nationalism like neo-nazism and the like , you
will be capable of seeing that this racial nationalism philosophy is
"inferiority", because you have to understand what is happening in
"high-tech", we will soon have very powerful CPUs and computers as i
have told you, and this will permit to revolutionize genetics in about
12 years
or 15 years, so that we will be able to change the characteristics
of our genetics we humans, this is why we have to know how to be more
tolerance and not be extremism like nazism or neo-nazism and the like.
 
And read also what i wrote before:
 
I am an inventor of scalable algorithms and other softwares,
i am working also with USA companies , since i think i will sell
my scalable algorithms and there implementations and other
of my softwares to USA software companies..
 
What is USA for me ?
 
USA for me is high-techs companies like Intel and Google and Embarcadero
etc. , because i am mainly working on parallel computing and inventing
scalable algorithms and other softwares.. so USA for me is "very"
important because i am living also for high-tech goals , because i am
like high-tech , because i am inventing scalable algorithms
and there implementations, this is also my goals, and with this i am
participating in revolutionizing parallel computing..
 
This is why i wrote this before:
 
Here is my new invention:
 
I am finishing a C++ implementation of a "scalable" reference counting
with a scalable C++ shared_ptr and weak_ptr. Because the implementations
in Boost and C++ are not scalable. I will bring to you my new scalable
algorithms soon. So stay tuned !
 
 
And i wrote also the following:
I explain my work..
 
I am an inventor of scalable algorithms and other softwares..
 
Now you have to understand me more, why do you think i am posting on CPUs
and computers ?
 
Because parallel programming will "like" extend rapidly Moore's Law,
because look for example at this:
 
Intel: 1,000-core Processor Possible
 
An experimental Intel chip shows the feasibility of building processors
with 1,000 cores, an Intel researcher has asserted.
 
The architecture for the Intel 48-core Single Chip Cloud Computer (SCC)
processor is "arbitrarily scalable," said Intel researcher Timothy
Mattson, during a talk at the Supercomputer 2010 conference being held
this week in New Orleans.
 
Read more here:
 
https://www.pcworld.com/article/211238/intel_1000core_processor_possible.html
 
 
And look at this:
 
3D stacked computer chips could make computers 1,000 times faster
 
Read more here:
 
https://www.zmescience.com/research/technology/3d-stacked-computer-chips-43243/
 
 
This is why parallel computing and 3D stacking of memory and CPUs
beyond 1000 cores of Intel above, will make CPUs and computers rapidly
very powerful and this will permit to revolutionize rapidly
artificial intelligence and genetics etc., Look for example at the
following video to understand more:
 
Michio Kaku: Genetics: The Key to Immortality?
 
https://www.youtube.com/watch?v=QsHuGQieyjY
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 05:36PM -0400

Hello..
 
Read this:
 
We are here the "high-tech" for your well being and to defend civilization:
 
Look at this interesting video:
 
Lockheed Martin - The Next 100 Years
 
https://www.youtube.com/watch?v=NQxfJzl2jkg
 
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 05:08PM -0400

Hello...
 
Read this:
 
About "racial" nationalism..
 
As you have noticed, i said before that i am like high-tech
because i am an inventor of scalable algorithms and there
implementations and other softwares, but i am also following
high-tech in general like Intel and Google and Embarcadero etc.
but you have to understand me more , if you are high-tech like me and
you look at "racial" nationalism like neo-nazism and the like , you
will be capable of seeing that this racial nationalism philosophy is
"inferiority", because you have to understand what is happening in
"high-tech", we will soon have very powerful CPUs and computers as i
have told you, and this will permit to revolutionize genetics in about
12 years
or 15 years, so that we will be able to change the characteristics
of our genetics we humans, this is why we have to know how to be more
tolerance and not be extremism like nazism or neonazism and the like.
 
And read also what i wrote before:
 
I am an inventor of scalable algorithms and other softwares,
i am working also with USA companies , since i think i will sell
my scalable algorithms and there implementations and other
of my softwares to USA software companies..
 
What is USA for me ?
 
USA for me is high-techs companies like Intel and Google and Embarcadero
etc. , because i am mainly working on parallel computing and inventing
scalable algorithms and other softwares.. so USA for me is "very"
important because i am living also for high-tech goals , because i am
like high-tech , because i am inventing scalable algorithms
and there implementations, this is also my goals, and with this i am
participating in revolutionizing parallel computing..
 
This is why i wrote this before:
 
Here is my new invention:
 
I am finishing a C++ implementation of a "scalable" reference counting
with a scalable C++ shared_ptr and weak_ptr. Because the implementations
in Boost and C++ are not scalable. I will bring to you my new scalable
algorithms soon. So stay tuned !
 
 
And i wrote also the following:
I explain my work..
 
I am an inventor of scalable algorithms and other softwares..
 
Now you have to understand me more, why do you think i am posting on CPUs
and computers ?
 
Because parallel programming will "like" extend rapidly Moore's Law,
because look for example at this:
 
Intel: 1,000-core Processor Possible
 
An experimental Intel chip shows the feasibility of building processors
with 1,000 cores, an Intel researcher has asserted.
 
The architecture for the Intel 48-core Single Chip Cloud Computer (SCC)
processor is "arbitrarily scalable," said Intel researcher Timothy
Mattson, during a talk at the Supercomputer 2010 conference being held
this week in New Orleans.
 
Read more here:
 
https://www.pcworld.com/article/211238/intel_1000core_processor_possible.html
 
 
And look at this:
 
3D stacked computer chips could make computers 1,000 times faster
 
Read more here:
 
https://www.zmescience.com/research/technology/3d-stacked-computer-chips-43243/
 
 
This is why parallel computing and 3D stacking of memory and CPUs
beyond 1000 cores of Intel above, will make CPUs and computers rapidly
very powerful and this will permit to revolutionize rapidly
artificial intelligence and genetics etc., Look for example at the
following video to understand more:
 
Michio Kaku: Genetics: The Key to Immortality?
 
https://www.youtube.com/watch?v=QsHuGQieyjY
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 03:15PM -0400

Hello..
 
Read this:
 
 
I correct a typo, please read again..
 
I explain my work..
 
I am an inventor of scalable algorithms and other softwares..
 
Now you have to understand me more, why do you think i am posting on CPUs
and computers ?
 
Because parallel programming will "like" extend rapidly Moore's Law,
because look for example at this:
 
Intel: 1,000-core Processor Possible
 
An experimental Intel chip shows the feasibility of building processors
with 1,000 cores, an Intel researcher has asserted.
 
The architecture for the Intel 48-core Single Chip Cloud Computer (SCC)
processor is "arbitrarily scalable," said Intel researcher Timothy
Mattson, during a talk at the Supercomputer 2010 conference being held
this week in New Orleans.
 
Read more here:
 
https://www.pcworld.com/article/211238/intel_1000core_processor_possible.html
 
 
And look at this:
 
3D stacked computer chips could make computers 1,000 times faster
 
Read more here:
 
https://www.zmescience.com/research/technology/3d-stacked-computer-chips-43243/
 
 
This is why parallel computing and 3D stacking of memory and CPUs
beyond 1000 cores of Intel above, will make CPUs and computers rapidly
very powerful and this will permit to revolutionize rapidly
artificial intelligence and genetics etc., Look for example at the
following video to understand more:
 
Michio Kaku: Genetics: The Key to Immortality?
 
https://www.youtube.com/watch?v=QsHuGQieyjY
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 03:08PM -0400

Hello..
 
 
I explain my work..
 
I am an inventor of scalable algorithms and other softwares..
 
Now you have to understand me more, why do you think i am posting on CPUs
and computers ?
 
Because parallel programming will "like" extend rapidly Moors law,
because look for example at this:
 
Intel: 1,000-core Processor Possible
 
An experimental Intel chip shows the feasibility of building processors
with 1,000 cores, an Intel researcher has asserted.
 
The architecture for the Intel 48-core Single Chip Cloud Computer (SCC)
processor is "arbitrarily scalable," said Intel researcher Timothy
Mattson, during a talk at the Supercomputer 2010 conference being held
this week in New Orleans.
 
Read more here:
 
https://www.pcworld.com/article/211238/intel_1000core_processor_possible.html
 
 
And look at this:
 
3D stacked computer chips could make computers 1,000 times faster
 
Read more here:
 
https://www.zmescience.com/research/technology/3d-stacked-computer-chips-43243/
 
 
This is why parallel computing and 3D stacking of memory and CPUs
beyond 1000 cores of Intel above, will make CPUs and computers rapidly
very powerful and this will permit to revolutionize rapidly
artificial intelligence and genetics etc., Look for example at the
following video to understand more:
 
Michio Kaku: Genetics: The Key to Immortality?
 
https://www.youtube.com/watch?v=QsHuGQieyjY
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 03:06PM -0400

Hello,
 
 
I explain my work..
 
I am an inventor of scalable algorithms and other softwares..
 
Now you have to understand me more, why do you think i am posting on CPUs
and computers ?
 
Because parallel programming will "like" extend rapidly Moors law,
because look for example at this:
 
Intel: 1,000-core Processor Possible
 
An experimental Intel chip shows the feasibility of building processors
with 1,000 cores, an Intel researcher has asserted.
 
The architecture for the Intel 48-core Single Chip Cloud Computer (SCC)
processor is "arbitrarily scalable," said Intel researcher Timothy
Mattson, during a talk at the Supercomputer 2010 conference being held
this week in New Orleans.
 
Read more here:
 
https://www.pcworld.com/article/211238/intel_1000core_processor_possible.html
 
 
And look at this:
 
3D stacked computer chips could make computers 1,000 times faster
 
Read more here:
 
https://www.zmescience.com/research/technology/3d-stacked-computer-chips-43243/
 
 
This is why parallel computing and 3D stacking of memory and CPUs
beyond 1000 cores of Intel above, will make CPUs and computers rapidly
very powerful and this will permit to revolutionize rapidly
artificial intelligence and genetics etc., Look for example at the
following video to understand more:
 
Michio Kaku: Genetics: The Key to Immortality?
 
https://www.youtube.com/watch?v=QsHuGQieyjY
 
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 02:38PM -0400

Hello..
 
 
Here is my new invention:
 
I am finishing a C++ implementation of a "scalable" reference counting
with a scalable C++ shared_ptr and weak_ptr. Because the implementation
in Boost and C++ are not scalable. I will bring to you my new scalable
algorithms soon.
 
 
So stay tuned !
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 02:12PM -0400

Hello,
 
 
Intel: 1,000-core Processor Possible
 
An experimental Intel chip shows the feasibility of building processors
with 1,000 cores, an Intel researcher has asserted.
 
The architecture for the Intel 48-core Single Chip Cloud Computer (SCC)
processor is "arbitrarily scalable," said Intel researcher Timothy
Mattson, during a talk at the Supercomputer 2010 conference being held
this week in New Orleans.
 
Read more here:
 
https://www.pcworld.com/article/211238/intel_1000core_processor_possible.html
 
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 01:58PM -0400

Hello..
 
 
Here is why i am inventing scalable algorithms and working on parallel
computing:
 
Life After Moore's Law
 
"Parallel computing, however, is the only way to maintain the growth in
computing performance that has transformed industries, economies, and
human welfare throughout the world. The computing industry must seize
this opportunity and avoid stagnation, by focusing software development
and training on throughput computers - not on multi-core CPUs."
 
Read more here:
 
https://www.forbes.com/2010/04/29/moores-law-computing-processing-opinions-contributors-bill-dally.html#25500fcb2a86
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 23 09:56PM -0400

Hello..
 
 
Look at this very interesting video:
 
Michio Kaku: Will Mankind Destroy Itself?
 
https://www.youtube.com/watch?v=7NPC47qMJVg
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 12:45PM -0400

Hello..
 
 
Look at this interesting video:
 
What Is Optical Computing (Computing At The Speed of Light)
 
https://www.youtube.com/watch?v=UWMEKex6nYA
 
 
 
Thank you,
Amine Moulay Ramdane.
Sky89 <Sky89@sky68.com>: May 29 12:38PM -0400

Hello..
 
 
Look at this interesting video:
 
Graphene & 3D Integrated Circuits To Increase Computing Performance
 
https://www.youtube.com/watch?v=UUO-f0kIgVU
 
 
 
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.programming.threads+unsubscribe@googlegroups.com.