View previous topic :: View next topic |
Author |
Message |
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Sat Apr 04, 2015 8:39 pm Post subject: |
|
|
Thanks but I haven't found easy and fortran to coincide much.
Plato catches my syntax errors and tells me what line but why is another matter. Sample code is REALLY needed for novices like me.
Run errors, forget it. The messages tell me nothing.
Clearwin+ will probably do the job from what little I've seen but may be overkill.
Roger |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sun Apr 05, 2015 6:21 am Post subject: |
|
|
maybe if you posted an example of the type of typical plot complexity you'll be trying to generate we could give you a 5-min opinions of if it's feasible with the %pl which Dan mentioned, or whether you should go from basics.
Just post an example of the most complex plot you would be generating (post one from the existing program generates and then if you think you'll need to improve it then do one in Excel for example so we can see what you're looking to achieve). Best approach if you don't want to waste too much time cause as Dan says, there are a few mines out there in 'Simpleplot' to be avoided. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2824 Location: South Pole, Antarctica
|
Posted: Sun Apr 05, 2015 10:21 am Post subject: Re: |
|
|
rogerh wrote: | Thanks but I haven't found easy and fortran to coincide much.
Roger |
OK, i am in total Zeitnot lately but give me 10 examples of what you consider simple in programming outside Fortran and me or others here will show you that in 9 out of 10 cases Fortran will beat them in
- simplicity (more natural, intuitive syntax, smaller code size, availability of legacy math, natural sciences and engineering libraries and examples),
- quality (code reliability, depth of error diagnostics, debugging efficiency) and
- final code speed. |
|
Back to top |
|
|
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Sun Apr 05, 2015 2:39 pm Post subject: Re: |
|
|
John-Silver wrote: | maybe if you posted an example of the type of typical plot complexity you'll be trying to generate we could give you a 5-min opinions of if it's feasible with the %pl which Dan mentioned, or whether you should go from basics.
Just post an example of the most complex plot you would be generating (post one from the existing program generates and then if you think you'll need to improve it then do one in Excel for example so we can see what you're looking to achieve). Best approach if you don't want to waste too much time cause as Dan says, there are a few mines out there in 'Simpleplot' to be avoided. |
Thanks but I've tabled the plotting for now. I'm leaving it up to the client as to how to proceed.
If he wants fortran to do it, I'll be back. |
|
Back to top |
|
|
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Sun Apr 05, 2015 3:04 pm Post subject: Re: |
|
|
Quote: |
OK, i am in total Zeitnot lately but give me 10 examples of what you consider simple in programming outside Fortran and me or others here will show you that in 9 out of 10 cases Fortran will beat them in
- simplicity (more natural, intuitive syntax, smaller code size, availability of legacy math, natural sciences and engineering libraries and examples),
- quality (code reliability, depth of error diagnostics, debugging efficiency) and
- final code speed. |
Whoa! I have no doubt you are correct for the most part. Remember, I'm switching to fortran for those very reasons. The only point I would argue is syntax. I've programmed in TrueBasic for many years (I'm 80 now) so it's syntax reads like english to me. Fortran is more terse in comparison.
For example in TB it's FOR i = 1 to 200. F95 doesn't have that. It uses DO i = 1,200. A minor difference but less readable. The IF statements are similar but fortran insists on logical comparisons while TB accepts math comparisons. Types are a particular sore point; TB doesn't require them while fortran is fanatical about it.
These are all differences of approach and no doubt fortran is superior. I'm not saying otherwise, I'm just commenting as a novice on things which make converting difficult.
Roger |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2824 Location: South Pole, Antarctica
|
Posted: Sun Apr 05, 2015 7:20 pm Post subject: Re: |
|
|
[quote="rogerh"] Quote: |
For example in TB it's FOR i = 1 to 200. F95 doesn't have that. It uses DO i = 1,200. A minor difference but less readable. |
Well, to my eye it does not look more readable then Fortran because FOR and equal sign still are keywords and despite very small they meed clarification. I understand if it was
it would be indeed purely humanly readable. We would probably ask Paul to include that as an extension to lead this Fortran to be eventually almost humanly readable. Will be good marketing point by the way |
|
Back to top |
|
|
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Sun Apr 05, 2015 7:51 pm Post subject: |
|
|
DanRRight;
I agree but doubt it will happen here.
Personally I'd like to see programming in English. There are a couple of attempts such as Pegasus and Wolfram/Alpha but neither are near completion.
Roger |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sun Apr 05, 2015 8:13 pm Post subject: |
|
|
Stand by to be bored :O) with my over-long musings.
Interesting point this, because in fact I was just talking about it the other day to my daughter who had a maths question to answer about what they call these days ' algorithms' and there was a sequence of instructions similar to this (yes she's studying in french !):
POUR I de 1 a n
<instruction1>
<instruction1>
Fin de boucle Pour
- Yet another 'syntax' (FOR I FROM x TO y - note, still no DO ! :O) !
She hadn't even been directed to an explanation of the syntax and couldn't understand it as a logical instruction !
i.e. as a knownowt (as we say up north) she couldn't even understand a 'FOR' loop :O)
I said to her it would be better written as ' Loop through the following list of instructions n times (until you see a 'Fin de boucle' '
which I think is an extreme, but very valid explanation to anyone who knows nothing about 'programming' as in her case.
It just illustrates the problem which in our cases is simple, we're using different 'languages' (in this case BASIC and FORTRAN) , note the word is not chosen at random, and to understand both you have to have a semblance of knowledge of both. For a newcomer, or as in this case an oldcomer like Peter, you need at least a dictionary to compare 'words' (instructions). It's nothing different to when you start using CLEARWIN+, which is just another (higher level) language. And remember, the humain brain has a limit which is for 99% of people somewhere between 1 and 2 languages ! (try learning more than one non-native spoken language and you'll know what I mean).
It's a question of knowledge and motivation and I can understand in this case that Roger has a specific case he's trying to implement in FORTRAN for a client which is outside his normal lingo. A bit like him going on holiday to France after a 20 year break of not speaking much, if any, french and struggling ordering croissants at the boulangerie LOL !.
As someone once explained to me: spanish is not difficult at all to learn, there are millions of children in spain who speak it fluently :O) The same applies to all languages.
L-evenmore-OL (or should that be LEMOL :O) ) after seeing that Roger's last comment which he's made while I've been in the middle of writing this !
Of course you main 'plsin' english or rather plain but simple yet completely descriptive english' which is of course a contradiction in terms , not to mention pushing line lengths to the limits resulting in Dan (and the rest of us) having more devilry in the codes ! LOL
Simple is beautiful is the saying, but it's not always understandable, except to computers :O)
PS -
Does 'IF' need to be changed to 'DOIF' or 'IF <> THENDO' :O)
It's all a matter of personal preference and current knowledge and understanding at the end of the day.
i just hope I'm still able to program at 80 like Roger ! Well done that man. |
|
Back to top |
|
|
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Sun Apr 05, 2015 8:26 pm Post subject: |
|
|
Hi John;
Along those lines I once wrote a fortran to basic translator which worked pretty well.
I also tried to write the programming in english program which died after the first command. WAY too many possibilities to manage.
Roger |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sun Apr 05, 2015 8:37 pm Post subject: |
|
|
Ha-ha-ha ! LOYEML !
Would be the same with a fortran checking program too I guess.
Reading through the posts again you wrote
Quote: | The problem I'm having with F95 is the lack of examples.
|
I know what you mean , but what we all mean when we say thatr is
" The problem I'm having is finding the example I need to solve precisely my problem" !
I'm having enough problems as it is following the post and trying to understand: is Perl's a singer ? :O) and what tadpoles and frogs have got to do with solving the problem ? ! LOVL. |
|
Back to top |
|
|
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Sun Apr 05, 2015 8:43 pm Post subject: |
|
|
John;
No Perl's a language of sorts but where do tadpoles and frogs get mentioned?
Roger |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sun Apr 05, 2015 9:18 pm Post subject: |
|
|
in Paul's reference to 'spawning' :O) ribet, ribet
whatever that is. |
|
Back to top |
|
|
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Sun Apr 05, 2015 9:26 pm Post subject: Re: |
|
|
John-Silver wrote: | in Paul's reference to 'spawning' :O) ribet, ribet
whatever that is. |
That's when one program starts another program. I don't know if F95 can do it.
Roger |
|
Back to top |
|
|
rogerh
Joined: 02 Nov 2014 Posts: 46 Location: Longmont, CO
|
Posted: Mon Apr 06, 2015 10:54 pm Post subject: |
|
|
Woops!
Sleep1@ won't work either.
The client wants an interruptable sleep. The idea is to shut down the program yet be able to press a function key to reactivate the keyboard.
Any way to do this?
Roger |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2824 Location: South Pole, Antarctica
|
Posted: Mon Apr 06, 2015 11:26 pm Post subject: |
|
|
Decades from now Fortran will write formulas as they look in math books but today when we still need to code them, they look most natural only in Fortran. That what non-programmers (read 99.9% of people who need sometimes to code) appreciate. And this is why Fortran which was the first high level programming language will die as the last programming language. it's simplicity is a key. If you do not like TYPEs - do not use them, all that new additions to Fortran Standard are generally for those who must use programming daily.
Long ago I had comparison of the code written in Clearwin+ vs C++ which is this thread on this forum
http://forums.silverfrost.com/viewtopic.php?t=1429&highlight=trading+quotetracker
The difference was 10x in source size and uncountable in simplicity. Same with all other languages, see references there including VB and VB for Net. The Clrarwin+ is of course not a Fortran, but keeps the same mentality of fortraneers. You can try to compare these things yourself, i just checked, 7 years later they are still there in that link |
|
Back to top |
|
|
|