Stack Overflow Weekly Newsletter
Stack Overflow Weekly Newsletter

Top new questions this week:

How to explain C pointers (declaration vs. unary operators) to a beginner?

I have had the recent pleasure to explain pointers to a C programming beginner and stumbled upon the following difficulty. It might not seem like an issue at all if you already know how to use ...

c pointers  
asked by armin 96 votes
answered by Pharap 17 votes

Why are arrays Objects, but can not be used as a base class?

The Java language specification specifies that In the Java programming language arrays are objects (§4.3.1), are dynamically created, and may be assigned to variables of type Object (§4.3.2). All ...

java arrays inheritance  
asked by Heisenberg 55 votes
answered by dystroy 32 votes

Do short-circuiting operators || and && exist for nullable booleans? The RuntimeBinder sometimes thinks so

I read the C# Language Specification on the Conditional logical operators || and &&, also known as the short-circuiting logical operators. To me it seemed unclear if these existed for nullable ...

c# nullable logical-operators short-circuiting dynamictype  
asked by Jeppe Stig Nielsen 54 votes
answered by Mads Torgersen - MSFT 26 votes

In which language is the C# compiler written?

I looked at the source code at, and it appears all the source code is in C#. I also looked at the source code for the new C# compiler platform (Roslyn), and it ...

c# compiler-construction bootstrap roslyn  
asked by CriketerOnSO 52 votes
answered by Thomas Levesque 89 votes

Why does creating a list from a list make it larger?

I'm seeing some inconsistencies when using sys.getsizeof on what should be identical lists. (Python 2.7.5) >>> lst = [0,1,2,3,4,5,6,7,8,9] >>> sys.getsizeof(lst) 76 >>> ...

python list  
asked by Mark Ransom 29 votes
answered by Ignacio Vazquez-Abrams 27 votes

Is there any advantage in using static_cast rather than C-style casting for non-pointer types?

I am well aware of the advantage in using static_cast rather than C-style casting for pointer types. If the pointer types are incompatible, then: static_cast will yield a compile-time error at a ...

c++ casting compile-time  
asked by barak manos 28 votes
answered by Frerich Raabe 31 votes

Does a lambda expression create an object on the heap every time it's executed?

When I iterate over a collection using the new syntactic sugar of Java8, such as myStream.forEach(Item -> { // do something useful }); Isn't this equivalent to the 'old syntax' snippet below? ...

java lambda java-8  
asked by Bastian Voigt 28 votes
answered by Holger 19 votes

Greatest hits from previous weeks:

"Thinking in AngularJS" if I have a jQuery background?

Suppose I'm familiar with developing client-side applications in jQuery, but now I'd like to start using AngularJS. Can you describe the paradigm shift that is necessary? Here are a few questions that ...

javascript jquery angularjs design architecture  
asked by Mark Rajcok 3751 votes
answered by Josh David Miller 6301 votes

What is the correct JSON content type?

I've been messing around with JSON for some time, just pushing it out as text and it hasn't hurt anybody (that I know of), but I'd like to start doing things properly. I have seen so many purported ...

json content-type  
asked by Oli 4771 votes
answered by Gumbo 5329 votes

Can you answer these?

Fused Location API gives Inaccurate Lat, Long when plotting in map it is slightly away from the road path even for low accuracy value

Google provides the fused location provider API to obtain location co-ordinates. According to the documentation, the API internally polls location data from different providers (GPS, Wifi, Cellular ...

android gps location battery-saver fusedlocationproviderapi  
asked by M Vignesh 7 votes

configure returned code 256 - python egg_info failed with error code 1 in /tmp/pip_build_root/lxml

Trying to build lxml on Python3.4 - system does have libxml2 and libxslt... pip build cannot ascertain MULTICORE(?), among other things(?) Relevant versions downloaded: lxml-3.4.1 - libiconv-1.14 - ...

python python-3.x pip lxml  
asked by DrLou 5 votes

Could the JIT collapse two volatile reads as one in certain expressions?

Suppose we have a volatile int a. One thread does while (true) { a = 1; a = 0; } and another thread does while (true) { System.out.println(a+a); } Now, would it be illegal for a JIT ...

java volatile jit memory-model java-memory-model  
asked by aioobe 8 votes
Subscribe to more Stack Exchange newsletters

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

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

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