The Hummingbird is still ARM. ARM doesn&#39;t actually build any chips themselves, and just license the architecture design out to people who do make them. Most of the iPhone ARM chips are built by Samsung too.<div><br></div>
<div>Almost all the mobile devices I know of run ARM, so I think having a native ARM generator would still be very beneficial. And if it isn&#39;t ARM on a device, it&#39;s almost certainly going to be Intel, these days. Sure, Android doesn&#39;t specify that this has to be the case, but realistically, it will be.<br>
<br><div class="gmail_quote">On Sun, Aug 8, 2010 at 3:08 AM, Mathew de Detrich <span dir="ltr">&lt;<a href="mailto:deteego@gmail.com">deteego@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Well the other issue is of course that Android being available on a wide variety of phones, not all of which run ARM (the phone I am about to get for example has a custom built CPU), although I guess one could use a &quot;generic&quot; ASM branch for &quot;mobile&quot; devices (if one exists). btw the phone I am about to receive is a Samsung Galaxy-S, which has a hummingbird chip (no idea what Assembler Instruction set it uses, I believe its a closed chip)<div>

<br></div><div>In my opinion the most &quot;reliable&quot; approach would actually to produce the C that wraps around NDK (for any code that could be possible) which would obviously interface with the Java libraries. Probably the biggest bane of Android is the fact that its able to run on almost all machines means that there *would* be issues using LLVM to just produce code for the generic ARM.</div>

<div><br>Using the NDK + Java would mean any app written in Haskell would work on any android device. Of course as mentioned above, there are issues with this. Its a lot of work for one thing, and the GC for Java is probably not the best suited for Haskell structured programs. Also iirc, in order to make &quot;official&quot; Android apps which can go on the market place, you are basically forced to use the Java API + NDK for any native code, and you have to use the Java API to interface with the android GUI/World (you can&#39;t make an proper Android app just using NDK which complicates things further). The GC issue I guess could be solved by generating JVM code (instead of Java &quot;code&quot;) which would give more freedom for GHC to generate code more suited to Haskell</div>

<div><br></div><div>If this ever ended up happening, it does have the advantage that when one would develop an app for Android using Haskell, GHC (or whatever compiler we would use) can use NDK for as much code as possible and only resorting to Java libraries when required which can of course equate to creating very fast Android Apps using a productive language (Haskell)</div>

<div><br></div><div>As Don mentioned through, we need a java runtime for GHC.</div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>