473,467 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A Comparison Of Dynamic and Static Languiges

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 at*******@aol.com.

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

Oct 21 '06 #1
5 1173
at*******@aol.com wrote:
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 at*******@aol.com.
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.

--
Paul Lutus
http://www.arachnoid.com
Oct 21 '06 #2
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.

<at*******@aol.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
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 at*******@aol.com.

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

Oct 21 '06 #3
<at*******@aol.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
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 at*******@aol.com.

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
Oct 21 '06 #4

at*******@aol.com wrote:
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?

Oct 21 '06 #5
Hi,

Paul Lutus wrote:
at*******@aol.com wrote:
>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 at*******@aol.com.
<snip>
>
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
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 21 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Rhino | last post by:
One of my friends, Scott, is a consultant who doesn't currently have newsgroup access so I am asking these questions for him. I'll be telling him how to monitor the answers via Google Newsgroup...
6
by: Materialised | last post by:
Hi Everyone, I apologise if this is covered in the FAQ, I did look, but nothing actually stood out to me as being relative to my subject. I want to create a 2 dimensional array, a 'array of...
3
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example...
13
by: Krivenok Dmitry | last post by:
Hello all! Perhaps the most important feature of dynamic polymorphism is ability to handle heterogeneous collections of objects. ("C++ Templates: The Complete Guide" by David Vandevoorde and...
5
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But...
9
by: atbusbook | last post by:
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...
24
by: Ken | last post by:
In C programming, I want to know in what situations we should use static memory allocation instead of dynamic memory allocation. My understanding is that static memory allocation like using array...
1
by: Peterwkc | last post by:
Hello all expert, i have two program which make me desperate bu after i have noticed the forum, my future is become brightness back. By the way, my problem is like this i the first program was...
11
by: Andrus | last post by:
I created dynamic extension methods for <= and < SQL comparison operators: public static IQueryable<TLessThanOrEqual<T>(this IQueryable<Tsource, string property, object value); public static...
5
by: bearophileHUGS | last post by:
I often use Python to write small programs, in the range of 50-500 lines of code. For example to process some bioinformatics data, perform some data munging, to apply a randomized optimization...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.