RE: Cabal and simultaneous installations of the same package

2015-04-20 Thread Simon Peyton Jones
Friends We started this thread (below) a month ago, but it has once more run out of steam. The last contribution was from Vishal Agrawal I am already planning to do a GSoC project based on it with a slightly larger aim. You can find my work in progress proposal at

Re: Branchless implementation for literal case – is it worth it?

2015-04-20 Thread Sven Panne
2015-04-19 9:44 GMT+02:00 Joachim Breitner m...@joachim-breitner.de: [...] So my question to the general audience: Is such branchless code really better than the current, branching code? Can someone provide us with an example that shows that it is better? Do I need to produce different

Re: Branchless implementation for literal case – is it worth it?

2015-04-20 Thread Joachim Breitner
Hi, Am Montag, den 20.04.2015, 16:29 +0200 schrieb Sven Panne: 2015-04-19 9:44 GMT+02:00 Joachim Breitner m...@joachim-breitner.de: [...] So my question to the general audience: Is such branchless code really better than the current, branching code? Can someone provide us with an example

Fwd: Re: Branchless implementation for literal case – is it worth it?

2015-04-20 Thread Niculae Ionita
Sorry, I forgot to answer to the list. If the code is already there and some architectures can profit of it, especially in inner loops - why not just make it an optimisation flag? Nicu Am 20.04.2015 um 16:41 schrieb Joachim Breitner: Hi, Am Montag, den 20.04.2015, 16:29 +0200 schrieb Sven

Re: Fwd: Re: Branchless implementation for literal case – is it worth it?

2015-04-20 Thread Joachim Breitner
Hi, Am Montag, den 20.04.2015, 19:45 +0200 schrieb Niculae Ionita: Sorry, I forgot to answer to the list. ah, and sorry for telling you so before looking on the list. If the code is already there and some architectures can profit of it, especially in inner loops - why not just make it an

Re: Backporting srcLoc to the GHC 7.10 branch

2015-04-20 Thread Greg Weber
Thanks a lot! Is there any plan to make error or other partial functions in the base libraries use this feature? On Mon, Apr 20, 2015 at 9:29 AM, Niklas Hambüchen m...@nh2.me wrote: Hello everybody, I'm glad to announce that I performed the suggested backporting as part of my work for FP

Re: Backporting srcLoc to the GHC 7.10 branch

2015-04-20 Thread Niklas Hambüchen
Hello everybody, I'm glad to announce that I performed the suggested backporting as part of my work for FP Complete! With the help of Eric (thanks for your support in #ghc!) we now have this patch for 7.10 and 7.8. As promised, here are the commits: *

Re: Branchless implementation for literal case – is it worth it?

2015-04-20 Thread Gregory Collins
I've gotten substantial speedups (30%) in the past (e.g. in the hashtables package) by replacing search loops with branchless code, but the technique works best in situations where you have a long run of straight-line integer code for the CPU to chew on; for branchless to be a win you need to feed

Re: Branchless implementation for literal case – is it worth it?

2015-04-20 Thread Sven Panne
2015-04-20 16:41 GMT+02:00 Joachim Breitner m...@joachim-breitner.de: The conclusion I draw from your mail, at last for our case, is: Don’t bother (and keep the compiler code simple). Is that a correct reading? Yes, I think that's the right approach. Do simple things like e.g. a distinction

Re: Branchless implementation for literal case – is it worth it?

2015-04-20 Thread Dan Doel
On Mon, Apr 20, 2015 at 10:29 AM, Sven Panne svenpa...@gmail.com wrote: * On more powerful cores with heavy out-of-order execution, it's hard to beat a well-predicted branch. ​With regard to this, I was wondering if we have a way of arranging for good branch prediction in GHC. For