Re: [MacRuby-devel] malloc error

2010-07-26 Thread Matt Massicotte
This may not be a bug. It can mean that something is being Garbage-collected that is not an object. I've run into this a fair bit when using MacRuby. I use MacRuby to access a ObjC library that otherwise does not run in a garbage-collected environment. I typically see this most often when us

Re: [MacRuby-devel] Fibers and Enumerators

2010-08-11 Thread Matt Massicotte
Could you share some, or maybe provide a link? I'm interested in the topic, but unfamiliar with any specific use-cases. Matt On Aug 11, 2010, at 10:15 AM, Logan Bowers wrote: > +1 for fibers. There is a class of problems made much simpler and/or possible > with fibers that are not viable w/th

Re: [MacRuby-devel] Noob question: Interface builder not picking up MacRuby definitions

2010-09-15 Thread Matt Massicotte
Bob, Hopefully you've opened a bug on the IB performance you've observed. I'm sure the team would be very interested in a perf problem that makes IB that unusable. Matt On Sep 15, 2010, at 9:35 AM, Robert Rice wrote: > Hi Iain: > > As my app has grown IB became very, very slow to update my M

Re: [MacRuby-devel] Noob question: Interface builder not picking up MacRuby definitions

2010-09-15 Thread Matt Massicotte
ernal bug reports are very helpful. Matt On Sep 15, 2010, at 9:48 AM, Robert Rice wrote: > Hi Matt: > > No, I didn't. I assumed it would be a known issue. > Any idea when Xcode 4 will available for general use? > > Thanks, > Bob Rice > > On Sep 15, 201

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Matt Massicotte
I didn't know about awesome_print, and it's kind of blown my mind. The default irb formatting is great. Only, I cannot get it to work in macirb. It looks like the internals of IRB is completely different. Has anyone had an luck with this? Matt On Oct 6, 2010, at 2:10 AM, Eloy Duran wrote:

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Matt Massicotte
nfo > about what really happens? > > Eloy > > On Oct 6, 2010, at 5:49 PM, Matt Massicotte wrote: > >> I didn't know about awesome_print, and it's kind of blown my mind. The >> default irb formatting is great. Only, I cannot get it to work in macirb.

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-18 Thread Matt Massicotte
condition. So for these kinds of things I generally use: if > defined?(MACRUBY_VERSION), or in this case you can differentiate with > the IRB.version string, meaning that if you would install the DietRB > gem on MRI 1.9, it would keep working. > > Thanks for the report! > > Ch

Re: [MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Matt Massicotte
Open3 works correctly for me. I've had tons of problems in the past using Open3 (in ruby) with interactive commands. I think the problem is that you are trying to run irb. The following works for me. Open3.popen3('ls') { |stdin,stdout,stderr| puts stdout.readlines } Backticks work as well, b

Re: [MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Matt Massicotte
I respectfully disagree :) NSTask is a huge pain and will result in dramatically more code in the simple cases. Open3 is much easier to work with, and we can only dream of a solution as simple as backticks in Cocoa. It becomes less of an issue if you are executing long-running processes and d

Re: [MacRuby-devel] Key Value Observing module

2010-11-29 Thread Matt Massicotte
I'm not familiar with the Ruby observer mechanism you refer to - could you post a link? Matt On Nov 29, 2010, at 6:34 AM, Alan Skipp wrote: > I hope people don't mind me posting this bit of code to the list, but I hope > it will be of some use to others and would also be interested to hear if

Re: [MacRuby-devel] converging for 1.0

2010-12-01 Thread Matt Massicotte
The voice of reason - thanks Matt. Matt On Dec 1, 2010, at 7:29 AM, Matt Aimonetti wrote: > Come on people svn isn't that bad, most of us used it for years and might > still use it ;) > However, if you are a git addict, you have 3 options: > * use the github mirror (we'll do the svn patching o

Re: [MacRuby-devel] Thread safety in apply example?

2011-01-24 Thread Matt Massicotte
What's the advantage of this over just iterating over the array serially using each? Matt On Jan 24, 2011, at 3:40 AM, Alan Skipp wrote: > Warning, horrible hack alert! > I'm sure there must be a far better implementation, but the idea is to have > an array subclass which diverts all method ca

Re: [MacRuby-devel] Thread safety in apply example?

2011-01-24 Thread Matt Massicotte
emented as a module that would redirect all > method calls through a serial dispatch queue. This would mean that the array > (or other mutable collection) could be mutated from multiple threads/queues > without fear of bad things happening. > > On 24 Jan 2011, at 15:22, Matt Mas

Re: [MacRuby-devel] TIL - Uncaught exceptions in threads cause SIGABRT in the main thread!

2011-03-14 Thread Matt Massicotte
If you find this exception-shifting behavior troubling, please open a ticket. Could you explain why introducing the begin/rescue pair that is good programming practice? Matt On Mar 13, 2011, at 6:31 PM, Morgan Schweers wrote: > Greetings, > Today I Learned :) if a thread throws an exception th

Re: [MacRuby-devel] TIL - Uncaught exceptions in threads cause SIGABRT in the main thread!

2011-03-14 Thread Matt Massicotte
On Mar 14, 2011, at 10:35 AM, Morgan Schweers wrote: > Greetings, > > On Mon, Mar 14, 2011 at 6:57 AM, Matt Massicotte wrote: > If you find this exception-shifting behavior troubling, please open a ticket. > > What bugs me about the behavior in this case is that if the exact

Re: [MacRuby-devel] [ANN] TrackerBot 1.0 in App Store -- tested with MacRuby!

2011-03-16 Thread Matt Massicotte
Hi Christian, Are you aware of the UIAutomation framework for UI-based testing in iOS? It's not quite the same as Frank, but is an Apple-supplied UI test mechanism. Matt On Mar 16, 2011, at 12:17 PM, Christian Niles wrote: > Hey All, > > One of the reasons I've gotten so in love with MacRuby

Re: [MacRuby-devel] [ANN] TrackerBot 1.0 in App Store -- tested with MacRuby!

2011-03-16 Thread Matt Massicotte
e whether I want to commit the time or just put up with things as they > are. My primary goal right now is to make BDD and automation testing as > simple, painless, and unobtrusive as possible. > > christian. > > On Mar 16, 2011, at 12:23 PM, Matt Massicotte wrote: > >

Re: [MacRuby-devel] MacRuby-devel Digest, Vol 37, Issue 51

2011-03-31 Thread Matt Massicotte
On Mar 31, 2011, at 11:41 AM, Terry Moore wrote: > Well it would appear that Macruby is just not ready for real development. > > I for one have some faith that Macruby is good enough now and will be > language of choice in the future. > > There are no barriers to you mixing external framework

Re: [MacRuby-devel] MacRuby-devel Digest, Vol 37, Issue 51

2011-03-31 Thread Matt Massicotte
u load objc source compile and run it aka 'eval'. > > All I'm trying to say here is that ruby has a place and with the macruby > implementation you have nothing to lose by trying some ruby. Mix it up a > little and have some fun too. > > Terry Moore > > On 1/04/201