Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-20 Thread Sven A. Schmidt
I found that searching the google groups mirror was much easier and this might 
be the thread you're referring to:

https://groups.google.com/d/topic/macruby/ceyNNqComMc/discussion

-sas

On Oct 19, 2011, at 22:43, Jordan K. Hubbard wrote:

> 
> On Oct 19, 2011, at 11:38 AM, Terry Moore wrote:
> 
>> Yes. But he does state it is a read only not modified array. My 
>> understanding is. 'Array' is an NSMutableArray, I was merely suggesting 
>> using freeze to throw that exception just in case there maybe some code 
>> attempting to write/modify.
>> 
>> Mutex is the way to go but it also has an overhead.
> 
> Didn't somebody (Ernie?) already post a set of mix-ins for the mutable object 
> classes that used a per-object GCD queue to serialize operations against the 
> object?  If the mail archives were easier to search, I'd pull it up, but it 
> isn't and I'm too lazy. :)
> 
> - Jordan
> 
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

--

Dr. Sven A. Schmidt
abstracture GmbH & Co. KG
Wilhelm-Theodor-Römheld-Straße 28
55130 Mainz

Fon  +49 6131 696 29 0
Fax  +49 6131 696 29 29
Mail [email protected]

Amtsgericht Mainz HRA 40625
USt-IdNr.: DE258454694

Persönlich haftender Gesellschafter:
abstracture IT-Beratungs- und Beteiligungsgesellschaft mbH, Sitz Mainz, 
Amtsgericht Mainz HRB 41357

Geschäftsführer: Dr. U. Koch, T. Meyer, A. Misok, Dr. S.A. Schmidt, Dr. V. 
Schönharting



smime.p7s
Description: S/MIME cryptographic signature
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-20 Thread Matt Aimonetti
Hmm thanks, I didn't realize we had a google groups mirror. I'm wondering if
we shouldn't just move there since it's much easier to use and maintain than
macosforge.
Thoughts, ideas, suggestions?

- Matt

On Thu, Oct 20, 2011 at 12:13 AM, Sven A. Schmidt wrote:

> I found that searching the google groups mirror was much easier and this
> might be the thread you're referring to:
>
> https://groups.google.com/d/topic/macruby/ceyNNqComMc/discussion
>
> -sas
>
> On Oct 19, 2011, at 22:43, Jordan K. Hubbard wrote:
>
> >
> > On Oct 19, 2011, at 11:38 AM, Terry Moore wrote:
> >
> >> Yes. But he does state it is a read only not modified array. My
> understanding is. 'Array' is an NSMutableArray, I was merely suggesting
> using freeze to throw that exception just in case there maybe some code
> attempting to write/modify.
> >>
> >> Mutex is the way to go but it also has an overhead.
> >
> > Didn't somebody (Ernie?) already post a set of mix-ins for the mutable
> object classes that used a per-object GCD queue to serialize operations
> against the object?  If the mail archives were easier to search, I'd pull it
> up, but it isn't and I'm too lazy. :)
> >
> > - Jordan
> >
> > ___
> > MacRuby-devel mailing list
> > [email protected]
> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> --
>
> Dr. Sven A. Schmidt
> abstracture GmbH & Co. KG
> Wilhelm-Theodor-Römheld-Straße 28
> 55130 Mainz
>
> Fon  +49 6131 696 29 0
> Fax  +49 6131 696 29 29
> Mail [email protected]
>
> Amtsgericht Mainz HRA 40625
> USt-IdNr.: DE258454694
>
> Persönlich haftender Gesellschafter:
> abstracture IT-Beratungs- und Beteiligungsgesellschaft mbH, Sitz Mainz,
> Amtsgericht Mainz HRB 41357
>
> Geschäftsführer: Dr. U. Koch, T. Meyer, A. Misok, Dr. S.A. Schmidt, Dr. V.
> Schönharting
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Configuring IDE to use MacRuby?

2011-10-20 Thread Jean-Denis MUYS
Hi,

Out of curiosity, I tried to set up a few IDEs other than Xcode to use for 
MacRuby development, and I have mostly failed. I would appreciate any 
advice/suggestion.

- TextMate: Success. I found some rather complex recipes on the net. Mine is 
much simpler: go to Preferences > Advanced > Shell Variables and add a shell 
variable named TM_RUBY with value of '/usr/local/bin/macruby'.

- Komodo IDE: Failure. I chose Preferences > Languages > Ruby, clicked the 
"Browse" button and selected macruby in '/usr/local/bin/'. Komodo IDE accepted 
it, but reported the following error:

"The Ruby debugger extension does not work with the version of Ruby select or 
that is on your path. You need to use Ruby version 1.8.2 or later. You can get 
Ruby from the Ruby home page at http://www.ruby-lang.org";

I suspected their debugger extension expects the ruby debugger to be named 
rubyd and not macrubyd. So I dup'ed macrubyd and renamed the copy to rubyd. 
However, this didn't improve the situation.

My Google fu failed to locate any useful suggestion on the net.

- RubyMine: Failure. I chose Preferences > Ruby SDK and Gems, clicked "Add 
SDK…" > "Specify other" and chose 
/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macruby, as per 
some instructions I found on the net. However, RubyMine then displays an error 
message in large friendly red letters:

"Rubygems not installed for SDK: ruby-1.9.2-p0. Please download and install 
rubygems."

Any suggestion? Or is there no other working option than Xcode and TextMate?

Thanks,

Jean-Denis

PS: I am really a Ruby beginner, and I am not used to Ruby configurations, gems 
and the like. I will gladly take suggestions to RTFM.



___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Configuring IDE to use MacRuby?

2011-10-20 Thread denny trebbin
Hello,

MacRuby the Bridging concept and language extensions are not designed to work 
well with other IDE's than Xcode.
RubyMine will may offer support in later versions. I already filed a 'bug' 
which has been changed to a 'feature request'. Please have a look at this URL 
http://youtrack.jetbrains.net/issue/RUBY-7032

I don't like Xcode at all. But before I got heavily flamed again for posting my 
opinions about Xcode I'll stop here.
But I would be surprised allot if anybody was able to get a native Mac 
compiled, singed and packed without making use of Xcode.

Have a nice day!


Von: Jean-Denis MUYS 
An: "[email protected]" 
Gesendet: 10:54 Donnerstag, 20.Oktober 2011 
Betreff: [MacRuby-devel] Configuring IDE to use MacRuby?

Hi,

Out of curiosity, I tried to set up a few IDEs other than Xcode to use for 
MacRuby development, and I have mostly failed. I would appreciate any 
advice/suggestion.

- TextMate: Success. I found some rather complex recipes on the net. Mine is 
much simpler: go to Preferences > Advanced > Shell Variables and add a shell 
variable named TM_RUBY with value of '/usr/local/bin/macruby'.

- Komodo IDE: Failure. I chose Preferences > Languages > Ruby, clicked the 
"Browse" button and selected macruby in '/usr/local/bin/'. Komodo IDE accepted 
it, but reported the following error:

"The Ruby debugger extension does not work with the version of Ruby select or 
that is on your path. You need to use Ruby version 1.8.2 or later. You can get 
Ruby from the Ruby home page at http://www.ruby-lang.org";

I suspected their debugger extension expects the ruby debugger to be named 
rubyd and not macrubyd. So I dup'ed macrubyd and renamed the copy to rubyd. 
However, this didn't improve the situation.

My Google fu failed to locate any useful suggestion on the net.

- RubyMine: Failure. I chose Preferences > Ruby SDK and Gems, clicked "Add 
SDK…" > "Specify other" and chose 
/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macruby, as per 
some instructions I found on the net. However, RubyMine then displays an error 
message in large friendly red letters:

"Rubygems not installed for SDK: ruby-1.9.2-p0. Please download and install 
rubygems."

Any suggestion? Or is there no other working option than Xcode and TextMate?

Thanks,

Jean-Denis

PS: I am really a Ruby beginner, and I am not used to Ruby configurations, gems 
and the like. I will gladly take suggestions to RTFM.



___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Configuring IDE to use MacRuby?

2011-10-20 Thread Antony Blakey

On 20/10/2011, at 7:24 PM, Jean-Denis MUYS wrote:

> Any suggestion? Or is there no other working option than Xcode and TextMate?

I submitted a feature request to JetBrains to make their AppCode product work 
with MacRuby. The request was allocated to a developer, so I'm hopeful. I use 
IntelliJ for Java, Groovy, Scala, Clojure and Ruby, and like it for all of 
those languages. Here's hoping they can do a good job with MacRuby in AppCode.

Antony Blakey
-
CTO, Linkuistics Pty Ltd
Ph: 0438 840 787

The ultimate measure of a man is not where he stands in moments of comfort and 
convenience, but where he stands at times of challenge and controversy.
  -- Martin Luther King


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-20 Thread Andy Park

On 19 Oct 2011, at 22:43, Jordan K. Hubbard wrote:

>  If the mail archives were easier to search, I'd pull it up, but it isn't and 
> I'm too lazy. :)
> 

I set up an entry in gmane for the mailing list a while ago in order to search 
the list a bit better: 

http://news.gmane.org/gmane.comp.lang.ruby.macintosh.devel


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] CocoaPods, an Objective-C library package manager. Now with OS X and BridgeSupport support!

2011-10-20 Thread Eloy Duran
Hi,

I’ve just released CocoaPods 0.1.0 https://github.com/alloy/cocoapods, which 
can now be used for OS X development. In addition it now also generated 
BridgeSupport metadata files from the Pods, which makes it very easy to use 
these libraries from MacRuby.

There is a MacRuby example which uses ASIHTTPRequest and SBJson: 
https://github.com/alloy/cocoapods/blob/master/examples/MacRubySample/MacRubySample/AppDelegate.rb

To run it locally, follow these steps and then build it from Xcode:

$ macgem install cocoapods
$ pod setup
$ git clone [email protected]:alloy/cocoapods.git
$ cd cocoapods/examples/MacRubySample
$ pod install
$ open MacRubySample.xcworkspace

(For now there’s still one small caveat, which is that CocoaPods doesn’t yet 
configure the generated xcode project to compile with GC support, so you will 
have to enable that manually now. This will soon be fixed.)

Cheers,
Eloy
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-20 Thread terl
Just a note to the original question

macruby collections are based on objc mutable collections...e.g.

a = %w{my array of strings}
["my","array","of"strings"]

b = a.dup.  b is still a mutable array.

c = NSarray.alloc.initWithArray( a ) immutable array

c << "hi"

runtime error cannot modify frozen/iimmutable array

b= a.dup.freeze

b << "hi"

behaves the same way as NSArray an immutable array...


Terry



On 21/10/2011, at 9:00 AM, Andy Park wrote:

> 
> On 19 Oct 2011, at 22:43, Jordan K. Hubbard wrote:
> 
>>  If the mail archives were easier to search, I'd pull it up, but it isn't 
>> and I'm too lazy. :)
>> 
> 
> I set up an entry in gmane for the mailing list a while ago in order to 
> search the list a bit better: 
> 
> http://news.gmane.org/gmane.comp.lang.ruby.macintosh.devel
> 
> 
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel