What are the advantages / limitations of MacRuby and has anyone used it to program on an iPhone?

I continue to use MacRuby links and wondered if any of them used iPhone / Objective C for programming.

The MacRuby website says: "The goal of MacRuby is to create full-fledged Mac OS X applications that do not sacrifice performance in order to take advantage of using Ruby."

So my question is: what are the benefits of Ruby?

And, more importantly, what are the limitations?

+3
source share
3 answers

MacRuby, , iPhone, Mac OS X Objective-C Objective-C 2.0 ( ). iPhone OS Objective-C 2.0, ( retain/release), , MacRuby .

, MacRuby App Store, ( , Apple) verboten.

iPhone Ruby , , , . , , iPhone, Ruby - , MacRuby GC.

, MacRuby Mac OS X. :

  • , Ruby - . . , , .
  • Objective-C , Objective, , C. Ruby C-ness.
  • IMHO, Objective-C . , . Ruby , foo.bar('baz') foo.bar 'baz'.
  • Objective-C . cut'n'pasting .h .m. Ruby .
+6

MacRuby , ( OS X), iPhone :

  • Objective C, iPhone
  • , iPhone.
  • LLVM, , ARM.
  • JIT iPhone - ( mprotect() ).

, , - , MacRuby, iPhone, , , . iPhone , MacRuby .

+2

Ruby - , , . , , , , Ruby , .

You will never run it on an iPhone unless Apple decides to remove restrictions on the absence of background processes currently imposed, so if you are interested, don’t worry.

0
source

Source: https://habr.com/ru/post/1715830/


All Articles