[MacRuby-devel] Preferences (NSUserDefaults)

2008-11-07 Thread Eloy Duran
Hi, I've been working on rewriting the preferences code of LimeChat and have now extracted it for use in other projects. I thought it might be interesting for HotCocoa as well. See the readme and tests for an idea of the usage: http://github.com/alloy/rubycocoa-prefs/tree/master Currently it's

Re: [MacRuby-devel] [feature request] trace stack

2008-11-09 Thread Eloy Duran
Hi Matt, This is a crash report submit plugin I wrote. It currently only supports RubyCocoa, but I guess it would be trivial to get it to run on MacRuby. Maybe Laurent already ported it, because it's used by LimeChat as well: http://rucola.rubyforge.org/svn/extras/plugins/SACrashReporter/ Ch

Re: [MacRuby-devel] [feature request] core data API

2008-11-09 Thread Eloy Duran
I wonder if it really would add much benefit to add a CoreData DM adapter… I would just use DM with sqlite, without CoreData adding an extra layer of abstraction. This works in RubyCocoa, so except for maybe some incompatibilities with 1.9/MacRuby it should work great as well. Eloy On 9 no

Re: [MacRuby-devel] [feature request] open url in browser

2008-11-09 Thread Eloy Duran
Hi, I like the idea of HotCocoa, but it should not go too far, and this is maybe taking it one step too far imo. The problem is that at some point you _will_ have to use real Cocoa, because HotCocoa can't wrap everything. If you are frightened by the verbosity of this line of code, well than

Re: [MacRuby-devel] [feature request] open url in browser

2008-11-09 Thread Eloy Duran
On 9 nov 2008, at 16:19, Matt Aimonetti wrote: hmm I guess I disagree but since I just got started with MacRuby and don't know Cocoa I might be totally wrong. Yes, this is what I thought too when first starting with Cocoa in RubyCocoa, but I was very wrong. Most helpful docs/references are

Re: [MacRuby-devel] [feature request] core data API

2008-11-09 Thread Eloy Duran
Have you tried building it without using RubyGems? - Eloy On 9 nov 2008, at 16:14, Matt Aimonetti wrote: DM uses DO which uses C extensions and C drivers. I'm not sure how to get DM working with MacRuby yet :( -Matt On Sun, Nov 9, 2008 at 10:09 AM, Eloy Duran <[EMAIL PROTECTED

Re: [MacRuby-devel] Added new Rake task - deploy

2008-11-11 Thread Eloy Duran
Here's some code which does that: http://github.com/alloy/rucola/tree/master/lib/rucola/tasks/deploy.rake - Eloy On Nov 11, 2008, at 1:38 PM, Richard Kilmer wrote: As always, Laurent did all the hard work! I also wonder whether it makes sense to add 'package' or something as a rake task tha

Re: [MacRuby-devel] PBI - MacRuby aux Fines Merbs...

2008-11-12 Thread Eloy Duran
On Nov 12, 2008, at 4:31 PM, Matt Aimonetti wrote: One thing the "cowboys", from Rails for instance, have done right is that there are tests for almost everything, which is something that is seriously lacking atm imo. Rails testing suite is in a very sad state, Definitely not going to argue

Re: [MacRuby-devel] HotCocoa Part I

2008-11-12 Thread Eloy Duran
Hi Rich, That seems like a sensible list to me. Thanks for the info! - Eloy On Nov 12, 2008, at 4:10 PM, Richard Kilmer wrote: On Nov 12, 2008, at 9:16 AM, Richard Kilmer wrote: All, As the main author of HotCocoa let me chime in on what I see its main purpose is. In a nutshell here i

Re: [MacRuby-devel] PBI - MacRuby aux Fines Merbs...

2008-11-12 Thread Eloy Duran
* Focus on design and engineering In an age of "cowboy programming", I find it refreshing to see that some programming projects actually embrace design and engineering. One thing the “cowboys”, from Rails for instance, have done right is that there are tests for almost everything, which i

Re: [MacRuby-devel] Hotcocoa design ethos

2008-11-12 Thread Eloy Duran
The result we're looking for (IMHO) is a way to write Cocoa apps that "look right" to Ruby programmers. The number of Objective-C programmers who don't work on OSX apps is vanishingly small. By opening up OSX programming to MacBook-carrying Rubyists, Apple can grow its developer base in relative

Re: [MacRuby-devel] HotCocoa Part I

2008-12-03 Thread Eloy Duran
Hi listees, The critical question, then, is how to create an environment that allows (nay, encourages!) frameworks to be created, tested, polished, documented, indexed, shared, etc. My intuition is that GitHub should be part of this, because it promotes free-flowing cooperation, merging, e

Re: [MacRuby-devel] HotCocoa Part I

2008-12-03 Thread Eloy Duran
OK; here's a partly-baked idea, loosely inspired by Python docstrings. The HC declarations are (I assume) stashing information away in some sort of data structure. If not, they certainly could be (:-). Once the information is available at runtime, any HC script could retrieve them for

Re: [MacRuby-devel] HotCocoa Part I

2008-12-03 Thread Eloy Duran
Hi Chris, What a coincidence :) gen_bridge_doc is the tool I was speaking of in an email I've just send in this thread :) Eloy On Dec 3, 2008, at 9:34 AM, Chris McGrath wrote: On 3 Dec 2008, at 04:05, Richard Kilmer wrote: The mapping files do create data structures, I was totally going

Re: [MacRuby-devel] HotCocoa Part I

2008-12-03 Thread Eloy Duran
Hi Laurent, I agree HotCocoa should be covered by tests, at least to catch regressions. HotCocoa was initially started as an experiment and we (well, Rich) iterated a lot on the interface, now it's maybe time to start thinking about freezing some parts of the API (most probably the mapp

Re: [MacRuby-devel] HotCocoa Part I

2008-12-03 Thread Eloy Duran
db's you mean? On Dec 3, 2008, at 10:42 AM, Laurent Sansonetti wrote: On Dec 3, 2008, at 12:56 AM, Eloy Duran wrote: OK; here's a partly-baked idea, loosely inspired by Python docstrings. The HC declarations are (I assume) stashing information away in some sort of data str

Re: [MacRuby-devel] HotCocoa Part I

2008-12-03 Thread Eloy Duran
On Dec 3, 2008, at 11:26 AM, Laurent Sansonetti wrote: On Dec 3, 2008, at 2:09 AM, Eloy Duran wrote: Hi Laurent, I agree HotCocoa should be covered by tests, at least to catch regressions. HotCocoa was initially started as an experiment and we (well, Rich) iterated a lot on the

Re: [MacRuby-devel] [MacRuby] #174: Allow embedding of arbitrary versions of MacRuby

2008-12-09 Thread Eloy Duran
Hiya, As someone experiencing this discussion from the 3rd person perspective, I'd like to chime in. The current issue seems to be that there are some problems with the current MR, which will get properly fixed by a future software update. Until then there apparently is the need to work

Re: [MacRuby-devel] [MacRuby] #174: Allow embedding of arbitrary versions of MacRuby

2008-12-09 Thread Eloy Duran
About this. More than anything, I'd like to keep discussions on the ML, because I cannot express enough the hatred I feel for the format of Trac's emails :-) Eloy On 8 dec 2008, at 22:35, Jordan K. Hubbard wrote: Guys? This is a very suboptimal, to say nothing of weird, way to communicat

Re: [MacRuby-devel] Exposing c structs and functions

2008-12-19 Thread Eloy Duran
Your best bet is to take a look at the bridgesupport files for most system frameworks and learn from those. They are found inside Resources/BridgeSupport. Nonetheless, it would indeed be very nice if a more elaborate guide could be written. Eloy On Dec 19, 2008, at 4:45 PM, Jim Getzen wrot

Re: [MacRuby-devel] Am I the only one having problems with macgem in macruby 0.4?

2008-12-26 Thread Eloy Duran
No RubyGems does not work in the current trunk. The specific problem you are running into is a problem with YAML, filed at: https://www.macruby.org/trac/ticket/187 Only thing you can do atm is to try and install the library by hand. - Eloy On 26 dec 2008, at 17:25, Tim Rand wrote: I know proble

[MacRuby-devel] Significance of warning about ref counting thrown by MR

2008-12-29 Thread Eloy Duran
Hi, While porting Rucola to MR, I noticed MR throws warnings like: “macruby(686,0x10366b000) malloc: free_garbage: garbage ptr = 0x8004d8de0, has non-zero refcount = 1” What is the significance of this? Should I do something different? - Eloy ___ M

[MacRuby-devel] Mocha

2008-12-30 Thread Eloy Duran
Hi (Laurent), I have been busy making mocha work on MR, which somewhat works now: http://github.com/alloy/mocha/commits/macruby But there are quite some other interesting failures with the mocha tests, which might be interesting to look into. Cheers, Eloy % macrake test:units (in /Users/e

Re: [MacRuby-devel] Mocha

2008-12-30 Thread Eloy Duran
tcher(InstanceOfTest) [/Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/ parameter_matchers/instance_of_test.rb:22]: <"instance_of(String)"> expected but was <"instance_of(NSMutableString)">. perhaps: assert_equal(str, str.to_s) instead? On Wed, Dec 31, 2008

Re: [MacRuby-devel] Warnings about removing methods

2009-01-05 Thread Eloy Duran
Hey Vincent, Is there a good reason why MacRuby would need to warn the user about the hazzards of removing methods? Example: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/ site_ruby/mocha/class_method.rb:50: warning: removing pure Objective-C method `__stubba__require__stu

[MacRuby-devel] Warnings about removing methods

2009-01-05 Thread Eloy Duran
Hi, Is there a good reason why MacRuby would need to warn the user about the hazzards of removing methods? Removing methods is always a risky business, also in pure Ruby. But this is the power that a Ruby user gets and with it comes responsibility. And since Ruby doesn't warn for this, MacR

Re: [MacRuby-devel] Warnings about removing methods

2009-01-06 Thread Eloy Duran
I have discussed this with Laurent and will post the results here for completeness. The problem with the objc runtime is that if a method were to be removed and is called from the objc runtime, it would lead to seg faults. Therefor the warning is raised, so people don't have to look through

Re: [MacRuby-devel] Warnings about removing methods

2009-01-06 Thread Eloy Duran
Yes, that might be a better option. In my naivety, I mentioned this to Laurent as well, but it got lost in the discussion a bit. So Laurent, any input? Eloy On Jan 6, 2009, at 11:17 AM, Matt Mower wrote: On Tue, Jan 6, 2009 at 9:55 AM, Eloy Duran wrote: on pure objc classes. It would

Re: [MacRuby-devel] Is this the right list?

2009-01-12 Thread Eloy Duran
How about @text_view.setString("foo") or as @text_view.string = "foo" ? http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSText_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2367-setString_ - Eloy On 13 jan 2009, at 00:46, Timothy McDowell wrote: Y'kn

Re: [MacRuby-devel] Is this the right list?

2009-01-13 Thread Eloy Duran
DF (it has not been released yet to paper I believe) from the Pragmatic Programmers. Both Marick's and Hillegas's books are important reads for the beginning (eg me) macruby programmer. Cheers, J On Jan 13, 2009, at 1:22 AM, Eloy Duran wrote: How about @text_view.setSt

[MacRuby-devel] HotCocoa patches

2009-01-20 Thread Eloy Duran
Hi, Today I merged some patches by Alexander Flatter. He wrote some test cases for HotCocoa, namely: mapping_test.rb, mappings_test.rb, and plist_test.rb. And he also merged and tested Vincent's patch #209. http://www.macruby.org/trac/ticket/209 So first, thanks to you both! :) There are sti

Re: [MacRuby-devel] Bugfix

2009-01-21 Thread Eloy Duran
Hey, The test looks good to me and I totally agree, false is more unexpected then nil in this case. So then I looked up the tests for it from extlib: http://github.com/sam/extlib/blob/2bc2e8a42c7a49e2e5daf530c29fb2840d0e299d/spec/object_spec.rb#L29 And it doesn't even test for the case that a

Re: [MacRuby-devel] Bugfix

2009-01-22 Thread Eloy Duran
; A::B Object.full_const_get 'A::B' => A::B /SNIP Giving some tests back to extlib should be no problem. On Thu, Jan 22, 2009 at 12:06 AM, Eloy Duran wrote: Hey, The test looks good to me and I totally agree, false is more unexpected then nil in this case. So then

Re: [MacRuby-devel] HotCocoa patches

2009-01-22 Thread Eloy Duran
isted as the only one. ;-) I'll try to take look into the graphics demo and see what's wrong. Greetings On Tue, Jan 20, 2009 at 9:13 PM, Eloy Duran wrote: Hi, Today I merged some patches by Alexander Flatter. He wrote some test cases for HotCocoa, namely: mapping_test.rb, mappin

Re: [MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-23 Thread Eloy Duran
Hey Nic, Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge.net/EmbedRubyCocoa The standaloneify script that's mentioned there might give you insight in what you would need to do to bundle everything. Cheers, Eloy On 23 jan 2009,

Re: [MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-23 Thread Eloy Duran
repo with these patches applied? Or do you have one already? Cheers Nic On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower wrote: On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran > wrote: Even though a page about RubyCocoa, the steps descried there are pretty general: http://rubycocoa.sourceforge

Re: [MacRuby-devel] Greetings, and a fix for SSL

2009-01-26 Thread Eloy Duran
Hi Arlen, Welcome to the list and MacRuby in general and thanks for your patch! I'd love to take a look at your patch, however, as I've noted on the ticket please add test coverage of the problem it fixes first. And then we'll discuss it further on the ticket. Cheers, Eloy On Jan 26, 2009,

[MacRuby-devel] Request for proposals for the first Ruby+Cocoa only conference.

2009-02-05 Thread Eloy Duran
Hi, As some of you might already know, we are organizing a Ruby and Cocoa only conference in may in Amsterdam. This email is purely meant as a request for proposals, so we can work on the schedule. Once we have the details we will post an elaborate article about it on our blog. So please

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-06 Thread Eloy Duran
I downloaded hotconsole, but can't seem to get it raked / built / installed. I can't find any install instructions. There is a mention that you need the latest branch, so I grabbed the testing branch and built it, but still no luck with hotconsole. The latest code is in trunk. The testing

[MacRuby-devel] Who wants to install gems anyways?! Introducing MicroGem

2009-02-09 Thread Eloy Duran
Hi, As most people know installing gems on MacRuby still fails for most gems. I was getting so annoyed looking through the source of RubyGems that I decided to write a clean room implementation of it. For now it only does installing, but was the only goal since that's what fails on MacRuby.

Re: [MacRuby-devel] Who wants to install gems anyways?! Introducing MicroGem

2009-02-09 Thread Eloy Duran
ct but may I suggest you drop the µ letter that most of us probably don't know how to type : ( Sticking to ASCII might be better. - Matt On Mon, Feb 9, 2009 at 12:40 AM, Eloy Duran wrote: Hi, As most people know installing gems on MacRuby still fails for most gems. I was getting

Re: [MacRuby-devel] Who wants to install gems anyways?! Introducing MicroGem

2009-02-09 Thread Eloy Duran
Hehehe, ok ok ok. I surrender… http://files.myopera.com/Inquisitor/files/old_forum_import/surrender.jpg Just released 0.2.0 which includes as an alternative the way lamer version: `ugem' ;-) - Eloy On 9 feb 2009, at 23:43, John Barnette wrote: On Mon, Feb 9, 2009 at 1:36 AM, Eloy

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread Eloy Duran
Hi, If this is a problem with the Objective-C Hash implementation, I would be inclined to say that the test case should go in test-macruby/cases/ rubyspec/hash_test.rb. Because we might need to move this into the rubyspec project, if it's not already in there, once we start on integrating ru

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread Eloy Duran
patch. I glanced at the hash tests in the RubySpec project and there is not much there, so moving this test into RubySpec sounds like a good idea. Is that something that I should take care of now? -Scott On Feb 12, 2009, at 8:53 AM, Eloy Duran wrote: Hi, If this is a problem with the

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread Eloy Duran
, or that I might have missed another part of your tests. - Eloy On 12 feb 2009, at 16:29, M. Scott Ford wrote: Eloy, Here is an updated patch that uses spec style tests. -Scott On Feb 12, 2009, at 9:16 AM, Eloy Duran wrote: Hi Scott, If you would like to re write your patch in a more

Re: [MacRuby-devel] µgem (notice I am using your G reek character!) question

2009-02-13 Thread Eloy Duran
Hi Tim, I think you meant to direct your question at me rather then Matt, but since you're using the Greek character you are forgiven for anything ;-) So the problem with sqlite3 is that it requires a C extension, which is one of the things not yet supported by MicroGem. I don't think it's

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-25 Thread Eloy Duran
No, please just use trunk. You can switch the "location" of a checkout: http://svnbook.red-bean.com/en/1.0/re27.html Laurent, should we remove the testing branch, I think it's misleading and un-useful atm. Cheers, Eloy On Feb 8, 2009, at 3:43 PM, Pedo Borges wrote: Checkout the testing b

Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Eloy Duran
Hey Matt, I think a gem is fine. You can always choose to vendor it when you deploy. (Something which Rucola for instance does.) Taking on the responsibility of a dependency framework is a bit too far away from where the current focus of MacRuby should lie imho. Eloy On 9 mrt 2009, at 22

Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Eloy Duran
deal with this issue cleanly. - Matt On Mon, Mar 9, 2009 at 2:58 PM, Eloy Duran wrote: Hey Matt, I think a gem is fine. You can always choose to vendor it when you deploy. (Something which Rucola for instance does.) Taking on the responsibility of a dependency framework is a bit too

Re: [MacRuby-devel] Packing gems in the app's folder

2009-03-27 Thread Eloy Duran
Hi, Have you included the Gems directory in your xcode project so that it copies the complete dir when building? This probably then tells you that the dir does not exist "p File.exist? (File.expand_path('../Gems', __FILE__))". Second, are you sure you actually need rubygems if you are alread

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Eloy Duran
I think you've translated that a little wrong. This is untested, but I'd suggest trying: def webView(sender, didReceiveTitle:title, forFrame:frame) sender.window.setTitle(title) end Does that sound right to anybody else? The method name should be the bit after the first ), and before

Re: [MacRuby-devel] Unit testing in Xcode

2009-04-04 Thread Eloy Duran
No definitely not. This is Ruby, so we can do better ;-) I have not yet finished porting Rucola to MacRuby, as of yet MacRuby is not mature enough to run some code we have on RubyCocoa yet. However, the port process was started, especially on our test case helper, so this might currently wo

Re: [MacRuby-devel] a modest request

2009-04-05 Thread Eloy Duran
Yeah after some extensive benchmarking it seemed the performance of (Mac)Ruby was never gonna be enough compared to perl. An example of some code that 99% of the apps exist of: % time ./miniruby -e "print 'hello world'" hello world./miniruby -e "print 'hello world'" 0,05s user 0,08s system 8

Re: [MacRuby-devel] How to install MacRuby-experimental and keep the stable version 0.4

2009-04-06 Thread Eloy Duran
Hi Stephane, The experimental branch does not install yet. The only thing you can do is to build miniruby (rake miniruby) and use that. Eg: $ ./miniruby -e "p :foo" Eloy On Apr 6, 2009, at 12:31 PM, Stephane Wirtel wrote: Hi all, I would like to try MRE[1] on my laptop with coexisting the

Re: [MacRuby-devel] experimental branch: status update

2009-04-06 Thread Eloy Duran
Hi, On Apr 6, 2009, at 10:47 AM, Laurent Sansonetti wrote: Hi guys, I figured out that it would be a good idea to give periodical status updates on what's happening in the experimental branch, so here is the first one :) - The compiler is now able (AFAIK) to compile all the language sp

Re: [MacRuby-devel] How to install MacRuby-experimental and keep the stable version 0.4

2009-04-06 Thread Eloy Duran
On Apr 6, 2009, at 12:58 PM, Stéphane Wirtel wrote: Hi Eloy, Thank you for your reply, What's the relation between miniruby and MacRuby ? miniruby is basically the same as the ruby binary that we all know and love, but _before_ it is installed. If you compile ruby (any MRI version) you wil

Re: [MacRuby-devel] experimental branch: status update

2009-04-06 Thread Eloy Duran
As Laurent noted we are now passing most language specs. The ones that we don't pass yet are either because we simply fail, or these examples (tests) are simply not updated for Ruby 1.9 yet. Which as you all know is what MacRuby is based on. This is an area where all of you Ruby devs can he

Re: [MacRuby-devel] experimental branch: status update

2009-04-06 Thread Eloy Duran
Ah, on that bike! (Which is a direct translation of a Dutch saying meaning basically just "Aha!" ;-) ) Yes that sounds like an excellent idea, will do. Thanks, Eloy On Apr 6, 2009, at 2:54 PM, Jordan Breeding wrote: On Apr 06, 2009, at 07:50, Eloy Duran wrote: As Laurent noted

Re: [MacRuby-devel] experimental branch: status update

2009-04-06 Thread Eloy Duran
On Apr 6, 2009, at 3:28 PM, Jordan Breeding wrote: On Apr 06, 2009, at 08:09, Eloy Duran wrote: Ah, on that bike! (Which is a direct translation of a Dutch saying meaning basically just "Aha!" ;-) ) Yes that sounds like an excellent idea, will do. Thanks, Eloy After taking a

Re: [MacRuby-devel] experimental branch: status update

2009-04-06 Thread Eloy Duran
1) test for 64-bit enabled machines, if you are on a 32-bit machine build normally an run specs normally 2) ok you are on a 64-bit machine, during build make miniruby and miniruby32 (which can be made with lipo from miniruby, something like `lipo -extract i386 -output miniruby 32 miniruby`)

Re: [MacRuby-devel] experimental branch: status update

2009-04-06 Thread Eloy Duran
Hmm, so it's indeed a 32/64 bit issue. Thanks for trying Mike! - Eloy On 6 apr 2009, at 18:56, Mike Moore wrote: On Mon, Apr 6, 2009 at 3:16 AM, Eloy Duran wrote: One last question I have for everyone on the list. If there's someone with a 32 bit intel machine, could you ple

Re: [MacRuby-devel] experimental branch: status update

2009-04-07 Thread Eloy Duran
parts ;-) Cheers, Eloy On 6 apr 2009, at 17:39, Chris McGrath wrote: On Mon, Apr 6, 2009 at 10:16 AM, Eloy Duran wrote: If there are people who would like to work on getting examples up- to-date, please respond and I will try to give you an outline on a workflow. I'd be interested in h

Re: [MacRuby-devel] experimental branch: status update

2009-04-07 Thread Eloy Duran
forward to seeing any solution to running the tests in 32-bit mode that you come up with. Jordan On Apr 06, 2009, at 13:07, Eloy Duran wrote: Hmm, so it's indeed a 32/64 bit issue. Thanks for trying Mike! - Eloy On 6 apr 2009, at 18:56, Mike Moore wrote: On Mon, Apr 6, 2009 at 3:16 AM,

Re: [MacRuby-devel] rush and ruby 1.9

2009-04-09 Thread Eloy Duran
It;'s not clear to me whether you're talking about purely MRI Ruby 1.9 or MacRuby. At least with MacRuby there are indeed problems with RubyGems, see the tickets. Cheers, Eloy On Apr 9, 2009, at 5:23 PM, K H wrote: Hi. I switched my ruby to 1.9.1 on OS X.5.6. I figured there's no point to

Re: [MacRuby-devel] strings to yaml

2009-04-17 Thread Eloy Duran
Hey John, I think we'll need to move the to_yaml definition for String into NSString in the MacRuby case. I tried to do that as an example [1], but it seems that NSString completely breaks after opening the class, but this is probably just a bug in 0.4: "--- foo\n" "--- !str:NSString foo\

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-12 Thread Eloy Duran
Hi Matt, Testing is indeed an area I find interesting. But it's not so much that I like testing itself, but rather the results that one can achieve with it. Be it fixing bugs or rigorously refactoring. Real UI testing, like Squish does, is very cumbersome imo, maybe that's why that testin

Re: [MacRuby-devel] #54: build on Leopard fails on readline

2009-05-12 Thread Eloy Duran
Oh hey, thanks for pointing me to it again. There's nothing wrong with that article I failed at properly looking at the article. I think the layout instantly reminded me of an article which suggested installing ruby into /usr which a lot of people did and consequently broke their installati

Re: [MacRuby-devel] Experimental branch status

2009-05-29 Thread Eloy Duran
Hi, another not-Laurent here, On the topic of the RubySpec, which Jordan mentions as RSpecs; I have written a README on how to help out with the specs: http://github.com/alloy/mr-experimental/blob/master/spec/README.rdoc Cheers, Eloy On 29 mei 2009, at 06:35, Jordan K. Hubbard wrote: On M

Re: [MacRuby-devel] Experimental branch status

2009-05-29 Thread Eloy Duran
I haven't actively spoken about this with Laurent over the last week, but afaik not much changed since last time, which means that the support is not nearly far enough to start using it. We decided that we want the FFI specs in the repo in order to finish this work appropriately, which woul

Re: [MacRuby-devel] Tim added you as a friend on MyLife!

2009-05-29 Thread Eloy Duran
Spot on :) On 29 mei 2009, at 23:10, Rich Morin wrote: At 14:01 -0700 5/29/09, Tim Rand wrote: Tim Rand added you as a friend on MyLife™. Please confirm you know Tim so we can connect you. Do you know Tim? Sorry, Tim, MacRuby likes you, but is too busy right now (what with all the surgery,

Re: [MacRuby-devel] newbie wants to help

2009-06-02 Thread Eloy Duran
Hi, Yes, any help would be very nice! Over the last few days I have been tagging as much of the core specs as possible. Which means that the total of specs we now run is: 886 files, 3742 examples, 12050 expectations, 0 failures, 0 errors However, of all the tagged specs, not all are failures

Re: [MacRuby-devel] Setting Breakpoints/Debugger

2009-06-03 Thread Eloy Duran
No you're not. Unfortunately xcode does not have Ruby specific debug support. The debugger will give you GDB, which _can_ be used with Ruby, but I have not tried it with MacRuby yet. The more general solution is to use ruby-debug, but again, I haven't tried it with MacRuby yet. Good luck :)

Re: [MacRuby-devel] Contributions (Was: Experimental branch status)

2009-06-05 Thread Eloy Duran
What would be great is if you could first complete the openssl part of the rubyspec, which desperately needs some love. Once that's done, and someone helped you out with a dev. setup, you can use it to make sure the port works as it should. Eloy On 5 jun 2009, at 09:52, Allison Newman wrote:

Re: [MacRuby-devel] Contributions (Was: Experimental branch status)

2009-06-05 Thread Eloy Duran
Don't worry Eloy, I wouldn't dream of writing code before having written the tests first ;-) On Friday, June 05, 2009, at 10:05AM, "Eloy Duran" > wrote: What would be great is if you could first complete the openssl part of the rubyspec, which desperately needs some love. O

Re: [MacRuby-devel] Contributions (Was: Experimental branch status)

2009-06-05 Thread Eloy Duran
Ah there are even some samples: http://kenai.com/projects/ruby-ffi/sources/mercurial/content/samples On 5 jun 2009, at 10:11, Eloy Duran wrote: Awesome Alli :D Maybe that the specs of Ruby-FFI can give you the insights on how to use it? It would be best to work on a clone of rubyspec

Re: [MacRuby-devel] LLVM installer package

2009-06-06 Thread Eloy Duran
Hi Markus, Very nice! Thanks a lot. If people who didn't have LLVM and MacRuby 0.5 compiled try this, please report if it works so we can add info about it to the README. Eloy On 6 jun 2009, at 21:30, Markus Prinz wrote: Hey everyone, Since not everyone has the time and patience to compi

Re: [MacRuby-devel] MacRuby Document-based Application template in XCode?

2009-06-17 Thread Eloy Duran
I think this is the one you mean: http://github.com/atduskgreg/MacRuby-Document-App-Template/tree/master Eloy On 17 jun 2009, at 09:23, Matt Aimonetti wrote: I believe someone already worked on a template like that, you might want to do a twitter search before giving it a try. - Matt On T

Re: [MacRuby-devel] Setting Breakpoints/Debugger

2009-06-18 Thread Eloy Duran
Hi Pual, I sometimes use GDB when I need to debug RubyCocoa/MacRuby _themselves_, as they're written in C. For Ruby code, however, I almost never need a debugger. Maybe it's because I write most code test driven so I know that the code is probably ok when I actually use it. In the cases wh

Re: [MacRuby-devel] Setting Breakpoints/Debugger

2009-06-18 Thread Eloy Duran
bugger but that might be cool. - Matt On Thu, Jun 18, 2009 at 12:33 AM, Eloy Duran wrote: Hi Pual, I sometimes use GDB when I need to debug RubyCocoa/MacRuby _themselves_, as they're written in C. For Ruby code, however, I almost never need a debugger. Maybe it's because I wr

Re: [MacRuby-devel] Setting Breakpoints/Debugger

2009-06-18 Thread Eloy Duran
I had a little play with IRB. With some “easy” workarounds, plain Ruby at least, I was able to get IRB in the right context. However, on MacRuby (at least on 0.5), this doesn't work completely, as the binding of a proc returns the wrong context: % ruby -e "class Foo; def initialize; p eval(

Re: [MacRuby-devel] I want to help too

2009-06-29 Thread Eloy Duran
Hi Perry, I wouldn't worry too much about duplicate efforts, there aren't many people working on the core itself. What you could do to start out, is to run the rubyspecs in spec/frozen/ language, as they should all run iirc, but there are some tagged ones. To run spec all which are tagged as

Re: [MacRuby-devel] I want to help too

2009-07-01 Thread Eloy Duran
Hi, I'm not sure if you want this traffic on the list. Sure no problem, it's not that we that much traffic yet :) I got everything compiled, etc. Ran the command below and captured the output. As you mentioned, there is a segment fault. I installed ruby 1.9.1p129 and changed the command

Re: [MacRuby-devel] I want to help too

2009-07-08 Thread Eloy Duran
Ugh, sorry Perry. It seems I forgot to actually send my email... Anyways, Mike is correct. For more info on MSpec, and all the options for the runners, see: http://rubyspec.org/wiki/mspec Eloy On Jul 7, 2009, at 10:36 PM, Mike Sassak wrote: On Fri, Jul 3, 2009 at 9:30 AM, Perry Smith wrote

Re: [MacRuby-devel] Changing tags on some tests?

2009-07-10 Thread Eloy Duran
Yes indeed, the ones that segfault should be tagged as critical. To list all current critical tags: $ ./mspec/bin/mspec tag --list critical -B ./spec/macruby.mspec :full Cheers, Eloy On Jul 10, 2009, at 4:21 AM, Laurent Sansonetti wrote: I think the plan is to tag these as "critical". At least

Re: [MacRuby-devel] Better is always different...

2009-07-10 Thread Eloy Duran
I think Laurent will write specific MacRuby specs for these differences, so you could look it up from there and write the wiki. Or others interested could simply check the specs to see it for themselves. Eloy On Jul 9, 2009, at 10:12 PM, Rich Morin wrote: I've been studiously avoiding doin

Re: [MacRuby-devel] Changing tags on some tests?

2009-07-10 Thread Eloy Duran
rtion/expectation level, rather than at the interpreter level, should that tag be changed to "fails"? Mike On Fri, Jul 10, 2009 at 2:59 AM, Eloy Duran wrote: Yes indeed, the ones that segfault should be tagged as critical. To list all current critical tags: $ ./mspec/bin/mspec tag --l

Re: [MacRuby-devel] experimental branch: status update

2009-07-12 Thread Eloy Duran
Boomshakalaka, you's the man! On 12 jul 2009, at 07:25, Laurent Sansonetti wrote: Another update on the experimental branch! Highlights are: - A much better AOT (ahead-of-time) compiler, now available as a separate command line executable, macrubyc. It can compile some MacRuby sample code

[MacRuby-devel] RubySpec updated

2009-08-02 Thread Eloy Duran
Hi, I'm un-jet lagging a bit, so I thought I'd update the ruby specs again. We are now passing: 18160 examples. @Matt: Great work on the StringScanner! Could you please make sure the specs run on 1.8 as well? Currently 4 fail: $ mspec -B ruby.1.8.mspec library/stringscanner StringScanner

Re: [MacRuby-devel] RubySpec updated

2009-08-02 Thread Eloy Duran
n 2 aug 2009, at 19:49, Matt Aimonetti wrote: Hi Eloy, Welcome back. Unfortunatelly, due to API changes, the specs can't all pass on 1.8 and 1.9 unless we use a version check mechanism. My understanding was that we should focus on 1.9.2 preview 1. What do you want me to do? - Matt Sent from

Re: [MacRuby-devel] RubySpec updated

2009-08-03 Thread Eloy Duran
11:30 AM, Matt Aimonetti > wrote: Thanks for the tip, I'll go back and fix strscan and will make the modifications before pushing stringio. - Matt On Sun, Aug 2, 2009 at 11:22 AM, Eloy Duran wrote: Thanks Matt :) Indeed, in order to specify the API changes between 1.8 and 1.9 you

Re: [MacRuby-devel] Information about the new YAML module

2009-08-03 Thread Eloy Duran
Awesome work Patrick! Thanks a lot for your work on this. Eloy On 3 aug 2009, at 19:51, Patrick Thomson wrote: Hi everyone, I've just pushed my work on a new YAML module to the experimental branch (revision 2184). Rather than being backed by the old syck code that 1.8/1.9 use, this is bac

Re: [MacRuby-devel] Information about the new YAML module

2009-08-03 Thread Eloy Duran
Btw: About git-svn creating many commits, I wouldn't worry about it :) But if you'd like to normalize, I'd do something like: $ git checkout -b yaml_branch # work on it $ git checkout master $ git diff yaml_branch | patch -p1 $ git add . $ git commit -v Eloy On 3 aug 2009, at 19:51, Patric

Re: [MacRuby-devel] Information about the new YAML module

2009-08-03 Thread Eloy Duran
t annoyed me so much I went back to svn) Eloy, would you mind giving a quick rundown of your setup and workflow? Thanks, - Matt On Mon, Aug 3, 2009 at 1:01 PM, Eloy Duran wrote: Btw: About git-svn creating many commits, I wouldn't worry about it :) But if you'd like to normali

Re: [MacRuby-devel] Information about the new YAML module

2009-08-03 Thread Eloy Duran
Nice! :) On 3 aug 2009, at 22:23, Brian Mitchell wrote: You could also use: $ git merge --squash yaml_branch A little easier than piping a diff. Brian. On Mon, Aug 3, 2009 at 16:01, Eloy Duran wrote: Btw: About git-svn creating many commits, I wouldn't worry about it :) But if

Re: [MacRuby-devel] NSNumber boolean spec

2009-08-04 Thread Eloy Duran
Applied and removed tag, thanks! Eloy On Aug 4, 2009, at 4:15 AM, dan sinclair wrote: The attached patch gets the NSNumber boolean conversion spec working. I'm not sure if the change is correct but I changed the spec from should != to should_not == and it appears to be working correctly

Re: [MacRuby-devel] experimental branch: status update

2009-08-05 Thread Eloy Duran
The latter seems a good option to me, if you have a patch I'll gladly apply it. Eloy On Aug 5, 2009, at 12:25 PM, M. Scott Ford wrote: This is the last experimental branch status update, we accomplished I think all the goals required to merge the branch into trunk. There will be more status

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-05 Thread Eloy Duran
Hi, On Aug 5, 2009, at 5:31 PM, Clay Bridges wrote: The google didn't yield much guidance on this. Before I started a deep-dive on the MacRuby source, and/or the standard ruby way to handle this sort of thing, I thought I would ask a couple of questions: 1) Any easy advice? Yes, use RubyCocoa

Re: [MacRuby-devel] How to use custom C struct's?

2009-08-06 Thread Eloy Duran
FYI, BridgeSupport is mostly implemented in MacRuby, at least the part that deals with C structures. The only part that we didn't implement yet is C function pointers, the rest (roughly 90%) is done, and it is faster / more stable than the RubyCocoa code (you will have to believe me, since

Re: [MacRuby-devel] Base64 specs

2009-08-06 Thread Eloy Duran
Hey Dan, By just reading the patch it seems there are no new versions of these examples on how the method works on 1.9.x. Could you please add those as well? Cheers, Eloy On Aug 5, 2009, at 5:44 AM, dan sinclair wrote: Hello, The attached patch marks some specs that don't execute on Rub

Re: [MacRuby-devel] experimental branch: status update

2009-08-06 Thread Eloy Duran
Nope not yet. I personally would like to have something like the following up: http://blog.jimmy.schementi.com/2009/02/ironrubyinfo.html http://github.com/jschementi/ironruby-stats/tree/master Which reports a bit on performance and the RubySpec compliance. Alas, like so many fun things, I have

  1   2   3   >