Jan. 30th, 2008

hollyking: (hacker)

Yesterday Paul Graham has released Arc which is a new dialect of Lisp. Looking at the tutorial I found quite a few things I like about the language. Not having invested a lot of time in Common Lisp or Scheme I don’t have a problem with = being for assignment and is being used for comparison.

For my first excursion into Arc I decided to convert the Perl programs I had written to solve the Project Euler problems into Arc. The first problem is to find the sum of all the multiples of 3 or 5 below 1000.

First, the Perl version: )

And now the Arc version: )

Both versions are short and to the point. I think there is a better way to handle the loop and accumulation of the sum in Arc. I like what I’ve seen of Arc so far and will keep studying it and see how it develops.

Profile

hollyking: (Default)
hollyking

March 2013

S M T W T F S
     12
3456789
1011 1213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 17th, 2025 02:58 am
Powered by Dreamwidth Studios