[Date Prev][Date Next][Thread Prev][Thread Next]
- From: Louis-Philippe <default@...>
- Date: Tue, 26 Oct 2010 15:58:40 -0400
2010/10/26 Jonathan Castello <firstname.lastname@example.org>
On Tue, Oct 26, 2010 at 4:03 AM, Matthew Wild <email@example.com> wrote:
> As far as I know it's quite possible, bar some browser API problems
> (with \0, etc.). The only other problem I foresee would be inefficient
> internal representations of binary data, like using wide character
> strings. As far as I know V8 uses UTF-8 internally.
puts restrictions on certain bytes. From Wikipedia's page for UTF-8,
bytes above 127 are either part of a sequence, or are reserved.
> In any case, I'm sure we can cope with any ugliness until they finally
> need it for the FileReader and websocket APIs for example.
Lua won't be able to run on any current versions of browsers then,
will it? Since its unlikely that client-side Lua will be reading in
the output from luac, and instead parsing script source, it seems like
it would be easier to go with a different internal format.
A thought occurs to me, though: Could Lua bytecode be packed into an
image for the server to send, and then can the client unpack it into
an array of integers? Stranger things have been done...