Re: [MacRuby-devel] macruby on iphone (again) - options and way forward

2009-10-11 Thread Laurent Sansonetti
Hi John :) On Oct 11, 2009, at 1:53 AM, John Shea wrote: Hello everyone. So I think this topic is going to rear its ugly/pretty head until a solution becomes available, and I myself would really like to be able to use macruby code on the iphone. So I have put down my naive thoughts as to

Re: [MacRuby-devel] macruby on iphone (again) - options and way forward

2009-10-11 Thread Matt Aimonetti
John, thanks for sharing, look for an email from Laurent from about a week where he's explaining the plan for the iphone and what needs to be done to release/retain objects. I think the thread should help you and you might want to work with the other developer who already started looking into that.

[MacRuby-devel] macruby on iphone (again) - options and way forward

2009-10-11 Thread John Shea
Hello everyone. So I think this topic is going to rear its ugly/pretty head until a solution becomes available, and I myself would really like to be able to use macruby code on the iphone. So I have put down my naive thoughts as to what are the issues. I am a complete novice when it comes

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Антон Журавскій
Hi Laurent, Wow, thanks, you gave me a fair amount of directions – many thanks. I will start digging into it and let you know as I advance. I will start with malloc then. Re retain/release – this seems to be a good and quite straightforward approach, but I believe there will be issues lik

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Laurent Sansonetti
Hi Anton, Great! So, since autozone doesn't exist on the iPhone, we must emulate it. First, we make sure all memory allocations are done from the default malloc zone. Second, we need to appropriately retain/release/ autorelease Objective-C objects (as an example, if an object becomes an in

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Антон Журавскій
Hi Laurent, So I believe I will at least try to work out something re 2). The only issue that might emerge is that even if I end up with something working, it would be great to be checked by somebody as I'm not a proficient C developer (however, I wrote some stuff in C, C++ and Objective-

Re: [MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Laurent Sansonetti
Hi Anton, It's more complicated than that. It's basically a 2 goals target: 1) finishing the AOT compiler 2) emulating garbage collection I work on 1) heavily. AFAIK nobody started working on 2). The project is free software by the way, so anyone can hack on the source code. If you won't wan

[MacRuby-devel] MacRuby on iPhone

2009-10-06 Thread Антон Журавскій
Hi all, I know most of you are 100% pissed off by this topic, but does anybody work on porting MacRuby to iPhone? What are main issues around that (if any)? And do we have a chance to be alive when it finally gets there? I'm personaly very excited by Ruby in general and MacRuby in particu