News for hackers. Stuff that matters.
Re:How is GNU `yes` so fast? by ww520 on Tuesday June 13, 2017 @02:56AM (#14543267)
Have a few pre-written arrays for the common cases: "y", "Y", "n", "N", etc. Those are the fast cases (or the benchmark optimized cases, like, what Volkswagen did). Have another pre-allocated static array to fill in with other input.
Re:How is GNU `yes` so fast? by skrebbel on Tuesday June 13, 2017 @03:48AM (#14543415)
> (or the benchmark optimized cases, like, what Volkswagen did)

This is amazing. Maybe we can turn this into a verb? "I Volkswagened the common cases with precalced buffers".

Re:How is GNU `yes` so fast? by majewsky on Tuesday June 13, 2017 @04:22AM (#14543520)
"To volkswagen" as in "optimize for a benchmark"? I'm so going to use this as soon as possible.

Incidentally, that word works even better in German, where every verb must end in "-en".

Re:How is GNU `yes` so fast? by rimliu on Tuesday June 13, 2017 @06:38AM (#14543896)
I am pretty sure software cheating on benchmarks precedes VW. Samsung a few years ago? Probably not the first either.
Re:How is GNU `yes` so fast? by catmanjan on Tuesday June 13, 2017 @07:04AM (#14543957)
I think video card manufacturers were first to cheat benchmarks
Re:How is GNU `yes` so fast? by gpderetta on Tuesday June 13, 2017 @08:17AM (#14544205)
'Never trust a benchmark you didn't Volkswagen yourself'
Re:How is GNU `yes` so fast? by kuschku on Tuesday June 13, 2017 @04:11AM (#14543486)
That's how you get sued. Especially because now Ford and GM are also in court, for having done the same as VW.
Re:How is GNU `yes` so fast? by gjm11 on Tuesday June 13, 2017 @08:08AM (#14544174)
Let me check that I have correctly understood the scenario you're anticipating.

1. Someone uses "volkswagen" as a verb meaning "cheat in benchmarks".

2. Volkswagen takes them to court, on the basis that it is slanderous or libellous to associate Volkswagen with cheating in benchmarks.

3. Counsel for the defence reminds the court that Volkswagen were in the news for a protracted period for a benchmark-rigging that saw them hit with a multi-billion-dollar fine, slashed a third off their stock price, saw their CEO resign, led to there being a "Volkswagen emissions scandal" page on Wikipedia, etc., etc., etc.

4. [THIS IS THE BIT I'D LIKE YOU TO FILL IN FOR ME.]

5. Volkswagen wins the case.

How exactly does step 4 go?

Re:How is GNU `yes` so fast? by kuschku on Tuesday June 13, 2017 @03:36PM (#14547887)
By volkswagen arguing that this is industry standard behaviour, and the entire media campaign is already libel and slander.

And they’d have a pretty good case with that, considering the original report all this media campaign was based on called out 6 carmakers, but the media (and the poster) only call out Volkswagen.

Re:How is GNU `yes` so fast? by dotancohen on Tuesday June 13, 2017 @04:20AM (#14543516)
In the same vein as Adobe sues me for photoshopping a picture or Alphabet sues me for googling my exgirlfriends' names?
Re:How is GNU `yes` so fast? by kuschku on Tuesday June 13, 2017 @05:28AM (#14543701)
No, but you don’t wanna get sued for libel and slander. If VW can realistically show that it is industry-standard behaviour (which is pretty obvious), then they might even have a chance to win.

Either way, it’d be expensive for you.

Re:How is GNU `yes` so fast? by jacquesm on Tuesday June 13, 2017 @06:06AM (#14543812)
I'll call you when they sue.
Re:How is GNU `yes` so fast? by cestith on Tuesday June 13, 2017 @01:41PM (#14546776)
It's been said, "Truth is the best defense for libel". Reasonably held opinion would then be the second.

Realistically, not mentioning anyone or anything is the only complete defense. The truth still comes close.

Re:How is GNU `yes` so fast? by graetzer on Tuesday June 13, 2017 @05:37AM (#14543723)
I do not think Volkswagen will try to sue you for adding a new phrase to urban dictionary ;-)