Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

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


Today's Topics:

   1.  Real World Haskell: Deprecated Libraries (John Ky)
   2. Re:  Real World Haskell: Deprecated Libraries (John Ky)
   3. Re:  Setting up WXHaskell on the 8.0.1 platform?
      (Christopher Sasarak)
   4. Re:  Real World Haskell: Deprecated Libraries (Bob Ippolito)


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

Message: 1
Date: Sun, 27 Nov 2016 21:23:18 +0000
From: John Ky <newho...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <Beginners@haskell.org>
Subject: [Haskell-beginners] Real World Haskell: Deprecated Libraries
Message-ID:
        <CAMB4o-CufNTU7_rob23VEjsfjTyWLMVw=ijngsujssnmcxe...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello Haskellers,

I have been working through the Real World Haskell chapter on Profiling and
Optimisation
<http://book.realworldhaskell.org/read/profiling-and-optimization.html>,
and got to the section *Advanced techniques: fusion*, where I encountered
some code using Data.Array.Vector from the deprecated library uvector.

Does anyone know how to rewrite this to not use deprecated libraries?

I have tried to use Data.Vector.Unboxed from vector, but my version
consumes a lot of memory.

The code I have is here:

https://github.com/haskell-works/hw-tutorial-performance/blob/master/hw-tutorial-performance-rwhe/Main.hs

With that code, I get “1831 MB total memory in use”, which is terrible

Build run steps I used were:

stack build --executable-profiling --library-profiling
--ghc-options="-fprof-auto -rtsopts -auto-all -caf-all -fforce-recomp"

time 
/Users/jky/wrk/haskell-works/hw-tutorial-performance/.stack-work/install/x86_64-osx/lts-7.10/8.0.1/bin/hw-tutorial-performance-rwhe
+RTS -sstderr -p -hy -RTS 1e7

I get very large numbers of allocations of Pair and Double.

There is also a very large upfront allocation ARR_WORDS, which I feared
would happen when using Data.Vector

Any help appreciated.

Cheers,

-John
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20161127/b988019a/attachment-0001.html>

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

Message: 2
Date: Sun, 27 Nov 2016 22:39:29 +0000
From: John Ky <newho...@gmail.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <Beginners@haskell.org>
Subject: Re: [Haskell-beginners] Real World Haskell: Deprecated
        Libraries
Message-ID:
        <camb4o-bbte29lov+ydb_j6sx5st8cxobyxxv9py6dubqy50...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

It looks like Haskell stack's profile options are defeating stream fusion.

Anyone know a work-around?


On Mon, 28 Nov 2016 at 08:23 John Ky <newho...@gmail.com> wrote:

> Hello Haskellers,
>
> I have been working through the Real World Haskell chapter on Profiling
> and Optimisation
> <http://book.realworldhaskell.org/read/profiling-and-optimization.html>,
> and got to the section *Advanced techniques: fusion*, where I encountered
> some code using Data.Array.Vector from the deprecated library uvector.
>
> Does anyone know how to rewrite this to not use deprecated libraries?
>
> I have tried to use Data.Vector.Unboxed from vector, but my version
> consumes a lot of memory.
>
> The code I have is here:
>
>
> https://github.com/haskell-works/hw-tutorial-performance/blob/master/hw-tutorial-performance-rwhe/Main.hs
>
> With that code, I get “1831 MB total memory in use”, which is terrible
>
> Build run steps I used were:
>
> stack build --executable-profiling --library-profiling 
> --ghc-options="-fprof-auto -rtsopts -auto-all -caf-all -fforce-recomp"
>
> time 
> /Users/jky/wrk/haskell-works/hw-tutorial-performance/.stack-work/install/x86_64-osx/lts-7.10/8.0.1/bin/hw-tutorial-performance-rwhe
>  +RTS -sstderr -p -hy -RTS 1e7
>
> I get very large numbers of allocations of Pair and Double.
>
> There is also a very large upfront allocation ARR_WORDS, which I feared
> would happen when using Data.Vector
>
> Any help appreciated.
>
> Cheers,
>
> -John
> ​
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20161127/ffd7eea7/attachment-0001.html>

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

Message: 3
Date: Sun, 27 Nov 2016 18:08:07 -0500
From: Christopher Sasarak <csasa...@mailbox.org>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Setting up WXHaskell on the 8.0.1
        platform?
Message-ID: <87polgttbc....@mailbox.org>
Content-Type: text/plain

I haven't set it up on windows before, but would you mind showing the
error message?

That would make it a lot easier to see exactly what the problem is.

-Chris

Cleverson Casarin Uliana writes:

> Hello all, I've sent this to the WXHaskell list, but no answers. Please 
> what is the recommended way to set up WXWidgets and WXHaskell for the 
> 8.0.1 Haskell Platform on Windows? I tried using the Achelanne 
> installer, but it gives errors apparently related to packages versions 
> incompatibilities.
>
> Thanks,
> Cleverson
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


-- 

Best,
Chris


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

Message: 4
Date: Sun, 27 Nov 2016 16:57:20 -0800
From: Bob Ippolito <b...@redivi.com>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <beginners@haskell.org>
Subject: Re: [Haskell-beginners] Real World Haskell: Deprecated
        Libraries
Message-ID:
        <cacwmpm-kuzthjyt9y-2miosuj6f20rbkb2dtgumjmjb6nov...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Try using foldl', usually that's the right thing to do for this kind of
data structure.

On Sun, Nov 27, 2016 at 2:39 PM, John Ky <newho...@gmail.com> wrote:

> It looks like Haskell stack's profile options are defeating stream fusion.
>
> Anyone know a work-around?
>
>
> On Mon, 28 Nov 2016 at 08:23 John Ky <newho...@gmail.com> wrote:
>
>> Hello Haskellers,
>>
>> I have been working through the Real World Haskell chapter on Profiling
>> and Optimisation
>> <http://book.realworldhaskell.org/read/profiling-and-optimization.html>,
>> and got to the section *Advanced techniques: fusion*, where I
>> encountered some code using Data.Array.Vector from the deprecated
>> library uvector.
>>
>> Does anyone know how to rewrite this to not use deprecated libraries?
>>
>> I have tried to use Data.Vector.Unboxed from vector, but my version
>> consumes a lot of memory.
>>
>> The code I have is here:
>>
>> https://github.com/haskell-works/hw-tutorial-performance/
>> blob/master/hw-tutorial-performance-rwhe/Main.hs
>>
>> With that code, I get “1831 MB total memory in use”, which is terrible
>>
>> Build run steps I used were:
>>
>> stack build --executable-profiling --library-profiling 
>> --ghc-options="-fprof-auto -rtsopts -auto-all -caf-all -fforce-recomp"
>>
>> time 
>> /Users/jky/wrk/haskell-works/hw-tutorial-performance/.stack-work/install/x86_64-osx/lts-7.10/8.0.1/bin/hw-tutorial-performance-rwhe
>>  +RTS -sstderr -p -hy -RTS 1e7
>>
>> I get very large numbers of allocations of Pair and Double.
>>
>> There is also a very large upfront allocation ARR_WORDS, which I feared
>> would happen when using Data.Vector
>>
>> Any help appreciated.
>>
>> Cheers,
>>
>> -John
>> ​
>>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20161127/064cbdb4/attachment.html>

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

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

End of Beginners Digest, Vol 101, Issue 12
******************************************

Reply via email to