A Comparison Of Dynamic and Static Languiges

  • Thread starter Thread starter atbusbook
  • Start date Start date
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
 
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.
 
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).

What you should be doing is learning basic literacy.

Life works like this:

1. Write your magnum opus article, become famous, retire to a Greek island.

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.

Start at the bottom, work to the top. Whatever you do, do not presume to
start at the top.

Also, don't post your homework assignment word-for-word. It makes you look
craven and inexperienced.
 
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

yer dreemin sorry not intrestied due yer onn homework
 
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?
 
Hi,


Also, don't post your homework assignment word-for-word. It makes you look
craven and inexperienced.

You're harsh, it's most certainly not word-for-word. I am sure the
assignment was in English.

Greetings,
Laurent
 

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

Back
Top