Re: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for WebApplications? (ANN: Vocabulink)

2009-05-07 Thread Ketil Malde
wren ng thornton writes: > FWIW, the JVM also fails to release memory resources back to the > OS. Given all the problems I've seen that one cause for long-running > processes, I'm definitely in support of correcting any behavior like > this in the GHC RTS. I'm curious what real problems arise fr

Re: [Haskell-cafe] is value evaluated?

2009-05-07 Thread Jochem Berndsen
Nikhil Patil wrote: > Hi, > > I am curious to know if there is a function in Haskell to find if a certain > value has already been evaluated. The function I need would have the type: > >> (?!) :: a -> Bool I will call this function `evaluated', since it is not a binary operator. The existence of

Re: [Haskell-cafe] is value evaluated?

2009-05-07 Thread Joe Fredette
That strikes me as being bad in a "I'm violating the Halting Problem" sort of way- but I'm not sure how. Is there some contradictory construction that could be built from such a function? Nikhil Patil wrote: Hi, I am curious to know if there is a function in Haskell to find if a certain valu

[Haskell-cafe] is value evaluated?

2009-05-07 Thread Nikhil Patil
Hi, I am curious to know if there is a function in Haskell to find if a certain value has already been evaluated. The function I need would have the type: > (?!) :: a -> Bool And I expect it to be such that the following terminates after printing the first 101 fibonacci numbers. > fibs = 0 : 1

Re: [Haskell-cafe] GC

2009-05-07 Thread John Lask
on the other hand a function to release pool memory to the OS down to the current active level should (I hope) be easily implementable, and quickly incorporated into application where required, whereas arriving at one or more automatic deallocation policies would most likely require some analys

Re: [Haskell-cafe] GC [Is Haskell a Good Choice for Web Applications?]

2009-05-07 Thread John Lask
for what its worth, I second this suggestion. - Original Message - From: "Andrew Coppin" To: Sent: Friday, May 08, 2009 6:01 AM Subject: [Haskell-cafe] GC [Is Haskell a Good Choice for Web Applications?] Simon Marlow wrote: http://hackage.haskell.org/trac/ghc/ticket/698 I presum

Re: [Haskell-cafe] Curry and Reader monad

2009-05-07 Thread Julian Blake Kongslie
On Thu, 2009-05-07 at 16:45 -0700, Daryoush Mehrtash wrote: > In the Is currying monadic? post the author says: > > This is again a nested expression. So I wondered if you could > again "flatten" it with a monadic do block: > let add3 = do > a <- get first

[Haskell-cafe] Curry and Reader monad

2009-05-07 Thread Daryoush Mehrtash
In the Is currying monadic?post the author says: This is again a nested expression. So I wondered if you could again > "flatten" it with a monadic do block: > > let add3 = do > a <- get first parameter > b <- get seco

Re: [Haskell-cafe] How difficult would creating a collaborative multi-user online virtual world application be in Haskell?

2009-05-07 Thread wren ng thornton
Benjamin L.Russell wrote: Unfortunately, Smalltalk is an object-oriented language. If possible, I would like to see something similar in a functional programming language such as Haskell. Does anybody know whether duplicating this project in Haskell would be feasible? In terms of technical fe

Re: [Haskell-cafe] GC

2009-05-07 Thread wren ng thornton
Daniel Fischer wrote: Am Donnerstag 07 Mai 2009 22:01:11 schrieb Andrew Coppin: > Simon Marlow wrote: > > http://hackage.haskell.org/trac/ghc/ticket/698 > I presume that the reason for this is to avoid handing memory back only > to immediately need it again? (I.e., we don't want to be constantly

Re: [Haskell-cafe] Question concerning Haskell Foundation

2009-05-07 Thread Don Stewart
No, it has no effect on the operation of Hackage. Please continue to release things. vigalchin: > sorry should read "With Haskell Platform" > > 1) Can we still publish/push up packages to Hackage? E.g. now I am trying > to get Graham Lyle's Swish (semantic web package) cabalized. > > 2)

[Haskell-cafe] Re: Question concerning Haskell Foundation

2009-05-07 Thread Ahn, Ki Yung
Don Stewart wrote: vigalchin: Hello, With Haskell Foundation, 1) Can we still publish packages on Hackage? 2) Is Hackage going away? ??? -- Don Don, I think he's referring to your recent announcement about the Haskell platform. And, at that thread you also mentioned that

Re: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for WebApplications? (ANN: Vocabulink)

2009-05-07 Thread wren ng thornton
John Lask wrote: Well this is interesting. So what you are saying is that if your haskell application requires a peek memory utilisation of (for example) 1GB, after the memory intesive computation has completed and the GC has run (assuming all references have been dropped) the GHC RTS will reta

Re: [Haskell-cafe] Question concerning Haskell Foundation

2009-05-07 Thread Vasili I. Galchin
sorry should read "With Haskell Platform" 1) Can we still publish/push up packages to Hackage? E.g. now I am trying to get Graham Lyle's Swish (semantic web package) cabalized. 2) Will Hackage go away? Vasili On Thu, May 7, 2009 at 6:07 PM, Don Stewart wrote: > vigalchin: > > Hello,

Re: [Haskell-cafe] Question concerning Haskell Foundation

2009-05-07 Thread Don Stewart
vigalchin: > Hello, > > With Haskell Foundation, > > 1) Can we still publish packages on Hackage? > > 2) Is Hackage going away? ??? -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/h

[Haskell-cafe] Question concerning Haskell Foundation

2009-05-07 Thread Vasili I. Galchin
Hello, With Haskell Foundation, 1) Can we still publish packages on Hackage? 2) Is Hackage going away? Regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Data.Map and strictness (was: Is Haskell aGoodChoice for WebApplications?(ANN: Vocabulink))

2009-05-07 Thread Daniel McAllansmith
On Fri, 08 May 2009 00:30:34 Claus Reinke wrote: > > seq something like size map that will force a traversal of the entire > > tree, and ensure that the result is actually demanded, .. > > (Not tested) > > and not recommended, either, I'm afraid!-) > > |> Actually, I'm unsure how to fix this. For a

Re: [Haskell-cafe] Re: Visualizing Typed Functions

2009-05-07 Thread Claus Reinke
With these functions visualized, one could make a kind of "drag and drop" interface for Haskell programming, although that isn't really my intention. I admit this is a little convoluted even for the purpose of visualization, but at least it's a starting place. Does anyone know of another syst

Re: [Haskell-cafe] Re: Visualizing Typed Functions

2009-05-07 Thread Duane Johnson
Thank you, that was very instructive! Tangible Values look very interesting. -- Duane On May 7, 2009, at 3:11 PM, Ahn, Ki Yung wrote: Duane Johnson wrote: With these functions visualized, one could make a kind of "drag and drop" interface for Haskell programming, although that isn't reall

Re: [Haskell-cafe] Re: ANNOUNCE: The Haskell Platform

2009-05-07 Thread Don Stewart
kyagrd: > Thanks for this great effort! > > Are we going to have a meta-package on hackage as well? > (which makes it able to build it through cabal-install) Yes, this ticket tracks that stuff: http://trac.haskell.org/haskell-platform/ticket/15 ___

Re: [Haskell-cafe] Visualizing Typed Functions

2009-05-07 Thread Sebastian Fischer
I've never really seen a satisfactory visual scheme for clearly representing higher order functions I saw a visual scheme for this purpose at FDPE'08. It uses an alternating colouring scheme, representing arguments as holes: a hole in a black thing is white and a hole in a white thing is bla

[Haskell-cafe] Re: ANNOUNCE: The Haskell Platform

2009-05-07 Thread Ahn, Ki Yung
Thanks for this great effort! Are we going to have a meta-package on hackage as well? (which makes it able to build it through cabal-install) -- Ahn, Ki Yung ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listi

Re: [Haskell-cafe] Visualizing Typed Functions

2009-05-07 Thread Duane Johnson
No, this is a first-time draft that I made by hand using Inkscape. If we get to a point where a consistent set of visualizations makes sense, it would be rewarding to turn into code though. -- Duane On May 7, 2009, at 3:06 PM, John Van Enk wrote: Do you have code to generate these images f

Re: [Haskell-cafe] Visualizing Typed Functions

2009-05-07 Thread Dan Piponi
Duane, Your fourth diagram is hard to distinguish from that for a function that takes three inputs and returns one. And what would be the diagram for a function that maps one binary function to another? I spend a bit of my time at work playing with typed visual dataflow type tools. I've never rea

[Haskell-cafe] Re: Visualizing Typed Functions

2009-05-07 Thread Ahn, Ki Yung
Duane Johnson wrote: With these functions visualized, one could make a kind of "drag and drop" interface for Haskell programming, although that isn't really my intention. I admit this is a little convoluted even for the purpose of visualization, but at least it's a starting place. Does anyo

Re: [Haskell-cafe] beginner question: assigning local variable to a function

2009-05-07 Thread Brandon S. Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 7, 2009, at 14:03 , Magnus Therning wrote: adam vogt wrote: This is most likely attributable to the use of different compilers. I don't see how accepting such a variant can cause ambiguity, but I'm not quite sure whether it is legal H98. Ju

Re: [Haskell-cafe] GC [Is Haskell a Good Choice for Web Applications?]

2009-05-07 Thread Daniel Fischer
Am Donnerstag 07 Mai 2009 22:01:11 schrieb Andrew Coppin: > Simon Marlow wrote: > > http://hackage.haskell.org/trac/ghc/ticket/698 > > I presume that the reason for this is to avoid handing memory back only > to immediately need it again? (I.e., we don't want to be constantly > asking the OS to all

Re: [Haskell-cafe] GLFW - Mac OS X

2009-05-07 Thread Austin Seipp
Excerpts from GüŸnther Schmidt's message of Thu May 07 14:12:04 -0500 2009: > Hi, > > has anybody recently install the GLFW package on Mac OS X? > > It won't install on my machine. > > Günther > I ran into this problem - with GHC 6.10.2 or above if you try to install GLFW with cabal install yo

Re: [Haskell-cafe] Trying to contact authors of "Real WorldHaskell"?

2009-05-07 Thread John Goerzen
Itsme (Sophie) wrote: > It's been quite a response, yes :-) > > I was half expecting to be received like a spam-bot. Ahh, well if your late deceased father had left behind $13 BILLION ($13,000,000,000) USD in Nigeria, or if you were selling che$p blu3 pi11s, then you would have been received that

Re: [Haskell-cafe] Trying to contact authors of "Real WorldHaskell"?

2009-05-07 Thread Itsme (Sophie)
It's been quite a response, yes :-) I was half expecting to be received like a spam-bot. Thanks, all. - Sophie - Original Message - From: "John Goerzen" To: "Itsme (Sophie)" Cc: Sent: Thursday, May 07, 2009 3:00 PM Subject: Re: [Haskell-cafe] Trying to contact authors of "Real Wo

[Haskell-cafe] GC [Is Haskell a Good Choice for Web Applications?]

2009-05-07 Thread Andrew Coppin
Simon Marlow wrote: http://hackage.haskell.org/trac/ghc/ticket/698 I presume that the reason for this is to avoid handing memory back only to immediately need it again? (I.e., we don't want to be constantly asking the OS to allocate and deallocate memory. Allocate it once and then let the RT

Re: [Haskell-cafe] Trying to contact authors of "Real World Haskell"?

2009-05-07 Thread John Goerzen
On Thu, May 07, 2009 at 12:18:47PM -0500, Itsme (Sophie) wrote: > I could not find any contact info for Brian O'Sullivan, Don Stewart, or John > Goerzen on their book site. Any pointers to how I might locate any of them > much appreciated. This post seems to have worked out reasonably well for you

Re: [Haskell-cafe] How difficult would creating a collaborative multi-user online virtual world application be in Haskell?

2009-05-07 Thread Bryan O'Sullivan
On Thu, May 7, 2009 at 3:28 AM, Benjamin L.Russell wrote: > One question that has been coming up at the back of my mind for the > past several weeks has been how difficult would it be to create a > collaborative multi-user online virtual world application in Haskell. > It should be easier than in

Re: [Haskell-cafe] GLFW - Mac OS X

2009-05-07 Thread Duane Johnson
Yes, it seemed to work fine for me (this was about 2 months ago, however). I'm running Leopard (10.5.6). -- Duane On May 7, 2009, at 1:12 PM, GüŸnther Schmidt wrote: Hi, has anybody recently install the GLFW package on Mac OS X? It won't install on my machine. Günther __

[Haskell-cafe] GLFW - Mac OS X

2009-05-07 Thread GüŸnther Schmidt
Hi, has anybody recently install the GLFW package on Mac OS X? It won't install on my machine. Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] beginner question: assigning local variable to a function

2009-05-07 Thread Magnus Therning
adam vogt wrote: This is most likely attributable to the use of different compilers. I don't see how accepting such a variant can cause ambiguity, but I'm not quite sure whether it is legal H98. Just a bit curious then what compiler Brandon was using. I'm using GHC 6.10.2 on AMD64 Linux (Arc

Re: [Haskell-cafe] beginner question: assigning local variable to a function

2009-05-07 Thread adam vogt
This is most likely attributable to the use of different compilers. I don't see how accepting such a variant can cause ambiguity, but I'm not quite sure whether it is legal H98. On 5/6/09, Magnus Therning wrote: > Brandon S. Allbery KF8NH wrote: > > On May 6, 2009, at 12:18 , Nico Rolle wrote: >

[Haskell-cafe] Re: Getting WriterT log lazily

2009-05-07 Thread Ertugrul Soeylemez
Ertugrul Soeylemez wrote: > There are two issues with unsafePerformIO: [...] Of course I meant unsafeInterleaveIO, sorry. There are a lot more than two issues with unsafePerformIO. =) Greets, Ertugrul. -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://blog.ertes.de/ _

Re: [Haskell-cafe] Trying to contact authors of "Real World Haskell"?

2009-05-07 Thread Don Stewart
We're all on haskell-cafe@ :) itsme213: > I could not find any contact info for Brian O'Sullivan, Don Stewart, or John > Goerzen on their book site. Any pointers to how I might locate any of them > much appreciated. > > Thanks! > > Sophie > > ___ > Hask

[Haskell-cafe] Operator precedence and associativity on happy grammars

2009-05-07 Thread j . romildo
Hello. I am learning how to use Happy (a LALR(1) parser generator) and I have a question on a grammar based on an example from the manual. The input file to Happy is attached to this message. The grammar is: Exp -> let var = Exp in Exp Exp -> Exp + Exp Exp -> Exp - Exp Exp -> Exp * E

Re: [Haskell-cafe] Trying to contact authors of "Real World Haskell"?

2009-05-07 Thread Bulat Ziganshin
Hello Itsme, Thursday, May 7, 2009, 9:18:47 PM, you wrote: > I could not find any contact info for Brian O'Sullivan, Don Stewart, or John > Goerzen on their book site. Any pointers to how I might locate any of them > much appreciated. they are highly secret Haskell agents sent from 21xx. we are

Re: [Haskell-cafe] Trying to contact authors of "Real World Haskell"?

2009-05-07 Thread Daniel Fischer
Am Donnerstag 07 Mai 2009 19:28:20 schrieb Neil Brown: > Although I heard that if you chant "I don't think this can be done in > Haskell" three times in front of a text editor, Don Stewart appears and > implements it in one line... Not if it's type trickery, then it's going to be oleg :) > > Tha

Re: [Haskell-cafe] Trying to contact authors of "Real World Haskell"?

2009-05-07 Thread Colin Adams
I don't think that CAN be done in Haskell (but just in case, I'm only saying it once). 2009/5/7 Neil Brown : > Although I heard that if you chant "I don't think this can be done in > Haskell" three times in front of a text editor, Don Stewart appears and > implements it in one line... ___

Re: [Haskell-cafe] Trying to contact authors of "Real World Haskell"?

2009-05-07 Thread Neil Brown
Itsme (Sophie) wrote: I could not find any contact info for Brian O'Sullivan, Don Stewart, or John Goerzen on their book site. Any pointers to how I might locate any of them much appreciated. Two of the three have posted to this list in the last 24 hours, so you can take their email addresses

[Haskell-cafe] Trying to contact authors of "Real World Haskell"?

2009-05-07 Thread Itsme (Sophie)
I could not find any contact info for Brian O'Sullivan, Don Stewart, or John Goerzen on their book site. Any pointers to how I might locate any of them much appreciated. Thanks! Sophie ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://ww

Re: Re[2]: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Jason Dagit
On Thu, May 7, 2009 at 9:55 AM, Bulat Ziganshin wrote: > Hello Simon, > > Thursday, May 7, 2009, 6:58:02 PM, you wrote: > >>> and completely separate topic - +RTS -s report description also >>> doesn't exist > >> Scroll down in that section I linked to before: > >> http://www.haskell.org/ghc/docs/

Re[2]: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Bulat Ziganshin
Hello Simon, Thursday, May 7, 2009, 6:58:02 PM, you wrote: >> and completely separate topic - +RTS -s report description also >> doesn't exist > Scroll down in that section I linked to before: > http://www.haskell.org/ghc/docs/latest/html/users_guide/runtime-control.html#rts-options-gc you are

[Haskell-cafe] Re: Getting WriterT log lazily

2009-05-07 Thread Ertugrul Soeylemez
Stephen Hicks wrote: > Magnus Therning wrote: > > Martijn van Steenbergen wrote: > >> > >> Otherwise, you can use unsafeInterleaveIO: no unsafePerformIO or seq > >> needed, but there's still "unsafe" in that name there. This works for me: > ... > > Thanks, that does indeed work, but it still requ

Re: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Simon Marlow
On 07/05/2009 15:17, Bulat Ziganshin wrote: Hello Simon, Thursday, May 7, 2009, 5:45:53 PM, you wrote: out of date and say 256k, I've just fixed that). The old generation is allowed to grow to 2x its previous size by default before being collected. you are right. i just checked old logs - s

Re[2]: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Bulat Ziganshin
Hello Simon, Thursday, May 7, 2009, 5:45:53 PM, you wrote: > out of date and say 256k, I've just fixed that). The old generation is > allowed to grow to 2x its previous size by default before being > collected. you are right. i just checked old logs - seems that previously i just misinterprete

Re: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Simon Marlow
On 07/05/2009 11:51, Bulat Ziganshin wrote: Hello Simon, Thursday, May 7, 2009, 2:04:05 PM, you wrote: I've heard it's hard to contain a long-running Haskell application in a finite amount of memory not exactly. you may alloc fixed pool of memory to application (say, 1gb) if you know that it

Re: Re[Haskell-cafe] commending "Design concepts in programming languages"

2009-05-07 Thread Daniel Fischer
Am Donnerstag 07 Mai 2009 10:23:41 schrieb j.waldmann: > * in the Appendix on notation,  he defines composition of functions > the "wrong way around" (i.e., the Haskell way, (f.g)(x) = f(g(x)). > This is of course very awkward, especially considering that functions are > relations, > and an element

Re: [Haskell-cafe] Data.Map and strictness (was: Is Haskell aGoodChoice for WebApplications?(ANN: Vocabulink))

2009-05-07 Thread Claus Reinke
seq something like size map that will force a traversal of the entire tree, and ensure that the result is actually demanded, .. (Not tested) and not recommended, either, I'm afraid!-) |> Actually, I'm unsure how to fix this. For an expression like this: |> |>Data.Map.delete key map |> |>

Re: [Haskell-cafe] traversing a tree using monad.cont

2009-05-07 Thread Sebastian Fischer
On Sun, May 3, 2009 at 2:40 PM, Ryan Ingram wrote: There's a great exposition of using something much like Cont to get success and failure "for free" here: http://www-ps.informatik.uni-kiel.de/~sebf/haskell/barefaced-pilferage-of-monadic-bind.lhs.html On May 4, 2009, at 10:32 PM, Anatoly Yako

Re: [Haskell-cafe] How difficult would creating a collaborative multi-user online virtual world application be in Haskell?

2009-05-07 Thread Andrew Wagner
This reminds me of a server app I saw recently in a language called Clojure. Clojure is a relatively new lisp variant targeting the JVM, and has a home-grown STM layer built into the language. Anyway, the app I saw was a (admittedly didactic-focused) multi-threaded MUD server (google "cloju

Re[2]: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Bulat Ziganshin
Hello Simon, Thursday, May 7, 2009, 2:04:05 PM, you wrote: >>> I've heard it's hard to contain a long-running Haskell application in >>> a finite amount of memory >> >> not exactly. you may alloc fixed pool of memory to application (say, 1gb) >> if you know that it never need more memory. but as

Re: [Haskell-cafe] IO help

2009-05-07 Thread Adrian Neumann
Have a look at the wikibook: http://en.wikibooks.org/wiki/Haskell/Simple_input_and_output Am 07.05.2009 um 11:46 schrieb applebiz89: I havent done much IO at all in haskell, only within the function itself. However I want to get the input from the interface for the function and havent d

[Haskell-cafe] How difficult would creating a collaborative multi-user online virtual world application be in Haskell?

2009-05-07 Thread Benjamin L . Russell
One question that has been coming up at the back of my mind for the past several weeks has been how difficult would it be to create a collaborative multi-user online virtual world application in Haskell. More specifically, last August, I came across a very interesting application called Croquet (s

Re: [Haskell-cafe] IO help

2009-05-07 Thread Bulat Ziganshin
Hello applebiz89, Thursday, May 7, 2009, 1:46:34 PM, you wrote: > main :: IO() you may find http://haskell.org/haskellwiki/IO_inside interesting -- Best regards, Bulatmailto:bulat.zigans...@gmail.com ___ Haskell-Cafe ma

RE: [Haskell-cafe] Data.Map and strictness (was: Is Haskell a GoodChoice for WebApplications?(ANN: Vocabulink))

2009-05-07 Thread Sittampalam, Ganesh
seq something like size map that will force a traversal of the entire tree, and ensure that the result is actually demanded, e.g. when writing to a TVar: do ... let map' = Data.Map.delete key map size map' `seq` writeTVar tvar map' ... (Not tested) Note that this also won't force any of

Re: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Simon Marlow
On 06/05/2009 21:18, Bulat Ziganshin wrote: Hello FFT, Wednesday, May 6, 2009, 11:59:53 PM, you wrote: I've heard it's hard to contain a long-running Haskell application in a finite amount of memory not exactly. you may alloc fixed pool of memory to application (say, 1gb) if you know that it

Re: [Haskell-cafe] IO help

2009-05-07 Thread Miguel Mitrofanov
I have a suggestion. Why don't you grab some introductory book on Haskell and learn Haskell syntax a little? applebiz89 wrote on 07.05.2009 13:46: I havent done much IO at all in haskell, only within the function itself. However I want to get the input from the interface for the function and h

[Haskell-cafe] IO help

2009-05-07 Thread applebiz89
I havent done much IO at all in haskell, only within the function itself. However I want to get the input from the interface for the function and havent done this before. In my main function, I want to ask the user what they would like to do 'become fan' for example, then with their choice initia

Re: [Haskell-cafe] Interesting Thread on OO Usefulness (scala mailing list)

2009-05-07 Thread Wolfgang Jeltsch
Am Dienstag, 5. Mai 2009 18:39 schrieb Bulat Ziganshin: > Hello Wolfgang, > > Tuesday, May 5, 2009, 8:27:17 PM, you wrote: > >> i know two problems in Haskell/GHC that require OO-loke features - > >> extensible exceptions and GUI widget types hierarchy > > > > Note that you don’t need different typ

[Haskell-cafe] Data.Map and strictness (was: Is Haskell a Good Choice for WebApplications?(ANN: Vocabulink))

2009-05-07 Thread Tim Docker
Actually, I'm unsure how to fix this. For an expression like this: Data.Map.delete key map how can I use seq (or something else) to sufficiently evaluate the above to ensure that the value associated with key can be garbage collected? My knowledge of Data.Map is limited to it's haddock docum

Re: [Haskell-cafe] calling a variable length parameter lambda expression

2009-05-07 Thread Victor Nazarov
On Wed, May 6, 2009 at 7:44 PM, Daniel Peebles wrote: > Keep in mind that using lists for your parameters means you lose > static guarantees that you've passed the correct number of arguments > to a function (so you could crash at runtime if you pass too few or > too many parameters to a function

Re: Re[Haskell-cafe] commending "Design concepts in programming languages"

2009-05-07 Thread Miguel Mitrofanov
* in the Appendix on notation, he defines composition of functions the "wrong way around" (i.e., the Haskell way, (f.g)(x) = f(g(x)). Just to make sure I understand correctly: are you claiming that Haskell definition of composition is wrong? ___ Has

[Haskell-cafe] Re: Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Heinrich Apfelmus
Jason Dagit wrote: > Looking over Real-World > haskell I see that some of these topics are discussed, which is really > good. In particular, Chapter 25 would be valuable to anyone trying to > find space leaks. There you discuss reduction to normal form, for > example, and some strictness issues a

Re: Re[Haskell-cafe] commending "Design concepts in programming languages"

2009-05-07 Thread j.waldmann
jkff wrote: > > To all those people who are in any sense interested in PL theory I'd > like to recommend the book "Design concepts in programming languages" > [...] > I ordered the book because of your description, and I agree completely. Besides the core points you already mentioned, it's a

[Haskell-cafe] Re: Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Heinrich Apfelmus
Bryan O'Sullivan wrote: > Jason Dagit wrote: > >> While I'm thinking out loud, it would be very cool if someone wrote >> some articles, say for the monad reader, that follow the formula of >> the Effective C++ books. > > > The last couple of times I've wanted a book like that, I wrote the book >

RE: [Haskell-cafe] Is Haskell a Good Choice for Web Applications?(ANN: Vocabulink)

2009-05-07 Thread Tim Docker
I think that multi-threading in combination with laziness makes space usage harder to manage. In fact, just today I have discovered a problem with a long running server process with a subtle space leak. With a regular process that communicates with the outside world via IO, I know that the act of

RE: [Haskell-cafe] Is Haskell a Good Choice for Web Applications?(ANN: Vocabulink)

2009-05-07 Thread Tim Docker
I think that multi-threading in combination with laziness makes space usage harder to manage. In fact, just today I have discovered a problem with a long running server process with a subtle space leak. With a regular process that communicates with the outside world via IO, I know that the act of

Re: [Haskell] Re[2]: [Haskell-cafe] Is Haskell a Good Choice for WebApplications? (ANN: Vocabulink)

2009-05-07 Thread John Lask
Well this is interesting. So what you are saying is that if your haskell application requires a peek memory utilisation of (for example) 1GB, after the memory intesive computation has completed and the GC has run (assuming all references have been dropped) the GHC RTS will retain the 1GB allocat

Re: [Haskell-cafe] Is Haskell a Good Choice for Web Applications? (ANN: Vocabulink)

2009-05-07 Thread Ketil Malde
Anton van Straaten writes: >> Exactly. I'm worried about, e.g. needing to use something as simple as >> a stream of [...] > Haskell lets you easily create "infinite" lists, which is a powerful > and useful feature. This has bit me on several occasions, and I think streaming over an infinite lis