dearrifling
Re:C++ Patterns: The Badge
on Wednesday June 12, 2019 @01:41AM (#20162049)
Exactly.
Re:You probably don’t need ReCAPTCHA
on Wednesday June 12, 2019 @01:34AM (#20162026)
Although the Badge pattern makes it flexible to add functions with different badges, this one doesn't have the awkward interface:
It just makes use of the non-transitiveness of friend.
Re:C++ Patterns: The Badge
on Wednesday June 12, 2019 @12:56AM (#20161877)
Some people argue exactly that. I don't necessarily agree.
Re:C++ Patterns: The Badge
on Wednesday June 12, 2019 @12:52AM (#20161870)
It can change the "POD for the purpose of layout" status of a class on Itanium. It can change layout.
Re:C++ Patterns: The Badge
on Wednesday June 12, 2019 @12:47AM (#20161849)
You can make register_device() an inline function that just calls a do_register_device() private function without the badge. That way you don't have to pay for the empty class.
Re:PSPTool Is a Swiss Army Knife for the Firmware of the AMD Secure Pr...
on Thursday June 06, 2019 @02:08AM (#20112017)
This the first time I heard about a change.org petition having any effect.
Re:Why Linked Lists Are an Interview Staple
on Thursday June 06, 2019 @12:33AM (#20111616)
This doesn't remove UB though. Your compiler still can assume that null-dereference never happens and generates code with this assumption.
Re:Should Failing Phish Tests Be a Fireable Offense?
on Thursday May 30, 2019 @01:22AM (#20048627)
That's true for any email, not just phising. Unless you can verify and trust all senders.
Re:Should Failing Phish Tests Be a Fireable Offense?
on Wednesday May 29, 2019 @04:25PM (#20044984)
Counting opening a mail as failing is ridiculous. A a phising test should only count captured logins.
Re:Adventures with ffmpeg and color ranges
on Wednesday May 29, 2019 @12:51AM (#20036943)
Fun fact: sRGB also has a non-black black point that is (fortunately) virtually ignored by everyone.
Re:Bonini's Paradox
on Monday May 27, 2019 @02:54AM (#20019981)
If your model is simple enough to represent the original system accurately, then the original system is not complex.
My model can be complex enough to represent the original system and still be useful. I can iterate on design and make measurements without building the real thing.
Re:Bonini's Paradox
on Monday May 27, 2019 @02:42AM (#20019928)
Having a complex model that describes a complex system is not unusable though. There is a reason we want to accurately simulate the Navier-Stokes equations with complex boundary conditions.
Re:Why is the ‘race to 5G’ a race?
on Monday May 27, 2019 @01:01AM (#20019587)
5G means that providers can sell higher data caps.
Re:More Productive Git
on Friday May 24, 2019 @04:43PM (#20005116)
On debian this is the default behavior.
Re:Firms That Promised Ransomware Decryption Almost Always Just Pay th...
on Friday May 17, 2019 @02:10AM (#19936734)
And surely there is nothing wrong with the alignment of ransomware authors' and this friendly service's incentives.
Re:/e/ plans to sell refurbished smartphones with Google-free Android
on Monday May 13, 2019 @08:28AM (#19898573)
If they offer warranty, who cares?
Re:F() vs. F(void) in C vs. C++
on Monday May 13, 2019 @01:01AM (#19896535)
That doesn't sound right. I think the difference is that C++ doesn't treat that as an array declaration so it doesn't require a complete type.
Re:Pprint: Pretty Printer for Modern C++
on Tuesday April 30, 2019 @05:52AM (#19786478)
ADL is important for customization points in modern C++.
Re:Is Amazon Violating U.S. Antitrust Laws?
on Wednesday April 24, 2019 @01:28AM (#19735798)
So they are misattributing the additional sale to their suggestions instead of the product being an advertisement for itself.
Re:Modern C++ Won't Save Us
on Tuesday April 23, 2019 @02:04AM (#19725974)
One shouldn't std::move in a return. Returning a local is already automatically an rvalue, however explicitly moving it disables copy elision.
Re:Nana: A modern C++ GUI library
on Sunday April 21, 2019 @01:00AM (#19710614)
As many words in C++, "modern" is overloaded. In this case I think it means it uses c++11 or later.
Re:Nana: A modern C++ GUI library
on Saturday April 20, 2019 @03:26PM (#19708402)
std::function implementations typically have small buffer optimization, a lambda capturing a single reference will most likely fit in there. But yes, it's quite heavyweight in general.
Re:Nana: A modern C++ GUI library
on Saturday April 20, 2019 @03:06PM (#19708300)
Well, that example shows some too stringy API for my taste.
Re:How Bad Is Your Colormap? (2014)
on Saturday April 13, 2019 @07:09PM (#19656351)
About that luminance-correct grayscale: https://entropymine.com/imageworsener/grayscale/
Re:Terminal latency (2017)
on Wednesday March 20, 2019 @02:09PM (#19445046)
100ms of keypress-to-sound latency makes the instrument unplayable.
What about organ players?
Re:Continuous Unix commit history from 1970 until today
on Tuesday March 19, 2019 @04:15PM (#19435281)
You can have unrelated commits and roots in a single git repo. No need for empty root commit.
Re:Show HN: Drogon – A C++14/17 based high performance HTTP applicatio...
on Tuesday March 19, 2019 @01:37AM (#19428350)
That has nothing to do with memory safety, that's just plain UB.
Re:Read color hex codes
on Sunday March 17, 2019 @03:09AM (#19412664)
It's because what most people call RGB is sRGB, a nonlinear color space. Interpolating in a linear color space is already much better.
Re:Show HN: Automatically synchronize subtitles with video
on Monday February 25, 2019 @04:17PM (#19249532)
Awesome! According to the description of the internals this only works with offsets and doesn't adjust the subtitle's playback speed. I think playback speed variations are not that broad, it's usually caused by playing a subtitle written for a given FPS played back on a different FPS video. It might worth it to try common FPS ratios at once and keep the best match.
Re:For the Love of Pipes
on Tuesday January 22, 2019 @12:02PM (#18969808)
Note that '<input grep | foo' is also valid.