Re: [Haskell-cafe] ANNOUNCE: test-framework-golden-1.1
I'm a big fan of TDD and tend to approach all languages by learning how to TDD in them. As such, you mention that this is similar, could you please send some links about this? Cheers! On Thu, Oct 4, 2012 at 11:55 PM, Roman Cheplyaka r...@ro-che.info wrote: I am glad to announce the first public release of test-framework-golden — a golden testing library. Hackage: http://hackage.haskell.org/package/test-framework-golden GitHub: https://github.com/feuerbach/test-framework-golden Golden tests are similar to unit tests (as implemented in HUnit), but the idea is to store the expected result in files (called «golden» files). I was introduced to the idea of golden testing by Bohdan Vlasyuk at ZuriHac in 2010. Since then I've discovered that this is a nice approach and it is already used in variety of projects (e.g. ghc, haddock). Surprisingly, not much is written about golden testing, and I've been unable to find any golden testing libraries for Haskell or any other programming language. Every project has its own ad-hoc implementation in Haskell/Python/Shell/etc. The closest match on the market is Simon Michael's shelltestrunner. But to use it you have to expose the tested functionality via command line, which may be inconvenient. So this is my attempt at a general golden testing library. It consists of two modules. Test.Golden has a simple interface that helps you get started very quickly. Test.Golden.Advanced provides a very generic testing function that you can use to implement the testing system you dream about. The library is integrated with test-framework, so you can use golden tests in addition to SmallCheck/QuickCheck/HUnit tests. In future there's a plan to support some golden test management capabilities. Roman ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Time for a new logo?
I agree on what some people say; I see no point in trying to advertise elitism. Let's avoid the same mistake as the linux community made; soon we'll have an internal flame war about which monad is the best (linux distribution flame-wars analog), arguing who's the most 31337 haxxor and so on. In my opinion, true elegance comes from being really good at something without pushing it in the face of others. Let the log say haskell - it's elegant without trying to be posh. /Gf 2008/12/17 Thomas Davie tom.da...@gmail.com: On 17 Dec 2008, at 09:26, Luke Palmer wrote: On Wed, Dec 17, 2008 at 1:10 AM, Thomas Davie tom.da...@gmail.com wrote: On 16 Dec 2008, at 18:40, Darrin Thompson wrote: \\ \\ \\ \\ \| \\ \\ --- \\ \\ // / \ // / \ \| // / /\\ --- // / / \\ Oh please no, please don't let the logo be something that says Haskell, it's all about monads. But it's a very pretty logo. And the idea of computation abstractions, Applicatives and Monads in particular, are a pretty big part of Haskell as a language and as a culture. Haskell, it's not exactly not about monads. No, I agree, but there's already a large body of literature that implies that Haskell is pretty much only about monads, and I'd hate to see the logo go the same way. Though I do take your point about abstractions being a major part of the language. Bob ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Time for a new logo?
2008/12/17 wman 666w...@gmail.com: 2008/12/17 Tristan Seligmann mithra...@mithrandi.net I really don't think that including a visual pun on the (=) operator translates to Haskell, it's all about monads; you're only likely to recognise the pun after you already know about monads anyway. True, true, and who cares about folks afraid of unknown operators which might do wonderfull stuff ;-))) That's the kind of mentality I am talking about. The we are better than you mentality, should stay with the Java and .NET people. If you have this urge of feeling superior and believe haskell-hacking is some kind of achievement. . Haskell is a tool like any other, it's the ideas you manifest by it that are important. And of course the way you do it. The logo should be attractive; fire sparks of curiosity, represent what haskell is, capture the essence of haskell. Ps: This is no flame, I am making a point. If you feel this is a flame; then I must apologize for the harsh tone. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Time for a new logo?
I must agree, the proposal pure . lazy . fun is quite funny and informative at the same time. It will hopefully also supply people with something to laugh about when they have learned enough. :) While being true, it's also subtle. /Gf On Wed, Dec 17, 2008 at 11:48 AM, Ketil Malde ke...@malde.org wrote: Gianfranco Alongi gianfranco.alo...@gmail.com writes: I agree on what some people say; I see no point in trying to advertise elitism. For this reason, my favorite subtitle is pure . lazy . fun. Nice and friendly, with some doulbe meanings for the cognoscenti. (I'm sorry, but I can't bring myself to add simple in there with a straight face.) Is it an option to add a \tau to the \lambda? Especially if we go for the lambda in a circle theme - to differentiate from Half-life, Scheme, and other kids' stuff :-) -k -- If I haven't seen further, it is by standing in the footprints of giants -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Time for a new logo?
Obviously there are a lot of different wills in this discussion, and I propose we take this to the next level by letting people submit all their ideas to the Haskell wiki page, and vote later on. /Gf On Tue, Dec 16, 2008 at 9:52 AM, jagrhask jagrh...@gmail.com wrote: Miguel Mitrofanov пишет: Sorry to disappoint you, but the tree is not the very first thing that comes to mind when you look at this drawing. And, despite that it satisfies As I already said, I'm not good in drawing, so if somthing bad comes to your mind looking at this tree - just draw it so that it would look like real tree. I'm not a designer I've just wanted to illustrate my idea for sombody who could draw it properly. Don's condition to be mature (though adult would be a better word), this kind of pornography is NOT, I believe, what most of us want for a Haskell logo. If somebody want to find pornography, he'll find it even in blank list. BTW. I would like to know what you found in this sketch (please let me know in private message, to not be sued for prnography distribution :) ). On 16 Dec 2008, at 10:52, jagrhask wrote: What do you think about this logo? I'm not a good painter but just to illustrate idea: lazy lambda taking rest laying under tree and some blinks symbolize how is it. I hope somebody could draw it better. Don Stewart пишет: I noticed a new haskell logo idea on a tshirt today, http://image.spreadshirt.net/image-server/image/configuration/13215127/producttypecolor/2/type/png Simple, clean and *pure*. Instead of the we got lots going on of the current logo. Any graphic designers want to try some variations on this theme of purity? A new year, and a new mature logo... -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe lambda1.jpg___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Time for a new logo?
Looks, good, actually among the top of the ones I like, should we not have some kind of voting mechanism for selecting a logo? And also some kind of last date for when entries are accepted.. Of course this requires a call for logos and so forth. 2008/12/15 Jeff Heard jefferson.r.he...@gmail.com: My entry... 2008/12/15 Martin DeMello martindeme...@gmail.com: Something incorporating λ∀ perhaps martin ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Data.List.Split
A very nice initiative I must say; although the page should contain the usual explanation for why such a split method can't be universal. That is, add the same explanation you give every time; but to the page. /Gianfranco On Sat, Dec 13, 2008 at 5:30 PM, Brent Yorgey byor...@seas.upenn.edu wrote: Today yet another newbie in #haskell asked about a 'split' function for lists, and I got fed up with saying 'no one can agree on the right interface so it doesn't exist, just write it yourself', because it's a really dumb answer, even if it's true. Instead of trying to get a 'split' function added to Data.List (which will never ever happen), I thought, why not create a module Data.List.Split which contains implementations of every conceivable way to split a list? Of course, people will probably still argue over what should go in such a module, what to name the various functions, etc., but hopefully we can converge on something useful. I've created a Data.List.Split page on the wiki: http://haskell.org/haskellwiki/Data.List.Split Please add code to it! Once something useful is hashed out we can upload it to hackage. Perhaps eventually some of it can be folded into the standard libraries, but this seems like a much more lightweight way to get started. -Brent ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Data.List.Split
I have actually been thinking about a similar thing, but on the group subject. One can actually group things in many ways, such as groupBy (==) , so that groupBy (==) [1,2,1,2] should give [[1,1],[2,2]]. Of course other ideas are possible. On Sat, Dec 13, 2008 at 5:47 PM, Brent Yorgey byor...@seas.upenn.edu wrote: On Sat, Dec 13, 2008 at 05:39:55PM +0100, Gianfranco Alongi wrote: A very nice initiative I must say; although the page should contain the usual explanation for why such a split method can't be universal. That is, add the same explanation you give every time; but to the page. Good idea; I've added a list of possible ways to split, both to give people ideas for code to write, and to demonstrate why it's impossible to come up with one 'best' split function. vixey has already added some code, but we need more! -Brent ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Quickcheck in industry - own experience.
http://writert.blogspot.com/2008/12/quickchecking-code-i-c.html /Gf ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Real World Haskell, now shipping
As far as I know, wxHaskell was developed mainly for windows? On Sat, Nov 29, 2008 at 10:25 AM, Andrew Coppin [EMAIL PROTECTED] wrote: Jason Dusek wrote: Andrew Coppin [EMAIL PROTECTED] wrote: What I *haven't* done yet is read the chapters where they try to claim that database programming is possible in Haskell. I'll have to do that at some point. Maybe this is where they reveal the Secret Formula that makes this stuff actually work properly... but somehow I doubt it. Well, it's certainly possible to interact with a SQL database. You have had some kind of trouble, or you have a higher notion of database programming? Yeah: None of the packages on Hackage will compile successfully. :-P It seems to be an unwritten law that any package involving non-Haskell components doesn't work on Windoze. (Hack, wxHaskell even comes with a special pre-build Windows binary... and it *still* doesn't work!) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Health effects
Are we assuming the bars to have an even distribution of mass along the whole body? On Wed, Oct 1, 2008 at 2:10 PM, Achim Schneider [EMAIL PROTECTED] wrote: Jon Fairbairn [EMAIL PROTECTED] wrote: Adrian Neumann [EMAIL PROTECTED] writes: I often wonder how many cuts you need to divide a steak in n pieces. You can obviously get n pieces with (sqrt n) cuts by cutting a grid. But I'm sure some smart mathematician thought of a (log n) way. Are you allowed to move the pieces between cuts? Later you're also going to demand to bend it in N dimensions, aren't you? -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or quoting of this signature prohibited. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Health effects
Throw the no free lunch-theorem on top of that. http://en.wikipedia.org/wiki/No_free_lunch_theorem On Wed, Oct 1, 2008 at 3:33 PM, Dominic Steinitz [EMAIL PROTECTED] wrote: Adrian Neumann aneumann at inf.fu-berlin.de writes: I often wonder how many cuts you need to divide a steak in n pieces. You can obviously get n pieces with (sqrt n) cuts by cutting a grid. But I'm sure some smart mathematician thought of a (log n) way. You might try the ham sandwich theorem http://en.wikipedia.org/wiki/Ham_sandwich_theorem as an hors d'oeuvre. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Health effects
Maybe I haven't done enough haskell, but enough lisp to NOT eat _2_ Kg of chocolate. Did you really think you would get those 2 Kg's down? /Gf On Mon, Sep 29, 2008 at 9:43 PM, Andrew Coppin [EMAIL PROTECTED] wrote: The other day, I sat down to eat a 2 Kg block of chocolate - one of those ones that's divided into lots of little squares. I proceeded to recursively subdivide it into smaller and smaller blocks, and then eat the individual squares in depth-first order. It was only after getting through 16 of the things that I stopped to notice that the whole bar just happens to have an exact power of two squares on it. And it was some time after *that* when I thought to myself ...woah, maybe do too much Haskell? o_O Seriously, who recursively subdivides their food? I think I have something wrong with me... ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Health effects
Oh, yeah, I thought you really meant that you would force that baby down. :) Nice to hear that you wouldn't. Not even lazy evaluation would save you there 7-8 hours later. ;) /Gf On Mon, Sep 29, 2008 at 10:00 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Gianfranco Alongi wrote: Maybe I haven't done enough haskell, but enough lisp to NOT eat _2_ Kg of chocolate. Did you really think you would get those 2 Kg's down? Oh, no. The entire bar is 2 Kg, I wasn't actually planning to eat the whole thing! o_O My god, my pancreas would explode or something... ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Is www.haskell.org down?
This is ... disturbing. On Thu, Aug 14, 2008 at 7:57 PM, Don Stewart [EMAIL PROTECTED] wrote: By the way, for those wondering why Jon Harrop would say such an unusual thing on the Haskell list, have a look at his contributions over on the OCaml list, http://article.gmane.org/gmane.comp.lang.caml.general/43430 Some choice quotes: almost all of the examples of Haskell's use in industry are fakes nobody has ever done anything significant using Haskell Jon's the primary source of FUD against Haskell and its community, as he goes around promoting his site in other functional programming communities. This kind of behaviour's been going on for a few years now, sadly. It's all rather disappointing. -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Patience is the last resort for those unable to take action ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe