TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

MacRuby 0.6 Released

32 pointsby twobarabout 15 years ago

5 comments

crazydiamondabout 15 years ago
&#62; In MacRuby, all Ruby classes and objects are actually Objective-C classes and objects. There is no need to create costly proxies, convert objects, and cache instances. A Ruby object can be cast (toll-free) at the C level as an Objective-C object. The Ruby VM can also handle incoming Objective-C objects without conversion.<p>&#62; In MacRuby, the primitive Ruby classes (e.g., String, Array, and Hash) have been re-implemented on top of their Cocoa equivalents (respectively, NSString, NSArray, and NSDictionary). As an example, all strings in MacRuby are Cocoa strings, so they can be passed directly to underlying C or Objective-C APIs. It is also possible to call any method of the String interface on any Cocoa string, subclass Objective-C methods, etc.<p>Interesting. Anyone used macruby, and would like to share experiences.<p>1. How is the learning curve for a ruby programmer ?<p>2. Are using the String and other core classes just the same as ruby, or more difficult / cumbersome.<p>3. Can you reuse code from pure ruby apps, or does this re-implementation cause issues/problems.
评论 #1308267 未加载
crazydiamondabout 15 years ago
Could someone tell me what I would do using macruby. I am a ruby programmer on a Mac. What kind of apps could i write ?<p>Are these essentially GUI apps which otherwise i would write using Objective C or Cocoa (i assume its a standalone language) or QT, GTK etc.<p>So does this allow me to write apps that have the Mac L&#38;F ?
评论 #1307764 未加载
评论 #1307702 未加载
stuntmouseabout 15 years ago
I'm excited by MacRuby's architecture and performance, but can anyone comment on how extensive and usable the HotCocoa bindings are?
twobarabout 15 years ago
Ehm, sorry. I didn't notice the "upcoming". So it's not yet released but soon to be. (Is there any way to modify the title?)
steve19about 15 years ago
Nice to see it progressing, but sad that we will probably never see it compiling iPhone apps.
评论 #1307687 未加载
评论 #1307684 未加载