[MacRuby-devel] [MacRuby] #529: Using a Proc as a ‘callback function’

MacRuby ruby-noreply at macosforge.org
Wed Dec 30 13:14:10 PST 2009


#529: Using a Proc as a ‘callback function’
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige@…          |       Owner:  martinlagardette@…        
     Type:  defect                   |      Status:  new                       
 Priority:  blocker                  |   Milestone:                            
Component:  MacRuby                  |    Keywords:                            
-------------------------------------+--------------------------------------
Changes (by lsansonetti@…):

  * owner:  lsansonetti@… => martinlagardette@…


Comment:

 Thibault, this could be something for you. The challenge here is to JIT
 compile at runtime for a given Proc a trampoline function that will call
 its callback, then passing a pointer to the trampoline to the dispatcher.
 Also, we must keep a reference to the trampoline inside the internal proc
 structure so that we can avoid generating it more than once and free the
 machine code once the proc is finalized by the GC.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/529#comment:3>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list