|
Coders at Work: Reflections on the craft of programmingWorse, when the thread accesses thread-local variables, it gets the next threadБЂ™s values, because the thread ID was used as the key to the thread-local variables. So what we took to be a minor flaw in the tracing system was actually evidence of a really serious bug. When an event was attributed to thread-43 instead of thread-42, it was because thread-42 was now unintentionally impersonating thread-43, with potentially disastrous consequences. This is an example of why you need safe languages. This is just not something that anyone should ever have to cope with. I was talking to someone recently at a university who asked me what I thought about the fact that his university wanted to teach C and C++ first and then Java, because they thought that programmers should understand the system БЂњall the way down.БЂ«I think the premise is right but the conclusion is wrong. Yes, students should learn low-level languages. In fact, they should learn assembly language, and even chip architecture. Though chips have turned into to these unbelievable complicated beasts where even the chips donБЂ™t have good performance models anymore because of the fact that they are such complicated state machines ...» | Код для вставки книги в блог HTML
phpBB
текст
|
|