A Comparison Of Dynamic and Static Languiges

A

atbusbook

I'm doing a report on the speed of develipment and executionin varius
programing langiuiges. write code for all these tasks in the languige
of your choise if intrestied send code to (e-mail address removed).

Task 1:
write a program that prints how many times you repeat all words in a
file passed as a comand line
paramiter and from STDIN. with the output format being "\"%s\" word
repeated %i times\n"
Task 2:
write a comand line rpn calculator that has a syntax like forth with
only floats; also it must have these and
only these operations +, -, *, /, ., .s, rot, dup, swap, pick, roll.
.. and .s are pop print and .s print stack in this
with a new line after each item and the top of the stack at the
bottom.

compiler info

c#: mono 1.1.13.7
perl: perl 5.8.8
python: python 2.4.2
ruby: ruby 1.8.4
 
S

Scott M.

Perhaps you should do your own work so you'll understand the concept and
learn something?

Also, widely posting your real (unaltered) email address in forums like this
is a sure way to get noticed by spammers.

Good luck.
 
G

gwtmp01

2. But first, learn how to assemble paragraphs into articles.
3. But first, learn how to assemble sentences into paragraphs.
4. But first, learn how to assemble words into sentences.
5. But first, learn how to assemble letters into words.

No comment on the whole homework issue, but I think it is important
to keep in mind that not everyone on the Internet has English as their
first language.

I can only imagine what sort of comments would be generated by the
native speakers if we all had to post to ruby-talk in Japanese.

Gary Wright
 
S

sturlamolden

c#: mono 1.1.13.7
perl: perl 5.8.8
python: python 2.4.2
ruby: ruby 1.8.4

And why would any of this tell you anything about static versus dynamic
languages? The languages you list are all dependent on different
runtimes, and your results will simply reflect that. It would not tell
you anything about how the dynamic or static nature of the language
affects the execution speed.

Common Lisp is dynamic just like Python, and there are interpreted and
compiled implementations of it. It is common knowledge that interpreted
Lisp is "slow". Fewer know that compiled Lisp runs nearly at the speed
of C, albeit being a dynamic language. So how would you conclude if you
added a compiled implementation of Common Lisp to your list?
 
K

Kevin Jackson

I'm doing a report on the speed of develipment and executionin varius
programing langiuiges. write code for all these tasks in the languige
of your choise if intrestied send code to (e-mail address removed).

Why would people want to send you code? I can understand asking for
help with a problem you may have *after you've attempted the work for
yourself*, but I doubt anyone really has the time/inclination to
simply email you the code so that you can hand it in to your
prof/teacher and get a passing grade etc.

If you want help with something, it's fine to ask, but don't expect
busy people to simply spoon-feed you your homework assignments. Oh
and if you really want help, phrasing your email in a nicer way would
help and as others have pointed out, a basic grasp of English spelling
is also useful.

Although congratulations on finding the ruby-talk mailing list, that's
at least a promising start

Kev
 
D

David Vallner

--------------enigFB88C78640DF8C172E710272
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Paul said:
(e-mail address removed) wrote:
=20
/ ...
=20
=20
That could apply in this case, but in my experience, non-native speaker= s
tend to acquire better basic skills before posting. This is almost
certainly the case of a native speaker who has spent his life watching
television rather than reading books.
=20

=46rom my own wombling around various internet communities, the most
horrendous spelling comes always from native speakers that think grammar
is overrated and couldn't care less. Non-native speakers that
acknowledge their poor skill at grasping languages tend to at least use
a spellchecker. Either way only lack of personal initiative can be to
blame for something as above.

David Vallner


--------------enigFB88C78640DF8C172E710272
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFFO/JTy6MhrS8astoRAu+sAJ4z65KTr8QZGCfnM0by9N9j67OHZwCff17I
TSWJFEhrnCFCvxXrjqz5QTM=
=bmOx
-----END PGP SIGNATURE-----

--------------enigFB88C78640DF8C172E710272--
 
D

David Vallner

--------------enigF3B7F7C22C3A216CF9B73CA0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Bil said:
I thought we were Rubyists not judgmental grammar police.
=20

It's not the bad grammar (or rather, spelling) that's being bashed, but
the lack of any effort whatsoever (running a spellchecker) to improve it.=


Non-native speakers tend to show problems with sentence construction
rather than spelling. I've yet to see one instance of that (a problem
not solvable by trivial computer-assisted means) being criticised,
despite the fact there are posts I sometimes have to literally decipher.

David Vallner


--------------enigF3B7F7C22C3A216CF9B73CA0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFFPAxny6MhrS8astoRAiiVAJ0ee8jH5enJNE6ecvMZWSjQSAeSFACeJYCB
bx8ITRNZqBOlNgi6LHZZQpM=
=9cDh
-----END PGP SIGNATURE-----

--------------enigF3B7F7C22C3A216CF9B73CA0--
 
B

Bill Kelly

From: "David Vallner said:
It's not the bad grammar (or rather, spelling) that's being bashed, but
the lack of any effort whatsoever (running a spellchecker) to improve it.

Non-native speakers tend to show problems with sentence construction
rather than spelling. I've yet to see one instance of that (a problem
not solvable by trivial computer-assisted means) being criticised,
despite the fact there are posts I sometimes have to literally decipher.

If I guess correctly at Bil's observation, it may be that a
variety of non-confrontational methods may suffice to encourage
the OP.


Not sure though,

Regards,

Bill
 
D

David Vallner

--------------enigCBF3F3B69628D1ECC7600303
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Bill said:
If I guess correctly at Bil's observation, it may be that a
variety of non-confrontational methods may suffice to encourage
the OP.
=20

http://groups.google.com/[email protected]

Evidence would suggest...

At least he's more laughs than the TIOBE index (and its cousins)
sensationalist trolls. The first time I saw "Coo De Tar" I almost fell
off my office chair in convulsions.

David Vallner


--------------enigCBF3F3B69628D1ECC7600303
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFFPBWUy6MhrS8astoRAhBVAJ4pmwCyLYkVJPhHQqWM5IK8huN4qgCfbogZ
PZ2ovZZ9OP56OpGH50FkVHI=
=cEVf
-----END PGP SIGNATURE-----

--------------enigCBF3F3B69628D1ECC7600303--
 
B

Bill Kelly

From: "David Vallner said:

:-o http://tastyspleen.net/~quadz/sillypx/vader_team_owns.jpg

Good point. =D
At least he's more laughs than the TIOBE index (and its cousins)
sensationalist trolls. The first time I saw "Coo De Tar" I almost fell
off my office chair in convulsions.

Haha, indeed, reminds me of the Circle Jerks song.

I guess I still wonder if 'tis possible that:

An' if a Rubyist recognizes a troll, the appropriate response is:

- look for grammar mistakes: pwned!

- address technical questions while not getting suckered into doing homework




- ...... ?



I guess my momentary read of Bil's idea (i could well be incorrect) was that a Rubyist could perhaps respond in some
non-confrontational way, as many confrontations engender psychic loops. Not that I'm an authority in not getting stuck in psychic
loops. =D


Regards,

Bill
 
P

Paul Robinson

In the long run, his ignorance of English will really hurt him

Can I suggest your lack of tolerance, combined with your brusqueness
will in the long run, really hurt you? If you were in a bar and
talked to somebody like that, the 'hurt' might be quite physical. :-(

Bearing in mind we here on rubytalk are using a programming language
that was designed and given to us by a man whose first language is
not English we should be especially tolerant of people for whom
English is a second language.

This is a nice place with friendly people, dedicated to a language
intended to make programming pleasureable. Please keep it that way.
If you can't, you might fit in better with the PHP, Python, Perl and
Java guys.

Thanks,
 
B

Bil Kleb

David said:
It's not the bad grammar (or rather, spelling) that's being bashed, but
the lack of any effort whatsoever (running a spellchecker) to improve it.
[..]
there are posts I sometimes have to literally decipher.

Please just move on to the next post then.

Regards,
 
B

Bil Kleb

Paul said:
Bil Kleb wrote:

My post wasn't a judgment, it was a simple statement of fact.

Whatever the case, please try to convey a more gentle,
unassuming tone next time or simply skip the urge to
respond.

Please.

Later,
 
A

Andy Dingley

No comment on the whole homework issue, but I think it is important
to keep in mind that not everyone on the Internet has English as their
first language.

How many of those posting their class homework from AOL.com are
allegedly English speakers though?

I try to be tolerant of non-native speakers, but if it walks like
Beavis and Butthead and quacks like them too...
 
D

Daniel Martin

No comment on the whole homework issue, but I think it is important
to keep in mind that not everyone on the Internet has English as their
first language.

I can only imagine what sort of comments would be generated by the
native speakers if we all had to post to ruby-talk in Japanese.

Well, as a non-native speaker I'd begin all my postings with:

Sumimasen. Nihongo wa watashi ga sukoshi hanashimas.
(eego to deutsugo hanashimas)

That is, I'd *explicitly disclaim* my ability to speak Japanese.

(e-mail address removed) has been around before (search google groups for his
various inspired postings on different languages); from his phonetic
misspellings, I'd say that he's almost certainly a native speaker of
American English using one of the more common dialects (one of the
"Midland" or "West" dialects).
 
K

Karl von Laudermann

Paul said:
On 23 Oct 2006, at 09:25, Paul Lutus wrote:

Bearing in mind we here on rubytalk are using a programming language
that was designed and given to us by a man whose first language is
not English we should be especially tolerant of people for whom
English is a second language.

I agree completely. However, your mistake is in assuming that the OP is
someone for whom English is a second language. I've been reading Usenet
for well over a decade, and have seen many examples of posts written by
people who don't speak English natively, and I agree with Paul Lutus'
assessment that this isn't one of them. Most non-native English
speakers use unusual word ordering, or idioms translated from their
native language into English (e.g. "since many years" instead of "for
many years"). The OP's sentence structure is just fine, but a few words
are grossly misspelled, specifically by using the wrong vowel. This
quite clearly indicates a high school or college student who is too
lazy to proof read or spell check his/her post. This same type of
laziness might also lead someone to post their homework assignment to a
programming newsgroup. Thus, I agree that Paul Lutus' post was
warranted, as well as those which brought up the homework issue.

I have no problem being patient with non-native speakers. But trying to
decipher the writings of a native English speaker who won't take the
effort required to put together a coherent message, especially when
asking for something from others, isn't worth my time.
 
D

Daniel Martin

I'm doing a report on the speed of develipment and executionin varius
programing langiuiges. write code for all these tasks in the languige
of your choise if intrestied send code to (e-mail address removed).

You know, despite what everyone else has said, I don't think this is a
homework problem. I really don't; I think that the stated intent is
more or less an accurate reflection of what you think you are doing.

That is, this is probably at least in part an attempt to mimic the
study published here:
http://www.flownet.com/gat/papers/lisp-java.pdf
but with different languages. While I suppose that such a study could
be interesting, and I might want to participate in such, I don't trust
you at all to carry one out.

Why?

Frankly, your posting history leads me to believe that you haven't
developed the proper sense of perspective necessary to manage a study
of this type. I also am unconvinced that you have plans in place now
to handle the data you receive back. Although I might participate in
a study that would form the bulk of a peer-reviewed paper, I have no
desire to submit code to a "study" that, so far as I can see, would
end up nowhere. I get enough of that experience (writing code that
then never gets used anywhere) at work.
 
H

Hal Fulton

David said:
At least he's more laughs than the TIOBE index (and its cousins)
sensationalist trolls. The first time I saw "Coo De Tar" I almost fell
off my office chair in convulsions.

I've never seen "coo de tar" anywhere, but I have seen "wallah"
many, many times.

Or as Yogi Berra said, "That was a real Tour de France."


Hal
 
H

Hal Fulton

Bil said:
Sad this response I am.

I thought we were Rubyists not judgmental grammar police.

Can't we be both??

Seriously, though, I don't mind when a non-native speaker
of English can't handle it. I'm sure it's difficult.

What irritates me is when an alleged native speaker butchers
the language almost beyond recognition. I was talking with
Mauricio once about another person (whom I won't name in
this xmission), and I mentioned that he was a native speaker.

And Mauricio, who speaks excellent English, said: "*He* is a
native speaker??"

I think it speaks volumes about the US educational system when
people speak English better as a second language than some of
us do as a first.


Hal
 

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

Forum statistics

Threads
474,215
Messages
2,571,113
Members
47,717
Latest member
salfija

Latest Threads

Top