[MacRuby-devel] Dispatch gem - proxy object

2011-01-25 Thread Alan Skipp
Hi everyone, After the recent discussion about gcd and thread safety I took a look at the Dispatch gem (proxy object in particular). I though I'd try and improve efficiency, as all method calls are currently directed through method_missing to the delegate object. One attempt I made was to dyna

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Adam Strzelecki
> An other Objective-C Runtime language, Nu, is already iOS and Linux > compatible, but doesn't rely on Objective-C GC... > nothing is impossible and this one is certainly worth it. So it means they have managed to run objc4 on Linux, wonder if anyone has tried libauto (GC library) on Linux as w

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Eloy Duran
Oops: s/i.e. iOS/e.g. iOS/ :) On 25 jan 2011, at 18:59, Eloy Duran wrote: > This is an outline of what I've *observed*: > > 1. OS X is the focus > 2. Core of MacRuby is written as portable as possible. For example, by using > CoreFoundation making it possible to have someone port it by using CF

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Louis-Philippe
An other Objective-C Runtime language, Nu, is already iOS and Linux compatible, but doesn't rely on Objective-C GC... nothing is impossible and this one is certainly worth it. 2011/1/25 Gary Weaver > Not trying to be a downer, because I really like the idea of it being more > accessible, but: >

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Eloy Duran
This is an outline of what I've *observed*: 1. OS X is the focus 2. Core of MacRuby is written as portable as possible. For example, by using CoreFoundation making it possible to have someone port it by using CFLite. 3. For code that (currently) relies on OS X specific APIs, see point #1. In a n

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Eloy Duran
Great! :) Aliases are quite awesome when used locally, they allow you to link to a file that may move freely on the volume (and even across volumes iirc). However, I think that for your installer this won't really be a requirement, i.e. the link will probably always be in the unpacked directory

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Gary Weaver
Not trying to be a downer, because I really like the idea of it being more accessible, but: Looks like no recent activity on PureFoundation: https://code.google.com/p/purefoundation/ http://www.puredarwin.org/purefoundation Some activity 3 months ago on opencflite, which there was claim that P

Re: [MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Perry E. Metzger
On Tue, 25 Jan 2011 18:05:46 +0100 Adam Strzelecki wrote: > (2) any UNIX (POSIX) platforms (Linux servers) - most of tech > MacRuby relays on is OpenSource including LLVM, Obj-C runtime... > most except Foundation framework is closed-source and exists only > on OSX, however there's CFLite and ther

[MacRuby-devel] Extending MacRuby to platforms other than OSX?

2011-01-25 Thread Adam Strzelecki
Hi, First of all I think MacRuby is amazing project, and one and only Ruby runtime/compiler (macrubyc) that is able to produce standalone self-contained binaries. Since I have used Ruby heavily to produce server-side applications rather than Cocoa based application and I am iPhone developer as

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Robert Rice
Hi Eloy: Yes, it worked! Seems like Apple should have better support for alias files in OS X. I see methods in NSFileWrapper to resolve a symlink but not to resolve an alias file. Apple suggests a more complicated procedure to resolve an alias file. I don't mind using terminal to create the in

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Eloy Durán
I think so, but let's try! Here's a zip with a symlink: http://cl.ly/3z1R2c0r3q3q1k080F1p Created as relative link with: $ ln -s original/For\ those\ who\ took\ the\ effort.jpg On Jan 25, 2011, at 4:59 PM, Robert Rice wrote: > Hi Eloy: > > Thanks for the feedback. I used an alias file. Will a

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Robert Rice
Hi Eloy: Thanks for the feedback. I used an alias file. Will a symlink work better than an alias file when the zip is expanded on a different volume? I'm using Iceberg to build the install package. Iceberg outputs a build folder and I don't see an option to output a single file. The symlink sho

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

2011-01-25 Thread Joshua Ballanco
On Tue, Jan 25, 2011 at 3:13 AM, Charles Oliver Nutter wrote: > On Tue, Jan 25, 2011 at 2:11 AM, Charles Oliver Nutter > wrote: > > I did have to hack around the parser logic, since native extensions > > largely mean death for concurrency on JRuby (and by native I mean C > > extensions using MRI'

Re: [MacRuby-devel] menu app in the login items

2011-01-25 Thread James Chen
Yes, the master branch is on MacRuby. Sent from my iPhone On 2011/01/25, at 23:18, Joshua Ballanco wrote: On Jan 25, 2011, at 2:54 PM, Joel Reymont wrote: > > Are there any examples of a MacRuby app that sits in the menu, > TimeMachine and WiFi indicator style? > Check out Gmail Notifr: http

Re: [MacRuby-devel] menu app in the login items

2011-01-25 Thread Joshua Ballanco
> > On Jan 25, 2011, at 2:54 PM, Joel Reymont wrote: > > Are there any examples of a MacRuby app that sits in the menu, > TimeMachine and WiFi indicator style? > Check out Gmail Notifr: http://ashchan.com/projects/gmail-notifr There is a MacRuby branch of the project which should answer your ques

Re: [MacRuby-devel] menu app in the login items

2011-01-25 Thread Eloy Durán
The former is called a status bar item: http://lmgtfy.com/?q=macruby%2Bstatusbar For the latter I use this: https://gist.github.com/439080 On Jan 25, 2011, at 2:54 PM, Joel Reymont wrote: > Are there any examples of a MacRuby app that sits in the menu, TimeMachine > and WiFi indicator style? >

[MacRuby-devel] menu app in the login items

2011-01-25 Thread Joel Reymont
Are there any examples of a MacRuby app that sits in the menu, TimeMachine and WiFi indicator style? What about an app that adds itself to the user's login items to start upon login? Thanks, Joel --- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont __

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Eloy Durán
The alias to the meta pkg doesn't resolve, did you create a symlink or an alias? http://cl.ly/2J3j2C1t0e1u2H1Q2K2C PS I know this is not what your question was about, feel free to ignore it, but the font on that page you linked to is really not friendly on the eyes imho. On Jan 25, 2011, at 3:2

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

2011-01-25 Thread Charles Oliver Nutter
On Tue, Jan 25, 2011 at 2:11 AM, Charles Oliver Nutter wrote: > I did have to hack around the parser logic, since native extensions > largely mean death for concurrency on JRuby (and by native I mean C > extensions using MRI's API). Instead, I lifted code from Mongrel and > Rack to use Mongrel's p

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

2011-01-25 Thread Charles Oliver Nutter
On Tue, Jan 25, 2011 at 1:00 AM, Joshua Ballanco wrote: > On Mon, Jan 24, 2011 at 8:20 PM, Charles Oliver Nutter > wrote: >> I'm curious what you mean by this. Can you point out the code? Is it >> actually attempting to rewrite local variable or instance variable or >> array modifications in code