4 ms·
The prime stack is going to have some real problems as Rails 4 goes threadsafe by default, as haml isn't threadsafe. I guess this won't be a problem for those
by nirvdrum 14y ago
The prime stack is going to have some real problems as Rails 4 goes threadsafe by default, as haml isn't threadsafe. I guess this won't be a problem for those on process-based servers, but it's going to be an issue for those embracing multi-threaded app servers.
- mike_herrera 14y ago> ...haml isn't threadsafe. Could you elaborate on this, please?
- nirvdrum 14y agoIt appears to swap out $stderr with a StringIO and StringIO isn't threadsafe and then doesn't wrap it in a lock. It's been tripping up people in the #jruby channel. This is a gist from one earlier today: https://gist.github.com/be34c0a5666db0c83629 https://gist.github.com/be34c0a5666db0c83629
- xentronium 14y agoIn all fairness, Haml should be rewritten one day. It is fantastic to use, but its internals are not so clean.