Skip to main content

Stack Overflow Weekly Newsletter - Tuesday, May 31, 2016

Stack Overflow Weekly Newsletter
Have you found help on Stack Overflow? Take just two minutes to sign up now, and you'll be ready to give back when you can.
Sign up for Stack Overflow

Top new questions this week:

Is using an outdated C compiler a security risk?

We have some build systems in production which no one cares about and these machines run ancient versions of GCC like GCC 3 or GCC 2. And I can't persuade the management to upgrade it to a more ...

c security gcc  
asked by Calmarius 88 votes
answered by plugwash 57 votes

Why is the size of a lambda 1 in C++?

I am working with the memory of some lambdas in C++, but I am a bit puzzled by their size. Here is my test code: #include <iostream> #include <string> int main() { auto f = [](){ ...

c++ c++11 lambda c++14 sizeof  
asked by sdgfsdh 49 votes
answered by Yakk 62 votes

The fastest C++ algorithm for string testing against a list of predefined seeds (case insensitive)

I have list of seed strings, about 100 predefined strings. All strings contain only ASCII characters. std::list<std::wstring> seeds{ L"google", L"yahoo", L"stackoverflow"}; My app constantly ...

c++ string windows algorithm  
asked by Victor Mezrin 31 votes
answered by VermillionAzure 43 votes

Why is the F# version of this program 6x faster than the Haskell one?

Haskell version(1.03s): module Main where import qualified Data.Text as T import qualified Data.Text.IO as TIO import Control.Monad import Control.Applicative ((<$>)) import ...

performance haskell f#  
asked by Marko Grdinic 30 votes
answered by behzad.nouri 51 votes

Why was the register keyword created?

While reading Keywords That Aren't (or, Comments by Another Name) by Herb Sutter I came across these lines: That's right, some keywords are semantically equivalent to whitespace, a glorified ...

c++ c c++11 language-lawyer  
asked by ayushgp 30 votes
answered by Theodoros Chatzigiannakis 33 votes

Why is statistics.mean() so slow?

I compared the performance of the mean function of the statistics module with the simple sum(l)/len(l) method and found the mean function to be very slow for some reason. I used timeit with the two ...

python performance mean  
asked by Just some guy 29 votes
answered by Jivan 46 votes

If nullptr_t isn't a keyword, why are char16_t and char32_t?

As discussed at Why is nullptr_t not a keyword, it is better to avoid introducing new keywords because they can break backward compatibility. Why then are char16_t and char32_t keywords, when they ...

c++ c++11  
asked by Brian 25 votes
answered by user657267 14 votes

Greatest hits from previous weeks:

Validate email address in JavaScript?

How can an email address be validated in JavaScript?

javascript regex validation email email-validation  
asked by pix0r 1841 votes
answered by sectrean 2203 votes

Round to at most 2 decimal places in JavaScript

I'd like to round up to 2 decimal places, but only if necessary. Input: 10 1.7777777 9.1 Output: 10 1.78 9.1 How can I do this in JavaScript?

javascript decimal rounding decimal-point  
asked by stinkycheeseman 923 votes
answered by ustasb 1136 votes

Can you answer these?

Process unaligned part of a double array, vectorize the rest

I am generating sse/avx instructions and currently i have to use unaligned load and stores. I operate on a float/double array and i will never know whether it will be aligned or not. So before ...

c++ c vectorization  
asked by hr0m 5 votes

How probabilities are calculated in MS SQL Server Analysis Services - Decision Tree model?

I am a new user of MS SSAS models and I'd like to know how the probabilities are being calculated within the node distribution of Decision tree model. Example: I've created a model for sample data ...

ssas probability decision-tree  
asked by Ramkumar 7 votes

Why doesn't this code compile with clang but with gcc

This code works perfectly fine with gcc/g++ and msvc but not with clang. It keeps complaining that no matching function for Log was found, what is going on? #include <iostream> template ...

c++ c++11  
asked by Dr. Jones 14 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...