Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- Date: Mon, 28 Jul 2008 20:43:37 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- References: <873am1hlq5.fsf@uwakimon.sk.tsukuba.ac.jp> <20080724041853.GM2936@lucky.cynic.net> <87iquvyc7y.fsf@uwakimon.sk.tsukuba.ac.jp> <20080724112711.GB7891@lucky.cynic.net> <87fxpzx9mt.fsf@uwakimon.sk.tsukuba.ac.jp> <20080727120405.752622d9.attila@kinali.ch> <20080727223043.GK4228@pragmatic.cynic.net> <d8fcc0800807280002v3f14071dk3b2c9e47ac3269c8@mail.gmail.com> <20080728080316.GA16586@lucky.cynic.net> <d8fcc0800807280309j3d410857w9b9e5fdd3462316a@mail.gmail.com>
- User-agent: Mutt/1.5.17 (2007-11-01)
On 2008-07-28 03:09 -0700 (Mon), Josh Glover wrote: > 2008/7/28 Curt Sampson <cjs@example.com>: > > > But let's try this on for size: what is it about Haskell's STM interface > > definition that might make it not work where "traditional" composition > > of locks, as in most threaded Java applications I've seen, would work? > > The point is this: I read Attila's question as, "Has anyone on the > list direct experience with using STM? Does it work as advertised?" > Your answer sounds like, "No, but it should work." Well, I was thinking of the original question, which was, "how does it scale?" I've played with STM a bit, and it does work as advertised in stuff the size of the example in the paper. Are the locking primitives that STM relies on likely to fail? No more so than Java; this stuff is heavily used. I rely on it for mission-critical stuff. Is what STM adds to the locking primitives likely to fail? I don't see how; this is type system stuff. A TVar is basically just an MVar, as far as I can tell. As to how it scales, I fail to see how it couldn't scale far, far better than the alternative of working out all of the locking manually for every different composition of transactions. I did plenty of thread programming in Java way back when, and it's truly nasty stuff. I'm using threads regularly in Haskell right now, though my stuff is simple enough at the moment that MVars and Channels do everything I need. cjs -- Curt Sampson <cjs@example.com> +81 90 7737 2974 Mobile sites and software consulting: http://www.starling-software.com
- Follow-Ups:
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Josh Glover
- References:
- Re: work times & accommodation @tokyo, WAS: Re: [tlug] Embedded linux dev wanting to find work in Tokyo.. Seeking advice.
- From: Stephen J. Turnbull
- Re: work times & accommodation @tokyo, WAS: Re: [tlug] Embedded linux dev wanting to find work in Tokyo.. Seeking advice.
- From: Curt Sampson
- Re: work times & accommodation @tokyo, WAS: Re: [tlug] Embedded linux dev wanting to find work in Tokyo.. Seeking advice.
- From: Stephen J. Turnbull
- Re: work times & accommodation @tokyo, WAS: Re: [tlug] Embedded linux dev wanting to find work in Tokyo.. Seeking advice.
- From: Curt Sampson
- Re: work times & accommodation @tokyo, WAS: Re: [tlug] Embedded linux dev wanting to find work in Tokyo.. Seeking advice.
- From: Stephen J. Turnbull
- [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Attila Kinali
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Curt Sampson
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Josh Glover
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Curt Sampson
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- Next by Date: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- Previous by thread: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- Next by thread: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links