[#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:68506] Seven stacks (and two questions)

From: Jakub Trzebiatowski <jaktrze1@...>
Date: 2015-03-12 10:15:38 UTC
List: ruby-core #68506
The Ruby Hacking Guide says that Ruby has窶ヲ 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窶冱 like Ruby窶冱 blocks that can reference local variables of their enclosing method, but it works for any function with any upvalues). 

1. Is there any Ruby feature that I窶冦 not aware of, and it justifies the need of seven stacks?

2. When does Ruby generate `getdynamic` YARV opcode? Could you provide me with an example source code? (I really tried to make Ruby generate it. No results.)

---
Jakub Trzebiatowski
Computer science student
Gdaナгk University of Technology



In This Thread

Prev Next