From: Franz Hartmann Date: 2005-05-11T20:01:09+09:00 Subject: Re: ruby vs. java? >From: Michael Ulm >Reply-To: ruby-talk@ruby-lang.org >To: ruby-talk@ruby-lang.org (ruby-talk ML) >Subject: Re: ruby vs. java? >Date: Wed, 11 May 2005 19:30:33 +0900 > >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 :-) Okay, everyone except for you, $\infty - 1$ :-) but in fact all the commercials are about speed. i remember turbo-pascal 5.5 where they introduced oo: "guilty of speeding" (there was a very funny picture to of a flying pig) -- it was not so fast then because i had an atari st running a dos emulator, norton factor ~ 0.1 :-)) okay, commercials are commercials but i think xerox used smalltalk to implement the first windows system on 1960s hardware. i dont know how fast processors were than but i think they cannot have been much faster than the good old apple 2 :-) . i dont know much about smalltalk but they say it is really similar to ruby? >From my experience, the >advantage of object oriented programming lies in better maintainability >of the code and (especially for Ruby) faster and cleaner design. yes, now you yourself say it: fast and clean 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. i may be a bavarian wood-head but i just dont understand. do your programs run faster with oo or do they not? just before you said "fast (...) design". >Trying to learn object oriented programming is a noble goal. If you >want fast and object oriented, use C++. Uuargh! must i? >If you want object oriented >and easy to program, use Ruby (be aware though, that Ruby is slow). but why is it slow, when it is so much like smalltalk? >The best of both worlds would be Ruby with C++ extensions, but that >means you would have to learn a lot. i will have to learn a lot anyway. but cant i rather do ruby with java extensions? isnt that the idea behind jruby? >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 yes it does! >>>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). doesnt vb run on mac too? then i will keep my pentium box. because i have so many vb macros for word & excel. >The overall design is just >plain awful. It is by far the very worst scripting language I have ever >programed in. well its very difficult to handle all that functionaility (as i admit that its too difficult for me), but why do you say "the overall design is awful"? > >HTH, what means HTH? just kidding :-))))) >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 > Franz _________________________________________________________________ Nicht lange suchen � finden! MSN Suche. http://search.msn.de/ Jetzt testen!