ruby vs. java?

F

Franz Hartmann

well now, i have to work my way thru quite a lot of very kind mails...
thanks to everyone here who has taken the time! sorry for not thanking you
more early but when i came back from the loo the computer was occupied :)

i think i now understand: "library" is a collection of plug-ins for ruby, or
other language. (ok you wont like the term, but i have to understand in my
own words.) ruby library <> java library. where can i download the ruby
library?

and please explain to me:
- what is "racc"? (sounds painful to me)
- what is the position of ilias lazaridis? (he is very authoritative but not
in charge?)
- what is a "lucky stiff" and what is a "paraffin banjo", especially if held
on someone's knee? (no idea about that)

Franz

_________________________________________________________________
Immer für Sie da. MSN Hotmail. http://www.msn.de/email/webbased/ Jetzt
kostenlos anmelden und überall erreichbar sein!
 
M

Michael Ulm

Franz said:
well now, i have to work my way thru quite a lot of very kind mails...
thanks to everyone here who has taken the time! sorry for not thanking
you more early but when i came back from the loo the computer was
occupied :)

i think i now understand: "library" is a collection of plug-ins for
ruby, or other language. (ok you wont like the term, but i have to
understand in my own words.) ruby library <> java library. where can i
download the ruby library?

There exist many libraries for many purposes. The standard library
should be part of the ruby distribution. Other libraries that help
you deal with specific purposes may be found at

http://raa.ruby-lang.org
and please explain to me:
- what is "racc"? (sounds painful to me)

This is a program that is a ruby "parser generator". This means you
give it a description of a gramar and it returns a ruby program that
parses texts written in that grammar. You probably don't need this yet.
- what is the position of ilias lazaridis? (he is very authoritative but
not in charge?)

Ilias is ruby-langs resident troll. You can savely ignore him.
- what is a "lucky stiff" and what is a "paraffin banjo", especially if
held on someone's knee? (no idea about that)

_why the lucky stiff (sp?) is ruby-langs resident mad genius. Check out
his introduction to ruby:

http://poignantguide.net/ruby

Michael

--
Michael Ulm
R&D Team
ISIS Information Systems Austria
tel: +43 2236 27551-219, fax: +43 2236 21081
e-mail: (e-mail address removed)
Visit our Website: www.isis-papyrus.com
 
B

Brian Schröder

=20
There exist many libraries for many purposes. The standard library
should be part of the ruby distribution. Other libraries that help
you deal with specific purposes may be found at
=20
http://raa.ruby-lang.org
=20
=20
This is a program that is a ruby "parser generator". This means you
give it a description of a gramar and it returns a ruby program that
parses texts written in that grammar. You probably don't need this yet.
=20
=20
Ilias is ruby-langs resident troll. You can savely ignore him.
=20

Before you ask: http://en.wikipedia.org/wiki/Internet_troll

regards,

Brian

--=20
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/
 
B

beliavsky

Jason said:
Random thoughts related to this topic:

+1 for ForTran. Learn to love it.

Don't force an Object Oriented design onto your numerical analysis
problem unless there is good reason too do so. You'll shoot yourself
in the foot before you even get started.

I agree, but note that Fortran 95 does have user-defined types with
public and private data members and operator overloading (but not
inheritance), so it has some support for OOP (although not as much as
C++ does). The matrix and vector classes I see defined in C++ numerics
books often just create part of the functionality (such as whole-array
operations) that is built in to the arrays of Fortran 95.
 
S

speechexpert

I want to set up a state machine, in this case I am parsing a simple
scripting language using regexp, and then running
a segment of code, which might be another regexp, etc. I'd like to be be
able to specify that code in a file...

Can I feed a String like "str = a.scan(/\<cat.*?>/)" #regexp here
is just an example ;)
into a method or any other way and have it execute?

TIA
John B
 
B

Brian Schröder

I want to set up a state machine, in this case I am parsing a simple
scripting language using regexp, and then running
a segment of code, which might be another regexp, etc. I'd like to be be
able to specify that code in a file...
=20
Can I feed a String like "str =3D a.scan(/\<cat.*?>/)" #regexp= here
is just an example ;)
into a method or any other way and have it execute?

Take a look at eval

irb(main):001:0> s =3D "1+10+13"
=3D> "1+10+13"
irb(main):002:0> eval s
=3D> 24
irb(main):003:0> eval 's.scan(/\\d+/)'
=3D> ["1", "10", "13"]

regards,

Brian
=20
TIA
John B
=20
=20


--=20
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/
 
M

Mark Hubbart

well now, i have to work my way thru quite a lot of very kind mails...
thanks to everyone here who has taken the time! sorry for not thanking yo= u
more early but when i came back from the loo the computer was occupied :)
=20
i think i now understand: "library" is a collection of plug-ins for ruby,= or
other language. (ok you wont like the term, but i have to understand in m= y
own words.) ruby library <> java library. where can i download the ruby
library?
=20
and please explain to me:
- what is "racc"? (sounds painful to me)

Included with Ruby, it allows you to write parsers, for document
formats or for programming languages.
- what is the position of ilias lazaridis? (he is very authoritative but = not
in charge?)

Ilias is our resident controversy. Be careful around him, he's been
known to bite.
- what is a "lucky stiff" and what is a "paraffin banjo", especially if h= eld
on someone's knee? (no idea about that)

_why, or "why the lucky stiff", is our resident guru jester. He keeps
things lighthearted around here, while surreptitiously injecting large
chunks of wisdom.

And a "paraffin banjo" is the instrument you play Waxy Bluegrass on. :)

cheers,
Mark
 
J

James Edward Gray II

Included with Ruby, it allows you to write parsers, for document
formats or for programming languages.

The racc runtime is included with Ruby, but not racc itself. Right?

James Edward Gray II
 
M

Mark Hubbart

On May 12, 2005, at 11:16 AM, Mark Hubbart wrote:
=20
=20
The racc runtime is included with Ruby, but not racc itself. Right?

I believe so. I've never actually worked with it, though, just read about i=
t.

cheers,
Mark
 
S

speechexpert

Here's the coding scenario:

I match an input string with regexp and store captuing group in an @instance
var.
The captured string may have 'difficult' characters such as ? " ' etc.
Considering that the regexp will capture all those chars, is Ruby smart
enough not to choke on them when they show up in a string
that will be used in various methods or expressions?

JB
 
A

Ara.T.Howard

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.

one thing no one has thrown out here is the idea of clustering your code. we
run a small linux cluster of 30 nodes and this make many codes which we can
develop quickly but do not run quickly feasible to test. we do a lot of this
since many things just get thrown away - as is typical in research. in any
case i wrote a tool, rq (ruby queue), which allows one to setup a linux
cluster in about 5 minutes. for some domains it certainly 'faster' to get
your science done by just buying more computers and writing code in something
that allows the fastest devleopment time which, in our case, is ruby and idl.
no one likes to think of things this way but it can be much more economicalto
have phd's running slow code on a cluster today vs. fast code in a single node
next month - especially when preliminary results are required for more grants
(my work for today for example ;-) ).

2 cts.

kind regards.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| renunciation is not getting rid of the things of this world, but accepting
| that they pass away. --aitken roshi
===============================================================================
 
D

David A. Black

Hi --

- what is a "lucky stiff" and what is a "paraffin banjo", especially if held
on someone's knee? (no idea about that)

A paraffin banjo is an example of wh(ims)y :)


David
 
A

Austin Ziegler

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.

In fact, Java is *less* object-oriented in some ways than Ruby. No,
Ruby doesn't support "interfaces" as they're not needed in Ruby.
There is a long discussion behind this, but understand that anything
you can do in Java can ultimately be done in Ruby -- it just won't
look much like the Java code that does it. It'll usually be smaller
and more concise.
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.

Octave is a programming language that can be compiled for Mac OS X
(which is Unix) and it can run under Windows:

http://octave.sourceforge.net/Octave_Windows.htm
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)

Visual Basic is neither powerful nor object oriented. Visual
Basic.NET is powerful and object oriented, but bears no relationship
to either VB6 or Visual Basic for Applications used as a macro
language in Excel and Word.

-austin
--=20
Austin Ziegler * (e-mail address removed)
* Alternate: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,474
Latest member
AntoniaDea

Latest Threads

Top