Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
anon946
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
anon946
9y ago
Any decent C/C++ compiler will give the same code. For example, this: int f1(int n) { int sum = 0; for (int i = 0; i < n; i++) { int x = i + i; sum = x - i; } return sum;
92.
▲
by
anon946
9y ago
I'd say it varies more than somewhat, but rather a lot, by field (and maybe by school).
93.
▲
by
anon946
9y ago
> The point is that implementing a semaphore with a mutex and condition is very easy but more versatile. Agreed. An interesting exercise is to try the reverse: implementing a condition variable with a semaphore. It's not trivial to
94.
▲
by
anon946
9y ago
I'm also curious about the real-world benefits. Generally speaking, if you are using a virtual function, it's because you need polymorphic behavior. Is there a lot of code that uses virtual functions where not needed?
95.
▲
by
anon946
9y ago
How does that explain that the autoinjector was $690 in 2014 but $4500 today?
96.
▲
by
anon946
10y ago
If I understand this correctly, they are saying that you didn't complete the application within 30 days because it wasn't approved within 30 days. However, I believe that most people would consider the completion of an application
97.
▲
by
anon946
10y ago
Wasn't it July 24, 2014?
98.
▲
by
anon946
10y ago
Atomicity can be important at any level. For example, assume that adding a friend involves two edges in a graph, one edge in each direction. Now assume that there is some other piece of code that does some analysis or processing of friend r
99.
▲
by
anon946
10y ago
Looking here ( https://developer.apple.com/library/ios/documentation/Cocoa/... ) for the details, I think this is going to largely be a matter of opinion. I prefer the C++ syntax, especially when it comes
100.
▲
by
anon946
10y ago
What would you propose as the syntax?