Python or Java ...
March 20, 2009 2:13 PM Subscribe
Help me choose between Python and Java for a specific type of programming.
Background: I am a researcher in engineering with a wide scope. Mostly, I perform simulations of (mechanical) systems, behavior of which are governed by differential equations. I also develop models for biology/genetics (but not bioinformatics type stuff). I use Fortran (I know) for programming, write results to output file(s) and read them using Excel or Tecplot to visualize. I also use Matlab and Mathematica for quick models. It gets pretty cumbersome after a while, especially when you want to quickly figure out behavior change (of a phenomenon) depending on the input variables. So I thought maybe it is time for me to learn some OOP and write codes that will allow me to change input variables interactively and see the results simultaneously on the screen. Following link best describes the type of interface I am looking for:
http://cmol.nbi.dk/models/igroup/igroup.html
You see what I mean? There are buttons, sliders, text boxes to change variables and the results change immediately in the "graphics" area. As far as I can tell, it is an applet written using Java. Let's drop the ability to write applets aside because I am not looking for that.
First question: can one write a code that would provide similar interface (GUI if you will) using Python?
If so, would it be pretty straight forward after some Python learning (I understand it is hard to answer this question but give it whirl please)?
Java appears a little intimidating to me while my initial experience with Python has been pleasant. However, I could not find any applications/codes on Python sites that fits what I am looking for (suggestions are welcome).
Thanks so much.
posted by eebs to computers & internet (27 answers total) 3 users marked this as a favorite
I couldn't load your applet cos I'm on a java free computer but the structure seemed similar to an agent based model. System Dynamics is a really great way of visualizing differential equations.
(I'm not familiar with python)
posted by a womble is an active kind of sloth at 2:24 PM on March 20, 2009