Re: [Haskell-cafe] Will GHC 6.14 with LLVM use LLVM C compiler to compile external C Libraries

2010-09-09 Thread David Terei
On 9 September 2010 22:10, Mathew de Detrich dete...@gmail.com wrote: It should also hopefully make using Haskell packages on windows that use C sources less painful Clang could also make using FFI with C++ much easier (for reasons stated above) Thoughts? I don't think it would make it any

Re: [Haskell-cafe] Will GHC 6.14 with LLVM use LLVM C compiler to compile external C Libraries

2010-09-10 Thread David Terei
2010/9/10 kyra ky...@mail.ru: I wonder if llvm-gcc supports it's own (gcc) extensions. If it supports then there is no need to stuck in clang right now. It doesn't support the one I mentioned before of global register variables. I haven't looked for a while so maybe this has changed but

Re: [Haskell-cafe] benchmarking c/c++ and haskell

2010-09-14 Thread David Terei
On 13 September 2010 20:41, Vo Minh Thu not...@gmail.com wrote: ... the post is from 2008. No LLVM goodness. So I thought GHC 6.12.1 (not the latest and greatest HEAD) would be enough. I compiled the two programs myself out of curiosity and got the following times. Linux, 64bit, Ubuntu 10.10:

Re: [Haskell-cafe] Ultra-newbie Question

2010-09-18 Thread David Terei
Here is a more manual way to do it, hopefully this shows the approach required. You don't need to store anything, just keep removing the head of the list until its of the size you want. n_lastn :: Int - [a] - [a] n_lastn n xs = let len = length xs - n drp = if len 0 then 0 else len

Re: [Haskell-cafe] ANN: ieee version 0.7

2010-09-21 Thread David Terei
I by pure coincidence was fixing a bug in some code in GHC that involved converting a Haskell float into a hex IEEE form, this is how its done in the code, just to add another way :) castDoubleToWord8Array :: STUArray s Int Double - ST s (STUArray s Int Word8) castDoubleToWord8Array =

Re: [Haskell-cafe] Why not Darcs?

2011-04-22 Thread David Terei
Good chance you've already read this but if not here is a good post by Linus about his take on the problems with darcs: http://markmail.org/message/vk3gf7ap5auxcxnb I personally think he is right on the money here. The other problem with Darcs is performance. While it has improved a lot its

[Haskell-cafe] Improvements to Vim Haskell Syntax file - Is anyone the maintainer?

2011-09-08 Thread David Terei
Hi All, I have made some improvements to the syntax highlighting file for Haskell included with Vim. I'd like to push them upstream. The haskell.vim syntax file included with Vim lists this mailing list as the maintainer. I take that to mean no one. Is this right or does someone actually have

Re: [Haskell-cafe] feed release plan

2012-01-10 Thread David Terei
There is also: https://github.com/haskell where a bunch of us are hosting librari On 10 January 2012 12:01, Erik de Castro Lopo mle...@mega-nerd.com wrote: Simon Michael wrote: - the repo will be moved to github, under my account since I don't think there's a haskell community one

Re: [Haskell-cafe] Offer to mirror Hackage

2012-04-19 Thread David Terei
On 19 April 2012 08:12, Ryan Newton rrnew...@gmail.com wrote: Hello all, Right now I'm trying to answer a simple question: Would the current Haskell.org / hackage infrastructure benefit from the donation of a dedicated VM with good bandwidth/uptime? Whoever already knows how to do this

Re: [Haskell-cafe] Offer to mirror Hackage

2012-04-19 Thread David Terei
Oh yes, it's hackage2... not hackage1. On 19 April 2012 11:50, David Terei dave.te...@gmail.com wrote: On 19 April 2012 08:12, Ryan Newton rrnew...@gmail.com wrote: Hello all, Right now I'm trying to answer a simple question: Would the current Haskell.org / hackage infrastructure benefit

[Haskell-cafe] Announce: Hackager - new version of hackage-test

2012-04-23 Thread David Terei
Hi all, I've updated the old hackage-test tool and renamed to hackager. http://hackage.haskell.org/package/hackager Hackager is a tool to automate the compiling of all packages on Hackage. It builds each package on hackage in isolation and records the results. The purpose being to catch

Re: [Haskell-cafe] Safe Haskell at the export symbol granularity?

2012-05-17 Thread David Terei
On 17 May 2012 23:50, Ryan Newton rrnew...@gmail.com wrote: Thanks David. I'm glad to see it was discussed in the wiki.  (Btw, my 2 cents is that I like the comment pragmas more than new keywords.) Sure, the proposed syntax wasn't a serious proposal as it has backwards compatibility issues so

Re: [Haskell-cafe] Safe Haskell at the export symbol granularity?

2012-06-01 Thread David Terei
So this is a good question, sorry for the late reply. It's tricky as the way typeclasses are imported and exported in Haskell is confusing. Basically, instances are hard to control access to as they aren't part of import or export statements. Importing a module that defines an instances gives you

Re: [Haskell-cafe] Safe Haskell at the export symbol granularity?

2012-06-18 Thread David Terei
think it needs a paragraph like the one of yours above but I don't know if it does right now. On Sat, Jun 2, 2012 at 2:28 AM, David Terei dave.te...@gmail.com wrote: So this is a good question, sorry for the late reply. It's tricky as the way typeclasses are imported and exported in Haskell