Q 2 of 2: GUI and turnkey compiler?

Perl and Python both have GUI interfaces, which are handy for publishing little give-away apps, as I used to do quite a lot in Perl/Tk and also in ancient of days on JForth. Also to make give-away apps, there needs to be a turn-key compiler, something into which I'd feed code and out would come an *.exe (albeit quite bloated in size) that ran on any PC which did not have Haskell already installed. So, are there such things also for Haskell? A GUI and a means to issue stand-alone apps?

On Thu, May 30, 2013 at 06:54:54PM -0400, Gan Uesli Starling wrote:
Perl and Python both have GUI interfaces, which are handy for publishing little give-away apps, as I used to do quite a lot in Perl/Tk and also in ancient of days on JForth. Also to make give-away apps, there needs to be a turn-key compiler, something into which I'd feed code and out would come an *.exe (albeit quite bloated in size) that ran on any PC which did not have Haskell already installed.
By default, GHC produces statically linked executables, which (if I'm not mistaken) can be distributed to anyone with the same machine architecture, whether they have anything Haskell-related installed or not. -Brent

I tried that too... but I think I fell foul to a missing library for the
arbitrary length arithmetic. can't remember the name of it off-hand though.
On 31 May 2013 13:08, Brent Yorgey
On Thu, May 30, 2013 at 06:54:54PM -0400, Gan Uesli Starling wrote:
Perl and Python both have GUI interfaces, which are handy for publishing little give-away apps, as I used to do quite a lot in Perl/Tk and also in ancient of days on JForth. Also to make give-away apps, there needs to be a turn-key compiler, something into which I'd feed code and out would come an *.exe (albeit quite bloated in size) that ran on any PC which did not have Haskell already installed.
By default, GHC produces statically linked executables, which (if I'm not mistaken) can be distributed to anyone with the same machine architecture, whether they have anything Haskell-related installed or not.
-Brent
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

On Fri, May 31, 2013 at 9:03 AM, emacstheviking
I tried that too... but I think I fell foul to a missing library for the arbitrary length arithmetic. can't remember the name of it off-hand though.
libgmp? I think there are ways to make that get statically linked as well, although various platforms (Debian derivatives, mostly) strongly discourage doing this, to the extent that they modify their packaged ghc to force a dependency on the system gmp library (and, somewhat ironically, are also the ones most prone to having no or an incompatible version installed at runtime). -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Whatever he said. All I know is that the last time I copied a binary across
to another box it failed with a "missing libgmp.so" message! Beware!!
On 31 May 2013 15:13, Brandon Allbery
On Fri, May 31, 2013 at 9:03 AM, emacstheviking
wrote: I tried that too... but I think I fell foul to a missing library for the arbitrary length arithmetic. can't remember the name of it off-hand though.
libgmp? I think there are ways to make that get statically linked as well, although various platforms (Debian derivatives, mostly) strongly discourage doing this, to the extent that they modify their packaged ghc to force a dependency on the system gmp library (and, somewhat ironically, are also the ones most prone to having no or an incompatible version installed at runtime).
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

I'm wondering why there's no tool that build an EXE that contains
everything is needed. statically linking anything that is required... is
there any problem with ghc here?
Giacomo
On Fri, May 31, 2013 at 5:28 PM, emacstheviking
Whatever he said. All I know is that the last time I copied a binary across to another box it failed with a "missing libgmp.so" message! Beware!!
On 31 May 2013 15:13, Brandon Allbery
wrote: On Fri, May 31, 2013 at 9:03 AM, emacstheviking
wrote: I tried that too... but I think I fell foul to a missing library for the arbitrary length arithmetic. can't remember the name of it off-hand though.
libgmp? I think there are ways to make that get statically linked as well, although various platforms (Debian derivatives, mostly) strongly discourage doing this, to the extent that they modify their packaged ghc to force a dependency on the system gmp library (and, somewhat ironically, are also the ones most prone to having no or an incompatible version installed at runtime).
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

GHC is a compiler.
Ensuring all the necessary libraries are installed is the work of an installer.
That said, it is *nice* when compilers will statically link your executable.
Tim Perry
(916) 505-3634
On May 31, 2013, at 9:30 AM, Giacomo Tesio
I'm wondering why there's no tool that build an EXE that contains everything is needed. statically linking anything that is required... is there any problem with ghc here?
Giacomo
On Fri, May 31, 2013 at 5:28 PM, emacstheviking
wrote: Whatever he said. All I know is that the last time I copied a binary across to another box it failed with a "missing libgmp.so" message! Beware!!
On 31 May 2013 15:13, Brandon Allbery
wrote: On Fri, May 31, 2013 at 9:03 AM, emacstheviking
wrote: I tried that too... but I think I fell foul to a missing library for the arbitrary length arithmetic. can't remember the name of it off-hand though.
libgmp? I think there are ways to make that get statically linked as well, although various platforms (Debian derivatives, mostly) strongly discourage doing this, to the extent that they modify their packaged ghc to force a dependency on the system gmp library (and, somewhat ironically, are also the ones most prone to having no or an incompatible version installed at runtime).
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (6)
-
Brandon Allbery
-
Brent Yorgey
-
emacstheviking
-
Gan Uesli Starling
-
Giacomo Tesio
-
Tim Perry