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: Wed, 30 Jul 2008 10:56:29 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- References: <20080728144249.GA26262@lucky.cynic.net> <d8fcc0800807280805g11e1165cg7252a6b9c9017771@mail.gmail.com> <20080728160250.GB26262@lucky.cynic.net> <d8fcc0800807280949y71d562a4lad5773cf142d3f11@mail.gmail.com> <20080729004756.GF26262@lucky.cynic.net> <87skttcco4.fsf@uwakimon.sk.tsukuba.ac.jp> <20080729093315.GJ16234@lucky.cynic.net> <87myk0cyud.fsf@uwakimon.sk.tsukuba.ac.jp> <20080729233618.GE5154@lucky.cynic.net> <87d4kwch9b.fsf@uwakimon.sk.tsukuba.ac.jp>
- User-agent: Mutt/1.5.17 (2007-11-01)
On 2008-07-30 10:06 +0900 (Wed), Stephen J. Turnbull wrote: > Make it a separate class, with private members for the value and the > log. I guess that this is the part I'm not clear on. The value is what? A list of TVars? So one object holds all TVars in the system? What if I have one TVar per bank account, as in section 2.1 of Beautiful Concurency (which I gave as an example in the message you just replied to)? If you could give me even a hand-waving implementation of a problem based on section 2.1 of the Beautiful Concurrency paper, that might help me understand better what you're getting at. E.g., how I might compose withdraw and deposit for a transfer, withdraw and deposit for overdraft protection, and how a transfer on an overdraft-protected account would work as compared to a non-overdraft-protected account. > > The really short explanation is that Haskell forces you to > > distinguish pure and impure operations, > > I don't think this is true for STM, since it's not a cut-and-dried > situation like with the IO monad. What's the difference? > > and type your impure operations. > Well, I can't be absolutely sure that Java can do this, but C++ will. Well, at least that moves C++ into the "it's theoretically possible" category. However, it's starting to sound as if "the C++ typechecker can do anything Haskell's can do" is like "6502 assembler can do anything that Java can do, because they're both Turing-complete." > I think you're underestimating how much I know about formal type > systems. Sorry about that. Perhaps this then is more about ease of use; the 6502 assembler guy arguing against the Java guy that his language is just as good. 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: Stephen J. Turnbull
- References:
- 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
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Curt Sampson
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Stephen J. Turnbull
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Curt Sampson
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Stephen J. Turnbull
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Curt Sampson
- Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- Next by Date: [tlug] Finding unrestricted internet access in 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