Javascript bytecode

Mafi mafi at example.org
Fri Dec 21 02:53:45 PST 2012


On Friday, 21 December 2012 at 10:37:05 UTC, Araq wrote:
> On Friday, 21 December 2012 at 10:30:21 UTC, Walter Bright 
> wrote:
>> On 12/21/2012 2:13 AM, Max Samukha wrote:
>>> What Walter is wrong about is that bytecode is entirely 
>>> pointless.
>>
>> I'll bite. What is its advantage over source code?
>
> Interpreting the AST directly: Requires recursion.
> Interpreting a (stack based) bytecode: Does not require 
> recursion.
>
> That's what an AST to bytecode tranformation does; it 
> eliminates the recursion. And that is far from being useless.

It don't think that this is such a big deal. Either way you need 
one stack: either the call stack or the stack machine's stack. It 
doesn't seem to make a big difference.
Am I wrong?


More information about the Digitalmars-d mailing list