[Haskell-cafe] ANN: tskiplist-0.0.0

2010-11-24 Thread Peter Robinson
This package [1] provides an implementation of a skip list using STM. A skip list is a probabilistic data structure with Data.Map-like operations. In contrast to a balanced tree, a skip list does not need any (expensive) rebalancing, which makes it particularly suitable for concurrent programming.

Re: happstack-ixset internals/performance (was Re: [Haskell-cafe] Inverse of HaskellDB)

2010-10-02 Thread Peter Robinson
Hi, Thomas. Thanks Jeremy, I just wrote up my own little analysis (below) while you were responding.  I'll look for the kd-tree work; if I see discussion (and am stupid enough to heap more work onto my plate) then I might get involved. You can find the repository for the dynamic kd-tree

Re: [Haskell-cafe] Relaxing atomicity of STM transactions

2010-09-28 Thread Peter Robinson
On 28 September 2010 15:35, Tom Hawkins tomahawk...@gmail.com wrote: Has anyone in the STM community considered the ability to read a TVar, such that it would allow the transaction to complete even if the TVar was modified by another transaction? Maybe something like this: (Pasted from

Re: [Haskell-cafe] Harder than you'd think

2010-06-13 Thread Peter Robinson
On 13 June 2010 15:23, Andrew Coppin andrewcop...@btinternet.com wrote: Felipe Lessa wrote: On Sun, Jun 13, 2010 at 01:09:24PM +0100, Andrew Coppin wrote: Does anybody have a less-insane way of doing this? Did you take a look at happstack-ixset[1]? No. I'll take a look at it. (From

Re: [Haskell-cafe] Why is TChan GHC specific?

2010-05-14 Thread Peter Robinson
On 14 May 2010 00:10, Derek Elkins derek.a.elk...@gmail.com wrote: On Thu, May 13, 2010 at 10:49 AM, Edward Amsden eca7...@cs.rit.edu wrote: On Wed, May 12, 2010 at 3:29 PM, Peter Robinson thaldy...@gmail.com wrote: As far as I know, TChan needs the 'retry' combinator which requires GHC's RTS

Re: [Haskell-cafe] Why is TChan GHC specific?

2010-05-12 Thread Peter Robinson
As far as I know, TChan needs the 'retry' combinator which requires GHC's RTS. Same is true for TMVar, I think. Peter On 12 May 2010 21:15, Edward Amsden eca7...@cs.rit.edu wrote: I'm currently just getting into playing around with concurrency in haskell, primarily because I find STM

Re: [Haskell-cafe] Is XHT a good tool for parsing web pages?

2010-04-27 Thread Peter Robinson
On 27 April 2010 16:22, John Creighton johns2...@gmail.com wrote: Subject: Is XHT a good tool for parsing web pages? I looked a little bit at XHT and it seems very elegant for writing concise definitions of parsers by forms but I read that it fails if the XML isn't strict and I know a lot of

[Haskell-cafe] ANN: tbox-0.1.0: Transactional variables and data structures with IO hooks

2010-04-02 Thread Peter Robinson
This package [1] provides STM data structures with IO hooks. The basic building blocks are instances of class TBox. Such an instance is an STM variable that might contain a value of some type a. In contrast to a plain 'TVar (Maybe a)', a TBox has IO hooks that are executed transparently on writes

[Haskell-cafe] STM Skip list implementation

2010-03-17 Thread Peter Robinson
I've implemented a skip list that works in the STM monad. A skip list is a probabilistic data structure similar to a balanced tree. The main advantage of a skip list is that it doesn't require rebalancing, making it particularly suitable for concurrent programming. Here are the docs:

Re: [Haskell-cafe] STM Skip list implementation

2010-03-17 Thread Peter Robinson
Hi, Matthias. Interesting.  Your skip lists do not need re-balancing, but they do destructive updates.  I wonder which factor outweighs the other in practise. Hmm, I guess destructive updates cannot really be avoided no matter what data structure is used, since we're in the STM monad. Or do

Re: [Haskell-cafe] Cabal-install

2010-03-08 Thread Peter Robinson
On 8 March 2010 17:51, Andrew Coppin andrewcop...@btinternet.com wrote: Anyway, can anybody tell me how I can change the default settings so that I get profiling libraries built by default, and Haddock documentation built by default? (I'm on Windows, in case that makes a difference...) #

Re: [Haskell-cafe] cabal fun (not)

2010-02-06 Thread Peter Robinson
On 6 February 2010 03:33, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: If you upgrade a library, it will break all other libraries that depend upon it.  ghc-pkg list will tell you which libraries are broken and need to be rebuilt. I think you mean ghc-pkg check. Peter

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-02-01 Thread Peter Robinson
I use http://www.bytemark.co.uk/ and I'm quite satisfied. They offer Ubuntu, Debian and CentOS. Peter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Cabal - how do I remove a package?

2009-10-06 Thread Peter Robinson
2009/10/6 Paul Moore p.f.mo...@gmail.com: 2009/10/6 John Van Enk vane...@gmail.com: Are you actually trying to remove the bits from the hard drive, or is that something to fix a different problem you're having. If it's a different problem, perhaps you could ask that as well? Yes, I'm trying

[Haskell-cafe] High memory consumption of print

2009-09-08 Thread Peter Robinson
The following toy program consumes either 25MB or 70MB, depending on whether the line print done is a comment or code. (Using only 1 OS thread increases memory consumption to 130MB when the print is active vs 25MB when inactive.) What am I doing wrong? - module Main where

Re: [Haskell-cafe] Uninstall a cabal package?

2009-08-28 Thread Peter Robinson
As far as I know the current stable release of Cabal doesn't keep track of installed packages, so you can only # ghc-pkg unregister pkg-id and then manually delete the files. Peter 2009/8/28 Colin Paul Adams co...@colina.demon.co.uk: What is the procedure to uninstall a cabal package? --

Re: [Haskell-cafe] SQL Database in Haskell?

2009-08-06 Thread Peter Robinson
2009/8/6 Don Stewart d...@galois.com: For pure Haskell persistance, there is    TCache: A Transactional data cache with configurable persistence        http://hackage.haskell.org/package/TCache    io-storage: A key-value store in the IO monad.        

Re: [Haskell-cafe] Haskell on a VPS

2009-07-23 Thread Peter Robinson
Has any one used a service similar to (or equivalent to) Slicehost or Linode to run Haskell network applications? Since last year I've been using a VM at bytemark.co.uk as a remote development/testing machine. Never had a problem deploying Haskell webapps there, although compiling large

[Haskell-cafe] catchSTM and asynchronous exceptions

2009-07-18 Thread Peter Robinson
I couldn't find any information on whether catchSTM catches asynchronous exceptions so I tried to run the following: import Control.Concurrent.STM import Control.Concurrent import Control.Exception import Prelude hiding (catch) test = do tid - myThreadId forkIO (threadDelay 500

Re: [Haskell-cafe] Re: [Haskell] ANN: persistent-map-0.0.0

2009-04-20 Thread Peter Robinson
2009/4/20 Alberto G. Corona agocor...@gmail.com: Interesting. It seems similar to TCache. It is indeed. I particularly like the feature of TCache that you can fill partially initialized values from the cache so I've added a similar high-level interface for TMap (module TStorage). Cheers, Peter

Re: [Haskell-cafe] STM orElse semantics

2009-03-25 Thread Peter Robinson
Compose two alternative STM actions (GHC only). If the first action completes without retrying then it forms the result of the orElse. Otherwise, if the first action retries, then the second action is tried in its place. If both actions retry then the orElse as a whole retries. What is the

Re: [Haskell-cafe] A typeclass for Data.Map etc?

2009-02-19 Thread Peter Robinson
2009/2/19 Eugene Kirpichov ekirpic...@gmail.com: Is there a typeclass for mappings with a Data.Map-like interface, with stuff like: empty, insert, insertWithKey, unionWith etc. ? Maybe this is of interest: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/gmap Peter

[Haskell-cafe] ANN: STM-IO-Hooks-0.0.1

2009-01-22 Thread Peter Robinson
This library provides an STM monad with commit and retry IO hooks. A retry-action is run (once) in a separate thread if the transaction retries, while commit-actions are executed iff the transaction commits. The code is based on the AdvSTM Monad [1] by Chris Kuklewicz, but in addition also ensures

Re: [Haskell-cafe] runghc Setup.hs doitall

2009-01-18 Thread Peter Robinson
2009/1/18 Sebastian Sylvan sebastian.syl...@gmail.com: Is there some sort of bundle that you can use to install cabal-install easily? Newer versions contain a bootstrap.sh script that works just fine for me. Cheers, Peter ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Portability of MonadError

2009-01-05 Thread Peter Robinson
On Mon, Jan 5, 2009 at 2:13 PM, Luke Palmer lrpal...@gmail.com wrote: On Mon, Jan 5, 2009 at 1:48 PM, Peter Robinson thaldy...@gmail.com wrote: Hello, One thing that's been bothering me about MonadError monads is the non-portability of code that uses a custom Error type. Meaning, if I

Re: [Haskell-cafe] Learning Haskell

2005-12-05 Thread Peter Robinson
On Monday 05 December 2005 23:26, Jimmie Houchin wrote: I do not have a strong math background. Is lack of strong math background a major hindrance to learning Haskell? While it's certainly helpful to have some basic knowledge of lambda calculus, type theory, etc. most concepts in Haskell can

Re: [Haskell-cafe] Practical introduction to monads

2005-08-02 Thread Peter Robinson
On Tuesday 02 August 2005 22:03, Paul Moore wrote: FWIW, I've read (among other papers) Why Functional Programming Matters, A Gentle Introduction to Haskell, Hal Daume's Yet Another Haskell Tutorial, Simon Peyton Jones' Tackling the Awkward Squad, and Haskell: The Craft of Functional

Re: JVM bridge

2004-01-06 Thread Peter Robinson
I've been trying the JVM - Haskell bridge a few days ago and got the same errors. However this fixed it: The make install procedure of the jvm-bridge package adds the package information of javavm to /opt/ghc/lib/ghc-6.2/package.conf. After removing those options (-rpath,...) from extra_ld_opts

Re: Haskellsupport in KDevelop

2003-10-04 Thread Peter Robinson
On Saturday 04 October 2003 20:20, Wolfgang Jeltsch wrote: Great! I will probably use it since I like Haskell and KDE very much. By the way, wasn't KDevelop only for developing in C and C++? The current stable Release 2.1.* is a C/C++ only IDE but the upcoming 3.0 will probably support: Ada,

Standalone Parser for Haskell Grammar

2003-09-10 Thread Peter Robinson
Hello! Does anyone know a reasonable standalone Parser for the Haskell Grammar? The only one i found was hsparser but it's still an alpha release and i get a few errors during compiling. I know i could write one using Happy but i don't want to reinvent the wheel... regards Peter

Re: Yet Another Monad Tutorial

2003-08-12 Thread Peter Robinson
Definitely the most comprehensive monads tutorial on the net. Great stuff! Thanks, Peter On Tuesday 12 August 2003 11:40, Jeff Newbern wrote: Hello everyone, Due to the scarcity of monad tutorials available (:^), I have written one of my own. I hope that this one is both more gentle and