473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ 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
9 1180
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
On 2006-10-21 20:41:42 +0200, Scott M. wrote:
Also, widely posting your real (unaltered) email address in forums like this
is a sure way to get noticed by spammers.
This newsgroup is mirrored by a mailing-list, so many people use their real
address. The solution to spam is spamfiltering (spambayes), not hiding ones
address on the internet.

Gerrit.
Oct 21 '06 #6

Gerrit Holl wrote:
This newsgroup is mirrored by a mailing-list, so many people use their real
address. The solution to spam is spamfiltering (spambayes), not hiding ones
address on the internet.
The answer to spam here in Norway is incredibly simple. It seems that
all spam originates in the US or South Korea. The following filter can
thus be applied:

1. Create a white-list of all valid contacts in the US.
(There is no need to create a white list for Korea, as it will be empty
anyway.)

2. Do a reverse nslookup of the sender on zz.countries.nerd.dk. If the
return value is 127.0.3.72 or 127.0.1.154, and the sender is not in the
whitelist, flag the mail as spam.

3. Accept all other mail.

Do you think spambayes can beat this filter?

Oct 21 '06 #7
sturlamolden wrote:
Gerrit Holl wrote:

>>This newsgroup is mirrored by a mailing-list, so many people use their real
address. The solution to spam is spamfiltering (spambayes), not hiding ones
address on the internet.


The answer to spam here in Norway is incredibly simple. It seems that
all spam originates in the US or South Korea. The following filter can
thus be applied:

1. Create a white-list of all valid contacts in the US.
(There is no need to create a white list for Korea, as it will be empty
anyway.)

2. Do a reverse nslookup of the sender on zz.countries.nerd.dk. If the
return value is 127.0.3.72 or 127.0.1.154, and the sender is not in the
whitelist, flag the mail as spam.

3. Accept all other mail.

Do you think spambayes can beat this filter?
Since network 127 is reserved in its entirety for loopback (local
process) use, it would seem that any DNS name that maps to an address in
that space with the single exception of "localhost" should be treated as
a spammer.

If you only receive spam from the USA and Korea then consider yourself
lucky. Your "solution" is simplistic beyond belief. Are you *sure* you
know in advance all potential senders from the USA? I'm (currently) in
the UK, but sending via a .com domain that operated through a server in
the USA. Where am I "from".

I suspect your posting may have been a troll.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Oct 22 '06 #8
Steve Holden wrote:
Since network 127 is reserved in its entirety for loopback (local
process) use, it would seem that any DNS name that maps to an address in
that space with the single exception of "localhost" should be treated as
a spammer.
countries.nerd.dk is a DNS blackhole system that can be used to filter
on originating country. like most other DNSBL systems, it uses loopback
addresses to return status codes (in this case, country codes).

</F>

Oct 22 '06 #9
Fredrik Lundh wrote:
Steve Holden wrote:

>>Since network 127 is reserved in its entirety for loopback (local
process) use, it would seem that any DNS name that maps to an address in
that space with the single exception of "localhost" should be treated as
a spammer.


countries.nerd.dk is a DNS blackhole system that can be used to filter
on originating country. like most other DNSBL systems, it uses loopback
addresses to return status codes (in this case, country codes).
(!)

Light goes on. Thanks.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Oct 22 '06 #10

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

Similar topics

125
15300
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
2958
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
1312
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
14589
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
1175
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
19037
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
7945
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
3521
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
2573
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...
0
7336
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
7405
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...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
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
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
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
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
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 ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.