News for hackers. Stuff that matters.
Re:Raphters, a web framework for C by bdonlan on Monday April 04, 2011 @02:48PM (#2407928)
They don't have to be global state - they can be updating thread local state, for example, in what is essentially dynamic scope. Depending on the OS, the efficiency of such TLS accesses can be quite good - on Linux, for example, it's just an extra pointer indirect or two with a segment selector (assuming the code is statically linked; it's very slightly more expensive in a solib).
Re:Raphters, a web framework for C by jerf on Monday April 04, 2011 @02:50PM (#2407937)
Touche. It's still an API design that's going to prove problematic, though.