Domain: nag.co.uk
Stories and comments across the archive that link to nag.co.uk.
Comments · 9
-
Re:C++0x?
Now that the finalization has slipped past 2009, it's C++1x.
No, it is not C++ 1x. There's already a project that's called C++ 1x, which is slated to be the next revision of C++. There's also a plan for a Technical Report (TR) intended to be published a couple years (or so) after the C++0x revision, but before C++1x.
I'd note that it's actually fairly common for final approval of a language to happen some time after the date by which it's usually known.
- Fortran 2008: Not finished yet, most recent draft dated 23 June 2009
- Algol 60: Approved as an ISO standard in 1984
- Simula 67: Approved as a Swedish national standard in 1987 (never approved as an ISO standard)
-
Fortran 2003 is missing
The official Fortran 2003 standard was published on Nov 18 2004. It is ISO/IEC 1539-1:2004. Read more here.
-
Mod parent up - very informed comment, re: Axiom.
I wrote my PhD thesis using Axiom's source - Axiom has had c. 300 man-years work done on it. It is an unbelievable piece of work.
(It started in the early 1970's at IBM and was called Scratchpad, later Scratchpad 2 before being "sold" to NAG and rebranded).
Axiom 2 included a new compiler and a new language called Aldor (which was going to be called A# but apparently Sharp objected to the name. WTF about C# then?) and ran on other platforms than AIX 3.x. Solaris, Irix and in the end even Win32.
Unlike the "M'n'M" systems (Maple, Mathematica, etc). it is strongly typed and has its roots in Category theory and/or Universal Algebra - which is pretty much a necessity for and Algebra system to even make any sense. (OK, that's a loaded point - obviously Maple is a very good product without this basis).
Some things are currently missing from Axiom: Aldor - the re-implementation of Axiom's language by Pete Broadberry et al.; HyperTex - the online documentation browser with hyperlinks predating HTML! which are all loaded from the source files); and I believe the pretty GUI bits for graphs, 3D trefoil knots, etc.
Debian and Ubuntu users can just download it, the rest of us have to build it. (It takes about 2 hours on my 1133MHz box).
It is good. If you can grab a copy of Jenks and Sutor's manual then even better. -
Re:On Perl and command-line utilitiesTo be useful, numutils should go beyond what is trivially available in perl and awk. That might involve using C, or just a sufficiently complex script. I don't think numutils is sufficiently complex enough as it is now to be distributed. The issue is whether it fills a particular void, and how well it meets that need. The random utility is useless as written. To generate a random number why not just read the perldoc on srand?
Suso Banderas should follow up on this goal to implement the ability to simultaneously operate on columns of data.
A month ago, I wrote an awk script which calculates mean, standard deviation, variance, min, max, sum, and count (see below) for a given stream of numbers.
#!/bin/nawk
$1 ~ /[0-9]+/ { x = $1; N = N+1;
if (N>1) { if (min>x) {min=x}; if (x>max) {max=x}; sumx = x + sumx; oldavgx = avgx;
avgx = avgx + (x-avgx)/N; varx = (N-2)/(N-1)*varx + N(avgx - oldavgx)^2; }
else { min = x; max = x; sumx = x; avgx = x; varx = 0; }
} END { print avgx,sqrt(varx),varx,min,max,sumx,N }
This took me very little time to write, and it covers half of numutils scope of effort. The numutils package should shift focus away from calculating means and bounds.
This is my suggestion: For each utility, determine what numutils does which is a pain to accomplish in awk or perl. Focus on those areas.
Some of these scripts are excellent examples of what can be accomplished in Perl, though. And better commented than most.
Personally, i'm interested in finding something that would compute the median and percentiles for a given stream of input data. I was excited to see "numutils" but was dismayed as not finding the variance. I would like to see an open source version of something like the NAG utilities such as nag_summary_stats_1var or nag_5pt_summary_stats.
I guess I'm just waiting for the the Commons-Math Jakarta Mathematics Library project to get released.
-
Re:On Perl and command-line utilitiesTo be useful, numutils should go beyond what is trivially available in perl and awk. That might involve using C, or just a sufficiently complex script. I don't think numutils is sufficiently complex enough as it is now to be distributed. The issue is whether it fills a particular void, and how well it meets that need. The random utility is useless as written. To generate a random number why not just read the perldoc on srand?
Suso Banderas should follow up on this goal to implement the ability to simultaneously operate on columns of data.
A month ago, I wrote an awk script which calculates mean, standard deviation, variance, min, max, sum, and count (see below) for a given stream of numbers.
#!/bin/nawk
$1 ~ /[0-9]+/ { x = $1; N = N+1;
if (N>1) { if (min>x) {min=x}; if (x>max) {max=x}; sumx = x + sumx; oldavgx = avgx;
avgx = avgx + (x-avgx)/N; varx = (N-2)/(N-1)*varx + N(avgx - oldavgx)^2; }
else { min = x; max = x; sumx = x; avgx = x; varx = 0; }
} END { print avgx,sqrt(varx),varx,min,max,sumx,N }
This took me very little time to write, and it covers half of numutils scope of effort. The numutils package should shift focus away from calculating means and bounds.
This is my suggestion: For each utility, determine what numutils does which is a pain to accomplish in awk or perl. Focus on those areas.
Some of these scripts are excellent examples of what can be accomplished in Perl, though. And better commented than most.
Personally, i'm interested in finding something that would compute the median and percentiles for a given stream of input data. I was excited to see "numutils" but was dismayed as not finding the variance. I would like to see an open source version of something like the NAG utilities such as nag_summary_stats_1var or nag_5pt_summary_stats.
I guess I'm just waiting for the the Commons-Math Jakarta Mathematics Library project to get released.
-
Re:On Perl and command-line utilitiesTo be useful, numutils should go beyond what is trivially available in perl and awk. That might involve using C, or just a sufficiently complex script. I don't think numutils is sufficiently complex enough as it is now to be distributed. The issue is whether it fills a particular void, and how well it meets that need. The random utility is useless as written. To generate a random number why not just read the perldoc on srand?
Suso Banderas should follow up on this goal to implement the ability to simultaneously operate on columns of data.
A month ago, I wrote an awk script which calculates mean, standard deviation, variance, min, max, sum, and count (see below) for a given stream of numbers.
#!/bin/nawk
$1 ~ /[0-9]+/ { x = $1; N = N+1;
if (N>1) { if (min>x) {min=x}; if (x>max) {max=x}; sumx = x + sumx; oldavgx = avgx;
avgx = avgx + (x-avgx)/N; varx = (N-2)/(N-1)*varx + N(avgx - oldavgx)^2; }
else { min = x; max = x; sumx = x; avgx = x; varx = 0; }
} END { print avgx,sqrt(varx),varx,min,max,sumx,N }
This took me very little time to write, and it covers half of numutils scope of effort. The numutils package should shift focus away from calculating means and bounds.
This is my suggestion: For each utility, determine what numutils does which is a pain to accomplish in awk or perl. Focus on those areas.
Some of these scripts are excellent examples of what can be accomplished in Perl, though. And better commented than most.
Personally, i'm interested in finding something that would compute the median and percentiles for a given stream of input data. I was excited to see "numutils" but was dismayed as not finding the variance. I would like to see an open source version of something like the NAG utilities such as nag_summary_stats_1var or nag_5pt_summary_stats.
I guess I'm just waiting for the the Commons-Math Jakarta Mathematics Library project to get released.
-
Performance is king
Well, performance IS king. And, when it comes to perfomance and ease, Fortran still is king, even if it is near 50 yeas old. Java has no chance. C++ may fight for it at times, and C may be on par if you are a non-sucky programmer.
However, development cost prefer "development perfomance", not binary performance! So, Java and to some extent C++ may have the upper hand. Object Oiented development DOES rule here, period.
Then, semi-good news! Fortran is going OO! However, it is seriously delayed. But, progress is here.
Check out the latest draft of the Fortran 2000 standard here.".
And, read the recent discussion on-topic here:
"If you're looking for information on the content of the next standard,
assuming it gets adopted, try looking at John Reid's (only very slightly
out-of-date) summary:
ftp://ftp.nag.co.uk/sc22wg5/N1501-N1550/N1507.pdf. " -
Performance is king
Well, performance IS king. And, when it comes to perfomance and ease, Fortran still is king, even if it is near 50 yeas old. Java has no chance. C++ may fight for it at times, and C may be on par if you are a non-sucky programmer.
However, development cost prefer "development perfomance", not binary performance! So, Java and to some extent C++ may have the upper hand. Object Oiented development DOES rule here, period.
Then, semi-good news! Fortran is going OO! However, it is seriously delayed. But, progress is here.
Check out the latest draft of the Fortran 2000 standard here.".
And, read the recent discussion on-topic here:
"If you're looking for information on the content of the next standard,
assuming it gets adopted, try looking at John Reid's (only very slightly
out-of-date) summary:
ftp://ftp.nag.co.uk/sc22wg5/N1501-N1550/N1507.pdf. " -
Re:Stupid question
Did you totally miss out on the part where he says "(the FORTRAN spelling has been depricated)"?
Granted, it would've been better if it was spelled "deprecated" or missbiligt or whatever, but still, any intelligent person should've been able to understand it.
To answer your question: Try this
or this if you're really that fucking lazy. Then again, maybe this is more up your alley.
Fuck you, asshole. Fucking latest standard FORTRAN dickmuncher. THERE ARE TERRORISTS IN OUR MIDSTS AND YOU'RE WORRIED ABOUT FUCKING FORTRAN 95?? Grow up flamer.