10 ms·
People look at e.g. Node.js and think it's a "new" "technology" or even in some cases "platform". In reality it's a well-known Reactor Pattern with some package
by M8 11y ago
People look at e.g. Node.js and think it's a "new" "technology" or even in some cases "platform". In reality it's a well-known Reactor Pattern with some package management running on a not-very-slow virtual machine using exclusively a weakly typed dynamic language which takes years to update with features.
- xyzzy123 11y agoAnd yet a vastly more productive environment than actually trying to get the same thing done in C++. I've worked with two commercial C++ systems designed around the reactor pattern, so perhaps not an expert, but this is not a drive-by comment either. The C++ projects I worked on ended up requiring extra little "threads on the side" to deal with stuff like sync DB drivers or closed source libs. Little inefficiencies added up to the point where we may as well have done the darn things in JS anyway.