🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.techniques.xtallography
Article #39

Re: Generating LARGE Cartesian Lattices?

#39
From: Jon
Date: Mon, 21 Oct 2002 09:24
31 lines
2700 bytes
nuberpaul@nandomail.com (Paul Nuber) wrote in message news:<46223b20.0210172119.334bb773@posting.google.com>...
> uncle Al wants it to work in windows, he may not have a fortran compiler.

g77 is available for windows, and is surprisingly good for the price. 

> It is more easy with python.  

The point was to provide something which a human with no in depth
knowledge of programming has a good chance of understanding. Since
fortran has been pretty stable since 1966, there's a better chance
that a mature scientist has at least seen it before. For the python
you posted, we needed to "import math", know about the range function,
have some notion of objects to handle the file and realise that the
line noise is a format statement. For the fortran you had to know to
how to compile (g77 myfile.f), execute and save the results (a.exe >
outputfile), and probably be aware of the implicit typing if you
wanted to change it. For both you needed some idea of a loop, either
"for" or "do" syntax. Both examples present their own problems for a
programming novice, so without wanting to start a religous war, I
don't understand why any one language is "more easy" than another. I
would be interested to seen an implementation using recursion instead
of loops, ideally in haskell, since I keep meaning to try and learn a
bit of it.

Cheers,

Jon

PS: Since fortran is usually at least 10 times faster than plain
python, I personally find that my development time for number
crunching applications is correspondingly reduced :)
Technical Details
Message-ID: <52fe159d.0210210124.583ebfc9@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <3DAC8E95.4E7ACFD1@hate.spam.net> <85160b48.0210151846.74eeb9f6@posting.google.com> <3DAD8AE7.59098CA4@hate.spam.net> <52fe159d.0210171148.380ede5a@posting.google.com> <3DAF2B5B.601E8D20@hate.spam.net> <46223b20.0210172119.334bb773@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f804b,b1027c29d7d8962b
X-Google-Attributes: gidf804b,public
X-Google-Thread: fcf0b,b1027c29d7d8962b
X-Google-Attributes: gidfcf0b,public
X-Google-ArrivalTime: 2002-10-21 02:24:24 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: wright@esrf.fr (Jon)
Newsgroups: sci.techniques.xtallography,bionet.xtallography
Subject: Re: Generating LARGE Cartesian Lattices?
Date: 21 Oct 2002 02:24:24 -0700
Organization: http://groups.google.com/
Lines: 31
Message-ID: <52fe159d.0210210124.583ebfc9@posting.google.com>
References: <3DAC8E95.4E7ACFD1@hate.spam.net> <85160b48.0210151846.74eeb9f6@posting.google.com> <3DAD8AE7.59098CA4@hate.spam.net> <52fe159d.0210171148.380ede5a@posting.google.com> <3DAF2B5B.601E8D20@hate.spam.net> <46223b20.0210172119.334bb773@posting.google.com>
NNTP-Posting-Host: 160.103.2.52
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1035192264 19154 127.0.0.1 (21 Oct 2002 09:24:24 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 21 Oct 2002 09:24:24 GMT