status of template haskell + cross compiling plans for 7.8?
simonpj at microsoft.com
Thu Jul 4 09:48:02 CEST 2013
Via HWN I read your GHCJS post<http://weblog.luite.com/wordpress/?p=14&date=2013-06-03> this morning. Great work.
It's silly that you should need to patch GHC. One alternative is to absorb your patch<https://github.com/ghcjs/ghcjs.github.com/blob/master/patches/ghc-ghcjs.patch>, or a successor. I think it mostly just extends the FFI and target types with new cases. The patch doesn't actually include any JS generation, so I'm far from sure how that happens.
But it would be even better to make it easier to people to add new backends without modifying GHC, via some kind of plugin interface.
I'm underwater with POPL right now, but do discuss on ghc-devs any details that would help you.
From: ghc-devs-bounces at haskell.org [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Luite Stegeman
Sent: 14 June 2013 21:12
To: Carter Schonwald
Cc: ghc-devs at haskell.org
Subject: Re: status of template haskell + cross compiling plans for 7.8?
We've had TH working in GHCJS  for a few months now, compiling once for the host platform, and once for the target.
It's all a bit hacky, but maybe this approach can be used as a basis for getting TH working in a real GHC. We could take some shortcuts to make a pseudo-mutltitarget compiler by just tacking an extra code generator onto a non-crosscompiling GHC. I'd be happy to help or discuss to make it more general.
 https://github.com/ghcjs / http://weblog.luite.com/wordpress/?p=14
On Thu, Jun 13, 2013 at 11:43 PM, Carter Schonwald <carter.schonwald at gmail.com<mailto:carter.schonwald at gmail.com>> wrote:
Whats the story planned for template haskell + cross compiler support come ghc 7.8?
I understand theres a lot of Template Haskell design underway, some of which will help support tools like Manuel's Inline-Objective-C work. Does this mean that factored out within this reorganization is a better story for cross compilation?
Especially since one kill "app" for the Inline-Objective-C template haskell work would be writing IOS applications. Though I guess that also touches on the need to sort out supporting "FAT" ARM binaries too, right?
This intersects with a few different large subsets of tickets, so i'm not sure if any single ticket is the right fora for this question.
ghc-devs mailing list
ghc-devs at haskell.org<mailto:ghc-devs at haskell.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs