Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Ketil Malde
Duncan Coutts writes: >> The "build operation" part often ends up a bit gross, but I have a plan >> for that which I hope to come back to later on. > > Yes, they're not good for construction atm. The Builder monoid from the I've used that a bit, but that's not what I'm talking about. Serializing

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Erik de Castro Lopo
Stefan Holdermans wrote: > Erik, > > >> http://people.cs.uu.nl/stefan/pubs/hage08heap.html > > > Getting connection refused on that. > > Don't know: it still works for me. Working for me as well now. Cheers, Erik -- -- Eri

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Evan Laforge
> And this is confusing to those of us who are not compiler experts. > > Haskell knows when I have a list of Doubles, you know, because it's strongly > typed. > > Then it proceeds to box them. Huh ? > > The laziness thing has many example od _reducing_ efficiency, but there > seems to be a real lac

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Stefan Holdermans
Erik, http://people.cs.uu.nl/stefan/pubs/hage08heap.html Getting connection refused on that. Don't know: it still works for me. Cheers, Stefan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/has

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Jason Dagit
On Thu, Nov 5, 2009 at 6:15 PM, brian wrote: > > On Nov 5, 2009, at 8:26 AM, Jason Dagit wrote: > > >> >> Haskell knows when I have a list of Doubles, you know, because it's >> strongly typed. >> >> Then it proceeds to box them. Huh ? >> >> Imagine a computation which will yield a Double if evalu

Re: [Haskell-cafe] ANNOUNCE: feldspar-language

2009-11-05 Thread Emil Axelsson
Henning Thielemann skrev: On Wed, 4 Nov 2009, Emil Axelsson wrote: I'm happy to announce the first release of Feldspar, which is an embedded domain-specific language with associated code generator mainly targeting DSP algorithms. The language is developed in cooperation by Ericsson, Chalmers

Re: [Haskell-cafe] Memory Leak - Artificial Neural Network

2009-11-05 Thread wren ng thornton
Hector Guilarte wrote: Hi Luke, The code is mainly in Spanish with son parts in English... Thanks for the explanation, I got the idea very well, but now I got some questions about that. How does the Prelude functions for managing lists work? I mean, what does zip, unzip, foldl, foldr, map an

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread brian
On Nov 5, 2009, at 8:26 AM, Jason Dagit wrote: Haskell knows when I have a list of Doubles, you know, because it's strongly typed. Then it proceeds to box them. Huh ? Imagine a computation which will yield a Double if evaluated, but has not yet been evaluated. How do you store that i

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread brian
On Nov 5, 2009, at 8:26 AM, Jason Dagit wrote: I can't really think of how laziness and polymorphism are related. For me the big win with laziness is composability. Laziness allows us to express things in ways that are more natural. The prelude function 'take' is a perfect example. I

[Haskell-cafe] Re: Simple FAST lazy functional primes

2009-11-05 Thread Will Ness
Steve yahoo.com.au> writes: > > On Tue, 2009-11-03 at 10:52 -0500, Will wrote: > > I've just tried it and it was twice slower than mine. (?) I didn't use > > the [Int] > > signature in both. [...] It runs twice as fast with it). > > Although your > > code has an advantage that it is very easy to

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread wren ng thornton
Roman Leshchinskiy wrote: wren ng thornton wrote: Roman Leshchinskiy wrote: On 04/11/2009, at 13:23, Daniel Peebles wrote: In the presence of fusion (as is the case in uvector), it's hard to give meaningful time complexities for operations as they depend on what operations they are paired with

Re: [Haskell-cafe] Fair diagonals

2009-11-05 Thread Henning Thielemann
On Wed, 4 Nov 2009, Sjoerd Visscher wrote: On Nov 4, 2009, at 3:21 PM, Twan van Laarhoven wrote: I looked on hackage but I was surprised that I couldn't find this simple monad. The package level-monad does look very similar, only it uses a different list type for the represe

Re: [Haskell-cafe] ANNOUNCE: feldspar-language

2009-11-05 Thread Henning Thielemann
On Wed, 4 Nov 2009, Emil Axelsson wrote: I'm happy to announce the first release of Feldspar, which is an embedded domain-specific language with associated code generator mainly targeting DSP algorithms. The language is developed in cooperation by Ericsson, Chalmers University and Eötvös Lorá

Re: [Haskell-cafe] ANNOUNCE: feldspar-language

2009-11-05 Thread Henning Thielemann
On Tue, 3 Nov 2009, Warren Henning wrote: I see that section 4.1 of the user guide - http://feldspar.sourceforge.net/documents/language/FeldsparLanguage.html#htoc23 - includes an example involving autocorrelation. Does this mean I could use Feldspare to easily build my own Autotune program? I

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Deniz Dogan
2009/11/6 Deniz Dogan : > 2009/11/6 Erik de Castro Lopo : >> Stefan Holdermans wrote: >> >>>    http://people.cs.uu.nl/stefan/pubs/hage08heap.html >> >> Getting connection refused on that. >> > > Try this one, from Google's cache: > http://preview.tinyurl.com/ydjuw2j > > -- > Deniz Dogan > Oops, t

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Deniz Dogan
2009/11/6 Erik de Castro Lopo : > Stefan Holdermans wrote: > >>    http://people.cs.uu.nl/stefan/pubs/hage08heap.html > > Getting connection refused on that. > Try this one, from Google's cache: http://preview.tinyurl.com/ydjuw2j -- Deniz Dogan ___ Has

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Erik de Castro Lopo
Stefan Holdermans wrote: >http://people.cs.uu.nl/stefan/pubs/hage08heap.html Getting connection refused on that. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/ ___ Haske

Re: [Haskell-cafe] Code generated by pointfree does not compile

2009-11-05 Thread Luke Palmer
On Thu, Nov 5, 2009 at 4:46 AM, Boris Lykah wrote: > > Hi all! > > I was playing with pointfree tool from hackage and found that it produces > wrong code for some functions which use list comprehension. > > Here are several examples: > > :main f x = concat [x:f x| x<-[0..x-1]] > f = fix ((join .)

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Erik de Castro Lopo
Andrew Coppin wrote: > Depends what you develop. I know of plenty of developers who use MS > Visual Studio for everything, for example. And those developers do not care whether Haskell libraries compile on windows or not. > You can pretend that Windows isn't popular and thus there's no need to

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Alberto G. Corona
A comparison of the evolution in speed of Haskell from version to version rather than with other languages could have been very informative about the progress in haskell speed. I think that the progression has been astonishing. I though that while seeing this language shootout in windows http://d

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Roel van Dijk
On Thu, Nov 5, 2009 at 11:11 PM, Andrew Coppin wrote: > Matus Tejiscak wrote: >> >> zygohistomorphic prepromorphisms > > Please tell me this isn't a real technical term. o_O > You can even generalize them: g_prepro_zygo :: (Functor f, Comonad w) => GAlgebra f w b -> Dist f w -> GAlgebra f (ZygoT

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Erik de Castro Lopo
Deniz Dogan wrote: > 2009/11/5 Erik de Castro Lopo : > > > In addition, saying "90% of all desktop computers" is misleading; > > instead we should be talking about the computers of software developers > > and there, the figure is almost certainly well below 90%. > > > > Why? After all, software i

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Anton van Straaten
Deniz Dogan wrote: 2009/11/5 Andrew Coppin : Matus Tejiscak wrote: zygohistomorphic prepromorphisms Please tell me this isn't a real technical term. o_O http://www.haskell.org/haskellwiki/Zygohistomorphic_prepromorphisms Still can't tell if it's a joke or not... You might also be interest

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Patrick Brannan
And we wonder why Haskell isn't mainstream... On Thu, Nov 5, 2009 at 4:31 PM, Deniz Dogan wrote: > 2009/11/5 Andrew Coppin : >> Matus Tejiscak wrote: >>> >>> zygohistomorphic prepromorphisms >> >> Please tell me this isn't a real technical term. o_O > > http://www.haskell.org/haskellwiki/Zygohist

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Stefan Holdermans
Andrew, As for concrete suggestions... I've always thought we could do more to use static information about the program to aid runtime GC. It's no deep secret that destructive updates are essentially like a compile-time / coding-time GC operation. You determine before runtime that the old

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Deniz Dogan
2009/11/5 Andrew Coppin : > Matus Tejiscak wrote: >> >> zygohistomorphic prepromorphisms > > Please tell me this isn't a real technical term. o_O http://www.haskell.org/haskellwiki/Zygohistomorphic_prepromorphisms Still can't tell if it's a joke or not... -- Deniz Dogan

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Daniel Fischer
Am Donnerstag 05 November 2009 23:02:30 schrieb Erik de Castro Lopo: > Andrew Coppin wrote: > > I'm dissapointed that Haskell doesn't have *more* of a Windows bias. It > > _is_ the platform used by 90% of the desktop computers, after all. (As > > unfortunate as that undeniably is...) > > That is no

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Deniz Dogan
2009/11/5 Erik de Castro Lopo : > Andrew Coppin wrote: > >> I'm dissapointed that Haskell doesn't have *more* of a Windows bias. It >> _is_ the platform used by 90% of the desktop computers, after all. (As >> unfortunate as that undeniably is...) > > That is not true in my home and its not true whe

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Andrew Coppin
Erik de Castro Lopo wrote: Andrew Coppin wrote: I'm dissapointed that Haskell doesn't have *more* of a Windows bias. It _is_ the platform used by 90% of the desktop computers, after all. (As unfortunate as that undeniably is...) That is not true in my home and its not true where I wo

[Haskell-cafe] Re: [Haskell] ANNOUNCE: control-monad-exception 0.5 with monadic call traces

2009-11-05 Thread Henning Thielemann
On Tue, 3 Nov 2009, Jose Iborra wrote: On 03/11/2009, at 14:24, Henning Thielemann wrote: Sure, this is a nice functionality. But isn't it about debugging, not exception handling? Internal Server Error means to me, the server has a bug, thus we want to know, how to reproduce it, thus the stac

Re: [Haskell-cafe] Master's thesis topic sought

2009-11-05 Thread Andrew Coppin
Matus Tejiscak wrote: zygohistomorphic prepromorphisms Please tell me this isn't a real technical term. o_O As for concrete suggestions... I've always thought we could do more to use static information about the program to aid runtime GC. It's no deep secret that destructive updates are esse

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Erik de Castro Lopo
Andrew Coppin wrote: > I'm dissapointed that Haskell doesn't have *more* of a Windows bias. It > _is_ the platform used by 90% of the desktop computers, after all. (As > unfortunate as that undeniably is...) That is not true in my home and its not true where I work. In addition, saying "90% of

Re: [Haskell-cafe] Are all arrows functors?

2009-11-05 Thread David Menendez
On Thu, Nov 5, 2009 at 4:34 PM, Andrew Coppin wrote: > Nicolas Pouillard wrote: >> >> Excerpts from Neil Brown's message of Tue Nov 03 13:45:42 +0100 2009: >> >>> >>> Hi, >>> >>> I was thinking about some of my code today, and I realised that where I >>> have an arrow in my code, A b c, the type (

Re: [Haskell-cafe] Storable Vector as a Storable record?

2009-11-05 Thread Henning Thielemann
Hi, Is it possible to somehow make a StorableVector of a StorableVector via store-record or something? If yes, could some one please provide me with some hint?  storable-record just assists with generating Storable instances. It helps using correct aligment and correct order of entries. It d

Re: [Haskell-cafe] Re: proposal: point free case expressions

2009-11-05 Thread Eugene Kirpichov
2009/11/5 Edward Kmett : > On Thu, Nov 5, 2009 at 10:59 AM, Stefan Monnier > wrote: >> >> > We could really use a case statement in which we skip the scrutinee and >> > make >> > (case of {})' be syntactic sugar for `(\x -> case x of {})'. >> >> > So we could write: >> >> >> myFunc = anotherFunc $

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-05 Thread Andrew Coppin
Martin DeMello wrote: On Wed, Nov 4, 2009 at 10:34 AM, Richard O'Keefe wrote: (4) It comes with its own IDE. I don't think it can do anything much that Haskell tools can't do, but if you don't like looking for things, it's a help. And a well-integrated GUI toolkit. If it weren'

Re: [Haskell-cafe] Are all arrows functors?

2009-11-05 Thread Andrew Coppin
Nicolas Pouillard wrote: Excerpts from Neil Brown's message of Tue Nov 03 13:45:42 +0100 2009: Hi, I was thinking about some of my code today, and I realised that where I have an arrow in my code, A b c, the type (A b) is also a functor. The definition is (see http://www.haskell.org/ghc/

[Haskell-cafe] Re: Fair diagonals

2009-11-05 Thread Louis Wasserman
I figured out an inductive approach as follows, which lets you derive stripeN from stripe(N-1). This could be TemplateHaskell'd if you have a bound on N; I'm still trying to figure out a type-magical alternative. Suppose stripe(N-1) :: x -> [b] -> [c] Then stripeN :: (a -> [b]) -> x -> [a] -> [

Re: [Haskell-cafe] proposal: point free case expressions

2009-11-05 Thread Donn Cave
> +1 If we're counting increments, should add in previous instances of the same proposal - Andrew Pimlott Sep 2005 on haskell-cafe, at least. I agree with Stefan Monnier, might as well allow pattern alternatives in lambda expressions - essentially the same idea and allows multiple case parameters

Re: [Haskell-cafe] proposal: point free case expressions

2009-11-05 Thread Nicolas Pouillard
Excerpts from Martijn van Steenbergen's message of Thu Nov 05 16:54:36 +0100 2009: > Sebastiaan Visser wrote: > > > myFunc = anotherFunc $ case of > > > Left err -> print err > > > Right msg -> putStrLn msg > > > > A minor syntactical addition,

Re: [Haskell-cafe] proposal: point free case expressions

2009-11-05 Thread Reiner Pope
2009/11/5 Sebastiaan Visser : > Hello all, > > Wouldn't it be nice if we could write point free case statements? > > I regularly find myself writing down something like this: > >> myFunc = anotherFunc $ \x -> case x of >>                                Left err -> print err >>                      

Re: [Haskell-cafe] Re: proposal: point free case expressions

2009-11-05 Thread Joe Fredette
Don't these things generally get added as LANGUAGE pragmas though? If it's off by default then peoples code should be okay. Also, I'd prefer something like `cases` as the keyword, rather than `case of`, mostly for aesthetics, but also so that, upon visual inspection, I wouldn't wonder where