Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  getting cabal to work under windows 8 (Nathan H?sken)
   2.  Detect system language (Nathan H?sken)
   3.  Haskell exectuable size (Nathan H?sken)
   4. Re:  Haskell exectuable size (Henk-Jan van Tuyl)
   5. Re:  Haskell exectuable size (Dmitry Vyal)


----------------------------------------------------------------------

Message: 1
Date: Tue, 03 Sep 2013 12:32:46 +0200
From: Nathan H?sken <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] getting cabal to work under windows 8
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Hey,

I ended up installing haskell-platform for windows under ubuntu using 
wine. It works like it charm, but it still would be nice to get it 
running under real windows ...

Regards,
Nathan

On 09/03/2013 01:24 AM, Nathan H?sken wrote:
> Hey,
>
> Unfortantly same result:
>
> cabal install semigroup
> cabal.exe:
>
> I also tried zlib (which is already installed), same result.
>
> Any remaining Ideas?
>
> Thanks!
> Nathan
>
>
> Am 9/2/2013 8:00 PM, schrieb Stephen Tetley:
>> Hi Nathan
>>
>> I think that looks like a positive step.
>>
>> What happens if you try to cabal install one of netwires dependencies 
>> - e.g "semigroups" which doesn't have so many dependencies itself.
>>
>> Again I'm fishing for an answer, but if semigroups installs that 
>> would indicate that `cabal install` is working.
>>
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130903/0d41a6b6/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 03 Sep 2013 12:41:15 +0200
From: Nathan H?sken <[email protected]>
To: Haskell Beginners Mailinglist <[email protected]>
Subject: [Haskell-beginners] Detect system language
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hey,

Is there a cross plarform way to detect the system language during runtime?
Seems like something simple, but my googling failed.

Regards,
Nathan



------------------------------

Message: 3
Date: Tue, 03 Sep 2013 12:45:34 +0200
From: Nathan H?sken <[email protected]>
To: Haskell Beginners Mailinglist <[email protected]>
Subject: [Haskell-beginners] Haskell exectuable size
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hey,

I have written a small wxHaskell application. Since wxWidgets seems to 
be required to be linked dynamicly, I have to add the wxWidgets dlls. 
Those make a total of about 25MB, wow.

Now the compiled exe (compiled with ghc -O2) has size 15MB.
In total I am at about 50Mb, which is just to much.

Why is the exe so big?
Has anyone a suggestion on how to reduce the total size?

Thanks!
Nathan



------------------------------

Message: 4
Date: Tue, 03 Sep 2013 13:48:17 +0200
From: "Henk-Jan van Tuyl" <[email protected]>
To: "Haskell Beginners Mailinglist" <[email protected]>, Nathan
        H?sken <[email protected]>
Subject: Re: [Haskell-beginners] Haskell exectuable size
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
        delsp=yes

On Tue, 03 Sep 2013 12:45:34 +0200, Nathan H?sken  
<[email protected]> wrote:

> Hey,
>
> I have written a small wxHaskell application. Since wxWidgets seems to  
> be required to be linked dynamicly, I have to add the wxWidgets dlls.  
> Those make a total of about 25MB, wow.
>
> Now the compiled exe (compiled with ghc -O2) has size 15MB.
> In total I am at about 50Mb, which is just to much.
>
> Why is the exe so big?
> Has anyone a suggestion on how to reduce the total size?

The compiled wxcore library (the raw wxWidgets interface) is about 11 MB.  
You can reduce it by about 50%, by using the GHC option -optl-s (this  
passes the option -s to the linker) to remove the debug data from the  
executable. This works for all executables, not just wxHaskell users.

The size can further be reduced by running UPX[0], an executable  
compression utility. UPX can also be used to compress DLLs.

Regards,
Henk-Jan van Tuyl


[0] http://upx.sourceforge.net/


-- 
Folding@home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--



------------------------------

Message: 5
Date: Tue, 03 Sep 2013 15:53:12 +0400
From: Dmitry Vyal <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Haskell exectuable size
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 09/03/2013 02:45 PM, Nathan H?sken wrote:
 > I have written a small wxHaskell application. Since wxWidgets seems 
to be required to be linked dynamicly, I have to add the wxWidgets dlls. 
Those make a total of about 25MB, wow.
 >
 > Now the compiled exe (compiled with ghc -O2) has size 15MB.
 > In total I am at about 50Mb, which is just to much.
 >
 > Why is the exe so big?
 > Has anyone a suggestion on how to reduce the total size?
Bindings for large C libraries contain a great number of Haskell wrapper 
functions for C functions.  Looks like GHC is not terribly efficient in 
terms of size of generated code. Your tiny application gets statically 
linked with a huge haskell library which in turn dynamically linked with 
C library doing the actual work.

In case you're having multiply haskell binaries using wxWidgets you can 
use GHC's dynamic linking feature. 
http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/using-shared-libs.html. 
This way actual binaries would be small but would have an additional 
run-time dependency.

And my question. Does GHC try to exclude unused symbols from Haskell 
libraries it links to application code?

Best wishes,
Dmitry



------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 63, Issue 5
****************************************

Reply via email to