Monday, May 4, 2020

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

Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: May 04 03:48PM +0100

Hi!
 
Yesterday a significant milestone was reached in neoGFX's implementation: rendering frames at a rate of 450 FPS; this is confirmation that the design of neoGFX's architecture is sound.
 
Screenshot: https://neogfx.org/temp/milestone1.png
 
/Flibble
 
--
"Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin
 
"You won't burn in hell. But be nice anyway." – Ricky Gervais
 
"I see Atheists are fighting and killing each other again, over who doesn't believe in any God the most. Oh, no..wait.. that never happens." – Ricky Gervais
 
"Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne 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."
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: May 04 05:28PM +0200

On 04.05.2020 16:48, Mr Flibble wrote:
 
> Yesterday a significant milestone was reached in neoGFX's
> implementation: rendering frames at a rate of 450 FPS; this is
> confirmation that the design of neoGFX's architecture is sound.
 
In one way this is good, in the sense that a game app's available time
won't be used up in rendering, or (hopefully) shuffling data to GPU.
 
However, do you actually have a monitor with 450 Hz or better refresh rate?
 
I find the movie refresh rates of 23.something to be generally somewhat
jerky, and /very/ jerky, annoyingly and possibly physically dangerously
jerky, for sideways panning, unless that panning is ultra slow.
 
Based on the generally only slight jerkiness of 23.something I gather
that for most people 70Hz should yield mostly smooth "moving pictures".
The refresh rate of my old Asus MX270 monitor is 59p Hz. I don't know
what the "p" signifies, there's also 59 iHz. But I guess it means 59.
 
But 450Hz would be overkill, unless one plans for the future of robots
and enhanced humans?
 
 
- Alf
Bart <bc@freeuk.com>: May 04 04:53PM +0100

On 04/05/2020 16:28, Alf P. Steinbach wrote:
> what the "p" signifies, there's also 59 iHz. But I guess it means 59.
 
> But 450Hz would be overkill, unless one plans for the future of robots
> and enhanced humans?
 
By itself it's meaningless, as it depends on the complexity of the scene
being rendered.
 
From what I can see of the screenshot, it doesn't look very complex - a
few hundred triangles possibly, assuming the background is animated and
not just a static texture.
"Öö Tiib" <ootiib@hot.ee>: May 04 09:15AM -0700

On Monday, 4 May 2020 18:28:21 UTC+3, Alf P. Steinbach wrote:
> what the "p" signifies, there's also 59 iHz. But I guess it means 59.
 
> But 450Hz would be overkill, unless one plans for the future of robots
> and enhanced humans?
 
That 59 Hz is perhaps measured somehow to be such that most people
do not notice any jerkiness.
From scientific papers I have read that calm humans can recognize
images seen for ~13 milliseconds, (so 70 Hz).
When nervous and alert it can reduce to ~8 milliseconds (so 120 Hz).
 
So maybe some very passionate gamers can benefit from 120 Hz
display and up from there we have to upgrade our species somehow.
Vir Campestris <vir.campestris@invalid.invalid>: May 04 09:54PM +0100

On 04/05/2020 16:28, Alf P. Steinbach wrote:
> that for most people 70Hz should yield mostly smooth "moving pictures".
> The refresh rate of my old Asus MX270 monitor is 59p Hz. I don't know
> what the "p" signifies, there's also 59 iHz. But I guess it means 59.
 
In TVs the P would be progressive scan - the electron beam tracks down
the pictures once for each frame (59 times a second in this case)
 
I is for interlaced - the beam does half the lines, then goes back and
does the other half.
 
This was especially good for European PAL and SECAM TV which ran at
25Hz, interlaced - so there was actually half a frame at a time, but the
halves came out at 50Hz. Less jerky.
 
(US NTSC was 30Hz, interlaced)
 
Andy
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: May 04 11:22PM +0200

On 04.05.2020 22:54, Vir Campestris wrote:
> 25Hz, interlaced - so there was actually half a frame at a time, but the
> halves came out at 50Hz. Less jerky.
 
> (US NTSC was 30Hz, interlaced)
 
Thanks, learned something.
 
But this is a very digital flat screen, no beam. I notice I made a typo
in the product name, it's an Asus MX279. Possibly it's just Intel or
Microsoft or someone applying very old generic code to old but not that
old equipment. Possibly. I haven't tried the interlaced mode. :-o
 
Obligatory annoyance rant: why can't they make screens controlled from
the computer, why always mysterious ungrokable nearly unusable touch
controls under the screen? Well, I guess that's in the same category as
why can't they make higher resolution scroll wheels on mouses, or why
are they still putting auto-repeat before buffering on all keyboards,
and why caps lock, and. And WHY only 23.x FPS?!? Anyway thanks. :)
 
- Alf [longing for a 1980's Ctrl+Shift+Alt PEDAL]
[oh, and the programmable f-keys with legends, on HP terminals]
[and why not a key labeled "Help" on the keyboard. Why?]
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: May 04 10:43PM +0100

On 04/05/2020 22:22, Alf P. Steinbach wrote:
 
> Thanks, learned something.
 
> But this is a very digital flat screen, no beam. I notice I made a typo in the product name, it's an Asus MX279. Possibly it's just Intel or Microsoft or someone applying very old generic code to old but not that old equipment. Possibly. I haven't tried the interlaced mode. :-o
 
> Obligatory annoyance rant: why can't they make screens controlled from the computer, why always mysterious ungrokable nearly unusable touch controls under the screen? Well, I guess that's in the same category as why can't they make higher resolution scroll wheels on mouses, or why are they still putting auto-repeat before buffering on all keyboards, and why caps lock, and. And WHY only 23.x FPS?!? Anyway thanks. :)
 
Well it would be nice to have the option for computer control but you cannot do away with the manual controls themselves.
 
/Flibble
 
--
"Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin
 
"You won't burn in hell. But be nice anyway." – Ricky Gervais
 
"I see Atheists are fighting and killing each other again, over who doesn't believe in any God the most. Oh, no..wait.. that never happens." – Ricky Gervais
 
"Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne 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."
Manfred <noname@add.invalid>: May 04 11:45PM +0200

On 5/4/2020 11:22 PM, Alf P. Steinbach wrote:
> - Alf [longing for a 1980's Ctrl+Shift+Alt PEDAL]
 
Didn't you mean Ctrl+Alt+Del ?
Christian Gollwitzer <auriocus@gmx.de>: May 05 12:27AM +0200

Am 04.05.20 um 23:22 schrieb Alf P. Steinbach:
>> does the other half.
 
> Thanks, learned something.
 
> But this is a very digital flat screen, no beam.
 
This is still correct for video modes today in camcorders and streaming
formats; see e.g.
 
https://en.wikipedia.org/wiki/1080p
https://en.wikipedia.org/wiki/1080i
 
for Full HD video. Digital image chips also need readout and if they
don't have the so called "global shutter mode", the lines are read in
sequence - leading special motion blur artifacts for fast horizontal motion.
 
Christian
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: May 04 11:14PM +0100

All religion is a stain on humanity.
 
/Flibble
 
--
"Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin
 
"You won't burn in hell. But be nice anyway." – Ricky Gervais
 
"I see Atheists are fighting and killing each other again, over who doesn't believe in any God the most. Oh, no..wait.. that never happens." – Ricky Gervais
 
"Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne 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."
rick.c.hodgin@gmail.com: May 03 06:27PM -0700

There's a day coming when the rapture will take place. Those who
have acknowledged their sin, repented, asked forgiveness from Jesus
Christ, will LEAVE THE WORLD at that time. They will shed this flesh-
based existence and begin, in Heaven, their time in eternity in while
a 7-year period of time called The Great Tribulation takes place on
Earth.
 
What will those seven years be like? Most will die. It will be like
no other time in history in terms of devastation and disaster. It is
the time of "Jacob's Trouble" where God puts His attention back on the
Jews and pours out His wrath upon the wickedness and sin in the world.
144,000 "new Christians" (who are Jews today) will be engaged after the
rapture. They will go forth and teach the message having signs and
wonders during that time.
 
For those wondering the full extent of what's coming, and why these
warnings go forth today, that you should come out from the evil and
wicked ways of this world and ask Jesus to forgive YOU and YOUR SIN
TODAY, and thereby escape the coming wrath, watch these videos.
 
It's a 20-part series. He's only published 19 parts as of the time
of this writing. Part 20 will be posted soon.
 
Revelation
https://www.youtube.com/watch?v=dafLJ90zCyI&list=PLSP1IO9h3J7tcJ6JfNFkYUi1AM6UcXfvC
 
You are loved.
You have an eternal purpose.
God will forgive your sin today, and save you from the coming wrath.
 
Ask Him to forgive your sin today and enter in to eternal life.
 
Time is short. The time to ask forgiveness is now. We are not
promised tomorrow.
 
--
Rick C. Hodgin
 
PS -- If you would like prayer, please email me. My family and I
will add you to our prayer list.
rick.c.hodgin@gmail.com: May 03 06:33PM -0700

Short version: Watch this video series to learn what's soon coming
to the Earth for everyone who is left behind after the rapture:
 
Revelation
https://www.youtube.com/watch?v=dafLJ90zCyI&list=PLSP1IO9h3J7tcJ6JfNFkYUi1AM6UcXfvC
 
--
Rick C. Hodgin
rick.c.hodgin@gmail.com: May 03 06:55PM -0700

You know the most compelling reason to believe the rapture
will take place very soon (days, weeks, months, years, but
not more than a few years) is that the technology needed to
fulfill every aspect of the requirements of the one-world
government, the mark system, the one-world economy, is
here today, and it wasn't here five to ten years ago.
 
AND... the Bible DOES NOT describe greater technology.
 
I think we'd all admit that in five to ten years we'd
have greater technology.
 
Watch the videos, my friends. They teach you the truth about
what's coming, and what I pray you'll escape.
 
 
--
Rick C. Hodgin
 
PS - God is calling people to repentance now. Those who
are wise will heed the call. The video series explains why.
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: May 04 12:23PM +0100


> Ask Him to forgive your sin today and enter in to eternal life.
 
> Time is short. The time to ask forgiveness is now. We are not
> promised tomorrow.
 
Fuck. Off.
 
--
"Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin
 
"You won't burn in hell. But be nice anyway." – Ricky Gervais
 
"I see Atheists are fighting and killing each other again, over who doesn't believe in any God the most. Oh, no..wait.. that never happens." – Ricky Gervais
 
"Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne 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."
David Brown <david.brown@hesbynett.no>: May 04 02:06PM +0200

On 04/05/2020 13:23, Mr Flibble wrote:
 
 
> Fuck. Off.
 
You do realise that by quoting his entire post, you are making sure that
those who have killfiled Rick will get to see it? As far as Rick is
concerned, you are one of the most helpful members of this newsgroup.
gazelle@shell.xmission.com (Kenny McCormack): May 04 02:11PM

In article <r8p0fm$3nl$1@dont-email.me>,
 
>You do realise that by quoting his entire post, you are making sure that
>those who have killfiled Rick will get to see it? As far as Rick is
>concerned, you are one of the most helpful members of this newsgroup.
 
I'm surprised you haven't KF'd Mr. Flibble, too. I think that Rick and
Flibble are the same kind of troll - they know perfectly well that they are
trolling. So, if you KF one, you really ought to be KF'ing the other.
 
People like you and Keith (and a few others) are a different kind of troll.
 
Anyway, the prime reason I read this group is because I enjoy reading
nonsense. I like Rick's nonsense the best. Don't care much for Flibble's
brand of nonsense.
 
--
Nov 4, 2008 - the day when everything went
from being Clinton's fault to being Obama's fault.
"Öö Tiib" <ootiib@hot.ee>: May 04 09:27AM -0700

On Monday, 4 May 2020 17:12:08 UTC+3, Kenny McCormack wrote:
 
> I'm surprised you haven't KF'd Mr. Flibble, too. I think that Rick and
> Flibble are the same kind of troll - they know perfectly well that they are
> trolling. So, if you KF one, you really ought to be KF'ing the other.
 
Yes, it is impossible to reduce signal:noise ratio by adding noise.
 
 
> Anyway, the prime reason I read this group is because I enjoy reading
> nonsense. I like Rick's nonsense the best. Don't care much for Flibble's
> brand of nonsense.
 
At least you admit that you like noise.
Real Troll <real.troll@trolls.com>: May 04 02:10PM -0400

On 04/05/2020 12:23, Mr Flibble wrote:
 
> Fuck. Off.
 
If people want to complain about Rick C Hodgin then his ISP is
Comcast.  Send the full headers to his ISP and they will send him a
warning letter or email about his behaviour.
 
> posting-host=2601:800:c001:900:0:0:0:edc7
Full headers:
 
Keith Thompson <Keith.S.Thompson+u@gmail.com>: May 04 01:50PM -0700

> that those who have killfiled Rick will get to see it? As far as Rick
> is concerned, you are one of the most helpful members of this
> newsgroup.
 
You do realize that those of us who have killfiled both Rick and Mr
Flibble wouldn't have seen any of that if you hadn't publicly replied to
it. Surely you know that Mr Flibble is a troll. Don't feed him. If
you want to complain to either of them, you can contact them directly.
 
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips Healthcare
void Void(void) { Void(); } /* The recursive call of the void */
Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo>: May 04 01:10AM -0400

red floyd wrote:
> Suggestions, etc, are also welcome.
 
> Thanks,
 
> red floyd
 
I experienced a similar transition (more precisely, change from C++03 compiler
to C++11) on significant code base about 3 years ago. We did not do any
refactoring, just switched to the newer compiler, set up the command-line
options and started using C++11 features. As the programmers became better
familiar with C++11 features they would sometimes replace a piece of the old
code when there was a need to fix a bug or change or add a feature with the code
using C++11 features.
 
I think our approach was close to optimal: where we did not need to change code
for a business reason or to fix a bug, maybe it was better to not touch it at
all (based on the principle to not touch what's either working or useless).
Otherwise, we had a chance to incrementally change it later wherever it was most
beneficial.
 
-Pavel
red floyd <no.spam.here@its.invalid>: May 03 10:37PM -0700

On 5/3/2020 10:10 PM, Pavel wrote:
> all (based on the principle to not touch what's either working or useless).
> Otherwise, we had a chance to incrementally change it later wherever it was most
> beneficial.
 
Thanks, Pavel.
 
This is the sort of thing I wa slooking forward. This and Manfred's
note about some C++11-isms being needed at the design stage.
 
Appreciate your and everyone else's comments!
 
Thanks everyone!
 
-- red floyd
Paavo Helde <eesnimi@osa.pri.ee>: May 04 09:21AM +0300

04.05.2020 08:37 red floyd kirjutas:
 
> Thanks, Pavel.
 
> This is the sort of thing I wa slooking forward. This and Manfred's
> note about some C++11-isms being needed at the design stage.
 
Yes, C++11 is in principle pretty backward compatible with C++03. The
same cannot be said about compiler versions, in general one can expect
more porting problems when upgrading compiler versions.
 
So take care to not use an old compiler version for you C++03. Use the
latest available compiler in C++03 mode, at least on some platform. If
you have to use an old compiler on the other platform(s), then expect
some porting efforts between the platforms.
Ian Collins <ian-news@hotmail.com>: May 04 08:21PM +1200

On 04/05/2020 18:21, Paavo Helde wrote:
> latest available compiler in C++03 mode, at least on some platform. If
> you have to use an old compiler on the other platform(s), then expect
> some porting efforts between the platforms.
 
That's good advice; our embedded product uses gcc for the target but
clang and VS2017 for development and test builds.
 
One other useful thing that I have done (and currently do!) is use the
latest supported standard for unit tests to familiarise myself and the
other team members with the latest and greatest features. This is a
great way to engage people in writing unit tests!
 
--
Ian.
Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo>: May 04 01:01AM -0400

Alf P. Steinbach wrote:
> invoke the for-collections overload of `<<`.
 
> Simply, explicit = good, implicit = not so good, in general.
 
> - Alf
Sorry, I left then without seeing your answer.
 
I think your answer and mine are equally patchy but both solve the original
problem .. almost (see below). My code (here and below I mean OP's issue only)
explicitly use value_type and both mine and your code implicitly use
const_iterator; each would make Collection deducible by expressing only one of
the container requirements in the additional template parameter and neither
would express all restrictions. To put container subject to bed, if we believe
a collection is a container, we could just use both mine and yours parameters
and by that become more accurate but still inexact as containers have other
requirements. I have never intended to express all restrictions though, just to
solve the issue.
 
What is more interesting to me, however, is the vague definition of "collection"
in the OP post. Seems both of us have read that as "container". I am now having
a second thought because a better (more general and suitable to OP code)
definition for "collection" would be a range-expression usable in range-based
"for" statement -- because it is its only property that the OP code actually
depends on (other than being able to insert the element to stream; but that the
requirement on element rather than collection type).
 
Unfortunately, neither mine nor your code works on something like "int a[] =
{5,6,7};"
 
I actually tried to get it working by changing the second template parameter to
"typename T = decltype(*std::begin(Collection()))"; that works for list and
vector but produces wrong result for int[] (due to automatic conversion to int*,
I believe). I may return to this later unless solved by you or someone else. The
current plan is to define some "range_expression_traits" class template that
would cover all cases of range expressions usable in range-based "for" (again, I
don't see it useful to try to cover all restrictions but rather to make all
interesting usages work although in this case the restrictions are minimal so
they might as well get all covered automatically). I wonder though if some
for-range-expression check or trait already exists so I will be re-inventing the
wheel.
 
On a side note, I would not want to require client code specify wrapper or
otherwise be anyhow changed; to me the challenge is to make the code that
seemingly should work out-of-box work out-of-box if at all possible.
 
-Pavel
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: