Math Intensive, Calculation Based Website - Which Language Should I Use? [closed] - java

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am very new to programming. I am familiar with HTML, C++ and learning PHP to start a database.
I want to make a website which tracks a stock price. I have written various algorithms in Matlab however, MATLAB only has a to-Java conversion.
I was wondering what language would be the best to do a lot of calculations. I want my calculations to be done in real time and plotted. Would Java be the best language for this?
I can do the calculations in C++ but I don't know how to put the plots on the website. Likewise I believe I can do everything in Matlab but the conversion looks a little sketchy.
I would be very thankful if someone with experience with Java, or I also heard python, would comment on my post.

My advice: write the website code in Python with Django and do the calculations in Numpy/Scipy. Those two libraries provide a very Matlab-like API for heavy computations. Their performance is excellent. Matplotlib is the associated plotting library.

It's not so much the language that matters, it's making sure that you have a good mathematics library for it. MATLAB is neat because it does all that matrix math super fast for you, but of course you need to link it with another language like you said.
Your goal should be to either find a good math library for the language you like, or find a language with a good math library you like.
For What It's Worth: I know Python has NumPy (scientific computing package) and Sage Math (a libre Mathematica clone).

I think you can use PHP or Java Web.

I would do C++ and write them to a database, then using php you can grab them from the same database and show them online, otherwise then java can do all that but make sure all calculations aren't done on the fly since that will kill your server, especially with stocks that can turn into a lot of data.

if you want to plot data, then you may be able to pass off some of the calculation to the google chart api:
http://code.google.com/apis/chart/

Related

Which to choose Python or java [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have opportunity to study either JAVA or PYTHON.
But I can't decide which to choose. I am already well versed with C++.
Can you plz tell which one is better with our experience.
I'd say go for python.
Its very easy to code.
This is a really relative questions and there is no "right" answer.
I personally would go with Python but I already took multiple Java classes. Python is fun and interesting but Java has been around for a while and isn't going anywhere any time soon.
If you are just learning object oriented programming language then I will suggest you to start with JAVA. Because if you don't understand the ideas behind the object oriented programming nicely, you will certainly legging behind. but if you have good experience on the ideologies (i.e. structured programming language or object oriented) then, its not a matter whether you should go with JAVA or Python. The basic concept is the main thing you need to learn.
I feel, there is not much about the language. Its just implementing the logic. You can use anything to express that. But the have to keep in mind about the drivers and libraries available for the language that you are selecting
Start out with Python; use Python for your own hackish projects - it's great for Web Apps and rapid prototyping.
Learn Java later on and you'll enjoy it; learn it before Python and you won't appreciate the kind of OOP Java has to offer as much.
This is from personal experience; again, like twodayslate mentioned, there is no "right" answer. I learnt both Python and Java on my own and use mainly Python for personal projects.

Java's popularity in Internet Algorithmics (Search, Big Data etc.) [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I have been writing C/C++ code for years. Recently started doing lot of Java too because some of the very fine products that I am using to solve my computing problems are all written in Java (Example: Lucene/Solr, Hadoop, Neo4j, OpenNLP etc.).
I am seeing this chage since last 3-4 years that Java has really got very popular atleast in Internet Algorithms (Clustering, Search, Big Data & so on). Though their are counterparts of the products that I have mentioned above in C++ (like for Search Sphinx written in C++ is a great option, Google has its Map Reduce written in C++ etc.)
I am just curious to know what are the factors & strength's that are making Java very popular these days specially in the Information Retrieval & Big data domain.
I just wanted to know the strengths of Java which is making it very popular in Internet Algorithms space? Is it just because of platform independence thing?
I would argue that Java and C++ perform at a similar level outside of the arbitrary, contrived situations which are so often used to prove that X is faster than Y.
Once you factor in network round-trip times and other, real world delays, I can't see a C++ application offering a measurable advantage over a Java application simply due to being C++ as opposed to Java. You will, however, see a measurable difference between a well-written application and a poorly-written application.
plattform independance is a nice feature, but doesn't always work in java. depending on what you do
java gets its popularity for the fact, that it's more safe than c++
you can not use pointer arithmetics and you can not manage memory allocation on your own
if something wents terribly wrong, you get an exception or an error, or the program just crashes but in java you are relatively sure not to continue doing things you definitely don't want to do
yes you can do all that in c++, but that's not the question, isn't it?

Java Book or Website (like Cplusplus.com) for C++ programmers to learn java very fast [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am looking for a book which teaches Java very fast. Basically I am a C++ programmer and do not need to know each and every aspect of programming. I am learning java for android apps development. A lot of books like thinking in Java, learning java and others suggested are pretty big and I want something small to get me going.
A website like http://www.cplusplus.com/doc/tutorial/ for java also can be helpful. please answer ASAP.
I love to think of the javadoc as the equivalent of cplusplus.com. The comments on standard classes are much more detailed than stl comments are (and the code is a lot easier to read, too)
Personally I'd recommend just reading a tiny bit of literature and then using an IDE that provides really quick access to code and comments for any callable method (almost all do if you link sources and javadoc). Usually they provide greate usage exmaples and the code itself teaches best practices and proper design.
Unlinke for C / C++ I don't think using an IDE is much of a problem. Javac hides everything anyway and there is not much to know about something like linking unless you use a lot of libraries and enter "jar hell". But even then there is nothing to be learned by compiling from the shell that might help.
Build scripts to use will most probably ant or maven and both are a lot more high-level than Makefiles. While I'd really recommend never to rely on an IDE for C++, I'd totally do so for java.
What about Beginning Android 3 (http://www.apress.com/9781430232971)
It has 612 Pages but it really focuses on Android development and not really on programming basics.
Check the Table of Contents on that page and you will see.
Head First Java is a great book and very easy to read and understand. It got lots of graphics to support the reading. I find it perfect for beginners.
For pure java - Thinking in java (its nicely written but quite big (+1000pages))
For Android check notepad tutorial on official android page its good for beggining http://developer.android.com/resources/tutorials/notepad/index.html

Java library for matrix operations involving complex numbers? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to rewrite some signal processing code of mine from C++ to Java. I wind up with matrices of complex numbers (numbers with imaginary components). I need to find the inverse of an NxN complex matrix, as well as the principle eigenvector.
There are several Java libraries to do this with real numbers, but I couldn't find anything that supported complex numbers. I found one library but it was proprietary and had to be licensed.
Has this been implemented anywhere?
I can always wrap the needed C code with JNI, but I was doing this to avoid platform dependence.
I'd recommend Apache Commons Math. I believe that it carries on from where JAMA left off.
In a past university course, I worked with JAMA.
There is a java LAPACK that's basically an automatic translation of the FORTRAN one: http://www.netlib.org/java/f2j/ . The packaged sources don't include the complex ones unfortunately, but you can apply the same technique to those, I guess. Might be a lot of effort though, and I can't vouch for the performance to be satisfactory.
Also have a look at JavaNumerics at http://math.nist.gov/javanumerics/#libraries . They have a quite comprehensive list of things that might help you.
I recommend Michael Thomas Flanagan's Java Scientific Library: http://www.ee.ucl.ac.uk/~mflanaga/java/index.html
I found it much easier to use than the others mentioned in this post so far.
cern.colt is worth trying.

Future of Java and JavaFx [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
I just want to know if there are any future for Java and JavaFx. Reason i ask cos' so many programming language keeps popping up. Please advise.
Here is the TIOBE Programming Community Index for July 2010:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
You can see, Java is still the best followed by C which some folks out there say it is such a dinosaur these days.
Agree with Rafe Kettler, languages don't die.
About JavaFX, have no idea now since I haven't use an application written in it yet but I am curious to know about its future, please let me know also.
I think Java's chances are as good as those of FORTRAN, COBOL, and LISP.
I can't predict Java's future any better than I can tell whether or not I'll get hit by a bus tomorrow. Can you?
I think that Java has a pretty good chance of continuing to exist. Java has always been great for web applications, so on and so forth. And like previous posters have mentioned, languages don't die: look at C, Fortran, etc. which have continued to exist for many decades in their fields of "core competency."
I think that Java will see consistent use as Javascript is as possible as ever, especially since Google has built the Android and AJAX APIs around Java or derivative languages.
That said, Java may need a reboot (much like C needed objects, so they made C++). So we may be seeing a J++ soon (not the stupid MS version, but a good, open source one)
There are still plenty of jobs in COBOL:
http://www.itjobswatch.co.uk/jobs/uk/cobol.do
And COBOL has been around since 1959.
But some languages and platforms do die out e.g. G-code, DBase IV and CP/M - those were the days! :)
You're kidding right? I wouldn't bet on JavaFX but Java? There is so much software written with Java of course there is a future. And which programming languages are you referring to that 'keep popping up'? Languages that run on the Java VM? Ruby? Python? (Ruby and Python have been around as long or longer (in the case of Python) than Java).

Categories

Resources