Slashdot Mirror


Mac OS X Ruby/Objective-C Bridge Updated

phyxeld writes "RubyCocoa 0.4.0 is out. From the sf.net page: 'RubyCocoa is a Mac OS X framework that allows Cocoa programming in the Object-Oriented Scripting Language Ruby. RubyCocoa allows writing a Cocoa application in Ruby. It allows creating and using a Cocoa object in a Ruby script. In Cocoa application, mixture of program written by both Ruby and Objective-C is possible.' It's always nice to see more GPL software in the Mac OS X world."

35 comments

  1. ..this makes me dizzy.. by gl4ss · · Score: 3, Funny

    so, this makes doing ruby possible with cocoa or cocoa apps with ruby or cocoa possible with ruby.

    i may be tired but it was versed veerry confusing, something out of a bejeesus archaic journal v3.

    happy new years eve, k-suicide on.

    --
    world was created 5 seconds before this post as it is.
  2. field day for the grammar nazi by grammar+nazi · · Score: 3, Informative
    The grammar nazi could have a field day with this one:
    RubyCocoa is a Mac OS X framework that allows Cocoa programming in the Object-Oriented Scripting Language Ruby. RubyCocoa allows writing a Cocoa application in Ruby. It allows creating and using a Cocoa object in a Ruby script. In Cocoa application, mixture of program written by both Ruby and Objective-C is possible.
    I heard that Ruby was mostly popular over in Japan, but I didn't expect this kind of Engrish at Sourceforge!
    --

    Keeping /. free of grammatical errors for ~5 years.
    1. Re:field day for the grammar nazi by Anonymous Coward · · Score: 0

      I heard that Ruby was mostly popular over in Japan, but I didn't expect this kind of Engrish at Sourceforge!
      The sf.net blurb is written by the project leader, and if you look at the first link, it's a .jp site... so... yeah. It's pretty bad still.

      Keeping /. free of grammatical errors for ~5 years.

      Uh, no you're not.

    2. Re:field day for the grammar nazi by Anonymous Coward · · Score: 1, Informative

      "I heard that Ruby was mostly popular over in Japan, but I didn't expect this kind of Engrish at Sourceforge!"

      Sourceforge isn't US-only site. And you can't expect that every non-native writes English fluently.

      Maybe next time they will write the description in Japanese to get it perfect.

      ^rubic

    3. Re:field day for the grammar nazi by devonbowen · · Score: 2

      As a native English speaker, I'd like to apologize to our Japanese friends for this remark and thank them for all their efforts.

      Devon

    4. Re:field day for the grammar nazi by Anonymous Coward · · Score: 0
      Thank you sir. My engrish slowry improve. I understand Grammar nazi no bad intentions meant.

      No need to aporogize.

      Your friend,
      Donna Chang

    5. Re:field day for the grammar nazi by Anonymous Coward · · Score: 0


      Yes, me so solly!

    6. Re:field day for the grammar nazi by Anonymous Coward · · Score: 0

      oh yeah, hilarious. For even more laffs, check this page out:

      Ruby home page

      What the fuck font is that? It's all screwed up! And when I view source, everything is messed up. I can't make out a single word!

      Talk about "unable to speak english", man they can't even WRITE it! Don't they teach English in those foreign countries? How the fsck do they communicate with each other?

    7. Re:field day for the grammar nazi by psyto · · Score: 1
      Hi, I'm from Japan. I have no ability to code like implementor of RubyCocoa, so I try to translate what he want to express with his words. I hope this will help.

      RubyCocoa is a Framework of OS X, which enables you to write Cocoa programs with Ruby, an object-oriented scripting language. It is also possible to use RubyCocoa to generate objects, whose function you may call from Objective-C.

      Below are some of my understandings about Ruby and RubyCocoa.
      1. RubyCocoa has basically no relation to Mr. Matsumoto, originator of Ruby.
      2. Ruby is a set of libraries, which are made from C. RubyCocoa is a set of libraries (frameworks), which are (may be) made from Objective-C.
      3. Both Ruby and Objective-C have a lot of influence from Smalltalk, so the way of method call looks similar.
      4. Even in Japan, Python may be more popular than Ruby in real business (it may be because of Zope).

  3. speaking of Japan and Ruby by josephgrossberg · · Score: 4, Interesting

    The fact Ruby is popular over there seems to be an oft-quoted tidbit.

    How common is this? Do programming languages vary that much in popularity from region to region? (O'Reilly's Ruby book came out in Japan two years before the English-language Ruby in a Nutshell.)

    If so, why do you think that's the case? That influential programmers/managers give a particular language the nod early on? That documentation is published early in a particular language? That (OK, this is stretching it) Japanese syntax shares commonalities with Ruby?

    1. Re:speaking of Japan and Ruby by code+shady · · Score: 1

      In the case of ruby, I think it is primarily because the creator of the language, Yukihiro Matsumoto aka matz, is Japanese. As a result of this, ruby handles multibyte input natively, and has done so since it was created. I think led to its widespread adoption in Japan, since it would be easier to write scripts using native Japanese characters. (Disclaimer: I haven't personally worked with Japanese characters in other scripting languages)
      ---

      --
      Look out honey cause I'm usin' technology
      Ain't got time to make no apologies
    2. Re:speaking of Japan and Ruby by devonbowen · · Score: 2

      I think documentation is a big reason. The first English book for Ruby only came out in October 2000. Before that, non-Japanese speakers that wanted to learn Ruby had to sift through source code and examples and that's something that few programmers are willing to do.

      Devon

    3. Re:speaking of Japan and Ruby by AtATaddict · · Score: 1

      Yes, very few people actually take the time to look at source code examples written by people who know what they're doing.

      Incidentally, there are very few really good programmers. Must just be coincidence.

    4. Re:speaking of Japan and Ruby by Mandomania · · Score: 1

      In case you didn't know, the author of Ruby is Japanese and lives (IIRC) in Japan, and for a long time little-to-no documentation existed in English for that reason.

      --
      Mando

  4. A bit redundant, i'nnit? by Wonko42 · · Score: 3, Funny
    "RubyCocoa is a Mac OS X framework that allows Cocoa programming in the Object-Oriented Scripting Language Ruby. RubyCocoa allows writing a Cocoa application in Ruby. It allows creating and using a Cocoa object in a Ruby script."

    So, let me get this straight. You're saying I can (gasp!) write a Cocoa application in Ruby? Which is to say that I can write a Cocoa application in Ruby? Let me put this another way: I can write a Cocoa application in Ruby? So in other words, I can write a Cocoa application in Ruby? Wow, Cocoa apps written in Ruby, who would've thought. Did I mention that you can write Cocoa apps in Ruby?

    1. Re:A bit redundant, i'nnit? by josephgrossberg · · Score: 2, Funny

      No, dammit, you missed the point -- you can write Cocoa applications in Ruby.

    2. Re:A bit redundant, i'nnit? by gusloupy · · Score: 1
      It's not exactly redundant.
      RubyCocoa is a framework for Mac OS X that allows Cocoa programming in the object-oriented scripting language Ruby.
      That's the whole hog.
      RubyCocoa allows you to write a Cocoa application in Ruby.
      That's an entire application with all the crap that a Cocoa app needs to live. It's compiled.
      It allows you to create a Cocoa object in a Ruby script and to use it.
      That's writing a Cocoa object in Ruby, instead of Obj-C or Java or AppleScript. The resulting object is fully reusable. Note that it's just an object.
      In Cocoa application, mixture of program written by both Ruby and Objective-C is possible.
      And what's more you can reuse that Ruby/Cocoa object in any Cocoa project.
  5. Re:ugh! no! by Anonymous Coward · · Score: 0
    Microsoft USED BSD code too. there are many valid comparisons with MS & Apple. GNU is a political movement as much as anything, something which apple shirked years ago...

  6. Re:ugh! no! by Anonymous Coward · · Score: 0

    Microsoft USED BSD code too.

    Yes, and thanks to that fact, today we have this little thing that I like to call the Internet. If it weren't for the BSD license on the Berkeley TCP/IP stack, the world as we know it would be a very different place.

    GNU is a political movement as much as anything, something which apple shirked years ago...

    Apple was never a political movement. Apple is a computer company. You would do well not to get the two confused.

  7. Re:ugh! no! by Anonymous Coward · · Score: 0
    Apple was never a political movement. Apple is a computer company. You would do well not to get the two confused.

    You apparently have never been to a mac convention or hung out in a mac store and eavesdropped for a while. Religion is more like it.

  8. AppleScript Studio by TiMac · · Score: 4, Informative
    Sounds a little like Applescript Studio, from Apple themselves...which allows Cocoa applications to be written with a mix of Applescript and Objective-C. I like this system because sometimes its easier and faster to develop an interaction or automation application with a scripting language like Applescript.

    This RubyCocoa I've not used, but I bet it shims in and allows the same sort of thing.

    --

  9. Re:ugh! no! by Anonymous Coward · · Score: 0

    You apparently have never been to a mac convention or hung out in a mac store and eavesdropped for a while. Religion is more like it.

    So what does that make the local Linux User Group? A cult?

  10. Ain't that nice? by Anonymous Coward · · Score: 0

    You're a nice, senstive, caring young man. Just the type wanted by the hip, caring people selling that overpriced, underpowered Mac hardware to idiots like you.

  11. Feeding the trolls. by Fished · · Score: 2

    Hey there, Windows-boy -- just because you and your HAX0rZ buddies are too slow to play video games and program on the same computer doesn't mean that us grownups can't.

    --
    "He who would learn astronomy, and other recondite arts, let him go elsewhere. " -- John Calvin, commenting on Genesis 1
  12. Re:Programming and Mac users by sribe · · Score: 1

    The day we see any Mac users actually PROGRAMMING on their "computer" is the day hell freezes over.

    What OS do you think is used by the many programmers who write the many 1000s of applications that "Mac users" use???

  13. Re:Programming and Mac users by Anonymous Coward · · Score: 0
    Except for a few shills (are you reading this, Taco 'n' Hemos?) those pretentious, pathetic gas-bags couldn't program to save their lives.


    Please provide us with a link to the vast software library that you have written. (pregnant pause).
  14. Re:Programming and Mac users by wfolta · · Score: 1

    Actually, Mr. Bigot, I've heard that Mac's are over-represented in programming circles, as compared to Apple's overall market share. Makes sense since most PCs are bought to run games. And there's just something about a Titanium Powerbook running UNIX and also running productivity apps and games and also being having innovative combinations of technology such as Rendezvous+Airport+iChat, which geeks love.

    Oh yeah, MacOS X also ships with a free CD containing full developer tools including a visual development environment, multiple scripting languages (perl, ruby, Applescript), C, C++, Objective-C, etc. And MacOS X is largely open sourced via Darwin. Sounds like a better programming environment than your average PC.

  15. here's another neato bridge... by zonker · · Score: 0

    camelbones = perl -> obj-c/cocoa bridge framework. still needs lotso work, but an interesting project nonetheless.

  16. Re:Programming and Mac users by jcr · · Score: 2

    The day we see any Mac users actually PROGRAMMING on their "computer" is the day hell freezes over.

    Well then, hell froze over in 1984. That's when I started writing code on my Mac.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
  17. Cocoa from various languages by Anonymous Coward · · Score: 0


    Interesting, Cocoa can now be used from a bunch of languages. See this list.