[MacRuby-devel] MacRuby class inside obj-c

2010-05-18 Thread Louis-Philippe
Hi, I don't know if this is the good list to ask this question as it is my first... So, I saw how I can have a MacRuby cocoa app, importing objective-c classes. I can't find info on how to do the opposite... having an Objective-C cocoa app, importing and using MacRuby Classes... All I managed to

Re: [MacRuby-devel] MacRuby class inside obj-c

2010-05-18 Thread Louis-Philippe
great! I can even seem to send messages directly to my MacRuby classes and instances... like: id obj = [Foo new:@"objc"]; and [obj hello]; but in the second case I get a compiler warning: "No -hello method found"?? 2010/5/18 Laurent Sansonetti > Hi Louis-Philippe, &g

Re: [MacRuby-devel] MacRuby class inside obj-c

2010-05-19 Thread Louis-Philippe
optional arguments), you will > likely get a crash. This is why the -performRubySelector: method was > introduced. It is better to always use that method, because it always works > (in theory). > > Laurent > > > On May 18, 2010, at 3:05 PM, Louis-Philippe wrote: > > gr

[MacRuby-devel] CSV still buggy

2010-05-19 Thread Louis-Philippe
Hi, I saw: Ticket #125 (closed defect: fixed) about CSV. I do a pretty simple test: ### require 'csv' CSV.open('testCSV.csv', 'r') do |row| p row end ### this test works in ruby 1.8.7, but in macruby 0.6 I get an empty reader... my arch is: MacRuby version 0.6 (ruby 1.9.0) [universal-d

[MacRuby-devel] c++ lib

2010-05-26 Thread Louis-Philippe
Hi folks, I need to work with a c++ sdk in my code. Is this possible within macruby? I tried loading the files all sorts of way and making a bundle with it and got no luck at this point... thanks! L-P ___ MacRuby-devel mailing list MacRuby-devel@lists

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
be the same with C++). First I > > create a ObjC class over my C lib. Then i can use my ObjC class within > > MacRuby. > > > > Greg > > > > 2010/5/26 Louis-Philippe : > >> Hi folks, > >> I need to work with a c++ sdk in my code. > >>

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
cocoa app inside of xcode, but the error sample I pasted above is from a macirb execution 2010/5/27 Joel Reymont > Louis-Philippe, > > On May 27, 2010, at 3:25 PM, Louis-Philippe wrote: > > > Did find: > > /PATH/MYSDK.framework/MYSDK: mach-o, but wrong architectu

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
sorry, the second one really is: ./MYSDK (from the MYSDK.framework) -bash: ./MYSDK: cannot execute binary file 2010/5/27 Louis-Philippe > uname -a: > Darwin modullpmacbook.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 > 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
): Mach-O 64-bit executable x86_64 2010/5/27 Louis-Philippe > sorry, the second one really is: > > ./MYSDK (from the MYSDK.framework) > -bash: ./MYSDK: cannot execute binary file > > 2010/5/27 Louis-Philippe > > uname -a: >> Darwin modullpmacbook.local 10.3.0 Dar

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
it only builds for i386... getting errors when trying to build for x86_64... thats why I tried as I tested to build only for i386... 2010/5/27 Jordan Breeding > Try building your framework as both i386 and x86_64. > > On May 27, 2010, at 10:00, Louis-Philippe wrote: >

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
stant MYSDK" 2010/5/27 Jordan Breeding > Then you could force macruby/macirb to run as i386: > > `arch -arch i386 macirb` > > On May 27, 2010, at 10:13, Louis-Philippe wrote: > > it only builds for i386... > getting errors when trying to build for x86_64... > thats

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
adata --64-bit --framework > "${TARGET_BUILD_DIR}/${WRAPPER_NAME}" -o > "${TARGET_BUILD_DIR}/${WRAPPER_NAME}/${BRIDGE_SUPPORT_FILE}" > fi > > On May 27, 2010, at 10:31, Louis-Philippe wrote: > > Thanks! > ok... I sorted some of the issues out... I was a

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
ave used that method the header file itself > is just straight C, the implementation hides all of the C++ in my case. > Maybe gen_bridge_metadata doesn't handle C++. > > On May 27, 2010, at 11:49, Louis-Philippe wrote: > > any idea why gen_bridge_metadata does spit this: >

Re: [MacRuby-devel] c++ lib

2010-05-27 Thread Louis-Philippe
Thanks Laurent! MYSDK is a c++ SDK... 4 c++ headers and a c++ binary archive (.a) I will work out my Objective-C wrapper then! 2010/5/27 Laurent Sansonetti > Hi Louis-Philippe, > > BridgeSupport doesn't support C++. It only exposes C and Objective-C > symbols. > > In yo

[MacRuby-devel] NSNumber 32 bit arch???

2010-06-11 Thread Louis-Philippe
Hi folks, Maybe I don't get the way NSNumber works... but how can these number be: arch -arch i386 macirb --simple-prompt >> 0x44485250 # reality check => 1145590352 >> NSNumber.numberWithInt(0x44485250) # then see all 32 NSNumber are weird... => 71848528

[MacRuby-devel] 32 bit Number Bug

2010-06-14 Thread Louis-Philippe
Hi folks, there seems to be a bug in the 32bit release of 0.6 with numbers arch -arch i386 macirb --simple-prompt >> 0x44485250 # reality check => 1145590352 >> NSNumber.numberWithInt(0x44485250) # then see all 32 NSNumber are weird... => 71848528 >> NSNum

Re: [MacRuby-devel] 32 bit Number Bug

2010-06-14 Thread Louis-Philippe
avec plaisir! I found the bug when trying to use a 32bit only API... other way I could I never found it since it runs in 64bit mode by default. 2010/6/14 Laurent Sansonetti > Bonjour Louis-Philippe, > > Could you open a ticket on the tracker for that? > > 32-bit mode is really

Re: [MacRuby-devel] testing?

2010-07-09 Thread Louis-Philippe
I have a project for which I use Bacon, but it is to test a cocoa framework... like: http://www.macruby.org/recipes/tdd-in-objective-c-with-macruby.html 2010/7/9 Ryan Davis > So are you guys not testing your macruby code? I was hoping that the ruby > community would bring the testing culture t

Re: [MacRuby-devel] MacRuby Graphics

2010-07-14 Thread Louis-Philippe
on the processing sidetrack... have you had a look at field? http://openendedgroup.com/field/wiki run processing with no processing... in Python, Clojure, Scala... and we might one day have Ruby in! too bad its Java based again... 2010/7/14 Vincent Isambart > > Looking at all these nice low l

Re: [MacRuby-devel] Fibers and Enumerators

2010-08-11 Thread Louis-Philippe
Hi Scott, If you haven't done so already, you might want to have a look at: http://www.macruby.org/documentation/gcd.html it speaks of MacRuby integrating Apple's latest multi-threading strategy: Grand Central Dispatch. 2010/8/10 Scott Thompson > I recently had a discussion on a separate list

[MacRuby-devel] Macruby in a Benchmark

2010-09-24 Thread Louis-Philippe
Hi All, I had fun building this benchmark which involves MacRuby: http://www.untilnil.com/2010/09/recursivefibbench/ I think there might be some points of interest to MacRuby developers in there. L-P ___ MacRuby-devel mailing list MacRuby-devel@lists.m

Re: [MacRuby-devel] Macruby in a Benchmark

2010-09-27 Thread Louis-Philippe
for the tips, L-P 2010/9/25 Laurent Sansonetti > Bonjour Louis-Philippe :) > > That's a cool micro-benchmark. I'm not sure if recursive arithmetic > algorithms really represent the real world, but it's cool anyways. > > If you remove the startup times from the f

[MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Louis-Philippe
Hi all, I'm experimenting with Control Tower and tought I would try to get it running with an Objective-C class, inside an imported framework, implementing the Rack protocol. My class imports right in macruby, has a proper call(env) method which returns an array of 3 elements, when I call inspect

Re: [MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Louis-Philippe
sounds like a neat idea! I can think of a few ways that it might go > wrong, but they're only guesses. Do you have some small sample code that > demonstrates the problem? If so, can you open a ticket on track ( > https://www.macruby.org/auth/login/?next=/trac/newticket) and set the

Re: [MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Louis-Philippe
Great! Ticket Added! L-P 2010/10/6 Laurent Sansonetti > Hi Louis-Philippe, > > Could you paste all this into a new ticket? This way we won't forget to fix > it. > > Thanks! > Laurent > > On Oct 6, 2010, at 1:12 PM, Louis-Philippe

[MacRuby-devel] NSArray constructor broken?

2010-10-14 Thread Louis-Philippe
Hi all, on my system, with MacRuby 0.7, I get this error: >> NSArray.array ArgumentError: wrong number of arguments every NSArray constructor method seems to exibit some kind of similar behaviour. I searched the tickets and couldn't find it there. L-P ___

Re: [MacRuby-devel] NSArray constructor broken?

2010-10-14 Thread Louis-Philippe
gt; > > % macruby -e 'p MACRUBY_VERSION, MACRUBY_REVISION' > > "0.7" > > "svn revision 4566 from > http://svn.macosforge.org/repository/ruby/MacRuby/branches/0.7"; > > > > % macruby -e 'p NSArray.array' > > [] > > > >

Re: [MacRuby-devel] NSArray constructor broken?

2010-10-14 Thread Louis-Philippe
> > > It seems to work for me: >> > >> > % macruby -e 'p MACRUBY_VERSION, MACRUBY_REVISION' >> > "0.7" >> > "svn revision 4566 from >> http://svn.macosforge.org/repository/ruby/MacRuby/branches/0.7"; >> >> Same Here > > % macruby -e 'p NSArray.array' >> > [] >> > >> > This also work for me here..

[MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Louis-Philippe
Hi all, I'm looking around MacRuby to find a way to run a subprocess and monitor it, here is what I tried: NSTask: framework "foundation" task = NSTask.launchedTaskWithLaunchPath("/bin/ls", arguments:"-l") p task.isRunning p task.standardOutput => Segmentation fault Open4: require 'rubygems'

Re: [MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Louis-Philippe
t; examples in my O'Reilly book: >> > http://macruby.labs.oreilly.com/ch04.html#_tasks_subprocesses >> > >> > You can also look at this more complex example: >> > >> > >> https://github.com/mattetti/couchdbx-app/tree/master/macruby_version/CouchDBX/ &

Re: [MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Louis-Philippe
Totally agree Rob... but right now it seems it does segfault on occasions and I think some serious bugs affecting functionalities and RubySpecs are still in the bugbase and I wouldn't like to dissolve those priorities with more exception handling error... I may not understand how important this se

Re: [MacRuby-devel] MacRuby with Subprocesses

2010-11-03 Thread Louis-Philippe
Done, >From now on I will absolutely report any segfault, with pleasure! 2010/11/3 Laurent Sansonetti > Hi Louis-Philippe, > > MacRuby should never segfault, as others indicated here. Please help us by > filing a ticket each time you can reproduce a segfault and we will triage /

[MacRuby-devel] MacRuby methods with external frameworks

2010-11-04 Thread Louis-Philippe
Hi all, I have a funny problem, I have a framework I created, ObjCHiredis , which works with MacRuby. Except I can't use methods with more than one arguments in it??? like: ObjCHiredis.redis works fine but ObjCHiredis.redis("127.0.0.1", on:6379) doesn't. ??? I

Re: [MacRuby-devel] MacRuby methods with external frameworks

2010-11-04 Thread Louis-Philippe
>> myurl = NSURL.URLWithString("myapp/prefs", relativeToURL:base) => # 2010/11/4 Matt Aimonetti > I'm not really sure what's going on there and to be honest, I didn't check > your code, but did you try to generate a BridgeSupport file to expose non OO >

Re: [MacRuby-devel] MacRuby methods with external frameworks

2010-11-04 Thread Louis-Philippe
=> # > irb(main):003:0> redis.connect("127.0.0.1", on:6379) > 2010-11-04 19:20:32.892 macruby[4656:903] Connection error: connect: > Connection refused > => 0 > > Nevermind the connection refused, I haven't actually got redis running :) > > On 4 no

Re: [MacRuby-devel] MacRuby methods with external frameworks

2010-11-04 Thread Louis-Philippe
ok! done! Thanks! 2010/11/4 Eloy Duran > Yep, that's a bug. Can you file a ticket? Thanks :) > > On 4 nov 2010, at 19:44, Louis-Philippe wrote: > > Thanks Eloy! > I was starting to poke myself, trying to wakeup from a bad dream... > and your answer helped me to ge

Re: [MacRuby-devel] MacRuby methods with external frameworks

2010-11-04 Thread Louis-Philippe
while I was replying to the ticket comment ;) so: my use case is one of TDD, where the framework is not installed but in the build folder. Even if I: ENV['DYLD_FRAMEWORK_PATH'] = ENV['BUILT_PRODUCTS_DIR'] the framework doesn't load properly. > > ___ Ma

[MacRuby-devel] sharedRuntime same context as MacRuby's runtime

2010-11-08 Thread Louis-Philippe
Hi, I am trying to implement some macruby pre-initialisation inside an Objective-C class, to enhance the Objective-C class with some ruby methods before returning the initialized object to MacRuby. I was wondering if the + MacRuby sharedRuntime execution context is the same as my MacRuby applicat

Re: [MacRuby-devel] what are you building with macruby?

2011-01-19 Thread Louis-Philippe
Over here I built a video processing cluster of MacOS workstations, where the processing nodes are implemented using MacRuby. It's an internal tool protected by NDA so I won't say more ;). Works great overall. 2011/1/18 Eloy Duran > We’re working on a pretty big (code wise) product for designe

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: >