Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-18 Thread Perry E. Metzger
On Tue, 18 Oct 2011 10:04:37 +0200 Laurent Sansonetti wrote: > Hi Perry, > > On Tue, Oct 18, 2011 at 12:07 AM, Perry E. Metzger > wrote: > > On Mon, 17 Oct 2011 13:44:56 -0700 Matt Aimonetti > > wrote: > >> See my earlier reply, basically, you are right, it is technically > >> possible to chang

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-18 Thread Laurent Sansonetti
Hi Perry, On Tue, Oct 18, 2011 at 12:07 AM, Perry E. Metzger wrote: > On Mon, 17 Oct 2011 13:44:56 -0700 Matt Aimonetti > wrote: >> See my earlier reply, basically, you are right, it is technically >> possible to change the way MacRuby works to use an automatic >> reference counting approach. >>

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Conrad Taylor
Sent from my iPhone On Oct 17, 2011, at 2:26 PM, Igor Evsukov wrote: > Hi Henry, > >> This doesn't explain why MacRuby can't be implemented with ARC rather than >> relying on the OBJ-C 2 garbage collector. > Do You know what the difference between Garbage Collection and Reference > Counting

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Conrad Taylor
Sent from my iPhone On Oct 17, 2011, at 2:26 PM, Igor Evsukov wrote: > Hi Henry, > >> This doesn't explain why MacRuby can't be implemented with ARC rather than >> relying on the OBJ-C 2 garbage collector. > Do You know what the difference between Garbage Collection and Reference > Counting

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Perry E. Metzger
On Mon, 17 Oct 2011 13:44:56 -0700 Matt Aimonetti wrote: > See my earlier reply, basically, you are right, it is technically > possible to change the way MacRuby works to use an automatic > reference counting approach. > But it's far from being trivial. Wouldn't reference counting radically chang

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Terry Moore
Even better then... Laurent and crew have done brilliant work to date... That alone gives me confidence in macruby... Given a choice of objc v ruby sorry ruby wins for me :) Terry Moore On 18/10/2011, at 10:48 AM, Igor Evsukov wrote: > GC isn't an issue at all. There are apps on the AppStore

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Igor Evsukov
GC isn't an issue at all. There are apps on the AppStore that written in C#(Mono) or Lua which uses it own VM's with garbage collection. I think that the main issue why Apple don't support MacRuby officially on iOS is high memory usage. Potentially, if MacRuby will be shipped with iOS, so it c

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Terry Moore
So I can understand not having gc on ios those cycles are precious. But looking ahead the hardware is moving to multicore and larger ram... In which case (perhaps including blocking for high priority tasks) a gc could be used without the current restrictions... Terry Moore On 18/10/2011, at 10

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Igor Evsukov
Hi Henry, > This doesn't explain why MacRuby can't be implemented with ARC rather than > relying on the OBJ-C 2 garbage collector. Do You know what the difference between Garbage Collection and Reference Counting? Current MacRuby VM implementation heavily depends on presence of GC. Potentially

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Matt Aimonetti
See my earlier reply, basically, you are right, it is technically possible to change the way MacRuby works to use an automatic reference counting approach. But it's far from being trivial. - Matt On Mon, Oct 17, 2011 at 1:28 PM, Henry Maddocks wrote: > > On 17/10/2011, at 7:11 PM, Igor Evsukov

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Henry Maddocks
On 17/10/2011, at 7:11 PM, Igor Evsukov wrote: > Hi Henry, > >>> And it's impossible to make Ruby to use ARC. >> >> Why? > For memory management Objective-C uses a paradigm called "reference > counting". ... > In Ruby we have garbage collector which is acts in whole different way I unders

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Matt Aimonetti
Python uses a reference counting GC, MacRuby could, in theory, implement ARC under the cover. It would however make C extensions really really hard to support. - Matt On Sun, Oct 16, 2011 at 11:11 PM, Igor Evsukov wrote: > Hi Henry, > > And it's impossible to make Ruby to use ARC. > > Why? > > F

Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-16 Thread Igor Evsukov
Hi Henry, >> And it's impossible to make Ruby to use ARC. > > Why? For memory management Objective-C uses a paradigm called "reference counting". The idea is very simple – when You need an object – You increase it reference count, when You no longer need it – You should decrease it. For example

[MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-16 Thread Henry Maddocks
On 16/10/2011, at 9:07 PM, Igor Evsukov wrote: > And it's impossible to make Ruby to use ARC. Why? Henry ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel