lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, 19 Oct 2011 19:02:53 +0200, Axel Kittenberger wrote:

A valid point, however, is, how much performance you actually need,
and how much you sacrifice for simplicity that e.g. good old CGI and
process spawning brings? But a contradictionary argument in Pierres
(and most others here) rational that ms (and ram) do matter - which is
otherwise one of the big strengths of Lua and especially LuaJIT and
thus their use in the gaming community.

I'm not a native English speaker so maybe I didn't make myself clear.
Let's try again.

The cost of spawning a Lua process is low, so you can afford to spawn
many of them. That makes Lua CGIs a viable choice for a medium-sized
Web application. It's the same thing for Perl, by the way.

Spawning Python or Ruby is more expensive (*), so for some workloads
you will have to choose a more complex model (event-based, workers...).
You could do the same thing in Lua but you don't have to.