Thursday, January 14, 2021

Digest for comp.lang.c++@googlegroups.com - 18 updates in 8 topics

Nikki Locke <nikki@trumphurst.com>: Jan 14 11:23PM

Available C++ Libraries FAQ
 
URL: http://www.trumphurst.com/cpplibs/
 
This is a searchable list of libraries and utilities (both free
and commercial) available to C++ programmers.
 
If you know of a library which is not in the list, why not fill
in the form at http://www.trumphurst.com/cpplibs/cppsub.php
 
Maintainer: Nikki Locke - if you wish to contact me, please use the form on the website.
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Jan 13 10:51PM -0800

On 1/12/2021 11:52 AM, Bonita Montero wrote:
> WakeByAddressAll. It is like a binary semaphore (Win32 event),
> but it has a superior performance.
> Look at this code:
[...]
> seamphore), this is really amazing. But does anyone know how this
> works internally ? The following article is too vague to me:
> https://devblogs.microsoft.com/oldnewthing/20160826-00/?p=94185
 
Ivho, a fairer test would be to create a mutex using the "Windows" futex
thing, vs one that uses a normal kernel object for the slow path.
 
You can use a benaphore or any other mutex you want vs futex as a test
vector.
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Jan 13 10:58PM -0800

On 1/12/2021 11:52 AM, Bonita Montero wrote:
> WakeByAddressAll. It is like a binary semaphore (Win32 event),
> but it has a superior performance.
> Look at this code:
[...]
> seamphore), this is really amazing. But does anyone know how this
> works internally ? The following article is too vague to me:
> https://devblogs.microsoft.com/oldnewthing/20160826-00/?p=94185
 
Read all:
 
https://www.kernel.org/doc/ols/2002/ols2002-pages-479-495.pdf
Juha Nieminen <nospam@thanks.invalid>: Jan 14 07:37AM

>> quick visual scan. ...
 
> Your point is absolutely compulsive.
> Someone who programs C++ should know the standard library.
 
Which is exactly what I was saying: You are putting expectations on people
here, while trying to ask something from them. Instead of making your code
as easy as possible to read and understand for people here, you are
selfishly putting rather presumptuous and egotistical expectations on
others, while still asking for their help.
 
When you are asking others for help or opinions, do the work to make their
task as easy as possible.
 
> Haven't read the rest of your nonsense.
 
Which is the archetypical response of a petty infantile person who cannot
have a rational conversation and present rational arguments.
 
I'll take that as "you are right and I'm wrong, but I'm too petulant and
childish and stubborn to admit it, therefore I'll just act smug and in
a hostile manner to compensate for my insecurities."
Ian Collins <ian-news@hotmail.com>: Jan 14 10:10PM +1300

On 14/01/2021 20:37, Juha Nieminen wrote:
 
>> Haven't read the rest of your nonsense.
 
> Which is the archetypical response of a petty infantile person who cannot
> have a rational conversation and present rational arguments.
 
You are expecting rational arguments from someone who can't even work
out how to quote on Usenet?
 
There are more productive ways to spend your time.
 
--
Ian.
Bonita Montero <Bonita.Montero@gmail.com>: Jan 14 10:36AM +0100

> And someone who includes Windows.h should know all the half zillion
> names it declares, right?
 
No, but if you you know the standard libary you can easily
distinguish between standard libary functions and WinAPI
-functions.
Bonita Montero <Bonita.Montero@gmail.com>: Jan 14 10:36AM +0100

> as easy as possible to read and understand for people here, you are
> selfishly putting rather presumptuous and egotistical expectations on
> others, while still asking for their help.
 
You're compulsive.
Juha Nieminen <nospam@thanks.invalid>: Jan 14 02:21PM

>> selfishly putting rather presumptuous and egotistical expectations on
>> others, while still asking for their help.
 
> You're compulsive.
 
Well, don't expect me to help you with your questions if you don't put
any effort into it and have such an attitude.
 
And if you don't care if people answer your questions or not, why are
you even bothering to ask them?
Bonita Montero <Bonita.Montero@gmail.com>: Jan 14 04:12PM +0100

> any effort into it and have such an attitude.
> And if you don't care if people answer your questions or not, why are
> you even bothering to ask them?
 
Your attitude has nothing to do with more readable code but is just
nonsense-compulsiveness. And further you're not able to give an answer
on my question anyway.
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Jan 14 04:47PM +0100

On 13.01.2021 14:44, Juha Nieminen wrote:
 
> It does, because you are mixing names from Windows.h and from the standard
> library, and it's not as easy to see which names are from the latter by a
> quick visual scan.
 
Oh that's easy, not a problem, Juha.
 
The Windows API function names are Pascal camel-case starting with
uppercase letter, like `WaitForSingleObject`.
 
The standard library function names are lowercase, usually using the
snake case convention with underscores as word separators, like
`duration_cast` and `high_resolution_clock`.
 
 
> Likewise names from the standard library get confused
> with local variable names because they all look visually very similar and
> there's nothing distinguishing them.
 
That's not a problem for me with this code.
 
It could be a problem in some other code, e.g. code using the name
`high_resolution_clock` as the name of a local variable.
 
But then it's much easier to just fix the naming than to spray noisy
`std::` prefixes all over that code, and even easier: use an editor with
good syntax coloring, i.e. modern tools.
 
[snip]
> Clarity of your own code is your responsibility, not the responsibility
> of the people you are asking.
 
What constitutes clarity is very much arguable.
 
There's a good chance that your view is in a minority (it could also be
a majority, I don't know). Should Bonity cater to a specific subset of
the readership, and why that particular subset? I think she should just
do what feels right to her.
 
 
- Alf
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Jan 14 03:10PM -0800

On 1/12/2021 11:52 AM, Bonita Montero wrote:
> WakeByAddressAll. It is like a binary semaphore (Win32 event),
> but it has a superior performance.
> Look at this code:
[...]
 
Also, read all of:
 
https://akkadia.org/drepper/futex.pdf
legalize+jeeves@mail.xmission.com (Richard): Jan 14 06:50PM

[Please do not mail me a copy of your followup]
 
"astro.del.cielo" <vedi@lasignature.com> spake the secret code
 
>I'm looking working code to get email subject to write to log file.
>Write log is simple.
>I need help with email subject
 
There are already tools in the unix environment for extracting header
fields from email files such as formail. Consult it's man page.
 
You can look at the RFC standards that describe the format of a mail
message here:
<https://en.wikipedia.org/wiki/Email#Internet_Message_Format>
 
Roughly speaking, it consists of a header, a separator, and the body
of the message. The Subject of an email is in the header. The header
is structured as name/value pairs. The value may be continued across
several lines in the header and value continuation lines in the header
begin with spaces (no other lines in the header begin with spaces).
 
To obtain the message as a text file that you can parse depends on
your environment. If you're on a linux environment, chances are the
mail messgaes have already been turned into files in your filesystem.
This might be a file in "mailbox" format, but this is not defined by
an RFC standard AFAIK. If you need to get the mail message from a
remote server, then you will need to understand protocols like POP or
IMAP. Both the mailbox format and the POP/IMAP protocols are linked
from the above wikipedia page.
 
You may see things like =3D in the value of the Subject. This is
quoted-printable encoding described in the RFCs used to encode 8-bit
characters for an environment that is assumed to only be 7-bit clean.
--
"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>
Popping Mad <rainbow@colition.gov>: Jan 14 09:40AM -0500

On 1/3/21 3:28 PM, Öö Tiib wrote:
> IT has
> high salaries so only weak specialists become teachers
 
 
umm no. It is usually researchers. It is commercial coders who are
usually weak and specialized.
spudisnotyourbud@grumpysods.com: Jan 14 02:48PM

On Thu, 14 Jan 2021 09:40:35 -0500
>> high salaries so only weak specialists become teachers
 
>umm no. It is usually researchers. It is commercial coders who are
>usually weak and specialized.
 
Some commercial coders might be weak but in general it probably takes more
skill and intelligence to write commercial systems to a deadline and to keep
clients happy than it does to teach kids some simple Python and HTML coding.
Jii Fox <kerrttu11@gmail.com>: Jan 14 12:57AM -0800

On Wednesday, January 13, 2021 at 12:05:42 AM UTC+2, Melzzzzz wrote:
 
> > I know I could make drawCurrentGameSituation(); public, but I feel it really should be private,
> > isnt it?
 
 
> And then?
 
Sorry what do you mean?
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Jan 09 10:34PM -0800

On 1/9/2021 10:01 PM, Bonita Montero wrote:
 
>>> The newed memory would be aligned also.
 
>> Really? ...
 
> Yes.
 
You cut off my point about using new vs aligned_alloc and placement new.
Robert Komar <robk@robpc4.robk-home.org>: Jan 10 12:49PM -0500

> or `selfie' for self-portrait. Futhermore, like `donut' for
> `dough-nut', the primitivised spelling conceals the meaning
> of the word.
 
See https://en.wikipedia.org/wiki/Xmas for more information on the
derivation of the word Xmas. It is an interesting read. It looks
like the fight between those who see it as secularization and those
who see it as a legitimate abbreviation has been around for a long
time.
 
Rob Komar
Mr Flibble <flibble@i42.REMOVETHISBIT.co.uk>: Jan 10 10:37AM

Hi!
 
neoGFX Sample Application - Chess [PROGRESS UPDATE - en passant / castling / check / animation]
 
https://www.youtube.com/watch?v=t4c-GX1_WnI
 
Message ends.
 
/Flibble
 
--
😎
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: