Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old February 4th 04, 01:57 PM
Peter O. Brackett
 
Posts: n/a
Default

Richard:

[snip]
This is a very clear and readable source. Good work. I am especially
impressed by your comment:
"All GO TO constructs have been removed (all 961 of them!) and
'spaghetti' code sections untangled as far as was possible to the
author."

How long did this take?

73's
Richard Clark, KB7QHC

[snip]

From Fortran to C, what a waste of coding time... and how many errors
were introduced in the translation? Heh, heh. :-)

Many would feel... What a crime?

What's wrong with perfectly good Fortran?

BTW... there's nothing wrong with "GOTO"s that aren't readily fixed with
simple matching "COMEFROM" statements!

Rest in Peace E. Djkystra!

;-)

--
Peter K1PO
Indialantic By-the-Sea, FL.


  #2   Report Post  
Old February 4th 04, 02:52 PM
W4JLE
 
Posts: n/a
Default

would you care to compare the number of platforms that have a C compiler Vs
a FORTRAN compiler?

The code is much more portable in C.

He has done the amateur community a real service and is to be commended.
Your inane comments to the contrary.


"Peter O. Brackett" wrote in message
ink.net...
From Fortran to C, what a waste of coding time... and how many errors
were introduced in the translation? Heh, heh. :-)

Many would feel... What a crime?

What's wrong with perfectly good Fortran?

BTW... there's nothing wrong with "GOTO"s that aren't readily fixed with
simple matching "COMEFROM" statements!

Rest in Peace E. Djkystra!

;-)

--
Peter K1PO
Indialantic By-the-Sea, FL.




  #3   Report Post  
Old February 4th 04, 10:18 PM
Peter O. Brackett
 
Posts: n/a
Default

"JLE":

[snip]
The code is much more portable in C.

[snip]

I disagree.... where are the equivalent high quality field proven
mathematical
subroutine libraries?

Jeesh... software "fads"...

Just because some computer jockey say it's fashionable
ya'll follow along like sheep to the slaughter!

Shades of Bill Gates crappy bloatware. His empire would have collapsed
long ago if not for us hard working hardware Engineers. It's that
slavish devotion to software "fashion" that we see exhibited in this thred
that created Gates evil empire in the first place!

What do people see in "C"? :-)

[snip]
He has done the amateur community a real service and is to be commended.
Your inane comments to the contrary.

[snip]

I agree the OP has done some heavy lifting, but done us service!

Ummm. Nahhh!

How many bugs has he introduced in a perfectly fine program?

Compared to C, modern Fortran is much more suitable in all aspects such as
precision, speed and clairity of purpose and understanding in alignment to
the
original mathematics. Fortran has "native" support for complex and
vector/matrix
arithmetic all advantages over C when applied to large mathematical
manipulations
involving complex arithmetic and multi-dimensional complex arrays such as in
NEC.

C is a system programming language, not a mathematical programming language!

A skilled tradesman uses the right tool for the right job.

There are jobs for which C is quite suitable, but large mathematical
operations
like NEC is not one of them! C seems simple, but hey... where are all of
those
extensive widely proven highly accurate math subroutine libraries for C!
Ugh!

The problem with these danged "so-called" computer scientists is that they
all want to make every tool a religion and don't know which tool to use
for which job.

Why use a sledge hammer to open a walnut? Or a saw to slice bread?

Hey... get real, we Hardware Engineers never let "slide rule scientists"
tell us how
to compute, why now then do we let these so-called "computer scientists"
tell us we are using the wrong tools, when we know better!

Wake up... Don't fall for their stupid con games! They'l soon all be
replaced
by GUI visual code generating automatons anyway!

Converting NEC to Fortran 90/95 would have made more sense than
converting it to C.

I agree, FORTRAN (66 and 77) are old and showing their age. But that's
not the point! FORTRAN should be updated to Fortran, not to C!

Modern Fortran supports all of the old FORTRAN code, and modern concepts
suporting GOTO-less efficient software engineering friendly control
structures.

There is no portability problem, Fortran 90/95 is a very modern language,
with all
of the "modern" structures one expects but without any of the downsides that
non-mathematical languages such as C exhibit when pitted against tough
mathematical
operations.

Fortran 90/95 also has widely available very fast proven optimizing
compilers, some
of them are even free.

Long live Fortran...

--
Peter K1PO
Indialantic By-the-Sea, FL




"Peter O. Brackett" wrote in message
ink.net...
From Fortran to C, what a waste of coding time... and how many errors
were introduced in the translation? Heh, heh. :-)

Many would feel... What a crime?

What's wrong with perfectly good Fortran?

BTW... there's nothing wrong with "GOTO"s that aren't readily fixed with
simple matching "COMEFROM" statements!

Rest in Peace E. Djkystra!

;-)

--
Peter K1PO
Indialantic By-the-Sea, FL.






  #4   Report Post  
Old February 4th 04, 10:46 PM
Tdonaly
 
Posts: n/a
Default

Peter wrote,

Modern Fortran supports all of the old FORTRAN code, and modern concepts
suporting GOTO-less efficient software engineering friendly control
structures.

There is no portability problem, Fortran 90/95 is a very modern language,
with all
of the "modern" structures one expects but without any of the downsides that
non-mathematical languages such as C exhibit when pitted against tough
mathematical
operations.

Fortran 90/95 also has widely available very fast proven optimizing
compilers, some
of them are even free.

Long live Fortran...

--
Peter K1PO
Indialantic By-the-Sea, FL


Peter... Uh, Peter? You're free to do all the coding yourself if you'd
like to. Converting NEC to Fortran 90/95 would be a good project
for you in your retirement.
73,
Tom Donaly, KA6RUH


  #5   Report Post  
Old February 5th 04, 02:14 AM
Peter O. Brackett
 
Posts: n/a
Default

Tom:

[snip]
Peter... Uh, Peter? You're free to do all the coding yourself if you'd
like to. Converting NEC to Fortran 90/95 would be a good project
for you in your retirement.
73,
Tom Donaly, KA6RUH

[snip]

Heh, heh... fool! Taken in by computer scientists are you.

Well, NEC to Fortran 90... Man I've already done it!

And...

It didn't take me several months of coding to end up with a new code with
many
as yet unfound bugs!

--
Peter K1PO
Indialantic By-the-Sea, FL




  #6   Report Post  
Old February 4th 04, 11:10 PM
Richard Clark
 
Posts: n/a
Default

On Wed, 04 Feb 2004 22:18:41 GMT, "Peter O. Brackett"
wrote:
Long live Fortran...


Peter,

You are simply being provincial.

"Fortran" indeed as if that were the mantle of authority to vindicate
bad design. And then to string out all the flavors which, by the way,
invalidates the caprice that Fortran is the end-all be-all. I cut my
teeth on Fortran IV and have progressed through more than a dozen
languages and their dialects. BFD!

Whining over "where's the C math libraries?" when Fortran
implementations offer no better insurance is a tedious argument. Your
hick elitism smacks of the plowboy showing off his new oxfords to the
fellows in boots.

73's
Richard Clark, KB7QHC
  #7   Report Post  
Old February 4th 04, 11:21 PM
R. Torsten Clay
 
Posts: n/a
Default

I disagree.... where are the equivalent high quality field proven
mathematical
subroutine libraries?


Sorry, but IMSL, LAPACK, BLAS, ... (to name a few) all are equally well
usable from Fortran, C, or C++. A given vendor usually writes these
underlying bits by hand from assembler anyway to get maximum performance.
It then makes no difference what language you use at the high level.
Maybe 20 years ago Fortran compilers in general produced faster code
than C compilers, but not today.

Speaking as a computational physicist who programs many large-scale
numerical simulations, I usually use C. C is often much better from a data
manipulation standpoint. Try implementing a doubly-linked list
in Fortran. Yes, such things can be useful in numerical algorithms.

I'm glad there's a readable version of NEC in C available now, this
will make interfacing it with a gui much easier. NEC for typical
amateur antennas runs so fast on todays processors, the important
thing is easily visualizing the input and output.

I'm curious what free Fortran 90/95 compiler you refer to? "evaluation
versions" that expire after xx days don't count

Torsten
N4OGW
  #8   Report Post  
Old February 6th 04, 11:17 AM
 
Posts: n/a
Default

There are only very few things I can think of why someone would like
to have more readable Nec2 code or port it to another language..

1) To improve existing Nec2 code or add additional 'features'.
Till now however I did not find very much (public available)
additions to the default Nec2 core.

2) To understand how the Nec2 program does all calculation...
If you are able to understand the whole thing I definitely
think you should look further and not stay stucked on Nec-2.

Otherwise I see no explicit reason why to port the (thoroughly tested)
Nec2 sources from Fortran to C (or Cobol??). As a middle course one
could consider a port to F77 or even F90. This would make things much
more readable, but with a reduced risk of introducing new bugs....

I once integrated the original Nec2d- and the SomNec.exe's into a
single executable to also use the Sommerfeld ground inside a frequency
loop, so I am not completely unknown with the problems involved. (See
Nec2dXS.exe (with sources) on the famous
www.qsl.net/wb6tpu/swindex.html page)

For freeware F77 compilers see: www.mingw.org or www.delorie.com/djgpp

Nevertheless I very much welcome the effort of Neoklis of porting Nec2
sources to C. Who knows what Neoklis will do next to please us all...

Greetings,
Arie.
  #9   Report Post  
Old February 4th 04, 03:01 PM
Andy Cowley
 
Posts: n/a
Default

Peter O. Brackett wrote:


From Fortran to C, what a waste of coding time... and how many errors
were introduced in the translation? Heh, heh. :-)

And how many were fixed? From what he says about his
test results, very, very few errors were introduced.

Many would feel... What a crime?

Many more might feel "What crime?".

What's wrong with perfectly good Fortran?

Same thing that's wrong with a perfectly good boil on your ass. 8-)

BTW... there's nothing wrong with "GOTO"s that aren't readily fixed with
simple matching "COMEFROM" statements!


Try Cobol. The 'ALTER' statement was a computed come-from!
Fortran programmers can only dream of the job security that
flowed from that.

Rest in Peace E. Djkystra!

A good Fortran programmer can write Fortran in any language. ;-)
What Neoklis has done seems to avoid that pitfall. If he has made
all that NEC2 spaghetti more comprehensible to mere mortals then
he's done us all a really big favour.

vy 73

Andy, M1EBV
  #10   Report Post  
Old February 5th 04, 04:08 AM
Russ
 
Posts: n/a
Default

On Wed, 4 Feb 2004 15:01:21 GMT, Andy Cowley
wrote:

Peter O. Brackett wrote:


From Fortran to C, what a waste of coding time... and how many errors
were introduced in the translation? Heh, heh. :-)

And how many were fixed? From what he says about his
test results, very, very few errors were introduced.

Many would feel... What a crime?

Many more might feel "What crime?".

What's wrong with perfectly good Fortran?

Same thing that's wrong with a perfectly good boil on your ass. 8-)

BTW... there's nothing wrong with "GOTO"s that aren't readily fixed with
simple matching "COMEFROM" statements!


Try Cobol. The 'ALTER' statement was a computed come-from!
Fortran programmers can only dream of the job security that
flowed from that.


I give you (from ancient memory)...

NAME1 NOP NAME2
OI X'FF', NAME1 + 2
/* MORE CODE */
NAME2 EQU *

What's it do?

The math libraries in C are at least as good as those in Fortran and
the control and data structures actually exist.

Does DOD still require everything to be written in Ada?

Is NASTRAN still around or is there now a flight-rated C compiler.

Ever write any validated software? Now there's some fun.

Russ


Rest in Peace E. Djkystra!

A good Fortran programmer can write Fortran in any language. ;-)
What Neoklis has done seems to avoid that pitfall. If he has made
all that NEC2 spaghetti more comprehensible to mere mortals then
he's done us all a really big favour.

vy 73

Andy, M1EBV




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting NEC2 Fortran->C, need help Neoklis Antenna 0 September 26th 03 05:31 PM
Porting NEC2 Fortran->C, need help Neoklis Antenna 0 September 26th 03 12:20 PM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 RadioBanter.
The comments are property of their posters.
 

About Us

"It's about Radio"

 

Copyright © 2017