3 ms·
So now people are going to "transpile" their nginx configs? (And still not be as fast as Lua?) In nginx there are two places for scripting that I know of. One,
by MichaelGG 12y ago
So now people are going to "transpile" their nginx configs? (And still not be as fast as Lua?)
In nginx there are two places for scripting that I know of. One, to replace the somewhat awkward config stuff, like the "if" statement. Two, to enhance HTTP requests/routing a bit. I doubt people are writing long applications and I hope nginx isn't trying to become an application server.
I just can't see how a weak language like JS makes any sense for such an environment. Maybe that's why the nginx guy says he's making his own JS VM, to get it working well enough for nginx.
- astrodust 12y agoIt's a glue language. I don't expect people to transpile things, but it's an option on the table. JavaScript might be "weak", but it's strong enough for that sort of task. There's a lot to hate about JavaScript, but ubiquity and support is not one of those things.