CourSys - Assignment 2

.pdf

School

Simon Fraser University *

*We aren’t endorsed by this school

Course

383

Subject

Linguistics

Date

Oct 30, 2023

Type

pdf

Pages

2

Uploaded by DrSummer70

Report
Assignment 2 For this assignment, you will be exploring a new programming language. The basic task is to evaluate various features of the language, using the concepts you have learned in the course. Language Choice You can choose one of these languages as the topic of your assignment: Clojure (https://en.wikipedia.org/wiki/Clojure) Erlang (https://en.wikipedia.org/wiki/Erlang_%28programming_language%29) Julia (https://en.wikipedia.org/wiki/Julia_(programming_language)) OCaml (https://en.wikipedia.org/wiki/OCaml) Scala (https://en.wikipedia.org/wiki/Scala_(programming_language)) You should learn the basics of your chosen programming language. I suggest you start with a decent tutorial for the language: most languages have one or two. Watch for tutorials for programmers: some will have tutorials for beginning programmers, which isn't you. Report Once you have learned the basic concepts of the language, write a 4–5 page report summarizing its features (page count excludes diagrams/code examples; standard formatting, single-spaced). This should be a generally well written essay-style report. The report should summarize the features of the language using topics from the “Language Features” part of the class (as appropriate). You should also discuss how this language compares with other languages you have used. You should think of the overall goal of your report as explaining the language to average member of this class, so that they can get a better idea of what this language is good (and bad) for. To give you an idea of what kind of information should be included, I have provided some sample outlines for the report . Exercises You should also create re-implementations of some of the exercises, to help you compare (at least) your chosen language and Haskell. You can ignore any implementation details required by the exercise (like “recursive” or “using foldl ”): just create a function/method that calculates the same result. Write implementations of these functions: Exercise 2 : the divisors , primes , join , and pythagorean functions. Exercise 3 : mergesort (and thus probably also merge ). For mergesort , be as general as you can with one implementation in your language: don't worry about being able to sort every type if that's difficult. Also Exercise 3 : isPrimeDay and isFriday , using whatever date types are available in your language Of course, you should adapt the data types and argument/return values as appropriate to your language. Provide a main function (or whatever the code that runs first is called in your language) to demonstrate calling these functions/methods.
Sample Programs You should write some additional sample programs in the language. These programs should demonstrate the critical features of the language as well as its strengths. These programs are up to you. They do not have be large projects: you should have probably 3 or 4 examples that are a little more involved than a weekly exercise question. Try to provide at least one example of a problem that your language solves better (faster, more elegantly, etc.) than Haskell or C++. Look for another where it's worse. Of course, these programs should be your work, not examples from tutorials or Wikipedia. Please comment your code well enough that we can figure out what it's supposed to be doing. Submitting As with any work submitted at University, the report and code should be your own work. Submit your files through CourSys for Assignment 2 . For the report, you must submit a PDF file. For the code parts, a ZIP archive containing your work. Updated Fri April 28 2023, 10:19 by ggbaker.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: What are some of the most recent developments in terms of information technology?
Q: Which of the following would contribute to “glycogen sparing/preservation” during prolonged…
Q: Write a program in C++ that prompts the user to enter two characters and displays the major and…
Q: 32. Assign/determine the oxidation states of each element in each species below: (a) N₂ (b) BH3 (c)…
Q: Stoll Company's long-term available-for-sale portfolio at the start of this year consists of the…
Q: tan x - sin x x³ 2) Evaluate i) lim- x->0 In(10¹6x+777) et ii) lim- 848
Q: You work for a soft-drink company in the quality control division.  You are interested in the…
Q: You are going to an amusement park. It costs $15 to get in and $2 for each ride, r.
Q: a. How many grams of C are present in 4.16 grams of carbon tetrachloride? Mass= g C b. How many…
Q: Calculate the pH when 46.0 mL of 0.150 M KOH is mixed with 20.0 mL of 0.300 M HBrO (Ka = 2.5 × 10⁻⁹)…
Q: What is ConocoPhillips business level strategies?
Q: Broussard Skateboard's sales are expected to increase by 15% from $8.8 million in 2019 to $10.12…
Q: What would you do if you believed your clinical supervisor was not competent to provide you with…
Q: Find the angular position of the second-order bright fringe in a double-slit system whose slit…
Q: proof  If W is a 3-dimensional subspace of an 6-dimensional vector space V , there is a…
Q: arget Corporation ash and cash equivalents nventory ther current assets otal current assets roperty…
Q: What is the molarity of a solution that contains 2.70 moles of a solute in 750.0 mL of solution?
Q: 14. Chalcopyrite (CuFeS₂) is a mineral that can be converted to elemental copper in a series of…
Q: The following data represent the pH of rain for a random sample of 12 rain dates. A normal…
Q: An object weighing 575 N and the volume of 0.6 m3 in air is immersed in fluid after being tied to a…
Q: Please write a program that computes the average of 3 exam scores of 3 students. It first asks the…
Q: It is often stated that excess mortality (in general) is higher in low socioeconomic populations.…