Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-03-18 Thread Ferenc Wagner
Eugene Kirpichov ekirpic...@gmail.com writes: 2011/3/17 Ferenc Wagner wf...@niif.hu: Eugene Kirpichov ekirpic...@gmail.com writes: 2010/12/17 Henning Thielemann schlepp...@henning-thielemann.de: Eugene Kirpichov schrieb: I've published a large presentation about two Haskell-based tools

Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-03-17 Thread Ferenc Wagner
Eugene Kirpichov ekirpic...@gmail.com writes: 2010/12/17 Henning Thielemann schlepp...@henning-thielemann.de: Eugene Kirpichov schrieb: I've published a large presentation about two Haskell-based tools of mine - tplot and splot. Their motto is visualize system behavior from logs with a

Re: [Haskell-cafe] HDF5 binding

2011-03-04 Thread Ferenc Wagner
James Andrew Cook mo...@deepbondi.net writes: What an interesting coincidence, that makes at least three of us. Apparently it's an idea whose time has come. Mine is also an incomplete low-level binding but is currently under semi-active development and I aim to make it cover the entire

[Haskell-cafe] HDF5 binding (was: why is ghci trying to load hsc file ??)

2011-03-02 Thread Ferenc Wagner
bri...@aracnet.com writes: I worked out a small hdf5 binding using cabal and bindings-DSL and sqlite3 as my example. Hi, I just wanted to add that I also started an HDF5 binding recently (using hsc2hs only). It does more than enough for me ATM, so I don't develop it actively, but if you want

[Haskell-cafe] Re: [darcs-users] poll: how can we help you contribute to darcs?

2008-08-04 Thread Ferenc Wagner
wren ng thornton [EMAIL PROTECTED] writes: [Bug trackers are an excellent source of tasks for active developers to use so things don't get lost, but they're awful for new developers. For someone just joining the project it's rarely clear how important a task is, how hard, or how far

[Haskell-cafe] Re: problem in using wash

2008-03-04 Thread Ferenc Wagner
Vikrant [EMAIL PROTECTED] writes: I was trying to use wash to learn it. I am using ubuntu and I have ghc6.6.1 installed on my system. I have also installed the package libghc6-wash-dev but in my code when i write import WASH.CGI it gives me following error firstCGI.hs:5:7: Could

[Haskell-cafe] Re: Matlab/BLAS/LAPack

2007-04-03 Thread Ferenc Wagner
Alexander McPhail [EMAIL PROTECTED] writes: I am embarking on a project to bind to CBLAS and CLAPack. Do you know of http://www.cs.utah.edu/~hal/HBlas/index.html ? -- Feri. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: Lazy IO and closing of file handles

2007-03-20 Thread Ferenc Wagner
Matthew Brecknell [EMAIL PROTECTED] writes: enumLines :: (a - String - Either a a) - a - FilePath - IO a enumLines iter accum filename = do h - openFile filename ReadMode flip fix accum $ \iterate accum - do try_line - try (hGetLine h) case try_line of Left e -

[Haskell-cafe] Re: IO in lists

2007-01-19 Thread Ferenc Wagner
Magnus Therning [EMAIL PROTECTED] writes: Thanks for all the excellent answers to my original question. Somehow it feels like I advanced and got one level closer to a black belt in Haskell due to this; I've now legitimately used a function from System.IO.Unsafe :-) I tried to document it

[Haskell-cafe] exception output

2006-12-19 Thread Ferenc Wagner
Hi, the following program main = readFile nonexistent = putStr is meant to produce an exception. When compiled with GHC 6.4, it outputs the *** Exception... string to stderr, which makes me happy. However, when run with runghc6 or runhugs, the message is sent to stdout, which makes me sad. Is

[Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Ferenc Wagner
Bulat Ziganshin [EMAIL PROTECTED] writes: of remaining, Ubuntu has widest support here while SuSe is favourite of my friend. one thing that i like in suse is that it uses the same RPMs as RedHat and RPMs is widely used for packaging software available via internet. Is Ubuntu supports RPMs

[Haskell-cafe] Re: ldap-haskell questions

2006-07-26 Thread Ferenc Wagner
Donn Cave [EMAIL PROTECTED] writes: Now that I look at what I did with ldap_set_option, I recall that s actually a little difficult to assign a type, since the third parameter is sometimes Int, Enum, TimeVal, String, and LDAP_OPT_* values overlap in a way that doesn't really say enum to me.

[Haskell-cafe] Re: ldap-haskell questions

2006-07-15 Thread Ferenc Wagner
Donn Cave [EMAIL PROTECTED] writes: On Thu, 13 Jul 2006, Ferenc Wagner wrote: ... Second, I find no trace of SSL/TLS routines. Is that really left out, or do I overlook something? OpenLDAP supports an option LDAP_OPT_X_TLS -- ldap_set_option Nothing LDAP_OPT_X_TLS

[Haskell-cafe] can't WashNGo (abstract tables)

2006-07-14 Thread Ferenc Wagner
Hi, trying to put WashNGo-2.9 to a nontrivial prototyping job gave some very compelling results so far, but also got me stumped on occasions. I'd be grateful for some guidance on the following points, concerning abstract tables mainly. * selectionDisplay: looks like displayFun (fourth arg)

[Haskell-cafe] ldap-haskell questions

2006-07-13 Thread Ferenc Wagner
Hi, to start off, I'm using ldap-haskell straight from its darcs repo under GHC-6.4.1, and it works. Just not quite like I want. First, I can't make a static compile: $ ghc --make prog.hs -o prog works without a warning, while $ ghc --make prog.hs -o prog -optl -static [...]

[Haskell-cafe] DBDirect trouble

2006-06-14 Thread Ferenc Wagner
Hi! Let me repeat my question from IRC here, too... I installed HaskellDB and all the necessary stuff (I hope) as local (not system-wide) packages: $ ghc-pkg list /usr/lib/ghc-6.4.1/package.conf: rts-1.0, base-1.0, haskell98-1.0, template-haskell-1.0, unix-1.0, Cabal-1.0, parsec-1.0,

[Haskell-cafe] LDIF output library

2006-05-30 Thread Ferenc Wagner
Hi, does anybody know of a library for writing LDIF files? If not, I may create one, and would be grateful for suggestions. Is it worth integrating with John Goerzen's LDAP binding, for example? -- Thanks, Feri. ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Coin changing algorithm

2005-07-14 Thread Ferenc Wagner
Mark Carroll [EMAIL PROTECTED] writes: On Wed, 13 Jul 2005, Dinh Tien Tuan Anh wrote: (snip) eg: m = 75, k = 5 = [50, 20, 5] [50, 20, 1,2,2] (snip) Is this problem suitable for functional programming language ? Oh, what fun. I like this sort of thing. My quick

[Haskell-cafe] Re: CGI module almost useless

2005-06-03 Thread Ferenc Wagner
John Goerzen [EMAIL PROTECTED] writes: On 2005-06-02, Ferenc Wagner [EMAIL PROTECTED] wrote: Yes, I also mailed upstream and got no response. But I'm using WASH under GHC 6.4 without any problems. Automatic preprocessor invocation is not supported in 6.4, but that style of coding didn't

[Haskell-cafe] Re: CGI module almost useless

2005-06-02 Thread Ferenc Wagner
John Goerzen [EMAIL PROTECTED] writes: On Wed, Jun 01, 2005 at 10:54:54AM -0700, Jeremy Shaw wrote: I have done all of those things in WASH. [...] From what I can tell, there are two problems with WASH: 1) Everything must be done the WASH way 2) WASH is mostly broken with GHC 6.4 Let

[Haskell-cafe] Re: I/O interface

2005-01-12 Thread Ferenc Wagner
Ben Rudiak-Gould [EMAIL PROTECTED] writes: Marcin 'Qrczak' Kowalczyk wrote: Ben Rudiak-Gould [EMAIL PROTECTED] writes: fileRead can be implemented in terms of OS primitives, Only if they already support reading from a fixed offset (like pread). I'm not sure if we can rely on something like

[Haskell-cafe] Re: Parse text difficulty

2004-12-09 Thread Ferenc Wagner
Douglas Bromley [EMAIL PROTECTED] writes: I've show(n) a particular data type and it shows up as: [([2,6],British),([1],Charles),([1,8],Clarke),([2,6],Council),([2],Edinburgh),([1],Education),([4],Increasingly)] What I want to do is format that nicely into a table. Which would give:

[Haskell-cafe] Re: Global Variables and IO initializers

2004-11-09 Thread Ferenc Wagner
Henning Thielemann [EMAIL PROTECTED] writes: On Mon, 8 Nov 2004, Keean Schupke wrote: If you tell me the library you wish to use I may be able to suggest a better alternative. I'm using FFTW and PLPlot (but not with Haskell), both uses internal states and thus must be considered as ill

[Haskell-cafe] Re: Tutorial about low-level I/O in Haskell

2004-10-11 Thread Ferenc Wagner
Peter Simons [EMAIL PROTECTED] writes: http://cryp.to/blockio/docs/tutorial.html Pretty neat. Wouldn't it be a nice addition to the Tutorials section on the Haskell Bookshelf? Note: as I gather, GHC's lists are not doubly linked. -- Feri. ___

[Haskell-cafe] Re: Newbie questions

2004-07-01 Thread Ferenc Wagner
Crypt Master [EMAIL PROTECTED] writes: -- gaSolutionSpace :: [a] - [a] gaSolutionSpace x = x : gaSolutionSpace (evolvepopulation x) Stop deceiving yourself until it's too late. :) Why did you comment out the type annotation? -- Feri. ___

[Haskell-cafe] Re: Syntax for modifying nested product types

2004-04-23 Thread Ferenc Wagner
Graham Klyne [EMAIL PROTECTED] writes: At 18:18 22/04/04 -0400, Mark Carroll wrote: I have data objects where each component is a labelled field through which I access or modify it. Wading into the labelled field debate... I have found that using the labelled field update syntax can lead

Re: [Haskell-cafe] Dividing integers?

2004-03-18 Thread Ferenc Wagner
Matias Hernandez [EMAIL PROTECTED] writes: I mean, apparently / is not defined for integers but I don't know how to cast the result of the length function into a Double... Prelude (length [1,2]) / 3 Prelude fromIntegral (length [1,2])/3 0.667 Prelude 2 / 3 0.

Re: hSetBuffering stdin NoBuffering messes up terminal

2003-10-17 Thread Ferenc Wagner
Glynn Clements [EMAIL PROTECTED] writes: David Roundy wrote: On my terminal (aterm), calling hSetBuffering stdin NoBuffering within my program messes up the terminal settings somehow [...] Disabling buffering with hSetBuffering not only disables the user-space buffering (analogous to

Re: Graphics output from Haskell as eps

2003-02-17 Thread Ferenc Wagner
Hi Sarah, if Haskell - MetaPost - Postscript is good for you, have a look at FMP. It's somewhat old and doesn't cover the entire MetaPost language, but works for me. Feri. ___ Haskell-Cafe

Re: big rationals question

2003-02-16 Thread Ferenc Wagner
Damien R. Sullivan [EMAIL PROTECTED] writes: can I get Haskell to actually do that division itself? You can use the function fromRational :: Fractional a = Rational - a Feri. ___ Haskell-Cafe mailing list [EMAIL

Re: Beginner help

2003-02-11 Thread Ferenc Wagner
JJ [EMAIL PROTECTED] writes: From my perspective, the learning curve for Haskell seems to be near vertical. I also found it very steep. Keep on, read the Gentle Introduction, and start coding. Read the Haskell list, you'll understand more and more. Then read the Report... Good luck!

Ambiguous defaults

2003-01-02 Thread Ferenc Wagner
Hello, What's the way to express the following: a compound object is generally made up of two components with identical type. For this common case I'd like to provide some default methods, which take the object apart, operate on the parts and put the results back together. In

Re: storing to a file

2002-11-14 Thread Ferenc Wagner
Johan Steunenberg [EMAIL PROTECTED] writes: how to store a Double, or any non-char, to a file. I can give you a general advice: store it in ASCII format via show, unless you have *VERY* strong reasons against it. Yes, it results in bigger files (but you can compress them), and slower (what

Rational sequence

2002-10-22 Thread Ferenc Wagner
With GHC-5.02.2, I do $ ghci Prelude :m Ratio Ratio [1%2..10%2] [1 % 2,3 % 2,5 % 2,7 % 2,9 % 2,11 % 2] The question is, why is there 11%2 at the end of the list? It's inconsistent with the (good) rules for Integer, since Ratio [1,3..10] [1,3,5,7,9] Is this intentional?

Re: Rational sequence

2002-10-22 Thread Ferenc Wagner
Simon Peyton-Jones [EMAIL PROTECTED] writes: The Report says that the Enum instance for Ratio uses the same rule as for Float/Double, Now I can see that the revised Report contains more about this than the one on haskell.org. But I still can't see the statement you cited above. Where should

Re: Graphics output

2002-10-08 Thread Ferenc Wagner
Gerhard Navratil [EMAIL PROTECTED] writes: I would like to write line graphics into a file (e.g. contour lines calculated by a Haskell function) and access the data from standard programs. For the output I need a Library. Why don't you output some ASCII numbers, and use another program