Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Which language for an engineer?

Which language for an engineer?
Thread Tools
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 15, 2002, 09:09 AM
 
I am currently a sophmore in Aerospace Engineering and was wondering which language people here recommend for that sort of thing. I already know a lot of Fortran but due to the lack of a free Fortran 90 compiler for OS X, I want to learn a new language. I know a little bit of C++ but was wondering which language would be best. My programs are mostly command line math programs, though I was hoping to build a GUI for some of my most used programs later on. And thoughts would be good.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 15, 2002, 09:58 AM
 
Try C, because it's good for maths, easy to make command-line programs out of, and easy to integrate into Cocoa applications for a GUI. C++ is slightly more difficult to integrate with Cocoa, but otherwise has the same benefits.
[vash:~] banana% killall killall
Terminated
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jul 15, 2002, 10:57 AM
 
I'd say that, as an engineer, your mandate is to get the job done efficiently, whatever the job may be. So, the answer is, learn the best language for the job.

(but, yeah, Fortran for numerics as much as I loathe it, C/C++ for everything else)

Good luck with the degree!

<small>[ 07-15-2002, 11:58 AM: Message edited by: smeger ]</small>
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Jul 15, 2002, 12:01 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Thinine:
<strong>I am currently a sophmore in Aerospace Engineering and was wondering which language people here recommend for that sort of thing. I already know a lot of Fortran but due to the lack of a free Fortran 90 compiler for OS X, I want to learn a new language. I know a little bit of C++ but was wondering which language would be best. My programs are mostly command line math programs, though I was hoping to build a GUI for some of my most used programs later on. And thoughts would be good.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">There is a free Fortran 77 compiler. I'm not familiar enough with Fortran to know the difference, but you can get it via fink. It's called g77, a part of the gcc compiler.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Mac Elite
Join Date: Jun 2000
Location: Pasadena
Status: Offline
Reply With Quote
Jul 15, 2002, 01:39 PM
 
math programs - Fortran

language for easy interface with GUI: C++ (maybe C) (for API programming, use Visual C++ for Windoz platform, Coca or Carbon for OS X, and who knows/cares for Linux )

language for AI: Lisp/Scheme

Generic engineer's language: C (assembly language interfact, API, and such)

Web development: Python

M$ popularized: C#
M$ trying to kill: Java (which kinda sux anyway)
G4/450, T-bird 1.05GHz, iBook 500, iBook 233...4 different machines, 4 different OSes...(9, 2k, X.1, YDL2.2 respectively) PiA to maintain...
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Jul 15, 2002, 02:41 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Detrius:
<strong>[There is a free Fortran 77 compiler. I'm not familiar enough with Fortran to know the difference, but you can get it via fink. It's called g77, a part of the gcc compiler.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">g77 is a frontend included with Gcc. Apple's default compiler is <a href="http://gcc.gnu.org" target="_blank">GCC</a> and some people are trying to make g77 work with the new 3.1 compiler that apple should ship with the NeXT release of os X.
A front end will create some c code from the Fortrant code and then compile that C code.
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Jul 15, 2002, 02:52 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Thinine:
<strong>I am currently a sophmore in Aerospace Engineering and was wondering which language people here recommend for that sort of thing. I already know a lot of Fortran but due to the lack of a free Fortran 90 compiler for OS X, I want to learn a new language. I know a little bit of C++ but was wondering which language would be best. My programs are mostly command line math programs, though I was hoping to build a GUI for some of my most used programs later on. And thoughts would be good.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">I personnally know :
</font>
  • <font size="1" face="Geneva, Verdana, Arial, sans-serif">Assembly : 6502,68k, some x86 and some PPC</font></li>
  • <font size="1" face="Geneva, Verdana, Arial, sans-serif">C/C++, some Objective-C</font></li>
  • <font size="1" face="Geneva, Verdana, Arial, sans-serif">Perl</font></li>
  • <font size="1" face="Geneva, Verdana, Arial, sans-serif">Unixes Shells</font></li>
  • <font size="1" face="Geneva, Verdana, Arial, sans-serif">Pascal</font></li>
  • <font size="1" face="Geneva, Verdana, Arial, sans-serif">Some forth
    </font></li>
<font size="1" face="Geneva, Verdana, Arial, sans-serif">I'de recommand you check out the C/C++/Objective C since they are the industry standard.
Java is coming along so It be worth checking out. Now you should wait for gcc3 to be apple default compiler, then you can be sure that some people will bring g77 in working condition.
btw the Compiler enbgeeniring team at apple does not work on making g77 work because the marketing/commercial service at apple don't have a clue that Fortran support would be nice feaure to have. So please repport to apple you need Fortran on MacOSX.
     
Junior Member
Join Date: Apr 2000
Location: San Francisco, CA
Status: Offline
Reply With Quote
Jul 16, 2002, 01:12 AM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Thinine:
<strong>I am currently a sophmore in Aerospace Engineering and was wondering which language people here recommend for that sort of thing. I already know a lot of Fortran but due to the lack of a free Fortran 90 compiler for OS X, I want to learn a new language. I know a little bit of C++ but was wondering which language would be best. My programs are mostly command line math programs, though I was hoping to build a GUI for some of my most used programs later on. And thoughts would be good.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">I got my graduate degree in Aerospace Engineering, concentrating in computational dynamics. You'll find much, much code in the aerospace world in FORTRAN, so learn it. But, also learn to write really well designed C++ OO code. The aerospace industry is becoming increasingly dependent on large software projects, which means you'll have to learn how to write *good* software. FORTRAN does not lend itself to writing large, complex programs. OO-design does, and C++ is the most common for computational code that is OO.

I once wrote (for work) an n-object orbital propegator in C++. Made the state vectors, the PDE integrators, equations of motion, everything objects (in a well designed method). It took me a little longer than it would have taken me to write a 1-up FORTRAN project. However, when my next project came along, I resused all my propagator framework, rewrote my main() function, and had my new program in 1 day! Your milage might vary, but my point is FORTRAN (well, the way most engineers program in FORTRAN) woul never let you re-use code so easily.

My point is, learn sound OO software design principles to be able to write good software and build your own personal library of classes. Learn C++ because it is the most common OO language used in teh scientific community. Learn FORTRAN because you have to, but don't work in oit unless you have to.
--
Michael F. Kamprath
     
Forum Regular
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 16, 2002, 02:00 AM
 
COBOL, naturally...
     
Dedicated MacNNer
Join Date: Apr 2001
Location: Bethesda, MD
Status: Offline
Reply With Quote
Jul 16, 2002, 10:31 AM
 
Brainf*ck!

<a href="http://www.muppetlabs.com/~breadbox/bf/" target="_blank">http://www.muppetlabs.com/~breadbox/bf/</a>
     
Fresh-Faced Recruit
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jul 18, 2002, 09:08 AM
 
Absoft has a fortran 95 compiler for MacOSX which is supposed to be excellent:
<a href="http://www.absoft.com/index4.html" target="_blank">http://www.absoft.com/index4.html</a>
Erik
     
Thinine  (op)
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 19, 2002, 02:31 AM
 
Yeah, and the academic cost of that compiler is $800 and thats without the AltiVec libraries.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2