Re: [Haskell-cafe] Iteratees again

2011-06-03 Thread Ketil Malde
dm-list-haskell-c...@scs.stanford.edu writes:

 leaking file descriptors

...until they are garbage collected.  I tend to consider the OS fd
limitation an OS design error - I've no idea why there should be some
arbitrary limit on open files, as long as there is plenty of memory
around to store them.  But, well, yes, it is a real concern.

 parsers that parse every possible input and never fail.  

I guess I need to look into how iteratees handle parse failure.
Generally, for me a parse failure means program failure - either the
data is corrupt, or the program is incorrect.

 Thus, for anything other than a toy program, your code actually has to
 be: 

   readFoo path = bracket (hOpen path) hclose $
   hGetContents = (\s - return $! decodeFoo s)

No, I can't do that in general, because I want to process a Foo (which
typically is or contains a list of records) incrementally.  I can't
assume the file or its data are smalle enough to fit in memory.  It is
important that readFoo returns a structure that can be consumed lazily
- or perhaps it can be iteratee all the way up.

 Which is still not guaranteed to work if Foo contains thunks, so then
 you end up having to write:

   readFoo path = bracket (hOpen path) hclose $ \h - do
 s - hGetContents h
 let foo = decodeFoo s
 deepseq foo $ return foo

I think this - or rather, having Foo's records be strict - is a good
idea anyway.  The previous discussion about frequency counts seems to
indicate that this goes equally well for iteratees.

Thanks for the elaborate answer.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] *GROUP HUG*

2011-06-03 Thread Ketil Malde
Michael Litchard mich...@schmong.org writes:

 I disagree. I'm by no means proficient in Haskell. And, I never
 bothered learning PHP. I will when I need to. PHP programmers are a
 dime a dozen. 

..and since PHP programmers are a dime a dozen, any decent manager (who,
after all, has an MBA and knows that employees¹ are expendable and
interchangeable means of production) will select PHP as the technology
for her next project. 

Gresham's law states roughly that bad money drives out good.  I thus
propose a corollary: bad languages drive out good.

 It's been my experience that Haskell is a tool one may
 use to distinguish oneself from the hoi-poloi. This is important when
 you live in an area where the baker down the street has a CS degree.

Are you saying CS degrees are a dime a baker's dozen?

-k

¹) With the sole exception of managers, of course.
-- 
If I haven't seen further, it is by standing in the footprints of giants

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Comment Syntax

2011-06-03 Thread Guy

-- followed by a symbol does not start a comment, thus for example, haddock 
declarations must begin with -- |, and not --|.

What might --| mean, if not a comment? It doesn't seem possible to define it as 
an operator.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Max Rabkin
On Fri, Jun 3, 2011 at 10:32, Guy guytsalmave...@yahoo.com wrote:
 -- followed by a symbol does not start a comment, thus for example, haddock
 declarations must begin with -- |, and not --|.

 What might --| mean, if not a comment? It doesn't seem possible to define it
 as an operator.

GHCi, at least, allows it.

Prelude let (--|) = (+)
Prelude 1 --| 2
3

--Max

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 18:32, Guy guytsalmave...@yahoo.com wrote:
 -- followed by a symbol does not start a comment, thus for example, haddock
 declarations must begin with -- |, and not --|.

 What might --| mean, if not a comment? It doesn't seem possible to define it
 as an operator.

Sure you can; --| is a valid operator.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Malcolm Wallace
 -- followed by a symbol does not start a comment, thus for example, haddock
 declarations must begin with -- |, and not --|.
 
 What might --| mean, if not a comment? It doesn't seem possible to define it
 as an operator.
 
 GHCi, at least, allows it.
 
 Prelude let (--|) = (+)
 Prelude 1 --| 2
 3

I believe the motivating example that persuaded the Language Committee to allow 
these symbols was
 --
which is not of course used anywhere in the standard libraries, but is an 
extremely nice symbol to have available in user code.

Regards,
Malcolm

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Guy

On 03/06/2011 12:01, Malcolm Wallace wrote:

I believe the motivating example that persuaded the Language Committee to allow 
these symbols was
  --
which is not of course used anywhere in the standard libraries, but is an 
extremely nice symbol to have available in user code.


Seeing as no library actually defines such a symbol, is it worth forcing an extra space into comments? --| and --^ would 
be an extremely nice symbols for haddock comments.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 19:19, Guy guytsalmave...@yahoo.com wrote:
 On 03/06/2011 12:01, Malcolm Wallace wrote:

 I believe the motivating example that persuaded the Language Committee to
 allow these symbols was
      --
 which is not of course used anywhere in the standard libraries, but is an
 extremely nice symbol to have available in user code.

 Seeing as no library actually defines such a symbol, is it worth forcing an
 extra space into comments? --| and --^ would be an extremely nice symbols
 for haddock comments.

We already have to forms of comments: -- and {- -}; why do we need another two?

Think of it this way: the -- defines the comment, and then we use
the | or ^ to indicate to _haddock_ to interpret this differently.
 I don't think we need to special-case symbols starting with -- just
to avoid having to put a space in to delimit the comment indicator and
the markup indicator.

That said, I have a use for -- as a symbol... if it wasn't that I'd
also want something like -- to follow suit, and as such it'll just be
easier to use something like .-. and .--. (for creating directed and
undirected edges respectively in graphs).

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Guy

On 03/06/2011 12:26, Ivan Lazar Miljenovic wrote:

On 3 June 2011 19:19, Guyguytsalmave...@yahoo.com  wrote:

On 03/06/2011 12:01, Malcolm Wallace wrote:


I believe the motivating example that persuaded the Language Committee to
allow these symbols was
  --
which is not of course used anywhere in the standard libraries, but is an
extremely nice symbol to have available in user code.


Seeing as no library actually defines such a symbol, is it worth forcing an
extra space into comments? --| and --^ would be an extremely nice symbols
for haddock comments.


We already have to forms of comments: -- and {- -}; why do we need another two?

Think of it this way: the -- defines the comment, and then we use
the | or ^ to indicate to _haddock_ to interpret this differently.
  I don't think we need to special-case symbols starting with -- just
to avoid having to put a space in to delimit the comment indicator and
the markup indicator.


I wasn't proposing additional comment symbols; I'm proposing that anything 
beginning with -- is a comment.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Yitzchak Gale
Bryan O'Sullivan wrote:
 I'd like a no-copy combinator for the same reasons, but I think it's
 impossible to do without some low-level support.

I wrote:
 ...does the internal representation easily admit such a combinator?

 Not very easily. Internally, attoparsec maintains just three pieces of data
 for its state... If
 there was a bytes consumed counter, it would be possible to write a
 try-like combinator

I was thinking of even lower level: allocating a moderate chunk of
memory and writing the results directly into it consecutively as a
special case.

I think Data.ByteString.Internal.create might do the trick.
In fact, some of the existing basic attoparsec combinators,
like takeWhile, could use that kind of treatment. The question
is whether you want to dip that low into the ByteString
implementation.

Part of the problem is that there doesn't seem to be any way
to allocate contiguous memory in GHC and then release only
part of it. So even ByteString itself is doing extra copying.
That is another reason why I think there may be some serious
performance gains to be had by exposing those internals in
attoparsec.

[Duncan: Did you notice that the Haddocks for
Data.ByteString.Internals and a few others haven't
been building lately?]

Thanks,
Yitz

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Serguey Zefirov
2011/6/3 Guy guytsalmave...@yahoo.com:
 I wasn't proposing additional comment symbols; I'm proposing that anything
 beginning with -- is a comment.

I use -- as a infix operator to describe types in Template Haskell.

So I too oppose your proposal. ;)

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Yitzchak Gale
Mario Blažević wrote:
  I don't know if this helps, but the incremental-parser library has
 exactly the combinator you're looking for.

Wow, that is a beautiful implementation of a general parser
library. So much simpler than Parsec. Thanks for pointing it out.

Why are you hiding those nice Monoid classes in the parser
package? Shouldn't it be a separate package?

Edward Kmett has also been adding some nice Monoid
abstractions lately. I haven't been following all of it. I wonder
how yours and his relate.

Thanks,
Yitz

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] License of hslogger, HDBC, etc.

2011-06-03 Thread Yitzchak Gale
John Goerzen wrote:
 I've decided that I'm OK with re-licensing hslogger, HDBC, and well all of
 my Haskell libraries (not end programs) under 3-clause BSD.

Thanks John!

-Yitz

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Daniel Schoepe
On Fri, 03 Jun 2011 12:19:31 +0300, Guy guytsalmave...@yahoo.com wrote:
 On 03/06/2011 12:01, Malcolm Wallace wrote:
  I believe the motivating example that persuaded the Language Committee to 
  allow these symbols was
--
  which is not of course used anywhere in the standard libraries, but is an 
  extremely nice symbol to have available in user code.
 
 Seeing as no library actually defines such a symbol, is it worth forcing an 
 extra space into comments? [..]

That's not true, xmonad[0] for example defines a ---operator; and I
would find making exceptions for --| and --^ very inconsistent and
annoying.

[0] http://xmonad.org/xmonad-docs/xmonad/XMonad-ManageHook.html#v%3A--%3E


pgp8FyrB33uh7.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 20:32, Daniel Schoepe daniel.scho...@googlemail.com wrote:
 On Fri, 03 Jun 2011 12:19:31 +0300, Guy guytsalmave...@yahoo.com wrote:
 On 03/06/2011 12:01, Malcolm Wallace wrote:
  I believe the motivating example that persuaded the Language Committee to 
  allow these symbols was
        --
  which is not of course used anywhere in the standard libraries, but is an 
  extremely nice symbol to have available in user code.

 Seeing as no library actually defines such a symbol, is it worth forcing an 
 extra space into comments? [..]

 That's not true, xmonad[0] for example defines a ---operator; and I
 would find making exceptions for --| and --^ very inconsistent and
 annoying.

 [0] http://xmonad.org/xmonad-docs/xmonad/XMonad-ManageHook.html#v%3A--%3E

I _knew_ I had seen -- somewhere... *glares at Hayoo for not
returning said results*.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Steffen Schuldenzucker



Am 03.06.2011 10:32, schrieb Guy:
What might --| mean, if not a comment? It doesn't seem possible to 
define it as an operator.
Obviously, anyone who is going to write a formal logic framework would 
want to define the following operators ;) :


T |- phi: T proves phi
T |-- phi: T proves phi directly (by application of a single rule)
phi -| T: phi is proven by T
phi --| T: phi is proven by T directly

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Dmitri O.Kondratiev
Hello,

Please advise on Haskell 2D plotting libraries to generate plots,
histograms, power spectra, bar charts, errorcharts, scatterplots, etc,
similar to what Matplotlib does:
http://matplotlib.sourceforge.net/

Thanks!
Dmitri
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 21:39, Dmitri O.Kondratiev doko...@gmail.com wrote:
 Hello,

 Please advise on Haskell 2D plotting libraries to generate plots,
 histograms, power spectra, bar charts, errorcharts, scatterplots, etc,
 similar to what Matplotlib does:
 http://matplotlib.sourceforge.net/

I was going to list the possible packages but found too many... so
search for chart and plot on Hackage:
http://hackage.haskell.org/package/

In particular, the Chart, plot and gnuplot libraries probably do what
you want (or at least a subset).

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Unbelievable parallel speedup

2011-06-03 Thread Thomas Schilling
While I would guess that your superlinear speedup is due to the large
variance of your single-core case, it is indeed possible to have
superlinear speedup.

Say you have a problem set of size 32MB and an L2 cache of 8MB per
core.  If you run the same program on one CPU it won't fit into the
cache, so you'll have lots of cache misses and this will show in
overall performance.  If you run the same problem on 4 cores and
manage to evenly distribute the working set, then it will fit into the
local caches and you will have very few cache misses.  Because caches
are an order of magnitude faster than main memory, the parallel
program can be more than 4x faster.  To counteract this effect, you
can try to scale the problem with the number of cores (but it then has
to be a truly linear problem).

That said, the variance in your single-CPU case is difficult to
diagnose without knowing more about your program.  It could be due to
GC effects, it cold be interaction with the OS scheduler, it could be
many other things.  On many operating systems, if you run a single
core program for a while, the OS scheduler may decide to move it to a
different core in order to spread out wear among the cores.  It's
possible that something like this is happening and, unfortunately,
some Linux system hide this from the user.  Still there could be many
other explanations.

On 3 June 2011 13:10, John D. Ramsdell ramsde...@gmail.com wrote:
 I've enjoyed reading Simon Marlow's new tutorial on parallel and
 concurrent programming, and learned some surprisingly basic tricks.  I
 didn't know about the '-s' runtime option for printing statistics.  I
 decided to compute speedups for a program I wrote just as Simon did,
 after running the program on an unloaded machine with four processors.
  When I did, I found the speedup on two processors was 2.4, on three
 it was 3.2, and on four it was 4.4!  Am I living in a dream world?

 I ran the test nine more times, and here is a table of the speedups.

 2.35975 3.42595 4.39351
 1.57458 2.18623 2.94045
 1.83232 2.77858 3.41629
 1.58011 2.37084 2.94913
 2.36678 3.63694 4.42066
 1.58199 2.29053 2.95165
 1.57656 2.34844 2.94683
 1.58143 2.3242  2.95098
 2.36703 3.36802 4.41918
 1.58341 2.30123 2.93933

 That last line looks pretty reasonable to me, and is what I expected.
 Let's look at a table of the elapse times.

 415.67  176.15  121.33  94.61
 277.52  176.25  126.94  94.38
 321.37  175.39  115.66  94.07
 277.72  175.76  117.14  94.17
 415.63  175.61  114.28  94.02
 277.75  175.57  121.26  94.10
 277.68  176.13  118.24  94.23
 277.51  175.48  119.40  94.04
 415.58  175.57  123.39  94.04
 277.62  175.33  120.64  94.45

 Notice that the elapse times for two and four processors is pretty
 consistent, and the one for three processors is a little inconsistent,
 but the times for the single processor case are all over the map.  Can
 anyone explain all this variance?

 I have enclosed the raw output from the runs and the script that was
 run ten times to produce the output.

 John

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe





-- 
Push the envelope. Watch it bend.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] License of hslogger, HDBC, etc.

2011-06-03 Thread John Goerzen
Nothing particularly lofty; just a realization that other people didn't 
really want to engage in the conversation about LGPL, and I ran out of 
time to do so myself.


-- John

On 06/02/2011 05:07 PM, Vo Minh Thu wrote:

2011/6/2 John Goerzenjgoer...@complete.org:

Hi Jon  all,

I've decided that I'm OK with re-licensing hslogger, HDBC, and well all of
my Haskell libraries (not end programs) under 3-clause BSD.

My schedule is extremely tight right now but if someone wants to send me
patches for these things I will try to apply them within the week.


Thanks!

What was your line of reasoning to make the switch?

Cheers,
Thu




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Mario Blažević

On 11-06-03 06:00 AM, Yitzchak Gale wrote:

Mario Blažević wrote:

  I don't know if this helps, but the incremental-parser library has
exactly the combinator you're looking for.


Wow, that is a beautiful implementation of a general parser
library. So much simpler than Parsec. Thanks for pointing it out.


Thanks. I guess I should get to work fixing its deficiencies then.



Why are you hiding those nice Monoid classes in the parser
package? Shouldn't it be a separate package?


	I considered it, and I'll do it if there's interest, but for the first 
release I decided to keep them close to where they're needed. There was 
less work that way. I'd hate to release a standalone package with only 
half the instance implementations.




Edward Kmett has also been adding some nice Monoid
abstractions lately. I haven't been following all of it. I wonder
how yours and his relate.


	If you mean semigroups, they are related but only through Monoid. 
Semigroup is a superclass of Monoid, whereas CancellativeMonoid and 
FunctorialMonoid are its subclasses. CancellativeMonoid is lying between 
a Monoid and Group in power. It would make more sense to merge my 
classes into some group package, though I don't see any obvious 
candidate on Hackage right now.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Unbelievable parallel speedup

2011-06-03 Thread Yves Parès
 I've enjoyed reading Simon Marlow's new tutorial on parallel and
concurrent programming

I am interested: where I this tutorial?

2011/6/3 John D. Ramsdell ramsde...@gmail.com

 I've enjoyed reading Simon Marlow's new tutorial on parallel and
 concurrent programming, and learned some surprisingly basic tricks.  I
 didn't know about the '-s' runtime option for printing statistics.  I
 decided to compute speedups for a program I wrote just as Simon did,
 after running the program on an unloaded machine with four processors.
  When I did, I found the speedup on two processors was 2.4, on three
 it was 3.2, and on four it was 4.4!  Am I living in a dream world?

 I ran the test nine more times, and here is a table of the speedups.

 2.35975 3.42595 4.39351
 1.57458 2.18623 2.94045
 1.83232 2.77858 3.41629
 1.58011 2.37084 2.94913
 2.36678 3.63694 4.42066
 1.58199 2.29053 2.95165
 1.57656 2.34844 2.94683
 1.58143 2.3242  2.95098
 2.36703 3.36802 4.41918
 1.58341 2.30123 2.93933

 That last line looks pretty reasonable to me, and is what I expected.
 Let's look at a table of the elapse times.

 415.67  176.15  121.33  94.61
 277.52  176.25  126.94  94.38
 321.37  175.39  115.66  94.07
 277.72  175.76  117.14  94.17
 415.63  175.61  114.28  94.02
 277.75  175.57  121.26  94.10
 277.68  176.13  118.24  94.23
 277.51  175.48  119.40  94.04
 415.58  175.57  123.39  94.04
 277.62  175.33  120.64  94.45

 Notice that the elapse times for two and four processors is pretty
 consistent, and the one for three processors is a little inconsistent,
 but the times for the single processor case are all over the map.  Can
 anyone explain all this variance?

 I have enclosed the raw output from the runs and the script that was
 run ten times to produce the output.

 John

 ___
 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] Unbelievable parallel speedup

2011-06-03 Thread Erlend Hamberg
On 3 June 2011 16:14, Yves Parès limestr...@gmail.com wrote:
 I am interested: where I this tutorial?

https://github.com/simonmar/par-tutorial

-- 
Erlend Hamberg
ehamb...@gmail.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Gregory Collins
On Fri, Jun 3, 2011 at 11:52 AM, Yitzchak Gale g...@sefer.org wrote:
 Bryan O'Sullivan wrote:
 I'd like a no-copy combinator for the same reasons, but I think it's
 impossible to do without some low-level support.

 I wrote:
 ...does the internal representation easily admit such a combinator?

 Not very easily. Internally, attoparsec maintains just three pieces of data
 for its state... If
 there was a bytes consumed counter, it would be possible to write a
 try-like combinator

 I was thinking of even lower level: allocating a moderate chunk of
 memory and writing the results directly into it consecutively as a
 special case.

The blaze-builder might work for this also, this is exactly the
problem it's designed for.

G
-- 
Gregory Collins g...@gregorycollins.net

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Dmitri O.Kondratiev
On Fri, Jun 3, 2011 at 3:44 PM, Ivan Lazar Miljenovic 
ivan.miljeno...@gmail.com wrote:

 On 3 June 2011 21:39, Dmitri O.Kondratiev doko...@gmail.com wrote:
  Hello,
 
  Please advise on Haskell 2D plotting libraries to generate plots,
  histograms, power spectra, bar charts, errorcharts, scatterplots, etc,
  similar to what Matplotlib does:
  http://matplotlib.sourceforge.net/

 I was going to list the possible packages but found too many... so
 search for chart and plot on Hackage:
 http://hackage.haskell.org/package/

 In particular, the Chart, plot and gnuplot libraries probably do what
 you want (or at least a subset).

 --

Thanks!
I tried gnuplot:

GHCi, version 7.0.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude import Graphics.Gnuplot.Simple
Prelude Graphics.Gnuplot.Simple :l Demo.hs

Demo.hs:25:18:
Could not find module `Paths_gnuplot':
  Use -v to see a list of the files searched for.
Failed, modules loaded: none.
Prelude Graphics.Gnuplot.Simple


Where to get `Paths_gnuplot': module?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Antoine Latter
On Fri, Jun 3, 2011 at 9:57 AM, Dmitri O.Kondratiev doko...@gmail.com wrote:

 On Fri, Jun 3, 2011 at 3:44 PM, Ivan Lazar Miljenovic
 ivan.miljeno...@gmail.com wrote:

 On 3 June 2011 21:39, Dmitri O.Kondratiev doko...@gmail.com wrote:
  Hello,
 
  Please advise on Haskell 2D plotting libraries to generate plots,
  histograms, power spectra, bar charts, errorcharts, scatterplots, etc,
  similar to what Matplotlib does:
  http://matplotlib.sourceforge.net/

 I was going to list the possible packages but found too many... so
 search for chart and plot on Hackage:
 http://hackage.haskell.org/package/

 In particular, the Chart, plot and gnuplot libraries probably do what
 you want (or at least a subset).

 --

 Thanks!
 I tried gnuplot:

 GHCi, version 7.0.3: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package ffi-1.0 ... linking ... done.
 Prelude import Graphics.Gnuplot.Simple
 Prelude Graphics.Gnuplot.Simple :l Demo.hs

 Demo.hs:25:18:
     Could not find module `Paths_gnuplot':
   Use -v to see a list of the files searched for.
 Failed, modules loaded: none.
 Prelude Graphics.Gnuplot.Simple


 Where to get `Paths_gnuplot': module?


Have you installed the gnuplot package?

What command did you use to start GHCi?

Thanks,
Antoine


 ___
 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


[Haskell-cafe] [JOB] NYU's Center for Genomics and Systems Biology seeks Functional Programmer

2011-06-03 Thread Ashish Agarwal
Relevance to this list: The posting below is for an OCaml programmer but
welcomes applications from Haskell programmers.

Dear Functional Programmers,

I am pleased to announce a job opportunity at The Center for Genomics and
Systems Biology (CGSB) at New York University (NYU), located in the heart of
Manhattan. The position's main function will be to develop software in the
OCaml language to manage, analyze, and display the vast amounts of data
generated by next-generation sequencing technologies. NYU's strong
commitment to this field is represented by its $100M investment in the brand
new CGSB building, which houses the latest sequencing platforms and
excellent high performance computing facilities.

The position will support the computational needs of several experimental
labs by designing and building:
o A database for tracking samples, very large quantities of raw data, and
complex analysis results
o A website for users to submit new samples, monitor progress of their
workflow, and visualize data
o A system for distributing batch jobs to a cluster, accounting for
dependencies between jobs and cached results

All components are expected to follow good functional programming design.
There are no formal experience or education requirements. Although the
software will be written in OCaml, we welcome applicants with experience in
other functional languages, especially Haskell, F#, and SML. There is
flexibility in the exact nature of the position; you may expand your work to
machine learning, parallel programming, or any of the many topics relevant
to bioinformatics, so long as the core requirements of the position are
fulfilled. Experience in the following areas is a plus but not required:
bioinformatics, statistics, type theory, distributed computing, and UNIX
systems administration.

NYU researchers are using sequencing technologies to investigate basic
questions about the nature of life and to address fundamental problems in
human health. The very large datasets generated by these technologies pose
significant computational challenges for which the robust principles of
functional programming are ideally suited. I hope you will find this an
exciting opportunity.

If you are interested, please contact me with a CV and brief description of
your background. Thank you.

__
Ashish Agarwal
New York University
http://ashishagarwal.org
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Malcolm Wallace
 I tried gnuplot: 
 
 Demo.hs:25:18:
 Could not find module `Paths_gnuplot':
   Use -v to see a list of the files searched for.
 Failed, modules loaded: none.
 Prelude Graphics.Gnuplot.Simple
 
 
 Where to get `Paths_gnuplot': module?

$ cd gnuplot-0.4.2
$ cabal install # this generates the Paths_gnuplot module
$ ghci

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Brandon Allbery
On Fri, Jun 3, 2011 at 05:19, Guy guytsalmave...@yahoo.com wrote:
 On 03/06/2011 12:01, Malcolm Wallace wrote:
 I believe the motivating example that persuaded the Language Committee to
 allow these symbols was
      --
 which is not of course used anywhere in the standard libraries, but is an
 extremely nice symbol to have available in user code.

 Seeing as no library actually defines such a symbol, is it worth forcing an
 extra space into comments? --| and --^ would be an extremely nice symbols
 for haddock comments.

http://xmonad.org/xmonad-docs/xmonad/XMonad-ManageHook.html#v%3A--%3E

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Albert Y. C. Lai
I propose that only {- -} is comment; that is, -- is an operator token 
and not a marker of comments.


Two birds in one stone:

1. Removes the cause of the mistake of writing a haddock comment as --|
That is, if no one writes any comment with -- then no one writes any 
haddock comment with --| --^ etc.


2. Opens up the option of using -- for prefix unary negation, so that - 
is unambiguously infix subtraction and therefore (- x) is consistently 
right sectioning of infix subtraction.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Iteratees again

2011-06-03 Thread Brandon Allbery
On Fri, Jun 3, 2011 at 03:53, Ketil Malde ke...@malde.org wrote:
 dm-list-haskell-c...@scs.stanford.edu writes:

 leaking file descriptors

 ...until they are garbage collected.  I tend to consider the OS fd
 limitation an OS design error - I've no idea why there should be some
 arbitrary limit on open files, as long as there is plenty of memory
 around to store them.  But, well, yes, it is a real concern.

In the case of Unix, available memory was indeed the motivating
factor.  The DEC minicomputers it was developed on didn't have a whole
lot of memory, plus older Unix reallocated the per-process file
structures as part of the (struct proc) for speed (again, old slow
systems).

The modern reason for limits is mostly to avoid runaway processes.
Usually the hard limit is set pretty high but the soft limit is lower.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Bryan O'Sullivan
On Fri, Jun 3, 2011 at 2:52 AM, Yitzchak Gale g...@sefer.org wrote:

 I was thinking of even lower level: allocating a moderate chunk of
 memory and writing the results directly into it consecutively as a
 special case.


Surely that would save only one copy compared to creating a list of results
and then concatenating them, no? I'd be a little surprised if it proved
worthwhile.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Andrew Coppin

On 03/06/2011 05:02 PM, Albert Y. C. Lai wrote:

I propose that only {- -} is comment; that is, -- is an operator token
and not a marker of comments.


I'm curious to know why anybody thought that -- was a good comment 
marker in the first place. (I'm curious because Haskell isn't the only 
language to have made this strange choice.)


I once tried defining a ++ operator and then when I went to define a 
matching -- operator...


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Greg Weber
I have been trying to make a few edits to the haskell wiki and find it an
excruciating process when I press save and then have to wait a long time to
see if the save will go through. I just clicked on the introduction page and
it may have took an entire minute to load.

Can we put at the top: this wiki written in php, not haskell!

Seriously though, the wiki has performed poorly for a long time now. It
gives a bad impression to newcomers and deters contributions. Can I (and
others!) donate money so someone can make the wiki responsive?

Thanks,
Greg Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread John D. Ramsdell
I rarely use a Mac because it is too cute, but I bought one for my
wife.  I'd like to install GHC on her Mac just to test Haskell
Platform and cabal install.  (I rarely use Windows too, but testing
GHC  cabal install is completely painless.)   To do a quick test, do
I really have to register as an Apple developer, or is there a way to
test the platform anonymously?

Someone who some times worries about privacy,

John

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 4 June 2011 02:02, Albert Y. C. Lai tre...@vex.net wrote:
 I propose that only {- -} is comment; that is, -- is an operator token and
 not a marker of comments.

 Two birds in one stone:

 1. Removes the cause of the mistake of writing a haddock comment as --|
 That is, if no one writes any comment with -- then no one writes any haddock
 comment with --| --^ etc.

 2. Opens up the option of using -- for prefix unary negation, so that - is
 unambiguously infix subtraction and therefore (- x) is consistently right
 sectioning of infix subtraction.

I think it's probably too late to make such a sweeping change;
besides, having some kind of inline comment indicator (which goes to
the end of line) is useful.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Eric Rasmussen
This is a bit of a tangent, but has anyone developed wiki software in
Haskell?

If anyone is working on this or interested in working on it, I'd like to
help. I've built simple wiki applications with Python web frameworks and
have been looking for a good project to start learning one of the Haskell
web application frameworks. Eventually it'd be nice to proudly advertise all
the prominent Haskell community pages as being powered by Haskell.

Thanks!
Eric


On Fri, Jun 3, 2011 at 12:50 PM, Greg Weber g...@gregweber.info wrote:

 I have been trying to make a few edits to the haskell wiki and find it an
 excruciating process when I press save and then have to wait a long time to
 see if the save will go through. I just clicked on the introduction page and
 it may have took an entire minute to load.

 Can we put at the top: this wiki written in php, not haskell!

 Seriously though, the wiki has performed poorly for a long time now. It
 gives a bad impression to newcomers and deters contributions. Can I (and
 others!) donate money so someone can make the wiki responsive?

 Thanks,
 Greg Weber

 ___
 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] haskellwiki slow/unresponsive

2011-06-03 Thread Christopher Done
On 3 June 2011 22:17, Eric Rasmussen ericrasmus...@gmail.com wrote:
 This is a bit of a tangent, but has anyone developed wiki software in
 Haskell?

They have[1][2], but there's always room for more.

[1]: http://hackage.haskell.org/package/gitit
[2]: http://hackage.haskell.org/package/Flippi

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Ivan Lazar Miljenovic
On 4 June 2011 06:17, Eric Rasmussen ericrasmus...@gmail.com wrote:
 This is a bit of a tangent, but has anyone developed wiki software in
 Haskell?

http://hackage.haskell.org/package/gitit

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Judah Jacobson
Hi John,

You should be able to install the Apple Developer Tools directly from
one of the software installation DVDs that come with the Mac.  If
you're not downloading the tools from online, you shouldn't need to
register.

Best,
-Judah

On Fri, Jun 3, 2011 at 1:03 PM, John D. Ramsdell ramsde...@gmail.com wrote:
 I rarely use a Mac because it is too cute, but I bought one for my
 wife.  I'd like to install GHC on her Mac just to test Haskell
 Platform and cabal install.  (I rarely use Windows too, but testing
 GHC  cabal install is completely painless.)   To do a quick test, do
 I really have to register as an Apple developer, or is there a way to
 test the platform anonymously?

 Someone who some times worries about privacy,

 John

 ___
 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] How to install GhC on a Mac without registering?

2011-06-03 Thread Daniel Peebles
I thought Apple had stopped bundling the dev tools with installation DVDs?

On Fri, Jun 3, 2011 at 4:32 PM, Judah Jacobson judah.jacob...@gmail.comwrote:

 Hi John,

 You should be able to install the Apple Developer Tools directly from
 one of the software installation DVDs that come with the Mac.  If
 you're not downloading the tools from online, you shouldn't need to
 register.

 Best,
 -Judah

 On Fri, Jun 3, 2011 at 1:03 PM, John D. Ramsdell ramsde...@gmail.com
 wrote:
  I rarely use a Mac because it is too cute, but I bought one for my
  wife.  I'd like to install GHC on her Mac just to test Haskell
  Platform and cabal install.  (I rarely use Windows too, but testing
  GHC  cabal install is completely painless.)   To do a quick test, do
  I really have to register as an Apple developer, or is there a way to
  test the platform anonymously?
 
  Someone who some times worries about privacy,
 
  John
 
  ___
  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

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Henning Thielemann
Malcolm Wallace schrieb:
 I tried gnuplot: 

 Demo.hs:25:18:
 Could not find module `Paths_gnuplot':
   Use -v to see a list of the files searched for.
 Failed, modules loaded: none.
 Prelude Graphics.Gnuplot.Simple


 Where to get `Paths_gnuplot': module?
 
 $ cd gnuplot-0.4.2
 $ cabal install # this generates the Paths_gnuplot module
 $ ghci

Yes, you must install the package before loading Demo into GHCi, since
the package contains a data file that the Demo wants to load.

Currently I am trying to interface to gnuplot's histogram feature.

You may also to subscribe to
   http://projects.haskell.org/cgi-bin/mailman/listinfo/gnuplot


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Dmitri O.Kondratiev
On Sat, Jun 4, 2011 at 12:55 AM, Henning Thielemann 
schlepp...@henning-thielemann.de wrote:

 Malcolm Wallace schrieb:
  I tried gnuplot:
 
  Demo.hs:25:18:
  Could not find module `Paths_gnuplot':
Use -v to see a list of the files searched for.
  Failed, modules loaded: none.
  Prelude Graphics.Gnuplot.Simple
 
 
  Where to get `Paths_gnuplot': module?
 
  $ cd gnuplot-0.4.2
  $ cabal install # this generates the Paths_gnuplot module
  $ ghci

 Yes, you must install the package before loading Demo into GHCi, since
 the package contains a data file that the Demo wants to load.

 Currently I am trying to interface to gnuplot's histogram feature.

 You may also to subscribe to
   http://projects.haskell.org/cgi-bin/mailman/listinfo/gnuplot


Thanks!
So, if I got this right,  I should run:
'cabal install -fbuildExamples gnuplot'
from gnuplot source root folder?

Yet first I need to build gnupolt for MacOSX and Win32 that I both use. Ok,
I'll give it a try...
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Nathan Howell
XCode 4 is for sale in the App Store for $5. You do need an account, but not
a developer account... so it may be a bit more palatable.

On Fri, Jun 3, 2011 at 1:03 PM, John D. Ramsdell ramsde...@gmail.comwrote:

 I rarely use a Mac because it is too cute, but I bought one for my
 wife.  I'd like to install GHC on her Mac just to test Haskell
 Platform and cabal install.  (I rarely use Windows too, but testing
 GHC  cabal install is completely painless.)   To do a quick test, do
 I really have to register as an Apple developer, or is there a way to
 test the platform anonymously?

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Ivan Lazar Miljenovic
On 4 June 2011 07:11, Dmitri O.Kondratiev doko...@gmail.com wrote:
 So, if I got this right,  I should run:
 'cabal install -fbuildExamples gnuplot'
 from gnuplot source root folder?

You can either get the gnuplot tarball from Hackage, unpack it, and
then within the directory do cabal install -fbuildExamples (assuming
you want the examples).  Or else you can just do cabal install
-fbuildExamples gnuplot from anywhere and cabal-install will download
it, unpack it, build it, install it and then remove the unpacked
tarball.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Gwern Branwen
On Fri, Jun 3, 2011 at 4:17 PM, Eric Rasmussen ericrasmus...@gmail.com wrote:
 This is a bit of a tangent, but has anyone developed wiki software in
 Haskell?

Gitit is the most developed one, and it's been suggested in the past
that hawiki move over. It's not a good idea for a couple reasons,
which I've said before but I'll repeat here:

1. Performance; there have been major issues with the Darcs backend,
though mostly resolved, and we don't know how well the Git backend
would scale either. Gitit has mostly been used with single-users (how
I use it) or projects with light traffic (wiki.darcs.net). I don't
know why hawiki is slow, but whatever it is is probably either
hardware or configuration related - MediaWiki after all powers one of
the most popular websites in the world.
2. Security; there have been big holes in Gitit. Some of it is simple
immaturity, some of it due to the DVCS backends. Where there is one
hole, there are probably more - if there aren't holes in the Gitit
code proper, there probably are some in Happstack. There's no reason
to think there aren't: security is extremely hard. And in that
respect, Mediawiki is simply much more battle-tested. (Most popular
websites in the world, again, and one that particularly invites abuse
and attack.)
3. The existing hawiki content is Mediawiki centric, relying on
templates and MW syntax etc. Templates alone would have to be
implemented somehow, and Pandoc's MW parser is, last I heard, pretty
limited.

Gitit is great for what it is, and I like using it - but it's not
something I would rely on for anything vital, and especially not for
something which might be attacked. (This isn't paranoia; I deal with
spammers every day on hawiki, and c.h.o was rooted recently enough
that the memory should still be fresh in our collective minds.)

-- 
gwern
http://www.gwern.net

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Eric Rasmussen
Those are definitely valid concerns. Has anyone made a wiki-like site with
Yesod? I hadn't heard of Yesod until I joined this mailing list, but I've
seen quite a bit of buzz around it since then. If a large enough chunk of
the community is backing a framework and focusing on making it secure and
reliable, then it should be possible to build applications with it (wikis,
blogs, etc.) that draw on the framework's strength and security. You may
still have security issues, but if they're continually addressed and
maintained at the framework level it benefits everyone building applications
on top of that framework. I'm still relatively new to the Haskell community
so I apologize if much of this has been addressed before!


On Fri, Jun 3, 2011 at 3:11 PM, Gwern Branwen gwe...@gmail.com wrote:

 On Fri, Jun 3, 2011 at 4:17 PM, Eric Rasmussen ericrasmus...@gmail.com
 wrote:
  This is a bit of a tangent, but has anyone developed wiki software in
  Haskell?

 Gitit is the most developed one, and it's been suggested in the past
 that hawiki move over. It's not a good idea for a couple reasons,
 which I've said before but I'll repeat here:

 1. Performance; there have been major issues with the Darcs backend,
 though mostly resolved, and we don't know how well the Git backend
 would scale either. Gitit has mostly been used with single-users (how
 I use it) or projects with light traffic (wiki.darcs.net). I don't
 know why hawiki is slow, but whatever it is is probably either
 hardware or configuration related - MediaWiki after all powers one of
 the most popular websites in the world.
 2. Security; there have been big holes in Gitit. Some of it is simple
 immaturity, some of it due to the DVCS backends. Where there is one
 hole, there are probably more - if there aren't holes in the Gitit
 code proper, there probably are some in Happstack. There's no reason
 to think there aren't: security is extremely hard. And in that
 respect, Mediawiki is simply much more battle-tested. (Most popular
 websites in the world, again, and one that particularly invites abuse
 and attack.)
 3. The existing hawiki content is Mediawiki centric, relying on
 templates and MW syntax etc. Templates alone would have to be
 implemented somehow, and Pandoc's MW parser is, last I heard, pretty
 limited.

 Gitit is great for what it is, and I like using it - but it's not
 something I would rely on for anything vital, and especially not for
 something which might be attacked. (This isn't paranoia; I deal with
 spammers every day on hawiki, and c.h.o was rooted recently enough
 that the memory should still be fresh in our collective minds.)

 --
 gwern
 http://www.gwern.net

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Problem with linker

2011-06-03 Thread Alejandro Serrano Mena
Hi,
I'm trying to use Hoogle as a library in my Summer of Code project. But when
I try to compile using Cabal, I get the following error:

Linking dist/build/scion-browser/scion-browser ...
/home/serras/.cabal/lib/hoogle-4.2.4/ghc-7.0.2/libHShoogle-4.2.4.a(Serialise.o):
In function `s1ePR_info':
(.text+0x2015): undefined reference to
`hooglezm4zi2zi4_Pathszuhoogle_version1_closure'
/home/serras/.cabal/lib/hoogle-4.2.4/ghc-7.0.2/libHShoogle-4.2.4.a(Serialise.o):
In function `s1f8a_info':
(.text+0x338f): undefined reference to
`__stginit_hooglezm4zi2zi4_Pathszuhoogle_'

I've been looking for some information and it seems to be related with the
fact that Hoogle first builds a library and then build an executable using
the library, but all files get recompiled in that second pass.

Is there any way to workaround this problem?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Problem with linker

2011-06-03 Thread Clint Moore

On Sat, Jun 04, 2011 at 01:17:03AM +0200, Alejandro Serrano Mena wrote:
 Hi,
 I'm trying to use Hoogle as a library in my Summer of Code project. But when
 I try to compile using Cabal, I get the following error:
 
 Linking dist/build/scion-browser/scion-browser ...
 /home/serras/.cabal/lib/hoogle-4.2.4/ghc-7.0.2/libHShoogle-4.2.4.a(Serialise.o):
 In function `s1ePR_info':
 (.text+0x2015): undefined reference to
 `hooglezm4zi2zi4_Pathszuhoogle_version1_closure'
 /home/serras/.cabal/lib/hoogle-4.2.4/ghc-7.0.2/libHShoogle-4.2.4.a(Serialise.o):
 In function `s1f8a_info':
 (.text+0x338f): undefined reference to
 `__stginit_hooglezm4zi2zi4_Pathszuhoogle_'
 
 I've been looking for some information and it seems to be related with the
 fact that Hoogle first builds a library and then build an executable using
 the library, but all files get recompiled in that second pass.
 
 Is there any way to workaround this problem?

Does 'ghc-pkg check' report any problems?


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Problem with linker

2011-06-03 Thread Rogan Creswick
On Fri, Jun 3, 2011 at 4:17 PM, Alejandro Serrano Mena
trup...@gmail.com wrote:

 I've been looking for some information and it seems to be related with the
 fact that Hoogle first builds a library and then build an executable using
 the library, but all files get recompiled in that second pass.
 Is there any way to workaround this problem?


Upgrading Cabal / cabal-install is a good place to start, if you're
not already using the 0.10's.  I also suggest using cabal-dev, since
issues like this can be caused by combinations of dependencies that
conflict.

There's a good chance that you just have a weird mix of compiled
libraries that don't all work together, and cabal isn't able/willing
to rebuild everything necessary to make all the things in your user
package db work together.

I very recently installed Hoogle locally, on a fresh system, so I'm
fairly confident it's still possible without too many headaches :).

--Rogan

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] *GROUP HUG*

2011-06-03 Thread Michael Xavier
I just wanted to echo this a bit. I'm a Ruby on Rails developer in my day
job. While I still enjoy ruby, I was very proud that my studies of Haskell
helped me identify a problem a week or so ago that would be much more
difficult to solve in an imperative language and benefits from laziness.
While the role of this tool will be limited compared to what I do day by
day, I can finally say that I'm using Haskell at work.

If anyone is curious, the project is essentially a service that determines
the optimum order for a comparison shopping engine.

On Thu, Jun 2, 2011 at 11:52 AM, Yves Parès limestr...@gmail.com wrote:

  Learning Haskell will pay off much less than learning PHP, if your goal
 is to find a job.

 Amen.

  I cannot agree with this for practical reasons.  I'm using Haskell for
  real world commercial applications, and I'm very productive with it.

 I wish so much I could say that... Out of curiosity, what are you using
 Haskell for?


 2011/6/2 Ertugrul Soeylemez e...@ertes.de

 Alberto G. Corona  agocor...@gmail.com wrote:

  Haskell is an academic asset as well as a fun asset.

 I cannot agree with this for practical reasons.  I'm using Haskell for
 real world commercial applications, and I'm very productive with it.

 There is however a variation of this statement, with which I could
 agree, namely:  Learning Haskell will pay off much less than learning
 PHP, if your goal is to find a job.  It takes a lot longer and there are
 a lot less companies in need of Haskell programmers.


 Greets,
 Ertugrul


 --
 nightmare = unsafePerformIO (getWrongWife = sex)
 http://ertes.de/



 ___
 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




-- 
Michael Xavier
http://www.michaelxavier.net
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Donn Cave
Quoth Daniel Peebles pumpkin...@gmail.com,
 I thought Apple had stopped bundling the dev tools with installation DVDs?

Do you have an install DVD with no Xcode on it?  I have it on a
10.6 DVD, when would this have happened (or stopped happening)?

Quoth Nathan Howell nathan.d.how...@gmail.com,

 XCode 4 is for sale in the App Store for $5. You do need an account, but not
 a developer account... so it may be a bit more palatable.

But you don't need Xcode 4, do you?  The Xcode 3 that comes with
the install DVD will work fine!

The text on the GHC download page should provide abundant clues to
the process and requirements.  I think it makes sense to believe
what the port maintainer says there, for starters anyway.

Donn

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe