Announcements

Class Info

Section 1: Tu/Th 11:20–12:35, Sci Center 199
Professor: Martin Gagné
email: LootAtTheURLForMyUsername{at}swarthmore{dot}edu
Office hours: Tu/Th 2-3:30, Mon 10:30-12, and by appointment
Ninjas: Lu Min, Charlotte, Douglass, Hunter
Ninja Session: Sunday 7-11pm

Welcome to CS31, Intro to Computer Systems.

This course is a broad introduction to computer systems that focuses on how a computer works and how programs run on computers. We examine the hardware and software components required to go from a program expressed in a high-level programming language like C or Python to the computer actually running the program. This course takes a bottom-up approach to discovering how a computer works, beginning with elementary gates and proceeding all the way up to parallel and distributed computing. Topics include data representation, logic circuits, machine organization, assembly and machine code, memory, I/O, the stack, the operating system, compilers, processes and threads, and synchronization. Prerequisite: Completion of CS21 or its equivalent.

Piazza

Outside of office hours and ninja sessions, the best way to ask questions is to post on the piazza forum. The ninjas and I will check piazza regularly, and will do our best to answer your questions promptly. When possible, you should post your questions publicly on piazza (as opposed to private posts or emails) so that all students can benefit from the answer.

Textbooks.

There is no required textbook for this course. Instead, we will use readings from the web as our introduction to new material. The textbook we've used in the past for this course is Computer Systems: A Programmer's Perspective by Bryant and O'Hallaron. Because it's a great reference, two copies are on reserve in Cornell. I will list corresponding sections for this book, when applicable.

Goals for the course:

By the end of the course, you should have developed the skills to:

Schedule

This is a tentative schedule; it will be updated as we go. You should read the assigned sections before class to prepare for the reading quiz. B&O refers to the Bryant and O'Hallaron textbook.

Handy Links

Written Homeworks


Grading

Grades will be weighted as follows:
35%Lab assignments
25%Midterm exam
25%Final exam
5%Written homework
5%Reading quizzes (lowest three dropped)
5%Class participation

How to Succeed in CS 31

Lab and Late Policy

Labs will typically be assigned in class on Wednesday and will be due before midnight the following Tuesday. You are strongly encouraged to start early and to attend the ninja sessions for extra practice.

You must submit your assignments electronically by pushing to your assigned git repository. You may push your assignment multiple times, and a history of previous submissions will be saved. You are encouraged to push your work regularly.

To help with cases of minor illnesses, athletic conflicts, or other short-term time limitations, all students start the course with three "late assignment days" to be used at your discretion, with no questions asked. To use your extra time, you must email me after you have completed the lab and pushed to your repository. You do not need to inform anyone ahead of time. When you use late time, you should still expect to work on the newly-released lab during the following lab section meeting. The professor and ninjas will always prioritize answering questions related to the current lab assignment.

Your late days will be counted at the granularity of full days and will be tracked on a per-student (NOT per-partnership) basis. That is, if you turn in an assignment five minutes after the deadline, it counts as using one day. For partnered labs, using a late day counts towards the late days for each partner. In the rare cases in which only one partner has unused late days, that partner's late days may be used, barring a consistent pattern of abuse. You may use late days for written homeworks, however I strongly recommend against it. Late labs (without late days) will receive zero credit, while late written homework will receive half credit if submitted less than 2 days late, zero credit otherwise. Further, each written assignment is worth about one percent of the course grade, while each lab is worth over three percent.

If you feel that you need an extension on an assignment or that you are unable to attend class for two or more meetings due to a medical condition (e.g., extended illness, concussion, hospitalization) or other emergency, you must contact the dean's office and your instructors. Faculty will coordinate with the deans to determine and provide the appropriate accommodations. Note that for illnesses, the College's medical excuse policy, states that you must be seen and diagnosed by the Worth Health Center if you would like them to contact your class dean with corroborating medical information.

Even if you do not fully complete an assignment, you should submit what you have done to receive partial credit.

The CS labs are open 24 hours a day, 7 days a week for you to use for CS lab assignments.


Academic Integrity

The CS Department Integrity Policy Statement:
Academic honesty is required in all your work. Under no circumstances may you hand in work done with (or by) someone else under your own name. Your code should never be shared with anyone; you may not examine or use code belonging to someone else, nor may you let anyone else look at or make a copy of your code. This includes, but is not limited to, obtaining solutions from students who previously took the course or code that can be found online. You may not share solutions after the due date of the assignment.

Discussing ideas and approaches to problems with others on a general level is fine (in fact, we encourage you to discuss general strategies with each other), but you should never read anyone else's code or let anyone else read your code. All code you submit must be your own with the following permissible exceptions: code distributed in class, code found in the course text book, and code worked on with an assigned partner. In these cases, you should always include detailed comments that indicates on which parts of the assignment you received help, and what your sources were.

Failure to abide by these rules constitutes academic dishonesty and will lead to a hearing of the College Judiciary Committee. According to the Faculty Handbook: "Because plagiarism is considered to be so serious a transgression, it is the opinion of the faculty that for the first offense, failure in the course and, as appropriate, suspension for a semester or deprivation of the degree in that year is suitable; for a second offense, the penalty should normally be expulsion."

The spirit of this policy applies to all course work, including code, homework solutions (e.g., proofs, analysis, written reports), and exams. Please contact me if you have any questions about what is permissible in this course.

For this course, it is fine to help each other with using utilities and tools (Unix, C++, Sqlite, man, git, make, ...), and with reading and understanding the assignments. However, you should avoid discussing the details of your solution with anyone other than your lab partner, and you should never look at anyone else's code for a solution to a lab (or to a similar project). In addition, there are many useful on-line resources of which you should take advantage. However, make sure that you do not use these resources in such a way that it violates the spirit of our Academic Integrity statement. For example, should you post questions to on-line forums or mailing lists seeking a solution to the specific problem you are asked to solve. Basically, the solution and code that you submit as your own should be your own. If you are unclear about what type of collaboration is okay and what type is not, ask me about your situation before proceeding.

Academic Accommodations

If you believe that you need accommodations for a disability, please contact Leslie Hempling in the Office of Student Disability Services, located in Parrish 130, or e-mail lhempli1 to set up an appointment to discuss your needs and the process for requesting accommodations. Leslie Hempling is responsible for reviewing and approving disability-related accommodation requests and, as appropriate, she will issue students with documented disabilities an Accommodation Authorization Letter. Since accommodations may require early planning and are not retroactive, please contact her as soon as possible. For details about the Student Disabilities Service and the accomodations process, visit the Disability Services webpage.

To receive an accommodation for a course activity, you must have an Accomodation Authorization letter from Leslie Hempling and you need to meet with me to work out the details of your accommodation at least one week prior to the activity.

You are also welcome to contact me privately to discuss your academic needs. However, all disability-related accommodations must be arranged through Leslie Hempling in the Office Of Student Disability Services.


Links that are related to the course may be posted here. If you have suggestions for links, let me know.