News for hackers. Stuff that matters.
Re:How our users exploited concurrency and how we fixed it by voidlogic on Friday January 11, 2013 @02:17PM (#5044410)
"I was worried that I’d have to resort to semaphores or some kind of other exotic programming construct."

I'm not saying a semaphore would have been appropriate here but- For real? A semaphore is exotic? It is an one of the oldest original synchronization methods. Semaphore were developed by Dijkstra in 1965. The author's C-S program failed him.

Re:How our users exploited concurrency and how we fixed it by EvilTrout on Friday January 11, 2013 @02:21PM (#5044428)
Everyone's got to start somewhere!

In the sentence before I explicitly said I was a newbie to this stuff at the time. Obviously it's not exotic to a more experienced developer :)

Re:How our users exploited concurrency and how we fixed it by voidlogic on Friday January 11, 2013 @02:28PM (#5044462)
My point was that a semaphore is freshmen or sophomore level undergrad stuff, something I would expect every professional developer to understand. Here someone who considers themselves a developer, which I assume means a professional software developer, considers it an exotic construct. Things like this shakes my faith in the computer science educational system.
Re:How our users exploited concurrency and how we fixed it by EvilTrout on Friday January 11, 2013 @03:26PM (#5044781)
I think you're being a bit dramatic about little part of one sentence.

There are many application developers out there using Rails, PHP or Django who can go years without invoking locks or semaphores due to the strengths of the APIs and frameworks they use.

As they learn and grow as developers, they will be introduced to new problems and solutions. A semaphore can be exotic, not because they've never heard of it before, but because they've not used them very much outside of that one assignment they did in CS 5 years ago.

How about instead of criticizing people's eductions, we encourage them to be mindful about what they don't know, and to learn whatever they can when they get a chance?

Re:How our users exploited concurrency and how we fixed it by voidlogic on Friday January 11, 2013 @03:50PM (#5044927)
"How about instead of criticizing people's eductions, we encourage them to be mindful about what they don't know, and to learn whatever they can when they get a chance?" I'm all for people learning things they were not taught in school and I commend you for that.

But as the field grows there will be more and more material that was traditionally taught, but is now dropped. For example, I could imagine a misguided department dropping a once required OS/Systems class to allow students to choose that as an elective, or maybe a node.js or Ruby elective instead. I think those kind of program changes are serious and need discussion-

Re:How our users exploited concurrency and how we fixed it by brodney on Friday January 11, 2013 @05:24PM (#5045434)
Not everyone who does this was in a CS Program. When I learned about them, I went with a lock-free model for my own project because semaphores seemed to add more complexity than they solved. I can understand the author's desire not to use them.
Re:How our users exploited concurrency and how we fixed it by Tyr42 on Friday January 11, 2013 @03:08PM (#5044675)
I'm a CS student at a university known for it's CS program. I know about semaphores, but this has not been covered in any of the first or second year classes.
Re:How our users exploited concurrency and how we fixed it by voidlogic on Friday January 11, 2013 @03:19PM (#5044735)
I'm sure you will see it before you graduate, whenever you take your basic operating systems course.
Re:How our users exploited concurrency and how we fixed it by dtwwtd on Friday January 11, 2013 @03:12PM (#5044701)
In our program at Michigan, concurrency isn't really discussed until your 3rd or 4th year when/if you take the operating systems course.