[Haskell-cafe] Haskell *interpreter* on iPad? (Scheme and Ocaml are there)
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Tue Jun 21 02:21:28 CEST 2011
And while we are dreaming, in an iOS port of GHCi (meaning GHCi runs on iOS and doesn't just generate code for it), it would be great to make bytecode persistent — ie, the bytecode that GHCi currently generates internally to interpret programs should be serialized to save and load it. (Note that iOS apps are not allowed to generate binary code, so we wouldn't need the gcc tool chain etc, but just have a stripped down GHCi that generates bytecode only. All pre-compiled libraries that are part of the GHCi app can of course still be native code and load and interact with the interpreter as usual.)
> Oh, Scheme is trivial to implement, when compared with Haskell. So
> people write it from scratch as a tutorial exercise.
> Haskell isn't trivial to implement from scratch, so instead we port
> existing implementations mostly.
> That means really, porting Hugs or GHC. And you've been pointed at examples.
> I think people are clearly keen for this, now it is a small matter of
> programming talent and will.
> -- Don
> On Sat, Jun 18, 2011 at 3:03 PM, John Velman <velman at cox.net> wrote:
>> On Sat, Jun 18, 2011 at 10:44:01PM +0400, MigMit wrote:
>> Well, this is my point. THERE ARE 3 SCHEME INTERPRETERS in the iPad app
>> They run on factory iPads, not jailbroken.
>> The GUI for the gambitREPL (Read, Evaluate, Print, Loop) is just like a
>> console. Input a scheme expression. CR. Answer appears, new prompt.
>> In haskell we need to allow for some way to input layout. I don't recall
>> how Hugs handles this, if at all.
>> There are probably 5 or 10 people out there who want to learn functional
>> programming, and they are studying Scheme on their iPads. Or Ocaml.
>> I don't forsee doing production programming ON THE IPAD, but experimenting,
>> testing some functions, and, by the way, learning Haskell.
>> While I'm fantasizing, something like Hugs or ghci with SOE would really be
>> Sorry for shouting :-)
>> John Velman
>>> Well, Haskell is fun, isn't it? And that's what iPhone is perfect for: fun.
>>> Back when I had iPod Touch 1G (jailbroken, of course), I used to run Hugs on it. Now I would love to see a Haskell interpreter in the App Store -- which, by the way, is possible; as there are Scheme interpreters there, why not Haskell?
>>> Отправлено с iPhone
>>> Jun 18, 2011, в 22:27, Jack Henahan <jhenahan at uvm.edu> написал(а):
>>>> I suppose you could make a GUI, by why? Given that you'll have to be working on a jailbroken device, anyway, one could just as well use one of the numerous terminal emulators now floating around for jailbroken iOS. That said, the idea of people writing Haskell on phones and iPads and so on makes me just a little bit grinny.
>>>> On Jun 18, 2011, at 2:17 PM, Alexander Solla wrote:
>>>>> On Sat, Jun 18, 2011 at 10:46 AM, John Velman <velman at cox.net> wrote:
>>>>> To further emphasize, I'd like to type in (or paste in) Haskell code and
>>>>> have it executed on the iPad. To reiterate: Something like Hugs, or ghci
>>>>> on the iPad.
>>>>> Since the iPhone OS is pretty much OS X for ARM, and GHC apparently now supports cross-compilation, you can compile GHC for iOS. I guess you could cross compile Hugs with GCC. Doing so probably isn't trivial, but it should be straightforward.
>>>>> I bet you could even use Xcode to make a graphical user interface to GHCi.
>>>>> Haskell-Cafe mailing list
>>>>> Haskell-Cafe at haskell.org
>>>> Haskell-Cafe mailing list
>>>> Haskell-Cafe at haskell.org
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe