Re: building GHC for Slackware/Salix

2012-12-14 Thread Tim Beech
I've now tried a build strictly according to the instructions, which is to say, I installed the binary distribution, then haskell-platform on top of it, before building GHC from source. I get the same errors, plus a few more (I did the quick build rather than the fully optimized default build, so

RE: How to start with GHC development?

2012-12-14 Thread Simon Peyton-Jones
This thread has made it clear that we should do more to help people find a way in to GHC. Here is what I have done: * Started a GHC Reading List pagehttp://hackage.haskell.org/trac/ghc/wiki/ReadingList, giving background reading. It's just a start; there are many gaps. I would love

Re: How to start with GHC development?

2012-12-14 Thread Gershom Bazerman
On 12/14/12 9:44 AM, Simon Peyton-Jones wrote: This thread has made it clear that we should do more to help people find a way in to GHC. Here is what I have done: ·Started a GHC Reading List page http://hackage.haskell.org/trac/ghc/wiki/ReadingList, giving background reading. It's just a

Re: How to start with GHC development?

2012-12-14 Thread Jan Stolarek
Dnia piątek, 14 grudnia 2012, Simon Peyton-Jones napisał: This thread has made it clear that we should do more to help people find a way in to GHC. Thanks for taking intrest in our efforts Simon :) After three days of reading through the wiki I came up with some conclusions. The thing that

Re: How to start with GHC development?

2012-12-14 Thread Ian Lynagh
On Fri, Dec 14, 2012 at 02:44:19PM +, Simon Peyton-Jones wrote: This thread has made it clear that we should do more to help people find a way in to GHC. I think the main problem is that it's a very broad question. The answer to how should I get started would be completely different for if

Re: How do we best make sure {Int,Word,Float,Double} to {Int,Word,Float,Double} conversions stay efficient

2012-12-14 Thread Ian Lynagh
On Fri, Dec 14, 2012 at 12:53:36PM -0800, Johan Tibell wrote: I've been tracking down a few (unrelated) performance bugs related to conversions between primitive types. What these issues had in common is that some rule failed to fire and the conversion went via Integer, killing performance.

Re: How do we best make sure {Int,Word,Float,Double} to {Int,Word,Float,Double} conversions stay efficient

2012-12-14 Thread Carter Schonwald
A related question I have is that I've some code that will map the singleton Nats to Ints, and last time I looked into this/ had a chat on the ghc-users list, it sounded like sometimes having Integer values constructed in between are unavoidable. Is that still the case with post 7.6.1 ghc? (And

Re: How do we best make sure {Int,Word,Float,Double} to {Int,Word,Float,Double} conversions stay efficient

2012-12-14 Thread Ian Lynagh
Hi Carter, On Fri, Dec 14, 2012 at 04:34:29PM -0500, Carter Schonwald wrote: A related question I have is that I've some code that will map the singleton Nats to Ints, and last time I looked into this/ had a chat on the ghc-users list, it sounded like sometimes having Integer values

Re: How do we best make sure {Int,Word,Float,Double} to {Int,Word,Float,Double} conversions stay efficient

2012-12-14 Thread Sean Leather
On Fri, Dec 14, 2012 at 10:47 PM, Ian Lynagh wrote: On Fri, Dec 14, 2012 at 04:34:29PM -0500, Carter Schonwald wrote: A related question I have is that I've some code that will map the singleton Nats to Ints, and last time I looked into this/ had a chat on the ghc-users list, it sounded

Re: How do we best make sure {Int,Word,Float,Double} to {Int,Word,Float,Double} conversions stay efficient

2012-12-14 Thread Carter Schonwald
Yes, thanks Sean for helping clarify! yes, The TypeLits Nat I had a discussion on the list with Iavor and others a few months back http://www.haskell.org/pipermail/glasgow-haskell-users/2012-August/022789.html and there were some examples and dialogue beyond that with Iavor and SPJ, but it was

Need workaround for lack of fromIntegral/Int-Word rules in 7.4.2

2012-12-14 Thread Johan Tibell
I'm trying to work around the lack of some fromIntegral/Int-Word rules in 7.4.2. I tried something like: int2Word :: Int - Word #if defined(__GLASGOW_HASKELL__) int2Word (I# i#) = W# (int2Word# i#) #else int2Word = fromIntegral #endif {-# RULES fromIntegral/Int-Word fromIntegral = int2Word #-}

Re: How do we best make sure {Int,Word,Float,Double} to {Int,Word,Float,Double} conversions stay efficient

2012-12-14 Thread David Terei
I believe the testsuite now has support for inspecting assembly output. Not sure if that would be best for your use case, but something to consider. On 14 December 2012 12:53, Johan Tibell johan.tib...@gmail.com wrote: Hi, I've been tracking down a few (unrelated) performance bugs related to

Re: How to start with GHC development?

2012-12-14 Thread wren ng thornton
On 12/14/12 10:56 AM, Gershom Bazerman wrote: On 12/14/12 9:44 AM, Simon Peyton-Jones wrote: This thread has made it clear that we should do more to help people find a way in to GHC. Here is what I have done: ·Started a GHC Reading List page