SLMT9@cc.usu.edu (06/28/90)
Hello to everyone out there in the Mighty Amiga World. After all of my troubles with Basic I have decided to switch to C. The Language of the Future. At least in my opion. I AM NOT TRYING TO START ANOTHER DEBATE ON LANGUAGES. So please no comments on this part. After going through the Fish Disks I got a lot of good C routines. There should be even more good Routine out there. So my proposal is this. If you are a programmer in C and have a few good routines that you have written and think that Others might find userful in some way. Then please send them to me. I will put them all together and them In an organized way. Dealing with type and then if nessacary Type of Compiler. If I get any support at all I will Then make this group of routines available in some way. Either a node on the net or Through the fish disks. If Fred wants them. So please send in any little thing that you have. No routine refused. It may not be included but I will definately take a look at it. Oh and if there is anyone else out there that is or has done this same thing then let me know and I will not do this and save myself some time. I just want to make life easier for me and for anyone else out there that has to do a little work in C. Thanks in advance for Anyone who responds. Joshua SLMT9@CC.USU.EDU P.S. Do not feel like someone else will do it. I need all the stuff that I can get.
cmcmanis@stpeter.Eng.Sun.COM (Chuck McManis) (06/29/90)
In article <27155@cc.usu.edu> SLMT9@cc.usu.edu writes: > ... After going through the Fish Disks I got a lot of good C routines. > ... I will put them all together and them In an organized way. ... Joshua, this should be an educational exercise for you and I encourage you to keep at it. However, I would suggest you consider modifying your quest to some extent. You see, after you learn C, and then learn PASCAL, and then learn MODULA-2, and then check out ALGOL, and then learn PL/1, and maybe browse through SNOBOL, COBOL and LISP. You will begin to notice that they suddenly fuse into simply "languages for programming computers." All of the languages you learn will have similarities and the underlying concepts are all basically the same. At some point you will be able to "learn" a new language and write programs in it in a matter of hours or less. Then, when you go back to your collection of C routines you will notice the flow of the algorithms _through_ the C code itself. It is the algorithims you want, and not just a bunch of "C" routines. Once you have them, converting them into any language is fairly trivial. As you may have guessed this is leading somewhere. That place is that there are today, several good books that are full of computer algorithms. A trip to the library should turn up one or two and the local university bookstore might have a couple more. This is one of the secrets of "quick" programming, ie understanding a bunch of algorithms that you produce in any language on demand, but do not be tricked into depending on a canned algorithm that you do not fully understand to get you through. Too many times talented people become "cookbook" coders who take little bits of code from their stock pots and glue them together to make a program. Those programs are never as reliable and efficient as they could be... -- --Chuck McManis Sun Microsystems uucp: {anywhere}!sun!cmcmanis BIX: <none> Internet: cmcmanis@Eng.Sun.COM These opinions are my own and no one elses, but you knew that didn't you. "I tell you this parrot is bleeding deceased!"
aduncan@rhea.trl.oz.au (Allan Duncan) (07/03/90)
From article <138087@sun.Eng.Sun.COM>, by cmcmanis@stpeter.Eng.Sun.COM (Chuck McManis): > In article <27155@cc.usu.edu> SLMT9@cc.usu.edu writes: >> ... After going through the Fish Disks I got a lot of good C routines. >> ... I will put them all together and them In an organized way. ... > > Joshua, this should be an educational exercise for you and I encourage [ much valid comment deleted ] > A trip to the library should turn up one or two and the local university > bookstore might have a couple more. This is one of the secrets of > "quick" programming, ie understanding a bunch of algorithms that you > produce in any language on demand, but do not be tricked into depending > on a canned algorithm that you do not fully understand to get you > through. Too many times talented people become "cookbook" coders > who take little bits of code from their stock pots and glue them > together to make a program. Those programs are never as reliable > and efficient as they could be... This is not entirely true, in Fortran there are a number of carefully crafted libraries of routines that are used by those who need to do a particular bit of number crunching, know what algorithm is needed, but don't have the time to spend on re-inventing the bug-free code (and bugs can be hard to detect in end conditions). I have also seen a book/disk set for both C and Fortran routines (IBM format, but all you need is a bridgeboard). Allan Duncan ACSnet a.duncan@trl.oz ARPA a.duncan%trl.oz.au@uunet.uu.net UUCP {uunet,hplabs,ukc}!munnari!trl.oz.au!a.duncan Telecom Research Labs, PO Box 249, Clayton, Victoria, 3168, Australia.
arxt@midway.uchicago.edu (patrick palmer) (07/04/90)
In article <1858@trlluna.trl.oz> aduncan@rhea.trl.oz.au (Allan Duncan) writes: >From article <138087@sun.Eng.Sun.COM>, by cmcmanis@stpeter.Eng.Sun.COM (Chuck McManis): >> In article <27155@cc.usu.edu> SLMT9@cc.usu.edu writes: >>> ... After going through the Fish Disks I got a lot of good C routines. >> >> Joshua, this should be an educational exercise for you and I encourage > >[ much valid comment deleted ] > >> A trip to the library should turn up one or two and the local university >> bookstore might have a couple more. This is one of the secrets of [even more cut to make News happy] >> together to make a program. Those programs are never as reliable >> and efficient as they could be... > >This is not entirely true, in Fortran there are a number of carefully >crafted libraries of routines that are used by those who need to do a [more ruthless chopping] >I have also seen a book/disk set for both C and Fortran routines (IBM >format, but all you need is a bridgeboard). I think you are refering to "Numerrical Recipies in C" by Press, Flannery, Teukolsky, and Vetterling. It is a Cambridge U. Press book, and has a companion diskette with over 200 subroutines. There is a FORTRAN version also.) I have this book and IBM format diskette. The subroutines are just ascii files, (in a hidden directory) so I found an MS-DOS fanatic, and let him show me the wonders of MS-DOS by uploading the the subroutines to a mainframe for me. I then downloaded them and use them as I need. (They are plain vanilla C, and need almost no modification for Manx - they probably should need none but earlier versions of Manx didn't seem to like mixing floats and doubles in arbritrary ways. I havent tried with 5.0a yet.) Pat Palmer (email: reply or ppalmer@oddjob.uchicago.edu)
johnf@stew.ssl.berkeley.edu (John Flanagan) (07/04/90)
In article <1990Jul3.193850.15879@midway.uchicago.edu> arxt@midway.uchicago.edu (patrick palmer) writes: >I think you are refering to "Numerrical Recipies in C" by Press, Flannery, >Teukolsky, and Vetterling. It is a Cambridge U. Press book, and has a >companion diskette with over 200 subroutines. Better yet, get the book and ignore the diskette. There are a few problems with the Press library C code. For starters, it is all in single-precision, and most of the fitting routines do not work very well without being converted to double. Also, he does some stupid (and illegal) things with array pointers. In general, the problem with his C code is that it is basically converted Fortran code; his Fortran version is quite solid. The book is wonderful, though, for its thorough explanation of the algorithms. For best results, get the book, and write your own code using his as a guide. John John Flanagan Center for EUV Astrophysics johnf@ssl.berkeley.edu University of California (...!ucbvax!soc1.ssl!johnf) Berkeley, CA 94720 Manners Maketh Man. (415) 643-6308