HNHacker News
TopNewBestAskShowJobs

anon946

233 karma · joined March 14, 2016

submissionscomments
anon946··on A glut of PhDs who can’t find academic jobs
I'd say it varies more than somewhat, but rather a lot, by field (and maybe by school).
anon946··on The Little Book of Semaphores (2016) [pdf]
> 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 do correctly.

I teach OS, and I still cover semaphores, but I always tell the class that I don't think they are very useful. I spend much more time on condition variables.

anon946··on Devirtualization in LLVM and Clang
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?
anon946··on As opioid overdoses exact a higher price, communities ponder who should be saved
How does that explain that the autoinjector was $690 in 2014 but $4500 today?
anon946··on How Lyft screwed me out of a $350 referral bonus
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 and its approval as distinct events. What does the fine print state? Can this be pursued in small claims court?
anon946··on House panel looking into Reddit post about Clinton's email server
Wasn't it July 24, 2014?
anon946··on Things Unix can do atomically (2010)
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 relationships. This piece of code might rely on there always being two edges, and crash or give erroneous results if not.

Thus, the adding of the two edges must be atomic (when observed from the rest of the system).

(The example is a bit contrived, but hopefully gets the idea across.)

anon946··on Lambda expression comparison between C++11, C++14 and C++17
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 to capture by reference, for which the Apple syntax seems to require the __block storage type modifier.
anon946··on Lambda expression comparison between C++11, C++14 and C++17
What would you propose as the syntax?
← PreviousPage 4 of 4