Java Or Fortran ?

Hello all master...i have one question. I need to build an application and it is about modeling for landslide. So i need some advice from you all. Which one between java or fortran is suitable as programming language for my project. For example software is [CHASM Software|http://chasm.info/] . Is java suitable as my project programming language ? This is because, i never learn about fortran before this and i also has some experience using java. For second question why scientist always use fortran ? Which is power between both of them ?
Thanks. I hope someone will help me.

carnado,
I guess I'd be thinking FORTRAN for the engineering stuff, and Java for all the "application stuff".
* Yes, you can produce .dll/.so's in Fortran and call them from Java via RMI. So you get the best of both worlds... speed/ease of calcs; and ease of "app development".
* Hard core engineers still totally dig fortran, as they should. It's a specialised language which was designed to suit them to a tee. There's a massive existing investment in how to do "heaving lifting" in fortran... much of which doesn't translate. Lots of Holywood's CGI tools are still written in fortran... Hmmm... I wonder why?... Could It Be Because It Works?
* Java is streets ahead in the "applications" space.... Swing, Servlets, JSP, WebServices... even underlying stuff like JDBC and LDAP/ActiveDirectories... and there's plenty of smart folks out there on the employment lines (more every day ;-( ) with experience in the java space.
* I hate to admit it but C# is still way out in front for fat graphical clients.
* The downside is that programmers who are competent in both Fortran, Java and C# are as rare as chickens lips... You'll probably be looking at a tripolar development team (who hate each other with religious passion)... trick is to find a team-leader with a bit of knowledge of all worlds, but not too much... and equip him a BIG stick, and an endless box of jelly donuts ;-)
Cheers. Keith.

Similar Messages

  • Using Fortran Funcrions in Java

    Hi,
    In my project I need to call some subroutine, made in fortran, into my java program but I don't know how to do it...
    My fortran subroutine is called: SUBROUTINE LETQUE(BUF,QUE,SIZE,BYPASS)
    What should i do to include in my java???
    Thank,
    BV

    You may be able to access FORTRAN functions from Java using the Java Native Interface (JNI). Here's the JNI tutorial, which only has examples in C: http://java.sun.com/docs/books/tutorial/native1.1/index.html
    You'll probably want the trail "Writing Java Programs with Native Methods". Your biggest challenge will be marshalling and unmarshalling the input parameters and return values of your FORTRAN fucntions--that is, converting the data back and forth between Java and FORTRAN data formats. You are probably going to have to do some experimenting to get each data type to translate between languages, and should be very familiar with the format of your FORTRAN function's parameters, down to the byte level. You will also need to find out how to create a shared library (on Unix) or a DLL (on Windows) from a FORTRAN source file.
    Try searching the forums for "fotran". I see a lot of people are creating intermediate C-language wrappers for their FORTRAN routines, and calling the C from JNI. That might be an easier path.
    Another possibility, if you're processing large amounts of data in batches, would be to use text files to exchange data between a stand-alone Java application and a stand-alone FORTRAN program.
    Good luck!

  • Search engin, JSP or swing Application

    Hello,
    i want to build a search engin(like Google) on a special archive ,the question: is swing endurance the load of all search results to display it or there will be any problems in displaying, thus ,it is preferable to using ordinary web page.
    thanks

    A search engine usually has two pieces. One piece gathers the data and organizes it so it can be searched. The other piece queries that data and presents the results. Many times a database is used to store the searchable data. For a fairly complex set of searchable data, the limiting factor is usually the speed of the data search. It really doesn't matter if the user interface is C, Java or Fortran.

  • Half way pixel between two pixels

    hi there guys,
    i'm new in this forum
    i'm working on this aLife simulation and i need to find co-ordinates of a pixel between two others on an image.
    so, pixel A(x1,y1) and pixel B(x2,y2) and suppose there's a line between them
    i would need the pixel C(x3,y3) that lies in the exact middle of the distance between these two pixels
    i have a function that determines the distance between them but no way of finding out what that half way pixel is
    please help cause this is somewhat urgent
    thanks in advance for your time

    I am sorry, but I took programming in college. What you are asking for is the distance equation, which you should have learned in high school algebra. That equation is simply as follows:
    d = sqrt((x2 - x1)^2 + (y2-y1)^2)
    where:
    "sqrt" means take the square root
    d is the distance between the points
    The points are (x1,y1) and (x2,y2)
    "^2" means to square that portion of the equation
    When you are doing a line in a 3-dimensional space, the distance equation becomes the following:
    d = sqrt((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2)
    where:
    the points are (x1,y1,z1) and (x2,y2,z2)
    This is a basic computer programming problem, and if you need to ask on a forum like this for help, maybe you should consider changing majors. (I am not trying to be cruel, but let's face it, there are much more difficult problems you will be presented with in your studies than this one. It does not matter whether you are writing this code with JAI, or without, or with Java, C++, Fortran, COBOL, Perl, or any other language. The logic is the same for this calculation regardless of languages and/or libraries used.)

  • Computing efficiency, general

    Best groupmember,
    I just got to an intersection within my project where I have to decide what language to use for the part of my project that handles computing.
    What is the efficiency difference between different language, anyone having experience!? I'm most interested in the difference between Java, C, Fortran and Matlab (ok, matlab is not a language, more of a script). I'd rather use Java within my whole project, just to be consistent.
    Cheers, Peter

    The obvious answer when you ask such a question here is of course that Java will work all the way :)
    If implementing your project well object orientated and putting most code in general libraries, changing language later won't bee much that problem. Eg:
    public interface Summarizer{
    public int sum(int a, int b);
    public class JavaSummarizer implements Summarizer{
    public int sum(int a, int b){ return a+b;}
    }When you want to do "quicker" computing in C, then you just implement Summarizer with a Java-class that calls native code, Eg NativeSummarizer. Will give no change in object structure or in any code except for initilising of objects. To do Java all the way in initial stage often proves to be worth doing since development tend to go much quicker. Then when you realise what the "real" bottlenecks are and when you have changed the design and specification about 10 times and the functionality is more stable, THEN you can think about optimisation.
    Intersting link for comparison between different languages you can find here (not fair test I know but at least A test):
    http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=203
    Gil

  • Calling Fortran from Java

    Is it possible to call Fortran code from java??

    You can use Runtime.exec() to run an application written in Fortran.
    If you can write C/C++ code which interacts with something written in fortran then you can use JNI to connect it to java.
    Presumably the fortran app doesn't already have an interface that allows something to interact with it when it runs - like a socket interface.

  • Fortran to java

    hi,
    i have to convert a fortran program to java. this goto is driving me crazy..could any one suggest some ideas how to come out this..i have pasted just the required code..
    /* this is a very huge loop and i can't come out it..and in this ,goto criss cross like a maze*/
    do 370 is = 1,ns
    100 kcl = kcl + 3
    if(kcl - jcl) 110,180,180
    110 if(ia[kcl] - is)180,120,180
    120 /* my calcuation sequentially xxxxxx
    xxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxx*/
    goto 160
    130 if ( condition) 140,100,140
    140 /* xxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxx*/
    goto 160
    150 /* xxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxx*/
    160 /* xxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxx*/
    if (condition) 130,150,170
    170 /*xxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxx*/
    goto 100
    and the story of goto goes on like this...upto 370
    370 continue...
    can i use method with in a method..?
    if some body could help me out
    goto 10
    i will drown myself in gotos..:-).
    10 thank you very much..
    bye
    ls..

    hi,,,..
    got it..had to use lots of while and break..it works..
    thank you
    ls..

  • Exec() - G77 Fortran blocks read(*,*)  until Java closes output stream.

    This is my first post!
    I have a program in fortran using G77 from GNU. When I start the program and write to the output stream I have to close() the stream for the message to arrive at the other end. G77 seems to need Java to close the stream for the message to be sent.
    Then, the stream is forever closed and can not be re-obtained for subsequent writes.
    I do not need to close() with microsoft fortran. It works fine with a simple flush().
    My code for Microsoft is below, followed by same code for G77:
    Any ideas?
    Disciple285
    // write to stream with Microsoft Fortran
    std_out.println(message);
    std_out.flush();
    // write to stream with G77 Fortran
    std_out.println(message);
    std_out.close();

    Hi:
    The internal OJVM is not affected by your installations of any other Sun JDK on the server.
    So you can not upgrade your internal OJVM without upgrading the entire DB.
    Oracle 10g includes a JDK 1.4 runtime, 11g a 1.5 runtime and so on.
    If you can upgrade your Oracle 9.2.0.8 to a 10g release you can then compile the code, if not you should re-write the code to compile with an standard JDK 1.3 release.
    Best regards, Marcelo.

  • Forms 6.0 and JAVA Applications?

    We used until now Forms 3.0 with "User Exit Functions" written in Fortran to read data from Instruments. Currently we migrate the applications from Forms 3.0 to Forms 6.0. Is it possible to start a JAVA application (not applet!) out of Forms 6.0 to get data from a instrument? I have written a JAVA application that could do this job, based on Sun's javax.comm package.
    Thank You
    Heinz Grimm

    Hi,
    Oracle Forms 6i does not support Advances Security for SQL*Net if this is what your question is. ASO is supported with Forms 9i and above
    Frank

  • Java Threads vs. Native Global Variables

    A brief description of the problem:
    I am trying to integrate a multi-threaded Java app with legacy Fortran code. The Fortran code in question makes extensive use of global variables in the form of Fortran's Common Block data structure.
    If multiple threads were allowed access to a native routine, they would over write each others data which is stored in global variables.
    If only one thread at a time can have access to the native routine for the duration of the native routine, the whole advantage of using threads is completely nullified.
    These native routines cannot be rewritten (3rd party code) and must be used.
    One solution I envisioned was to load a new copy of the native shared object code for each Java object that used the native code. However, it seems System.loadLibrary() can only be used in a static context.
    Is there any known solution to this problem?

    Here is an elaboration on the earlier suggestions. It's a high overhead solution, because you have to start a bunch of JVMs.
    1. You have a java control program, which will start up a pool of "services", make requests to them, and gather the results.
    2. Each service is a small java program with a native method:
    o java communications front-end.
    o native method declaration.
    o native - in your case fortran - method implementation.
    3. Each service is started using "exec". That puts it in a separate process.
    4, Since each service is a java program, you can use java to do communications between the control program and the service.
    o You could use RMI.
    o You could - perhaps - use java Process communications, i.e., have the services write to stdout, and have the control program capture the output.
    o You could use socket communications.

  • New to Java and I guess a scope question.

    Hello and thank you for taking the time to read this. I am not a real programmer, everything I have ever done was a total hack, or written without a full understanding of how I was doing it. One thing about Java is that you might have like 20 classes (or interfaces or whatever), and that code is "all over" (which means to me not on one big page). My comment statements may look odd to others, but the program is for me alone and well, only I need to understand them.
    Through some hacking, I wrote/copied/altered the following code:
    import java.io.*;
    import java.util.*;
    public class readDataTest
         public static void main(String[] args)
              /* get filename from user, will accept and work with drive name
              e.g. c:\java\data.txt, if it is the same drive as the compiler
              does not need the directory. however, it always needs the extension.
              userInput is created by me, File, StringBuffer, BufferReader
              are part of java.io */
              userInput fileinput = new userInput();
              String filename = fileinput.getUserInput("What is the file's name");
              File file = new File(filename);
              StringBuffer contents = new StringBuffer();
              BufferedReader reader = null;
              //try to read the data into reader
              try
                   reader = new BufferedReader(new FileReader(file));
                   String text = null;
                   while((text = reader.readLine()) !=null)
                        //create a really big string, seems inefficient
                        contents.append(text).append(System.getProperty("line.separator"));
                   //close the reader
                   reader.close();
              catch (IOException e)
                   System.out.println(e);
              //take the huge string and parse out all the carriage returns
              String[] stringtext = contents.toString().split("\\r");
              //create mmm to get take the individual string elements of stringtext
              String mmm;
              //create ccc to create the individual parsed array for the ArrayList
              String[] ccc = new String[2];
              //create the arraylist to store the data
              ArrayList<prices> data = new ArrayList<prices>();
              /*go through the carriage returned parsed array and feed the data elements
              into appropriate type into the arraylist, note the parse takes the eof as an
              empty cell*/
              //prices pricestamp = new prices();
              for(int c=0; c < stringtext.length-1; c++)
                   prices pricestamp = new prices();
                   mmm=stringtext[c];
                   /*trims the extra text created by the carriage return, if it is not
                   trimmed, the array thinks its got an element that is "" */
                   mmm=mmm.trim();
                   //whitespace split the array
                   ccc=mmm.split("\\s");
                   pricestamp.time=Integer.parseInt(ccc[0]);
                   pricestamp.price=Double.parseDouble(ccc[1]);
                   //System.out.println(ccc[1]);
                   data.add(pricestamp);
                   //System.out.println(data.get(c).price);
                   //pricestamp.time=0;
                   //pricestamp.price=0;
                   pricestamp=null;
              //pricestamp=null;
              //System.out.println(pricestamp.price);
              System.out.println(data.size());
              double totalprice=0;
              for(int c=0; c<data.size(); c++)
                   //System.out.println(data.get(c).price);
                   totalprice+=data.get(c).price;
              System.out.println("This is the total price: " + totalprice);
    public class prices
         int time;
         double price;
    public class evenOdd
         public int isEven(double number)
              int evenodd;
              double half = number/2;
              int half2 = (int) half;
              if(half == half2)
                   evenodd = 1;
              else
                   evenodd = 0;
              return evenodd;
    So the program works and does what I want it to do. I am very sure there are better ways to parse the data, but thats not my question. (For argument's sake lets assume the data that feeds this is pre-cleaned and is as perfect as baby in its mother's eyes). My question is actually something else. What I originally tried to do was the following:
    prices pricestamp = new prices();
              for(int c=0; c < stringtext.length-1; c++)
                   mmm=stringtext[c];
                   mmm=mmm.trim();
                   ccc=mmm.split("\\s");
                   pricestamp.time=Integer.parseInt(ccc[0]);
                   pricestamp.price=Double.parseDouble(ccc[1]);
                   data.add(pricestamp);
    however, when I did this, this part:
    for(int c=0; c<data.size(); c++)
                   //System.out.println(data.get(c).price);
                   totalprice+=data.get(c).price;
              System.out.println("This is the total price: " + totalprice);
    would only use the last price recorded in data. So each iteration was just the last price added to totalprice. I spent hours trying to figure out why and trying different ways of doing it to get it to work (as you probably can tell from random commented out lines). I am completely dumbfounded why it doesn't work the other way. Seems inefficient to me to keep creating an object (I think thats the right terminology, i equate this to dim in VB) and then clearing it, instead of just opening it once and then just overwriting it). I really would appreciate an explanation of what I am missing.
    Thank you.
    Rich

    prices pricestamp = new prices();
    for(int c=0; c < stringtext.length-1; c+)
    mmm=stringtext[c];
    mmm=mmm.trim();
    ccc=mmm.split("\\s");
    pricestamp.time=Integer.parseInt(ccc[0]);
    pricestamp.price=Double.parseDouble(ccc[1]);
    data.add(pricestamp);
    }This is definitely wrong. You have only created one instance of pricestamp and you just keep overwriting it with new values. You need to put the new inside the loop to create a new instance for each row.
    Also I doubt you really mean .length - 1, that doesn't include the last row.
    Style wise:
    Class names should always start with capital letters, fields and variable always with lower case letters. These conventions aren't imposed by the compiler but are established practice, and make your code a lot easier to follow. Use "camel case" to divide you names into words e.g. priceStamp
    When using single letter names for integer indices people tend to expect i through n. This is a historical thing, dating back to FORTRAN.

  • Berkeley DB Java Problem

    I am facing big problem in using Berkeley DB Java.
    I have downloaded 4.7 version.
    built it by
    +$cd build_unix+
    +$sudo ../dist/configure --enable-java+
    +$sudo make+
    +$sudo make install+
    This installed the libs and jar file /usr/local/BerkeleyDB.4.7/lib/ . I have copied dbexamples.jar in that dir
    +$ls -l /usr/local/BerkeleyDB.4.7/lib/+
    -rw-r--r-- 1 root root  216418 2009-05-15 00:00 dbexamples.jar
    -r--r--r-- 1 root root  499438 2009-05-14 23:41 db.jar
    -rw-r--r-- 1 root root 1701010 2009-05-14 23:41 libdb-4.7.a
    -rw-r--r-- 1 root root     821 2009-05-14 17:36 libdb-4.7.la
    -rwxr-xr-x 1 root root 1394997 2009-05-14 17:36 libdb-4.7.so
    lrwxrwxrwx 1 root root      12 2009-05-14 23:41 libdb-4.so -> libdb-4.7.so
    -rw-r--r-- 1 root root 1701010 2009-05-14 23:41 libdb.a
    lrwxrwxrwx 1 root root      12 2009-05-14 23:41 libdb.so -> libdb-4.7.so
    in my ~/.bashrc file I have added
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/BerkeleyDB.4.7/lib/:.
    export CLASSPATH=$CLASSPATH:/usr/local/BerkeleyDB.4.7/lib/db.jar
    So
    +$ echo $CLASSPATH+
    +:/usr/local/BerkeleyDB.4.7/lib/db.jar+
    +$LD_LIBRARY_PATH+
    +:/usr/local/BerkeleyDB.4.7/lib/:.+
    I took db,AccessExample.java file and compiled it as default package.
    Now when I run that I get
    +$java -Djava.library.path=/usr/local/BerkeleyDB.4.7/lib/ AccessExample+
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no db_java-4.7 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:52)
    at com.sleepycat.db.internal.Db.<init>(Db.java:289)
    at com.sleepycat.db.DatabaseConfig.createDatabase(DatabaseConfig.java:1958)
    at com.sleepycat.db.DatabaseConfig.openDatabase(DatabaseConfig.java:1968)
    at com.sleepycat.db.Database.<init>(Database.java:103)
    at AccessExample.run(AccessExample.java:115)
    at AccessExample.main(AccessExample.java:53)
    +$ java -version+
    java version "1.5.0_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_13-b05, mixed mode)
    gcc -v
    Using built-in specs.
    Target: i486-linux-gnu
    +Configured with: ../src/configure -v enable-languages=c,c++,fortran,objc,obj-c++,treelang prefix=/usr enable-shared with-system-zlib libexecdir=/usr/lib without-included-gettext enable-threads=posix enable-nls with-gxx-include-dir=/usr/include/c++/4.1.3 program-suffix=-4.1 enable-__cxa_atexit enable-clocale=gnu enable-libstdcxx-debug enable-mpfr --enable-checking=release i486-linux-gnu+
    Thread model: posix
    gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
    +$ cat /etc/issue+
    Ubuntu 7.10 \n \l
    Can somebody PLEASE help me out?

    +$sudo make install+
    This installed the libs and jar file /usr/local/BerkeleyDB.4.7/lib/ . I have copied dbexamples.jar in that dir
    +$ls -l /usr/local/BerkeleyDB.4.7/lib/+
    -rw-r--r-- 1 root root  216418 2009-05-15 00:00 dbexamples.jar
    -r--r--r-- 1 root root  499438 2009-05-14 23:41 db.jar
    -rw-r--r-- 1 root root 1701010 2009-05-14 23:41 libdb-4.7.a
    -rw-r--r-- 1 root root     821 2009-05-14 17:36 libdb-4.7.la
    -rwxr-xr-x 1 root root 1394997 2009-05-14 17:36 libdb-4.7.so
    lrwxrwxrwx 1 root root      12 2009-05-14 23:41 libdb-4.so -> libdb-4.7.so
    -rw-r--r-- 1 root root 1701010 2009-05-14 23:41 libdb.a
    lrwxrwxrwx 1 root root      12 2009-05-14 23:41 libdb.so -> libdb-4.7.so
    Something must have gone wrong with either the build or the installation. In that directory should be files called "libdb_java-4.7.so" and similar, matching libdb-4.7.so. That is what the Java application can't find.
    Can you configure and make again, checking that there are no errors?
    Regards,
    Michael Cahill, Oracle Berkeley DB.

  • Is there a Zen to Java programming?

    As a programmer/ tech writer, I�m sort of envious of luxuries available to theoretical physicists who may contemplate such mysterious and exciting things as Heiseinberg Uncertainty Principle or wave-corpuscular dualism of elementary particles. However, are physicists the only hi-tech community that is permitted to enjoy surfing the Zen paradoxes abound in the world around? Are we computer people deprived of the like delights just because computing is so deeply rooted in Aristotelian and Boolean logic? I hardly think so. Zen (one may add Tao) logic is universal, and although we so strongly tend to employ patterns of our dreary �either-or� thinking while programming artificial things, these things, quite interestingly, happen to be not exempt from the Chaotic Beauty of the Natural World. In a word, Complexity (can one question complexity of modern computing?) ever meets Chaos. And an encounter with Chaos, paradoxically, expands our understanding of Order; or rather force us into accepting a sort of Another Order that underlies seemingly chaotic processes we observe. Further, I argue my thesis.
    Recently, I�ve pondered on tricks of object-oriented programming (OOP). Much was said about �more human-oriented� approaches available with OOP, which allow the programmer to enjoy a higher level of abstraction in comparison with traditional procedural methods that chain the poor developer down to a controlled flow of bits deep inside the machinery. Yes, as for me, systems design and programming in C++, Smalltalk and Java delivers more sense of �soaring above� than it does in COBOL. In other words, programming in Java appears to be a �more human� way of thinking. However, what do we understand saying �more human�? Here we need to be slightly technical. In essence of OOP lies the concept of object, which may be understood as an entity modeling a real world situation. One may announce that a Java programmer thinks in terms of real world proceedings, delivering his or her understanding of the processes by means of the quite abstracted technical language (code). As far, it sounds quite human, and it is so. And here again we can find, not surprisingly, the deep-rooted patterns of rational �either-or� logic. Object is thought of as static entity, and of course it is static in a technical sense. It possesses such qualities as state and behavior, changeable only within predefined limits. Also, object may be thought of as static because it represents a fixed (constant) set of variables (attributes) and subroutines (methods). Of course, objects provide only a degree of abstraction as to what we understand as a real world situation. However, at the same time they most definitely cannot be perceived as static entities because of dynamic nature of the computing process. In essence, computing is all about data processing, or performance of logical operations on variables stored in memory (the process was mathematically modeled well before the advent of computer as the famous Church-Turing Machine). More simply, there can be nothing static in computing at all, because computation is always a process. So, musing on the nature of objects in OOD&P, we encounter a highly sophisticated logical system presenting the following set of choices: (1) object is either static or dynamic, (2) object is both static and dynamic, (3) object is neither static nor dynamic. As we see, the two latter options sound absolutely Zen-like while the former characterizes the good old Western Aristotelian logic. This is the point where Complexity (of computing) meets Chaos, as it is thought of by Western mind-view, i. e. absence of logical consistency and determinism. It�s obvious that in OOP we cannot perceive object in other way than embracing an advanced sort of logic, so characteristic to Eastern thought. If we understand object as a real world entity, we are entitled to see it as a Zen entity either, which can be described only in the conformable logic system.
    [I�ve patented it as Bojenov Uncertainty Principle in OOP.  Of course, I�d be curious to hear from fellow Zen programmers and find out their opinions on the matter, via e-mail preferably.]

    You should spend some time around actual Physicists. You'd realize that a very small portion of Physics involves irrational, or imaginative thought. That instead a small portion of it is the imagination, and a larger portion is the execution to test the theorys produced my imagination. And this execution is MUCH less imaginative then anything. Alot of Physicists spend a great deal of their time programing at computer terminals making mathematical models of their data, most of them using far less conceptual models that are afforded to us computer programers these days.
    Alot of the Physics department is bent on still using Fortran. They're having a hard time getting them to convert to using C rather then Fortran, yet alone Java or C++. And I'm certain you can agree that these languages allow alot less room for imagination then does Java. You should probably work on introducing these traits you think so highly of the Physics community as having, to the physics community. And once they've fully learned to appreciate them, then maybe you can work on expanding them to the Computer Science community as well. You should realize as well that most Physicists, are also Computer Scientists.
    -Jason Thomas.

  • Can Java do this

    Hi,
    I want to really learn Java after just taking classes to this point. I have a task I need to do, but cannot figure IF I can do it in Java, let alone how.
    I have about 40 tools on my SGI. They are written in Fortran, C, or a commbination of both. Their code varies from a few lines to 200 or so source files. The machine is networked to other SGIs and Suns, but has no internet connections. My manager wants a top level GUI written to access these tools and to provide information about them.
    Can this be done in Java without rewriting all of the tools?
    I see that I need to be able to either:
    1) Spawn a process (i.e. tell the system to run a given tool) from my Java top level GUI or
    2) Write a small java interface for each tool and be able to compile that Java with the C or Fortran code.
    Can you do this in Java? If so can someone suggest a book or website to send me in the right direction?
    Thank you

    Hi,
    I want to really learn Java after just taking
    g classes to this point. I have a task I need to do,
    but cannot figure IF I can do it in Java, let alone
    how.
    I have about 40 tools on my SGI. They are written
    n in Fortran, C, or a commbination of both. Their
    code varies from a few lines to 200 or so source
    files. The machine is networked to other SGIs and
    Suns, but has no internet connections. My manager
    wants a top level GUI written to access these tools
    and to provide information about them.
    Can this be done in Java without rewriting all of
    f the tools?
    I see that I need to be able to either:
    1) Spawn a process (i.e. tell the system to run a
    given tool) from my Java top level GUI or
    2) Write a small java interface for each tool and be
    able to compile that Java with the C or Fortran code.
    Can you do this in Java? If so can someone suggest a
    book or website to send me in the right direction?
    Thank youYou can do number one, however this will have to be a system dependent implementation. We have created java applications that can launch non-java applications. It's a little messy but can be done pretty easily.
    As far as number two goes, that sounds like a real mess.

  • Can java quickly produce an  array with specified values?

    In Fortran I can quickly generate an array by typing
    Dimension SMF(20,2)
    DATA SMF/25*1.,3*0.,9*1.,3*0./
    this creates SMF with the value 1 in allocations 1 to 25, 0 in 26 to 27 and so on .
    Is there a way for java to do this ?

    Not necessarily. Maybe you can write a general Matrix type (an interface) and then write an implementation of Matrix in which its values are specified by an algorithm. So maybe your code would have lines like:
    Matrix m1 = new InitWithHardcodedValuesMatrix("{ { 1 2 } { 3 4 }}");
    Matrix m2 = new InitWithFormulaMatrix("/25*1.,3*0.,9*1.,3*0./");Or maybe someone has already done this. Have you tried Google?
    Anyway, the primary purpose of Java is not formula translation, so it's not surprising that it doesn't have this kind of thing built into the standard libraries.

Maybe you are looking for

  • Battery, heat, and ringer issues

    I recently purchased the Iphone 4s.. this is my first iphone I did the update that Apple sent out to help the battery and it seems like it worse then before the update??  My phone has been off the charger for 45 minutes, I sent 1 text message, and ha

  • Report Parameters in Developer10g

    Hello Dear All, i have a report of emp table with query like. 'select * from emp where deptno = :dept and empno = :emp ' now i want to use LOVs in parameters such a way that if user select deptno from :dept parameter then the other parameter (:emp) f

  • How do I transfer information from external hard drive

    I just had the (SeaGate) hard drive replaced on my daughter's Mac.  What are the on screen choices after the Welcome Screen?  I think my daughter may have clicked the wrong thing because now I seem to be having a problem getting her backed up info fr

  • Exporting from LR4 to Flickr with keywords?

    How do I automatically export keywords with LR4 photos to Flickr?

  • Using SYS_EXTRACT_UTC function in Oracle forms version 9

    Hi, I would like to use the function SYS_EXTRACT_UTC in forms but I get an error 201: identifier 'SYS_EXTRACT_UTC' must be declared. How can I use this function? do I need any library or something? Thanks