[Haskell-cafe] An assembly DSL example.

2012-12-19 Thread Tom Hawkins
A few folks have asked me about building EDSLs in Haskell for assembly programming, so I've posted an example of the approach we have had success using at BAE Systems. It's a bit rough, so if anyone's motivated to polish it up, by all means. https://github.com/tomahawkins/asm-dsl-example/ -Tom

Re: [Haskell-cafe] Tail recursive

2012-12-19 Thread J.W. Krol
From: jkr...@live.com To: haskell-cafe@haskell.org Subject: Tail recursive Date: Wed, 19 Dec 2012 17:07:14 +0100 Hello, I need a non tail recursive version of scanl, to produce a large enough list of >100K vectors (vectors defined as a list) I have following code: scanl'::(a -> a -> a) -> a

Re: [Haskell-cafe] category design approach for inconvenient concepts

2012-12-19 Thread Alexander Solla
On Tue, Dec 18, 2012 at 11:53 PM, Christopher Howard < christopher.how...@frigidcode.com> wrote: > I really like the idea that all > parts of my program could be cleanly and systematically composed from > smaller pieces, in some beautiful design patter. Many of the problems in > my practical progr

[Haskell-cafe] Hoogle index completeness

2012-12-19 Thread Radical
Searching Hoogle for symbols like `rstrip` or `lstrip` produces "No results found" for me, even though they exist in the MissingH library. To wit: http://hackage.haskell.org/packages/archive/MissingH/1.2.0.0/doc/html/Data-String-Utils.html Is this behavior intentional, or a regression of some sor

Re: [Haskell-cafe] Hoogle index completeness

2012-12-19 Thread Petr P
Hi Alvaro, by default Hoogle only searches some standard set of packages, which is only a relatively small subset of all Hackage content. From http://www.haskell.org/haskellwiki/Hoogle#Scope_of_Web_Searches : > Using the standard web interface, Hoogle searches: array, arrows, base, bytestring,

Re: [Haskell-cafe] Tail recursive

2012-12-19 Thread Daniel Fischer
On Mittwoch, 19. Dezember 2012, 17:17:19, J.W. Krol wrote: > From: jkr...@live.com > To: haskell-cafe@haskell.org > Subject: Tail recursive > Date: Wed, 19 Dec 2012 17:07:14 +0100 > > Hello, > I need a non tail recursive version of scanl, scanl isn't tail recursive, I believe you meant you need a

Re: [Haskell-cafe] Observer pattern in haskell FRP

2012-12-19 Thread Nathan Hüsken
On 12/18/2012 10:52 PM, Heinrich Apfelmus wrote: Nathan Hüsken wrote: On 12/08/2012 10:32 AM, Heinrich Apfelmus wrote: Fair enough, but I don't see how this can be fitted into a general pattern. If the animation "state" is coupled tightly to the game logic "state", then the question whether the

Re: [Haskell-cafe] Hoogle index completeness

2012-12-19 Thread Radical
Thanks, Petr. I see that the comments are from years ago. Are there any ongoing efforts to expand the default search set? (Or alternatively, to implement the +hackage modifier mentioned.) Is there interest in either of these things happening? Alvaro On Wed, Dec 19, 2012 at 12:06 PM, Petr P

Re: [Haskell-cafe] category design approach for inconvenient concepts

2012-12-19 Thread Mark Flamer
I have also become intrigued and confused by this "category theory" and how it relates to Haskell. It has been stated many times that you don't need to understand category theory to utilize the Haskell language but all the concepts, patterns and every paper describing them seems to be written by so

Re: [Haskell-cafe] Hoogle index completeness

2012-12-19 Thread Alberto G. Corona
Hayoo has them all: 2012/12/19 Radical > Thanks, Petr. > > I see that the comments are from years ago. Are there any ongoing efforts > to expand the default search set? (Or alternatively, to implement the > +hackage modifier mentioned.) > > Is there interest in either of these things happening

Re: [Haskell-cafe] Hoogle index completeness

2012-12-19 Thread Alberto G. Corona
http://holumbus.fh-wedel.de/hayoo/hayoo.html 2012/12/19 Alberto G. Corona > Hayoo has them all: > > > > 2012/12/19 Radical > >> Thanks, Petr. >> >> I see that the comments are from years ago. Are there any ongoing efforts >> to expand the default search set? (Or alternatively, to implement the

Re: [Haskell-cafe] containers license issue

2012-12-19 Thread Amit Levy
On Dec 17, 2012, at 10:30 AM, Mike Meyer wrote: > Ketil Malde wrote: >> Mike Meyer writes: >>> Niklas Larsson wrote: 2012/12/15 Mike Meyer : > Only if Tanenbaum documented the internal behavior of Linux before > it was written. Tannenbaum wrote Minix, the operating system th

Re: [Haskell-cafe] Hoogle index completeness

2012-12-19 Thread Joachim Breitner
Hi, Am Mittwoch, den 19.12.2012, 12:28 -0500 schrieb Radical: > I see that the comments are from years ago. Are there any ongoing > efforts to expand the default search set? if Michael Snoyman’s stackage will fly, I’d that would be a good candidate for a default set. Greetings, Joachim -- Jo

Re: [Haskell-cafe] Observer pattern in haskell FRP

2012-12-19 Thread serialhex
hey all, i've been lurking in this thread for a bit & i just found this interesting article from chris granger (yeah, the light table guy). he just completed the node knockout they had recently & decided to make a game. he did it all in clojurescript & he discusses some aspects of programming a g

Re: [Haskell-cafe] Hoogle index completeness

2012-12-19 Thread Johannes Waldmann
> Hayoo has them all [ .. ] but Hoogle is better with types? it seems Hayoo only does exact (string?) match on types, while Hoogle also knows about polymorphisms, permutations etc. E.g., search for "String -> Int". Hoogle finds length :: [a]-> Int as well, I think Hayoo doesn't. J.W. __

Re: [Haskell-cafe] my Fasta is slow ;(

2012-12-19 Thread Bryan O'Sullivan
I took your Haskell program as a base and have refactored it into a version that is about the same speed as your original C++ program. Will follow up with details when I have a little more time. On Tue, Dec 18, 2012 at 12:42 PM, Branimir Maksimovic wrote: > This time I have tried fasta benchmark

Re: [Haskell-cafe] category design approach for inconvenient concepts

2012-12-19 Thread Ertugrul Söylemez
Mark Flamer wrote: > I have also become intrigued and confused by this "category theory" > and how it relates to Haskell. It has been stated many times that you > don't need to understand category theory to utilize the Haskell > language but all the concepts, patterns and every paper describing >

Re: [Haskell-cafe] An assembly DSL example.

2012-12-19 Thread Jason Dagit
On Wed, Dec 19, 2012 at 8:08 AM, Tom Hawkins wrote: > A few folks have asked me about building EDSLs in Haskell for assembly > programming, so I've posted an example of the approach we have had success > using at BAE Systems. > > It's a bit rough, so if anyone's motivated to polish it up, by all