[Haskell-cafe] Continuation Workshop 2011: Call for participation

2011-08-09 Thread oleg
ACM SIGPLAN Continuation Workshop 2011 http://logic.cs.tsukuba.ac.jp/cw2011/ co-located with ICFP 2011, Tokyo, Japan Saturday, September 24, 2011 Call for Participation Early Registration deadline is August 15! Continuations have been discovere

Re: [Haskell-cafe] Error in the asynchronous exception operational semantics

2011-08-09 Thread David Barbour
All you need to know about asynchronous exceptions is: *don't use them!* They're too difficult to reason about, in terms of failure modes and such. Use TVars or MVars instead. On Tue, Aug 9, 2011 at 1:40 PM, Edward Z. Yang wrote: > Hello all, > > I was recently reading "Asynchronous Exceptions

Re: [Haskell-cafe] Problems building lambdabot on osx

2011-08-09 Thread Adam Turoff
On Aug 9, 2011, at 7:17 PM, John Lato wrote: >> From: Brandon Allbery >> >> Yes, because now it's finding the system readline, which isn't actually >> readline (Apple ships a "readline" which is actually BSD "editline", so you >> get missing symbols for things editline doesn't support such as com

Re: [Haskell-cafe] Problems building lambdabot on osx

2011-08-09 Thread John Lato
> From: Brandon Allbery > > On Mon, Aug 8, 2011 at 21:38, Adam Turoff wrote: > >> First, there's the issue with linking against libiconv, which is solved >> this >> way: >> >>        cabal install --extra-lib-dirs=/usr/lib >> >> That leaves a whole mess of link errors against libHSreadline: >> >

Re: [Haskell-cafe] Analyzing slow performance of a Haskell program

2011-08-09 Thread Chris Yuen
> > It's cheaper again to use quotInt# and remInt# as I did in my code. > Just want to point out that this is actually surprisingly less of an impact than I thought. As I did the step-by-step break down (you can see my blog post), this one (changing `quotRem` to `quotInt#` and `remInt#`) yielded a

Re: [Haskell-cafe] Haskell syntax highlighting in a public blog

2011-08-09 Thread Oscar Picasso
Thanks for your input. As stated by Ivan I was looking for a solution to use in a public blog like wordpress.com. I chose Chris Yuen solution with a minor revision because I use Posterous. Posterous does not use the embed script but it accepts Gists links. See: http://blog.posterous.com/posterous

[Haskell-cafe] Snap Riak Extension v0.1

2011-08-09 Thread Edward Tate
Hi, I released this library a while ago but didn't tell anyone, thought I would let people know. Would be cool to get feedback, suggestions etc. https://github.com/et4te/snap-extension-riak/ PS: There are no recent commits since I'm going to be overhauling the architecture once Snap 6 comes out

[Haskell-cafe] alex 3.0 broken with Data.ByteString.Lazy - w2c conversion missing (fix attached)

2011-08-09 Thread Eugene Kirpichov
Hi Simon, I found a bug in alex-3.0 and I'm attaching a fixed source file - templates/wrappers.hs (modified against alex-3.0 from cabal unpack). Explanation: I was installing bytestring-lexing 0.2.1 and it failed to install with alex 3.0, which was released on Aug 4. It succeeded, however, with

[Haskell-cafe] Error in the asynchronous exception operational semantics

2011-08-09 Thread Edward Z. Yang
Hello all, I was recently reading "Asynchronous Exceptions as an Effect" by Harrison, Allwein, Gill and Procter, and noticed at the end that they found an error in the operational semantics described in "Asynchronous Exceptions in Haskell" by the Simons and Andrew Moran. Does anyone know what thi

Re: [Haskell-cafe] Problems building lambdabot on osx

2011-08-09 Thread Jack Henahan
I didn't have any trouble building lambdabot when linking to readline built through Homebrew. Currently using Lion, Xcode 4.1, and GHC 7.0.4. On Aug 9, 2011, at 11:59 AM, Brandon Allbery wrote: > On Mon, Aug 8, 2011 at 21:38, Adam Turoff wrote: > First, there's the issue with linking against l

Re: [Haskell-cafe] Analyzing slow performance of a Haskell program

2011-08-09 Thread Bryan O'Sullivan
On Tue, Aug 9, 2011 at 9:47 AM, Chris Yuen wrote: > > - I was using GHC 32-bit. Int is 32-bit there, so I needed Int64. It turns > out 64-bit operations in 32-bit programs are just darn slow. Maybe it's a > Windows problem. No, GHC calls out to C for 64-bit integer ops on all 32-bit platforms.

Re: [Haskell-cafe] Analyzing slow performance of a Haskell program

2011-08-09 Thread Johan Tibell
Hi Chris, On Tue, Aug 9, 2011 at 12:47 PM, Chris Yuen wrote: > 1. Why are bangs needed on the length arrays? > > If I remove them from below, performance drops 10%. I thought `unsafeIndex` > is straight in both arguments, no? > > wordLength i = go i >   where >     go n >   | n < 10 = lengthO

Re: [Haskell-cafe] Haskell syntax highlighting in a public blog

2011-08-09 Thread Chris Yuen
You can probably just post your code as Gists in GitHub. They provide an "embed" button to give you a

Re: [Haskell-cafe] Analyzing slow performance of a Haskell program

2011-08-09 Thread Chris Yuen
Hi all, Thanks Bryan, reading your clean code was good for my Haskell health :) I took your code and did some more research. I think I have found the answer. I have written an extensive analysis in my blog post http://cfc.kizzx2.com/index.php/in-search-of-performance-in-haskell/(comments are very

Re: [Haskell-cafe] Problems building lambdabot on osx

2011-08-09 Thread Brandon Allbery
On Mon, Aug 8, 2011 at 21:38, Adam Turoff wrote: > First, there's the issue with linking against libiconv, which is solved > this > way: > >cabal install --extra-lib-dirs=/usr/lib > > That leaves a whole mess of link errors against libHSreadline: > Yes, because now it's finding the syste

[Haskell-cafe] Second CFP: PADL'12 - Practical Aspects of Declarative Languages 2012

2011-08-09 Thread Claudio Russo
[Apologies if you receive multiple copies.] Call for Papers === 14th International Symposium on Practical Aspects of Declarative Languages (PADL 2012) http://research.microsoft.c

[Haskell-cafe] PhD Position available at Strathclyde

2011-08-09 Thread Conor McBride
[My colleague, Patricia Johann, advertises the following...] PhD Position in Category Theory and Functional Programming Department of Computer and Information Sciences University of Strathclyde, Scotland Applications are invited

[Haskell-cafe] Question Formlets, file upload

2011-08-09 Thread Dr. Heinrich Hördegen
Dear all, I am using the library Text.XHtml.Strict.Formlets to build a validating form. I use the function "file" to get a file upload widget. The encoding is set to multipart. I want to check, if the user entered something or left the widget empty. However, when entering nothing, instead of

Re: [Haskell-cafe] Problems building lambdabot on osx

2011-08-09 Thread bobzhang
Hi, there is a conflict between ghc' libiconv and Ports installed libiconv. make sure first sudo port deactivate -f libiconv then install again, it should work. however, it is very ugly since your other port installed libraries needs libiconv, like gnuplot, so when you need port installed libico

Re: [Haskell-cafe] Haskell syntax highlighting in a public blog

2011-08-09 Thread Bas van Gijzel
Another alternative is to use the HsColour package: http://code.haskell.org/~malcolm/hscolour/ and choose html as output. (This works for me on blogspot.com) On 9 August 2011 05:16, Daniel Patterson wrote: > > On Aug 8, 2011, at 10:26 PM, Ivan Lazar Miljenovic wrote: > > On 9 August 2011 12:04,