Re: [MacRuby-devel] MacRuby WWDC Meetup

2011-05-20 Thread Christian Niles
On May 20, 2011, at 1:55 PM, Laurent Sansonetti wrote: > I can't speak for Erik, but I'm not allowed to do any presentation. I can > attend the meeting, discuss the project and answer questions though (like a > BoF, which I thought was the plan here). I was expecting a pretty informal set of pr

Re: [MacRuby-devel] String#sub/gsub and text encodings

2011-05-20 Thread Vincent Isambart
Hi, > I finally found time to further investigate this. Thanks for investigating it. > Am I doing something wrong? If not, I'll file a ticket. No it's indeed a bug, could you please file a ticket. By the way I've made a shorter version of your code: --- framework 'Cocoa' s1 = NSMutableStrin

Re: [MacRuby-devel] MacRuby WWDC Meetup

2011-05-20 Thread Erik Michaels-Ober
> On May 20, 2011, at 1:03 PM, Christian Niles wrote: > > > On May 20, 2011, at 12:21 PM, Laurent Sansonetti wrote: > > BTW, Pivotal has a videographer reserved for the event, and asked if we > > would like the presentations recorded and placed on their tech talks page: > > > >       http://pivota

Re: [MacRuby-devel] String#sub/gsub and text encodings

2011-05-20 Thread Yasu Imao
Hi, I finally found time to further investigate this. It thought it was sub/gsub in general, but it was sub!/gsub! in a special case, which is reading a text file with NSMutableString#initWithContentsOfFile:encoding:error: I created a text file in UTF-8 and the content is this is a test scri

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-20 Thread Mark Rada
I have been using rvm with MacRuby a while now, mostly for the use of gemsets. I have been able to switch between MacRuby 0.10 and the "nightly" builds without issue including several different gemsets for "nightly" builds. However, there will be issues if you are developing with Xcode. But the

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-20 Thread Benjamin Nicholas
the RVM irc channel is actually very helpful in general. If you're running into issues with it, you might want to check in there. Ben Nicholas On May 20, 2011, at 4:58 PM, Shannon Love wrote: > Chris Rhoden, > > As I understand it: > > (1) Apple does not recommend upgrading the system 1.8.7

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-20 Thread Shannon Love
Chris Rhoden, As I understand it: (1) Apple does not recommend upgrading the system 1.8.7 ruby to 1.9.2 because some system scripts depend on the ruby installation. Most other resources recommend against doing that as well. So, if I want to use 1.9.2, I need to use RVM. (2) Since Cucumber do

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-20 Thread Chris Rhoden
RVM works just fine for macruby, but I would recommend against using it. It's not extremely useful as an alternative ruby implementation (think jRuby, Rubinius), which is where RVM shines. It's much better to use the `mac` prefix than to replace `ruby` with macruby in your shell. On Fri, May 20, 2

[MacRuby-devel] Clean Install of Macruby?

2011-05-20 Thread Shannon Love
Is there an a formal or approved way of performing a clean install of Macruby including gems? I fear that I may have mangled my install with my naive use of RVM and I wanted to try and start fresh. I've already used pkgutil to uninstall all the files associated with the Macruby package and ins

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-20 Thread Matt Aimonetti
The MacRuby team doesn't use RVM and therefore doesn't recommend users to use it. However, some users reported using RVM and being happy with it. Was my reply useless? More than likely :p -= Matt On Fri, May 20, 2011 at 3:18 PM, Shannon Love wrote: > Last week I attempted to install RVM on my s

[MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-20 Thread Shannon Love
Last week I attempted to install RVM on my system so I could use various versions of Ruby including Macruby. I encountered problems including a reinstall of RVM that had incorrect permissions. However, it is quite possible that all the errors were the result of my naviety about the ruby environm

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Shannon Love
I it appears I spoke to soon in my previous mail. Reverting to Rspec 2.5 got me to where I could run basic test but now I get sig fault when I try to use an expectation (should statement.) It even happens with example code I copied from the rspec 2.5 docs. Just for grins, I ran rspec own spec

Re: [MacRuby-devel] MacRuby WWDC Meetup

2011-05-20 Thread Laurent Sansonetti
On May 20, 2011, at 1:03 PM, Christian Niles wrote: > On May 20, 2011, at 12:21 PM, Laurent Sansonetti wrote: > >> Hi Christian, >> >> Awesome! Thanks for setting this up! >> >> I think we should wait one more day before advertising the link on twitter, >> to make sure subscribers of the mail

Re: [MacRuby-devel] MacRuby WWDC Meetup

2011-05-20 Thread Christian Niles
On May 20, 2011, at 12:21 PM, Laurent Sansonetti wrote: > Hi Christian, > > Awesome! Thanks for setting this up! > > I think we should wait one more day before advertising the link on twitter, > to make sure subscribers of the mailing-list can RSVP before. I will post a > link to the event to

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Mark Rada
On 2011-05-20, at 3:28 PM, Nat Brown wrote: > am i understanding the option being described here as manually forcing a > pre-compile of .rb gems to .rbo cached to the gems directory (with caveats > like no backtrace, ymmv)? Almost. You lose backtraces right now, but that is a temporary tradeoff

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Nat Brown
am i understanding the option being described here as manually forcing a pre-compile of .rb gems to .rbo cached to the gems directory (with caveats like no backtrace, ymmv)? anybody working on a generic (system-wide or per-user or configurable?) cache of arbitrary .rb -> .rbo similar to how rubyin

Re: [MacRuby-devel] MacRuby WWDC Meetup

2011-05-20 Thread Laurent Sansonetti
Hi Christian, Awesome! Thanks for setting this up! I think we should wait one more day before advertising the link on twitter, to make sure subscribers of the mailing-list can RSVP before. I will post a link to the event tomorrow via @MacRuby. Laurent On May 20, 2011, at 10:08 AM, Christian

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Mark Rada
Rspec 2.6 works on the macruby nightly builds. Load times are partly due to rubygems being very slow on MacRuby and rspec being split into 4 gems (plus one other external gem). The other problem is that you have to JIT all the code at run time; you should be able to cut the load time in half by

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Christian Niles
I have the same (performance) issue too. I believe this is due to MacRuby's JIT, which compiles the ruby source into machine code using LLVM. This improves performance dramatically for long-running apps, but in our case it seems to cause a big up-front penalty. Does anyone else on list know if

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Shannon Love
Christian, Reverting to Rspec 2.5 allowed rspec to run under macruby (so far.) However, it is extremely slow compared to running under system ruby. it takes 10+ seconds to run just an empty test and pegs out one of my cores to do so. Macruby should run faster than the system ruby 1.8.7 so I th

[MacRuby-devel] MacRuby WWDC Meetup

2011-05-20 Thread Christian Niles
Hey Everyone! WWDC is getting close and I wanted to make sure the MacRuby community has a chance to get together while everyone's in town. If you're going to be in town and want to join us, please RSVP here: http://macrubymeetup.eventbrite.com/ Right now I have Erik Michaels-Ober and L