https://hackage.haskell.org/package/concurrent-hashtable
This package implements a thread-safe (linearizable) hash table. The goal
is to keep the synchronization overhead as low as possible by using
fine-grained STM transactions. Lookups are non-blocking and are guaranteed
to perform only two
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.
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
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
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
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
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
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
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
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:
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
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...)
#
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
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
A new announcement, as the interface has changed quite a bit (e.g. 'onRetry' is
gone) and previous versions had a rare but annoying bug due to the
unpredictability of 'unsafeIOToSTM'.
From the package description:
-
This library provides an STM monad with commit and retry IO hooks. A
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
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
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?
--
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.
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
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
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
The persistent-map package [1] provides a thread-safe (STM) frontend
for finite map types together with a backend interface for persistent
storage. The TMap data type is thread-safe, since all access functions
run inside an STM monad . Any type that is an instance of
Data.Edison.Assoc.FiniteMapX
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
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
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
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
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
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
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
On Friday 18 June 2004 15:39, Donald Bruce Stewart wrote:
bet:
Which brings us around to the question that opened this thread, is
there any way to install the unregistered build?
Yes. Download and build the src, and 'make install' :-)
For some platforms unregistered builds are even being
On Thursday 17 June 2004 15:01, Gerd M wrote:
Unfortunately I've only got one gcc version installed at the moment and I'm
not sure if installing another version won't break something... Maybe I
will give it another try later this week, thanks for your help so far!
Regards
Gerd
Since I'm
Well the build finally succeeded but unfortunately I immediately get a
segfault when running ghc/ghci.
I've attached the output of
# strace -o log ./ghc
Cheers
Peter
On Thursday 17 June 2004 15:25, Simon Marlow wrote:
On 17 June 2004 14:08, Peter Robinson wrote
On Thursday 17 June 2004 12:39, Johannes Waldmann wrote:
while test body = do
(cond,res) - body
if (test cond) then do rs - while test body
return (res:rs)
else return [res]
do you need the
On Monday 09 February 2004 16:19, Gour wrote:
Well the plugin _is_ included in the 3.0 release
(libkdevhaskellsupport.*) but it is deactivated due to stability reasons.
How it can be activated?
It can be activated by modifying a few Makefiles but i wouldn't try it at the
moment since this
On Saturday 07 February 2004 20:46, Gour wrote:
When asked on KDevelop forum, I got the reply that Haskell plugin is not in
active development, but it looks like you are still behind it, isn't it?
The last update was made in September and I didn't have much time to work on
it since then but I
Hi,
my intention when writing the Haskell Plugin for KDevelop was mainly to
increase the language's publicity, since KDevelop 3.0 is the most popular and
mature IDE for Linux/Unix.
I know that most of you prefer to use your favourite editor but the real
audience are the
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
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,
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
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
41 matches
Mail list logo