Mono framework converts .Net to Obj-C

Discussion in 'Mac Programming' started by zippyfly, Sep 17, 2009.

  1. zippyfly macrumors regular

    Mar 22, 2008
    What do you folks think of this?

    "Static compilation is the special sauce that makes it possible for Mono to run on the iPhone. Mono allows developers to use ahead-of-time (AOT) compilation, which converts .NET's common intermediate language (CIL) directly to native code at compile time. This means that the application doesn't have to use just-in-time (JIT) compilation to generate the native code at runtime."

    Note: I don't have any particular love for .Net (but maybe a slight particular dislike haha).
  2. lloyddean macrumors 6502a

    May 10, 2009
    Des Moines, WA
    I believe it builds executable MACH-O binaries and does not convert anything to Objective-C.

    I retract that as I'm reading sources that indicate otherwise as well.
  3. Winni macrumors 68030


    Oct 15, 2008
    MonoTouch creates native code. It does not translate anything to Objective-C.

    Besides that, I personally prefer C# (or Python) over Objective-C anytime. And at least the .NET framework does not force me to use ONE obscure - and ugly looking - language... :cool:
  4. zippyfly thread starter macrumors regular

    Mar 22, 2008
  5. zippyfly thread starter macrumors regular

    Mar 22, 2008
    Well, using one language does make things easier when everyone is talking in the same language (pun sort of intended) and you don't have to figure out how to port code or algorithms, or how to call the API in different ways. I don't know Python but I would assume programming in C# is more Java-like whereas Objective-C makes one think in a different manner (at least for me, compared with "thinking in java").

    In Java, my recollection is that I was extending stuff all over the place. In Objective-C, it seems more like I just combine existing things to make them work.

    (Incidentally, I believe Android uses Java syntax as well.)

    I don't know C# so I don't know if you can mix C with it (I am assuming no?) but I like how you can mix inline C and Objective-C (it's a superset anyway) so you can use all kinds of extant code.
  6. iSee macrumors 68040


    Oct 25, 2004
    This is a good move for Mono. (This isn't that new, though, right?)

    I gotta laugh, though, at the idea of "static compilation" being a special advanced innovation.
  7. zippyfly thread starter macrumors regular

    Mar 22, 2008
    I thought the "advanced innovation" was that this adds yet another layer of abstraction? (Joke!)

Share This Page