Re: [Haskell-cafe] Atom Examples

2010-02-14 Thread Yves Parès
Thanks! Looks a bit complex to me at the moment, but I'll probably have a look at it when I have the time. Tom Hawkins-2 wrote: On Sun, Feb 14, 2010 at 1:30 AM, Yves Parès limestr...@gmail.com wrote: I've been interested in using Atom since I saw this:

[Haskell-cafe] ANN: wyvern, a Dragon Go Server client

2010-02-14 Thread wagnerdm
I've just done the first release of wyvern [1], a small program to play moves for you on the Dragon Go Server [2], along with point releases for two supporting libraries. On DGS, people play many games of go simultaneously, making only one move per day in each game (about). A commonly

[Haskell-cafe] running HGL on OSX

2010-02-14 Thread Vojtěch Knyttl
Hello, I am having difficulties running HGL on Mac OSX, Snow Leopard. Here is what I've done: –– 1. Installed X11 for OSX (About dialog says: The X Window System, XQuartz 2.3.4 (xorg-server 1.4.2-apple45)) –– 2. Got X11 from Hackage – configured, built and installed – however, there where

Re: [Haskell-cafe] running HGL on OSX

2010-02-14 Thread Yuras Shumovich
Loading package X11-1.5.0.0 ... can't load .so/.DLL for: X11 (dlopen(libX11.dylib, 9): image not found) try DYLD_LIBRARY_PATH=/usr/X11R6/lib ghci graphics.hs http://hackage.haskell.org/trac/ghc/ticket/1019 ___ Haskell-Cafe mailing list

[Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Günther Schmidt
Hello, I've got a problem, in short my haskell code sucks. While it does work and I do manage to use higher-orderish aspects quite extensively to make my code more concise it still is nowhere abstract, always concrete and thus always with lots of boilerplate. Oh I have gotten better

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Jesper Louis Andersen
2010/2/14 Günther Schmidt gue.schm...@web.de: So fellows, what is the next stop on my road to enlightenment? I really think I need best to start from scratch. I think I'm sufficiently familiar now with most of Haskell's technicalities but how do I climb the ladder of abstraction? A couple of

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Jonathan Rockway
* On Sun, Feb 14 2010, Günther Schmidt wrote: So fellows, what is the next stop on my road to enlightenment? I really think I need best to start from scratch. I think I'm sufficiently familiar now with most of Haskell's technicalities but how do I climb the ladder of abstraction? Read more

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Andrew Coppin
Here's an idea... maybe we should make a small page on the Wiki explaining what all the various symbols in Haskell mean? There are a couple which are rare enough that most tutorials don't mention them that often. And there are of course symbols which mean different things in different

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-14 Thread Florian Weimer
* Simon Marlow: In a sense the GC *is* deterministic: it guarantees to collect all the unreachable garbage. But I expect what you're referring to is the fact that the garbage remains around for a non-deterministic amount of time. To me that doesn't seem to be a problem: you could run the GC

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread MightyByte
I like that idea. When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did. I incorrectly assumed that it was provided by some library. '!' and '~' would certainly be other good candidates for this kind of a page. These types of

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Andrew Coppin
MightyByte wrote: I like that idea. When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did. I incorrectly assumed that it was provided by some library. Technically, it is... '!' and '~' would certainly be other good

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread MightyByte
On Sun, Feb 14, 2010 at 8:39 AM, Andrew Coppin andrewcop...@btinternet.com wrote: MightyByte wrote: I like that idea.  When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did.  I incorrectly assumed that it was provided by some

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Felipe Lessa
On Sun, Feb 14, 2010 at 09:00:14AM -0500, MightyByte wrote: At any rate, they still don't help for things like '~', so there's definitely a use for a wiki page like this. Of course, Hoogle and Hayoo could be modified to show the docs when such symbols are searched as a special condition. --

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Stephen Tetley
Hi Günther Promoting a slightly contrary view, I'm not sure that abstraction should be a goal in itself. Richard Gabriel makes a point of valuing 'habitable' code over abstract code in his 'Patterns of Software' book (free from his website now that it's out of print). Habitable code being code

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-14 Thread Serguey Zefirov
2010/2/14 Florian Weimer f...@deneb.enyo.de: Most of the time, the concern is about pause times and the lack of upper bounds on them.  With traditional reference counting, this is still a problem because if the last reference to a large data structure goes away, you need to free the whole data

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Henk-Jan van Tuyl
On Sun, 14 Feb 2010 14:24:03 +0100, Andrew Coppin andrewcop...@btinternet.com wrote: Here's an idea... maybe we should make a small page on the Wiki explaining what all the various symbols in Haskell mean? There are a couple which are rare enough that most tutorials don't mention them

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Dougal Stanton
And, I've search the meaning of the symbol ~, but I've found nothing about this (note that's not easy to search ~ on google ...) Searching for haskell tilde produces a lot of results and they're all relevant (on the first page at least). D ___

[Haskell-cafe] EDSL's using Filet-O-Fish of Barrelfish project

2010-02-14 Thread C K Kashyap
Hi All, I'd been looking for a mechanism to generate C from Haskell as EDSL - to develop an OS. In the process, I ran into the Barrelfish project ( http://www.barrelfish.org) - They seem to be using Haskell based DSL generator called Filet-O-Fish - http://www.barrelfish.org/fof_plos09.pdf It will

[Haskell-cafe] pandoc code bocks not working

2010-02-14 Thread Anatoly Yakovenko
i am getting these failures with pandoc, or maybe i am not using markdown correctly 1. hello world ~ code block failed ~ * hello world ~ code block failed ~ * hello world clode block failed hello world === ~ code block ok ~

Re: [Haskell-cafe] EDSL's using Filet-O-Fish of Barrelfish project

2010-02-14 Thread Pierre-Evariste Dagand
Hi, On Sun, Feb 14, 2010 at 4:44 PM, C K Kashyap ckkash...@gmail.com wrote: For example, lets say, I wanted to write a EDSL for Linux's network drivers. Could I use Filet-O-Fish and generate a EDSL that allows me to write a driver in a really highlevel manner and then generate the C code for

Re: [Haskell-cafe] Using Cabal during development

2010-02-14 Thread Antoine Latter
On Thu, Feb 11, 2010 at 4:28 AM, Limestraël limestr...@gmail.com wrote: Eventually, I think using cabal during development may be convenient. The only drawback is that you have to specify each dependency and -- above all -- every module each time you add one. Nevertheless, I'm not convinced

[Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-14 Thread Bardur Arantsson
Jeremy Shaw wrote: import Control.Concurrent import Control.Concurrent.MVar import System.Posix.Types data RW = Read | Write threadWaitReadWrite :: Fd - IO RW threadWaitReadWrite fd = do m - newEmptyMVar rid - forkIO $ threadWaitRead fd putMVar m Read wid - forkIO $

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Andrew Coppin
Henk-Jan van Tuyl wrote: The symbols that are not specified in a library can be found here: http://www.haskell.org/haskellwiki/Keywords Ah, nice. It seems somebody else has already thought of this. Also, I read this page and discovered something new within about 30 seconds. (Pattern

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Jake Wheat
On 14 February 2010 16:02, Henk-Jan van Tuyl hjgt...@chello.nl wrote: The symbols that are not specified in a library can be found here:  http://www.haskell.org/haskellwiki/Keywords Hoogle used to show links to this page, when a keyword was searched, but not anymore. In section 5 ! on this

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Evan Laforge
Finally, it is the array subscript operator: let x = arr ! 10 Shouldn't this be let x = arr !! 10 !! is the list subscript. Look in Data.Array.IArray for (!). Or Data.Map. There's still no consensus on typeclasses for collections, so these are all separate functions. Has anyone taken a

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread wagnerdm
Quoting Jake Wheat jakewheatm...@googlemail.com: On 14 February 2010 16:02, Henk-Jan van Tuyl hjgt...@chello.nl wrote: Finally, it is the array subscript operator: let x = arr ! 10 Shouldn't this be let x = arr !! 10 (!) is for arrays, (!!) is for lists. ~d

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Jake Wheat
On 14 February 2010 22:11, Evan Laforge qdun...@gmail.com wrote: Finally, it is the array subscript operator: let x = arr ! 10 Shouldn't this be let x = arr !! 10 !! is the list subscript.  Look in Data.Array.IArray for (!).  Or Data.Map. There's still no consensus on typeclasses for

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Stephen Tetley
On 14 February 2010 22:11, Evan Laforge qdun...@gmail.com wrote: There's still no consensus on typeclasses for collections, so these are all separate functions.  Has anyone taken a shot at a set of AT-using classes for the standard collections? The standard collections have different shapes

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Alexander Solla
On Feb 14, 2010, at 4:38 AM, Günther Schmidt wrote: I've got a problem, in short my haskell code sucks. While it does work and I do manage to use higher-orderish aspects quite extensively to make my code more concise it still is nowhere abstract, always concrete and thus always with lots

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Evan Laforge
On Sun, Feb 14, 2010 at 2:22 PM, Stephen Tetley stephen.tet...@gmail.com wrote: On 14 February 2010 22:11, Evan Laforge qdun...@gmail.com wrote: There's still no consensus on typeclasses for collections, so these are all separate functions.  Has anyone taken a shot at a set of AT-using

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Stephen Tetley
Hi Evan Singleton (aka wrap) would be nice - isn't it called Pointed in the typeclassopedia but not otherwise existent? I suppose its missing by historical accident rather than design. I frequently use Semigroup (append but no zero) - there is one on Hackage without any instances:

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Tony Morris
Stephen Tetley wrote: Hi Evan Singleton (aka wrap) would be nice - isn't it called Pointed in the typeclassopedia but not otherwise existent? I suppose its missing by historical accident rather than design. I frequently use Semigroup (append but no zero) - there is one on Hackage without

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Evan Laforge
I'm no fan of (!!) on lists or other containers where it isn't O(1), but lookup/member are a bit more promising. However are there any useful derived operations or constructions that can be defined only in terms of a Lookup type class? For comparison, Monoid has mconcat as a derived op and

Re: [Haskell-cafe] Linguistic hair-splitting

2010-02-14 Thread wren ng thornton
Alexander Solla wrote: On Jan 27, 2010, at 4:57 PM, Conor McBride wrote: Yes, the separation is not clear in Haskell. (I consider this unfortunate.) I was thinking of Paul Levy's call-by-push-value calculus, where the distinction is clear, but perhaps not as fluid as one might like. What,

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Günther Schmidt
Well I just noticed that the boilerplate part consists of this: Import data by selecting fields from a table, feed them into some sort of internal data structure for later querying, times 12. All this involves quite a bit of boilerplate. Yeah, I guess I could abstract here a little. Günther

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-14 Thread wren ng thornton
Michael Lesniak wrote: elegance of Haskell. Whether Haskell becomes an easy choice for commercial work or remains a boutique language depends on how easy it is to build today's applications. Do you (or anyone reading this thread) know of some kind of wishlist of missing features and/or

[Haskell-cafe] Virus alert while installing happstack

2010-02-14 Thread Maciej Podgurski
Hi, I tried to install happstack via cabal install happstack on my WinXP system. While installation progress, my anti-virus software (Avira AntiVir) warned me about dll_hsc_make.exe and files_hsc_make.exe to be a Trojan horse called TR/Dropper.Gen. It's a bit confusing to get a virus alert

[Haskell-cafe] pandoc code bocks not working

2010-02-14 Thread Walter De Jonge
http://johnmacfarlane.net/pandoc/README.html#delimited-code-blocks Like regular code blocks, delimited code blocks must be separated from surrounding text by blank lines. goodluck walter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Virus alert while installing happstack

2010-02-14 Thread Marc Weber
Hi Maciej, Several open source projects suffered from false positives. Usually you sent the file to the company having written your Virus detection application for review. It may be a Virus. However it's very unlikely. If you're in doubt you should compile from source and also check the source

Re: [Haskell-cafe] Virus alert while installing happstack

2010-02-14 Thread Max Rabkin
On Mon, Feb 15, 2010 at 11:28 AM, Marc Weber marco-owe...@gmx.de wrote: unlikely. If you're in doubt you should compile from source and also check the source which was used to compile ghc .. etc. I want to say if you really want to be secure the amount of work is infinity.

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Artyom Shalkhakov
Hello, 2010/2/14, Günther Schmidt gue.schm...@web.de: Hello, I've got a problem, in short my haskell code sucks. While it does work and I do manage to use higher-orderish aspects quite extensively to make my code more concise it still is nowhere abstract, always concrete and thus always

[Haskell-cafe] performance issue and HGL

2010-02-14 Thread Vojtěch Knyttl
Hello, I've created a simple Mandelbrot set generator, using HGL, the source is viewable at: http://pastebin.dqd.cz/cUmg/ 1. The problem is, that it is very slow. It is obvious that what takes the most time is the mandel function computation. I have no idea, how it can be improved. 2. What

Re: [Haskell-cafe] running HGL on OSX

2010-02-14 Thread Vojtěch Knyttl
Thanks for reply – another issue is with ghc: $ ghc --make graphics.hs -lHSrts -lSystemStubs (the only way which I found to compile correctly on OSX) will compile okay and will run okay, but the program runs slowly and consumes only 15 % of processor in average. In GHCI, it consumes easily 100