lua-users home
lua-l archive

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


On Thu, Jul 11, 2013 at 05:06:49PM -0400, Sean Conner wrote:
>   Personally, I tend to give each OS thread its own Lua state, using a
> "no-share" model of computation.  Yes, it means copying data through a
> message, but the slowness of that approach isn't as slow as many people
> think [1].  I also think it's easier to reason about the resulting code.
> 
>   -spc
> 
> [1]	QNX is a message-based OS, and back in the 90s, a comapny
> 	(disclaimer: I knew the owners) who sold X servers said their
> 	*fastest* implementation was on QNX.

QNX, where it can, swaps pages between sender and receiver of messages,
meaning there is no copying.

(Disclaimer: I used to work for QNX)

B.