[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby vs. java?

Franz Hartmann

5/11/2005 8:57:00 AM

Hello all,

just call me Franz. I study physic in Berlin, but i am from bavaria (that is
in the south of germany). sorry for my bad english but foreign languages are
not my strong point. i like more mathematic.

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?

Franz

ps. does ruby run on macintosh tiger?

_________________________________________________________________
MSN Hotmail. Anmelden und gewinnen! http://www.msn.de/email... Ihre
Chance, eines von 10 T-Mobile MDA II zu gewinnen!



60 Answers

Michael Ulm

5/11/2005 9:19:00 AM

0

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).

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.

HTH,

Michael

P.S. do yourself a favour and forget that such a beast as vb exists.

--
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


Jaypee

5/11/2005 9:22:00 AM

0

Franz Hartmann a écrit :
> Hello all,
>
> just call me Franz. I study physic in Berlin, but i am from bavaria
> (that is in the south of germany). sorry for my bad english but foreign
> languages are not my strong point. i like more mathematic.
>
> 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?
>
> Franz
>
> ps. does ruby run on macintosh tiger?
>
> _________________________________________________________________
> MSN Hotmail. Anmelden und gewinnen! http://www.msn.de/email...
> Ihre Chance, eines von 10 T-Mobile MDA II zu gewinnen!
>
>
>
I can answer to the PS: yes, the version 1.8.2 of ruby is a standard
part Tiger.
For the other points, may I suggest you to be specific about what you
are looking for in VB or in Java (GUI, ready to use libs etc) that you
did not find. It will help further answers.
J-P

Robert Klemme

5/11/2005 9:28:00 AM

0

Dear Franz,

Franz Hartmann wrote:
> Hello all,
>
> just call me Franz. I study physic in Berlin, but i am from bavaria
> (that is in the south of germany).

You sure wanted to say "Bavaria is the southern neighbour of Germany"...
:-)))
(Sorry group, this is just some internal German joke.)

> sorry for my bad english but
> foreign languages are not my strong point. i like more mathematic.
>
> 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.

VB is too powerful? I've never heard that before...

I'm not really into physical calculations but I'm sure you need a fast
language as these things tend to involve a lot of number crunching. IMHO
that rules out VB, leaving Java and Ruby. For Ruby you might need a C
extension to do the math (depending on your requirements you will have to
write it on your own or you might find something useful on the RAA).
Plain Java can be quite fast if used properly.

> 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?

Well, there are of course performance differences (depending on the
application at hand). Ruby is usually more concise and easier to read
(IMHO) because it needs less lines of code. Other than that I think you
can do pretty much the same with both.

Maybe it's more important which tools are around: is there a numerical
library capable of doing the kind of stuff you need? Are there IDE's
available that suit you? These kinds of questions.

> Franz
>
> ps. does ruby run on macintosh tiger?

Dunno.

Kind regards

robert

Ralf Müller

5/11/2005 9:43:00 AM

0

On Wed, 11 May 2005 17:57:10 +0900
"Franz Hartmann" <porschefranz@hotmail.com> wrote:

> Hello all,
>
> just call me Franz. I study physic in Berlin, but i am from bavaria (that is
> in the south of germany). sorry for my bad english but foreign languages are
> not my strong point. i like more mathematic.
>
> 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?

Well...

it depends on what you mean by 'the best programming language for this'?
Should it be fast? or have beautiful code? Should it be extensible? Do you want to rely on existing libraries?

I did some numerical analysis in geophysics and it took 1-7 days to get the results. So, you should keep in mind how expensive you number crunching will be. Maybe a week is to long for you.

btw: there is a 'Runge-Kutta Ruby Class' avaliable, search freshmeat

regards
ralf


Franz Hartmann

5/11/2005 10:01:00 AM

0

Hello Michael and all of you,

>From: Michael Ulm <michael.ulm@isis-papyrus.com>
>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 18:19:01 +0900
>
>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 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.

>HTH,

what means HTH?

>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)

>
>--
>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

Nice website!

Franz

_________________________________________________________________
Die rote Karte für lästige E-Mails. MSN Hotmail mit Junk-Mail-Filter.
http://www.msn.de/antispam/prevention/junk... Jetzt kostenlos
anmelden!



Franz Hartmann

5/11/2005 10:19:00 AM

0

Hello Robert,

>From: "Robert Klemme" <bob.news@gmx.net>
>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 18:30:27 +0900
>
>Dear Franz,
>
>Franz Hartmann wrote:
> > Hello all,
> >
> > just call me Franz. I study physic in Berlin, but i am from bavaria
> > (that is in the south of germany).
>
>You sure wanted to say "Bavaria is the southern neighbour of Germany"...
>:-)))
>(Sorry group, this is just some internal German joke.)

S**preiß damischer ;-) ! Wos wuisch? (<= Sorry to, but that is how we
bavarians react on other germans)
A Preiß is Nice, but a Bayer is Higher.

> > sorry for my bad english but
> > foreign languages are not my strong point. i like more mathematic.
> >
> > 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.
>
>VB is too powerful? I've never heard that before...

there is not one vb book which is <1000 sides and everything goes like
this.object.has.another.property.than(the.other.object.which.we.talk.about)...
and you can program excel & word with it. thats what i think, maybe i should
use an excel sheet and do the programming with vb. or is their something
like ruby for excel?

>
>I'm not really into physical calculations but I'm sure you need a fast
>language as these things tend to involve a lot of number crunching. IMHO
>that rules out VB, leaving Java and Ruby. For Ruby you might need a C
>extension to do the math (depending on your requirements you will have to
>write it on your own or you might find something useful on the RAA).
>Plain Java can be quite fast if used properly.

Why is vb not a fast language? I have read statistics who say that you can
program in vb 10x as faster than in c/c++. i dont know, i cant c and i dont
like it too. /must/ i write an extension to do math in ruby?
how fast can java be? depends this not on the browser?
and what is RAA? i guess some archive but where can i find it?

> > 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?
>
>Well, there are of course performance differences (depending on the
>application at hand). Ruby is usually more concise and easier to read
>(IMHO) because it needs less lines of code. Other than that I think you
>can do pretty much the same with both.

Is this good? Can we say: Less code => run faster?

>Maybe it's more important which tools are around: is there a numerical
>library capable of doing the kind of stuff you need? Are there IDE's
>available that suit you? These kinds of questions.

Oh, dont you worry about the library, i think i have all the necessary math
books on my shelf.
What is IDE?

> > Franz
> >
> > ps. does ruby run on macintosh tiger?
>
>Dunno.

I dont too, so there is at least one thing we have common. I think we will
be friends, if if you are a Preiß :-) .

>Kind regards
>
> robert
>

Franz

_________________________________________________________________
Nicht lange suchen ? finden! MSN Suche. http://sear... Jetzt testen!



Franz Hartmann

5/11/2005 10:25:00 AM

0

Hello Jaypee,

>From: Jaypee <rf.oodanaw@sd.eepyaj>
>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 18:25:27 +0900
>
>Franz Hartmann a écrit :
>>Hello all,
>>
>>just call me Franz. I study physic in Berlin, but i am from bavaria (that
>>is in the south of germany). sorry for my bad english but foreign
>>languages are not my strong point. i like more mathematic.
>>
>>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?
>>
>>Franz
>>
>>ps. does ruby run on macintosh tiger?
>>
>>_________________________________________________________________
>>MSN Hotmail. Anmelden und gewinnen! http://www.msn.de/email... Ihre
>>Chance, eines von 10 T-Mobile MDA II zu gewinnen!
>>
>>
>>
>I can answer to the PS: yes, the version 1.8.2 of ruby is a standard part
>Tiger.

That is very good. Because i think to buy a macintosh perhaps. the G5 is now
at 2x2.7 ghz and i think this is just what i need. can ruby handle two
processors? (or do i need a c extension for that *g* ?)
btw, i know this is a ruby list but is their any way to run windows programs
on mac?

>For the other points, may I suggest you to be specific about what you are
>looking for in VB or in Java (GUI, ready to use libs etc) that you
>did not find. It will help further answers.
>J-P

yes you may but i myself dont know yet :-) . i think windows and graphics
will be needed. 3d graphics would be super to present the results.
as i wrote before, going into libraries is not a problem, i have all the
books and documentations.

Thanks
Franz

_________________________________________________________________
Eine für alle. MSN Suche. http://sea... Finden statt suchen!



Michael Ulm

5/11/2005 10:31:00 AM

0

Franz Hartmann wrote:

> Hello Michael and all of you,
>
>> From: Michael Ulm <michael.ulm@isis-papyrus.com>
>> 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


Franz Hartmann

5/11/2005 10:32:00 AM

0



>From: Ralf Müller <r_mueller@imp-ag.de>
>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 18:42:47 +0900
>
>On Wed, 11 May 2005 17:57:10 +0900
>"Franz Hartmann" <porschefranz@hotmail.com> wrote:
>
> > Hello all,
> >
> > just call me Franz. I study physic in Berlin, but i am from bavaria
>(that is
> > in the south of germany). sorry for my bad english but foreign languages
>are
> > not my strong point. i like more mathematic.
> >
> > 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?
>
>Well...
>
>it depends on what you mean by 'the best programming language for this'?
>Should it be fast? or have beautiful code? Should it be extensible? Do you
>want to rely on existing libraries?

as i said before, i need no libraries. have all the books at hand.
should be fast. what do you call a beautiful language?

>I did some numerical analysis in geophysics and it took 1-7 days to get the
>results. So, you should keep in mind how expensive you number crunching
>will be. Maybe a week is to long for you.

oh, it will not be expensive at all because i can use my own computer. or
maybe i will by me a mac, that costs less then ?3000.
if i can get the programm written in a week i will be very happy.

>btw: there is a 'Runge-Kutta Ruby Class' avaliable, search freshmeat

thanks for the hint, but i went to freshmeat.com and it did not found
anything: it just gave me "Popular Categories" and such stuff. I mean,
<eiteitei>skin care is quite nice</eiteitei>, but not what i look for. WHere
must i look?

>
>regards
>ralf
>

thanks,
Franz

_________________________________________________________________
Ungestört surfen. MSN Toolbar mit Pop-up-Blocker. http://toolb...
Jetzt kostenlos downloaden!



Logan Capaldo

5/11/2005 10:36:00 AM

0

On 5/11/05, Franz Hartmann <porschefranz@hotmail.com> wrote:

> >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.
>
> >HTH,
>

GNU Octave IS a programming language., designed for numerical
applications. It runs on Windows, Linux and OS X. Its website is here:
http://www.o...