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, the Silver Bullet, and the Foot
- Date: Wed, 26 Nov 2008 08:54:03 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] STM, the Silver Bullet, and the Foot
- References: <491B961D.7030709@articlass.org> <20081113113655.GC2041@inferi.kami.home> <491C527B.3070001@articlass.org> <491CD2B8.8020605@bebear.net> <491CDADA.5040806@articlass.org> <491CDC68.3070209@bebear.net> <30ce84360811131806w295730ajacba6f96fe02f8ee@mail.gmail.com> <87vdunnm9f.fsf@xemacs.org> <20081125130423.GF5739@smtp.office.cynic.net> <87prkjixt7.fsf@xemacs.org>
- User-agent: Mutt/1.5.17 (2007-11-01)
On 2008-11-26 01:18 +0900 (Wed), Stephen J. Turnbull wrote: > Curt Sampson writes: > > > This differs significantly from modern LISP-like languages where when > > you say '(foo (a) (b))', and 'foo' happens to be 'and', it's specified > > that '(a)' must be evaluated before '(b)', and '(b)' must not evaluated > > if '(a)' evaluates to false. (Is 'foo' a macro with special evaluation > > order, as above? > > 'foo' is whatever it is. 'and's behavior means that it is a "special > form", neither a macro nor a function (it can be implemented as a > macro, since macros evaluate none of their arguments so that its > expansion can do so where necessary). Right. I'd not realized that 'special forms' were as special as they are, but my complaint remains, unless I'm misunderstanding things here: you need knowledge of the entire environment (closure) within which you're operating to know if arguments will be evaluated or not. Am I incorrect that in this example (no doubt with syntatical errors, but I think you'll get the gist of it) (let ((old-and and)) (let ((and (lambda (x y) (old-and x y)))) (and #f launch-missiles))) that the missiles will be launched, whereas in most contexts, "(and #f launch-missiles)" will not launch them? This is where Haskell shines; to a much greater degree than other languages, things like IO and STM use are propagated both down (when something in the environment above you has redefined things) and up (when you are doing something buried deep in a library) to a much greater degree than other languages. > > The advantage lies in Haskell, not in STM. > > I'll buy that. Caveat "or any pure functional language", of course. > Haskell just happens to be the (deservedly) popular one at the moment. I'm not sure it actually applies to all functional languages labeled as "pure," actually; whether these things would work the same way in Clean, I'm not sure. But in the general case, yes, this is an advantage of purity. 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, the Silver Bullet, and the Foot
- From: Stephen J. Turnbull
- References:
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Dave M G
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Mattia Dongili
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Dave M G
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Edward Middleton
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Dave M G
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Edward Middleton
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Ian Wells
- Re: [tlug] Just curious... how much impact does a kernel update make?
- From: Stephen J. Turnbull
- [tlug] STM, the Silver Bullet, and the Foot
- From: Curt Sampson
- [tlug] STM, the Silver Bullet, and the Foot
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Fibonacci and Netflix
- Next by Date: [tlug] [Announcement] About december bonenkai
- Previous by thread: [tlug] STM, the Silver Bullet, and the Foot
- Next by thread: Re: [tlug] STM, the Silver Bullet, and the Foot
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links