CCL: W:CCL: Cleaning up dusty deck fortran and converting to C/C++
- From: "Perry E. Metzger"
<perry|-|piermont.com>
- Subject: CCL: W:CCL: Cleaning up dusty deck fortran and converting
to C/C++
- Date: Tue, 27 Sep 2005 18:09:17 -0400
Sent to CCL by: "Perry E. Metzger" [perry|-|piermont.com]
--Replace strange characters with the "at" sign to recover email
address--.
"CCL" <owner-chemistry|-|ccl.net> writes:
>> Believe it or not, I'd actually say that Lisp is a pretty good choice,
>> especially the implementations with very good compilers for numerical
>> work like CMUCL, SBCL, and various commercial compilers like Allegro
>> Common Lisp. Lisp is very alien to non-computer science types, and
>
> Fine, but are those compilers quickly available for new
> architectures? Few computational scientists
> would want to limit their code to x86 architectures.
Yes. However, I am sad to say that at this point, only x86 and 64 bit
extended x86 make any difference. I hate the x86 architecture with a
burning passion beyond my ability to express, but the war is over. The
last holdout is PowerPC and it is falling behind on the speed curve
and it is going to fall behind further now that Motorola has spun out
their chip business and IBM has decided that it isn't worth their time
keeping up.
None the less, if you want a decent lisp compiler for PowerPC or other
architectures they are available.
>> However, many computational chemists try to "go cheap" on
learning
>> about their tools and picking good ones. That means the difference
>
> Indeed.
>
>> Yup, but if you know what you're doing it pays a dividend in the
>> end. There are algorithms you just can't express in Fortran cleanly. I
>
> I agree, but this is very hard to see if all you have ever used is Fortran.
Indeed. Trying to explain a lisp macro that produces an anonymous
closure to a Fortran programmer is like trying to explain a
power backup system for a cellphone tower to a cave man. There are
many basic concepts like "electricity", "telephone",
"radio",
"phone company", "blackout" all standing in the way.
>> In any case, I can't imagine writing most software without real data
>> structures. If you don't know why you want to be able to build clean
>> hash tables, priority queues, search trees, etc., then you don't know
>
> That's a nice illustration of the difficulties - I doubt many
> computational scientists know much about any of these data structures.
And those are the simple things. What happens when you have an
algorithm that would save you a lot of compute time but it involves a
complicated data structure to represent some abstract space over your
entities? I don't even know how to do that sort of thing without the
fundamentals of data structures and their associated algorithms firmly
implanted in your head.
Perry