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 08:36:18 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] STM (was: Re: work times & accommodation @tokyo)
- References: <20080728114336.GA18114@lucky.cynic.net> <d8fcc0800807280554m1db06f1aq3a58205b1f9861ea@mail.gmail.com> <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>
- User-agent: Mutt/1.5.17 (2007-11-01)
On 2008-07-30 03:46 +0900 (Wed), Stephen J. Turnbull wrote: > Curt Sampson writes: > > > The point is, the compiler's type checker in Java is not poweful enough > > to tell you when you've used your library incorrectly, > > That's a pretty strong assertion. Indeed, it is. But anybody here is free to prove me wrong by showing me an example of how this might be done. > I assume that Java has some kind of templating facility. I think if you're not even sure about that, you might want to learn a bit more about Java before you start disputing my claim. But I'm easy; let's replace Java with another language of your choice, if you like, and restart the argument. > So all you need to do is define a TVar template > class that does not derive from the underlying class, but contains a > private (reference to an ?) instance of it. For the locking, I guess > resource acquisition as initialization would be powerful enough. This would be the argument from arm-waving? :-) And how do you set things up so that you can combine the usage of two or more of these classes and they'll do the right thing or the compiler will tell you that they won't? Section 2.1 of the Beautiful Concurrency paper[1] is a good description of a problem I believe Java cannot type check. [1]: http://research.microsoft.com/~simonpj/Papers/stm/beautiful.pdf > Of course you still need to decide which variables need > > > and thus you're still open to the bugs that the Haskell compiler > > will prevent you from inserting when you start combining smaller > > operations. > > I don't see how. Ah, and now the argument from lack of understanding. :-) The really short explanation is that Haskell forces you to distinguish pure and impure operations, and type your impure operations. The longer explanation would require some study on your part, most likely, and this is not the place for a long tutorial paper on the Haskell type system, monads, and so on anyway. Let's just say right now you're in the situation where someone not familiar with OO is saying, "I don't see what it offers," but worse, since this is based on some formally proven mathmatical theories. But there are lots of resources on the Internet to help you learn just why this is the case; haskell.org is one good place to start. 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: 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
Home | Main Index | Thread Index
- Prev by Date: Re: work times & accommodation @tokyo, WAS: Re: [tlug] Embedded linux dev wanting to find work in Tokyo.. Seeking advice.
- Next by Date: Re: work times & accommodation @tokyo, WAS: Re: [tlug] Embedded linux dev wanting to find work in Tokyo.. Seeking advice.
- 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