Re: Options for targeting Windows XP?

2021-03-29 Thread Moritz Angermann
> >* Upstream changes into Cabal to make your new compiler a first-class > citizen. This is what GHCJS did. Just a word of caution, please don't do this. It leads to non-negligible maintainence burden on your and on the cabal side. Rather try as hard as you can to make your compiler

Re: Options for targeting Windows XP?

2021-03-29 Thread Ben Gamari
Clinton Mead writes: > Thanks again for the detailed reply Ben. > > I guess the other dream of mine is to give GHC a .NET backend. For my > problem it would be the ideal solution, but it looks like other attempts in > this regard (e.g. Eta, GHCJS etc) seem to have difficulty keeping up with >

Re: Options for targeting Windows XP?

2021-03-28 Thread Javier Neira Sanchez
t; > *From:* ghc-devs *On Behalf Of *Moritz > Angermann > *Sent:* 26 March 2021 08:00 > *To:* Clinton Mead > *Cc:* ghc-devs > *Subject:* Re: Options for targeting Windows XP? > > > > I believe there is a bit of misconception about what requires a new > backend or no

Re: Options for targeting Windows XP?

2021-03-27 Thread amindfv--- via ghc-devs
On Fri, Mar 26, 2021 at 04:27:58PM +1100, Clinton Mead wrote: > I guess the other dream of mine is to give GHC a .NET backend. For my > problem it would be the ideal solution, but it looks like other attempts in > this regard (e.g. Eta, GHCJS etc) seem to have difficulty keeping up with > updates

RE: Options for targeting Windows XP?

2021-03-26 Thread Simon Peyton Jones via ghc-devs
This link gives some (old) background https://wiki.haskell.org/GHC/FAQ#Why_isn.27t_GHC_available_for_.NET_or_on_the_JVM.3F Simon From: ghc-devs On Behalf Of Moritz Angermann Sent: 26 March 2021 08:00 To: Clinton Mead Cc: ghc-devs Subject: Re: Options for targeting Windows XP? I believe

Re: Options for targeting Windows XP?

2021-03-26 Thread Moritz Angermann
I believe there is a bit of misconception about what requires a new backend or not. GHC is a bunch of different intermediate representations from which one can take off to build backends. The STG, or Cmm ones are the most popular. All our Native Code Generators and the LLVM code gen take off from

Re: Options for targeting Windows XP?

2021-03-25 Thread Clinton Mead
Thanks again for the detailed reply Ben. I guess the other dream of mine is to give GHC a .NET backend. For my problem it would be the ideal solution, but it looks like other attempts in this regard (e.g. Eta, GHCJS etc) seem to have difficulty keeping up with updates to GHC. So I'm sure it's not

Re: Options for targeting Windows XP?

2021-03-25 Thread Ben Gamari
Clinton Mead writes: > Thanks all for your replies. Just going through what Ben has said step by > step: > > My sense is that if you don't need the threaded runtime system it would >> probably be easiest to just try to make a modern GHC run on Windows XP. >> > > Happy to run non-threaded

Re: Options for targeting Windows XP?

2021-03-25 Thread Ben Gamari
Clinton Mead writes: > Another gotcha that I didn't think of. The machines I'm targeting often > have 32 bit versions of Windows, which it looks like isn't supported after > GHC 8.6. > > Does this move it into the too hard basket? Ooph, yeah, this makes matters a bit worse. The reason we

Re: Options for targeting Windows XP?

2021-03-25 Thread Clinton Mead
Another gotcha that I didn't think of. The machines I'm targeting often have 32 bit versions of Windows, which it looks like isn't supported after GHC 8.6. Does this move it into the too hard basket? ___ ghc-devs mailing list ghc-devs@haskell.org

Re: Options for targeting Windows XP?

2021-03-24 Thread Clinton Mead
Thanks all for your replies. Just going through what Ben has said step by step: My sense is that if you don't need the threaded runtime system it would > probably be easiest to just try to make a modern GHC run on Windows XP. > Happy to run non-threaded runtime. A good chunk of these machines

Re: Options for targeting Windows XP?

2021-03-24 Thread Ben Gamari
Clinton Mead writes: > I'm currently trying to bring my company around to using a bit of Haskell. > One issue is that a number of our clients are based in South East Asia and > need software that runs on Windows XP. > Ooph, that is quite tricky. Indeed we dropped XP support for Windows 8.0, at

Re: Options for targeting Windows XP?

2021-03-24 Thread Phyx
Hi, > XP. GHCJS seems to at least have a compiler based on GHC 8.6. > 2. Patch GHC with an additional command line argument to produce XP/Vista compatible executables, perhaps by looking at the changes between 7.10 -> 8.0, and re-introducing the XP approach as an option. This would be somewhat

Re: Options for targeting Windows XP?

2021-03-24 Thread Carter Schonwald
In terms of net amount of work: I suspect ghcjs targeting either node or some sort of browser plug-in may be the most humane assuming associated browser / node suport on xp is turn key. I think there were some genuine changes to the io manager (the Haskell code in base for doing efficient file

Options for targeting Windows XP?

2021-03-24 Thread Clinton Mead
I'm currently trying to bring my company around to using a bit of Haskell. One issue is that a number of our clients are based in South East Asia and need software that runs on Windows XP. Unfortunately it seems the last version of GHC that produces executables that run on Windows XP is GHC 7.10.