[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68513] Re: Seven stacks (and two questions)

From: "Martin J. Dürst" <duerst@...>
Date: 2015-03-13 03:06:26 UTC
List: ruby-core #68513
Hello Jakub,

On 2015/03/12 22:00, Nobuyoshi Nakada wrote:
> On 2015/03/12 19:15, Jakub Trzebiatowski wrote:
>> The Ruby Hacking Guide says that Ruby has=E2=80=A6 seven stacks. Is it=
 an
>> implementation choice (and it could be implemented with one stack),
>> or is there really a need for seven logical stacks? For example, Lua
>> has one stack, and still closures with upvalues are totally possible
>> (it=E2=80=99s like Ruby=E2=80=99s blocks that can reference local vari=
ables of
>> their enclosing method, but it works for any function with any
>> upvalues).
>
> RHG is a good book, but quite old for the core implementation.

I suggest you look at "Ruby Under a Microscope: An Illustrated Guide to=20
Ruby Internals". It's much less detailed than the Ruby Hacking Guide,=20
but much more up to date. And as far as I can remember, it talks about 2=20
stacks, not seven.

Regards,   Martin.

In This Thread