From: Michael Ulm Date: 2005-05-11T19:30:33+09:00 Subject: Re: ruby vs. java? Franz Hartmann wrote: > Hello Michael and all of you, > >> From: Michael Ulm >> Franz Hartmann wrote: >> >>> Hello all, >>> >> --snip-- >> >>> I want to do a physical model calculation about the dynamics of >>> incompressibel liquids. I am not sure which is the best programming >>> language for this. I think about visual basic, java and ruby. I know >>> java quite good and vb and ruby a bit. actually i wanted to do it in >>> vb but its to powerful for me. so i am looking for something easier. >>> >>> can you tell me the essential differences between java and ruby? what >>> can you do in ruby that you cannot do in java? and what about jruby? >>> can i combine java and ruby? >>> >> >> Sorry Franz, you are on a completely wrong track there. As much as >> I hate to steer people away from Ruby, I don't think any of the >> programming languages you mention are a good choice for numeric >> simulations (if you would have to do it in one of those languages, >> Ruby would be the best of the three for most applications). > > > Why are the programming languages i need not a good choice? Everyone > says that object oriented programming is much faster than normal. Java > has more object oriented feetures than ruby, or supports ruby interfaces > and things like that too? i have not found any thing about it but > documentation is very poor. I do not say that object oriented programming is much faster than normal, so not everyone is saying that :-) From my experience, the advantage of object oriented programming lies in better maintainability of the code and (especially for Ruby) faster and cleaner design. Java having more object oriented features than Ruby? Only if you take Javas (slightly strange) definition of object oriented. However, Java is a powerful language, with very good documentation - not the worst choice for many things. >> I would recommend Octave as the best free choice for getting >> solutions for (partial) differential equations. If you have money >> to burn, you may want to look at Matlab or, depending on your >> specific needs, Maple or Mathematica. > > > i cannot use octave. SGI octave is a unix machine and i need windows > compatible, or best case macintosh, because i need use word & excel & > power point (& counterstrike *g* ). which programming languages run on > octave? > thank you for the suggestion, i have already tried matlab but it is not > good to. I want to do object oriented programming because it is faster. Object oriented programming has nothing to do with execution speed. Trying to learn object oriented programming is a noble goal. If you want fast and object oriented, use C++. If you want object oriented and easy to program, use Ruby (be aware though, that Ruby is slow). The best of both worlds would be Ruby with C++ extensions, but that means you would have to learn a lot. The reason I recommend Octave/Matlab is that there is already a lot of infrastructure there for numerical computations. You would have to write a lot of that yourself in most other languages. > >> HTH, > > > what means HTH? Hope That Helps >> Michael >> >> P.S. do yourself a favour and forget that such a beast as vb exists. > > > Why that? VB is industry standard, a VERY powerful object oriented > language. All programmers i know write in VB, and excel, word etc also > use VB. What is wrong about it? (apart from that it is very difficult) vb is only available on one plattform. Microsoft itself wants to get rid of it (so much for industry standard). The overall design is just plain awful. It is by far the very worst scripting language I have ever programed in. HTH, Michael -- Michael Ulm R&D Team ISIS Information Systems Austria tel: +43 2236 27551-219, fax: +43 2236 21081 e-mail: michael.ulm@isis-papyrus.com Visit our Website: www.isis-papyrus.com