Disclaimer
At the moment this syllabus is still partly a work in progress.
It has not been fully updated yet to reflect changes that will need to be made for 24sp.
However, the general content of the course will be the same to the extent possible, and most of the information in here will still apply.
Table of Contents
Overview
Prerequisites
- Required: Knowledge of Computer Systems and C programming. For Systems topics, students should be familiar with concepts of memory, data representation, binary encoding, and vaugely familiar with the idea of an operating system. In terms of C knowledge, students should be comfortable writing long C programs with little to no skeleton code, managing dynamically allocated memory, and interacting with C pointers. As a result, the official pre-requisite of this course is: CIT 5930 (Intro to Computer Systems) or a similar course/background (e.g. CIS 2400).
- Recommended: Expereince with object oriented programming languages and designing programs in those languages. This can be optained from taking CIT 5910 or CIT 5940.
This course is currently only open to students in the MCIT program and assumes prior C knowledge (specifically, what is covered in CIT 5930), but not C++. This includes:
- Pointers
- Structs
- Simple Data Structures
- C program layout
Students in other degree programs may add themselves to the CIS course waitlist but are unlikely to be admitted, as the course will likely fill with MCIT students. Note that students who have not taken CIT 5930 or an equivalent course have very little, if any, chance of being admitted.
Course Description
In CIT 5930, you learned some fundamentals of how computers work, starting with transistors, going through assembly, briefly discussion the idea of the Operating System and then ending with the low level programming language of C. In this course, we plan to start from your experience in C, explore how real programs interact with a modern operating system, and deal with the idea of having multiple programs interact with each other or shared resources. Additionally, we will go over the workings of higher level programing language features through C++.
More directly speaking, we plan to go over the following topics:
- C & C++
- Pointers & Memory Allocation
- Dynamic Dispatch
- Templates
- System Calls
- File I/O
- Concurrency (Processes & Threads)
- Locality
- Networking
This course will provide you the requisite knowledge and experience for systems-focused CIS electives such as CIS 5050 Software Systems, CIS 5480 Operating Systems Design and Implementation, and CIS 5530 Networked Systems. After completing this course, you will have a better understanding of how systems (software, hardware, and networks) work together. This course aims to be useful to both students who continue down the path of systems, and those who specialize in other topics.
Course Materials
Docker & Speclab
DO NOT use eniac
machines to develop projects for this class!
Students caught running project code on Eniac will be penalized.
In the past, students have accidentally crashed eniac
in creative ways, causing issues for everyone using it.
Docker and speclab are the two development enviroments supported by the course. We will not give advice on how to support alternatives unless one cannot get docker or speclab to work.
Caution: do not develop on macOS directly or other UNIX environments directly (e.g. Ubuntu 20.04, other versions of Linux, WSL). There can be significant differences in how your C code is compiled and the behaviour of the systems. In the past students have thought they got a working solution only to realize after submitting that their code doesn’t compile in the grading environment. If you still use one of these environments, we urge you to at least compile and test in the course supported environments frequently to ensure your program is behaving as expected. If you want an environment to match the course docker environment as much as possible, your environment should be based off of Ubuntu 22.04, Jammy Jellyfish.
Docker is the recommended place for developing and testing your programming projects. The environment you will use in Docker will be the same as the environment we grade projects in. Instructions will be posted on Ed shortly into the semester directing you how to setup the docker environment.
You can find the instructions for setting up your docker environment here: Docker Setup
If docker does not work, this is what we recommend to use for developing and testing your programming projects. Instructions for using speclab can be found here: https://cets.seas.upenn.edu/answers/speclab.html. Note that you do not need to install Docker on speclab, speclab is already a linux session that you can develop in.
Website
The website acts as the central place for organizing material for the course. All essential material for the course is delivered through or linked through the course website. As an example, the website contains the course schedule, lecture materials, recitation materials, homework specifications, and this syllabus. We highly encourage you to explore, try some of the resources that are available, and become familiar with the site early on in the course.
Canvas
The canvas site contains the gradebook, surveys, and the check-in quizzes. You are free to use the canvas if you want, but if there is anything that is needed on canvas, it will be directly linked on the course website.
Ed Discussion Board
The Ed Discussion board provides a place for students to get support from course staff. Ed is also the primary mechanism for announcements, though we will try to repeat announcements at the beginning of recitation and lecture for convenience.
OHQ
The course has an OHQ that we will be using for virtual office hours. Please write at least a somewhat detailed explanation of your question/problem and what you have tried so far to fix it.
Textbook
There are no strictly required texts for this course, however, some find it helpful to read the course material from a textbook. Note that none of the textbooks listed will have everything used in this course. As a result, we are suggesting the following texts:
- Dive Into Systems (https://diveintosystems.org/book/): this is a free online textbook that is well written and contains useful information about severl of the systems topics covered in this class and in 5930.
- cppreference.com (https://en.cppreference.com/w/): This website provides a useful reference for C and C++ programmers, and highlights many useful headers and functions that may be useful to your C or C++ program writing.
- cplusplus.com (https://cplusplus.com/reference): Another C++ reference, well written and in an easier format for most to read.
-
linux.die.net (https://linux.die.net/man): This website is an online equivalent of the
man
terminal command. It contains useful information on user terminal commands (section 1) and C standard library functions (section 3).
Course Components
Lectures
There are approximately 28 lectures throughout the semester, which occur from 10:15 AM to 11:45 AM on Mondays and Wednesdays. Attendance is not mandatory, but highly encouraged since it is easier to ask questions and participate in in-lecture activities.
Recitations
The TA’s will hold weekly recitations throughout the semester. While these are not required, feedback from last spring suggests that students who attend can find these “incredibly helpful” or “life-saving”, though your experience may vary. In these recitations, TAs will often go over course material covered in the last week and/or help students with getting started on the upcoming homework. Recitations will also be a great opportunity for you to ask questions about course topics and homework assignments. Recordings will be made available for those who cannot attend.
Homework Assignments
Homework will be distributed, through Codio and the course website, but will be graded, and submitted through the course gradescope. There will be approximately 5 homework assignments spread out through the semester, typically with an assignment due every two or three weeks.
Late submissions and the opportunity to fix assignments will be possible. More information can be found in the assignment policies section here
Check-in Quizzes
These will be “open-book quizzes” on canvas that will be due before the first lecture of the week. These assignments will have unlimited submissions, so you can resubmit as many times as you wish. Some weeks will not have such an assignment, details can be found on the course calendar. The lowest two quiz scores will be dropped.
Final Project
There will be a final project where you will combine the information used throughout the course. As of now, the project can be done either alone or in pairs. Like the homeworks, the project will start by having you implement a specified program, but afterwards, you will add on extra features. These features can be proposed to course staff or selected from a list.
Note that details on the project are subject to change and more information will be released closer to the middle of the semester.
Exams
Exams will be graded by the course staff and will be posted to gradescope. As of now, these are planned to be taken in-person. More information concerning how the exam is conducted will come as the exam approaches.
Policies
Getting Help
It is very important to us that you succeed in CIT 5950. As a result, we are providing many resources to help you succeed. These include:
- Many office hours held by course staff
- The Ed discussion board
- Contacting staff directly via email
- Scheduling a meeting with Travis here: https://www.cis.upenn.edu/~tqmcgaha/#meetings
Please do not be afraid to ask for help if you don’t understand something. We are here to help you succeed. Additionally, some of the course staff will get lonely and bored if no one shows up to their office hours.
It is also very important to us that you maintain your mental wellness throughout the course. A few points are not worth losing sleep over. Everyone on the course staff is available to chat, and you can always attend office hours for a non-academic conversation if necessary.
Additionally, if you are experiencing some unforeseen and extenuating circumstances, please feel free to reach out to course staff for help. Notably, we are still in a global pandemic! Hopefully the pandemic is winding down for everyone, but we know things can come up in the middle of the quarter (whether it is related to the pandemic or not), and we are here to help.
Inclusion
You have a right to a learning environment that feels safe, where you are treated with respect and feel that you can contribute ideas constructively. Put another way, you have the right to an inclusive learning environment.
We want every student to feel that they have a safe and healthy learning environment, and if at any point you feel like this is not the case in any way, please let course staff know and we will see what we can do to help.
You can contact staff by making a private post on Ed, reaching out to course staff via email, talking to course staff at office hours, or scheduling a 1-on-1 with the instructor here: https://www.cis.upenn.edu/~tqmcgaha/#meetings
Disability Services
The Student Disability Services (SDS) is a unit within the Weingarten Learning Resources Center (WLRC) dedicated to ensure equal access to all University programs, activities and services. They offer a wide range of services for students with disabilities that are individually designed and remove the need to reveal sensitive medical information to the course staff. Please submit a request if you will have a medical need for extensions of exam times or assignment deadlines.
Grading Breakdown
- Homework Assignments: (55%)
- Check-in Quizzes: (5%)
- Final Project: (15%)
- Midterm Exam: (10%)
- Final Exam: (15%)
Assessment Policies
Late Policy
For exams, lecture polls and weekly check-ins, no late submissions will be accepted, or extensions granted, except outside of special circumstances.
For Homework assignments, there are no late penalties or late submissions. Instead, homeworks will have an assigned due date and the ability to request for an extension. Extensions requests must be made by making a private (but NOT anonymous) post to the Ed discussion board, where you must detail:
- Which assignment you would like an extension on
- How long of an extension you would like
- If this would be for more than 3 days after the deadline, you MUST reach out to the instructor specifically for this extension request. Reaching out to the instructor should be done over email, over zoom, or in-person.
- Why you are requesting an extension
- If it is a delicate situation, please feel free to state so and keep details private. You may also reach out to the instructor if you feel more comfortable with that.
Your post will be reviewed by a course staff member and we will let you know if we grant the request. Note that we are lenient and will likely grant most requests, and it doesn’t hurt to ask.
It is also worth noting a few things about the system:
- You may ask for an extension request at any point, before or after the deadline
- This means that if you would like to “fix” or “reattempt” an assignment from earlier in the semester, you can ask for an extension to fix or reattempt this. Note that this type of request requires you reach out to the instructor directly
- If you find an extension request is not enough, you may follow-up with another extension request.
- We will NOT be granting an extension 3 days past the deadline for written homework assignments as these take much more work to grade and usually by the time we have finished grading them, we will have to release the answers so that students can use the assignments to study for the midterm exam.
Midterm Clobber Policy
The clobber policy allows you to demonstrate mastery of past material with regard to exams. In particular, you can replace your midterm exam score with the score of the midterm section of the final exam. This does not apply in reverse, we will not replace your midterm section of the final with your midterm exam score.
To accommodate for the midterm subsection of the final exam being harder/easier than the midterm exam itself, we have a formula that accounts for average and standard deviation.
- First, we calculate Potential Midterm Clobber Score with:
(final_midterm_subscore - final_midterm_mean) / final_midterm_std_deviation * midterm_std_deviation + midterm_mean
, capped at 100 - Then we take the maximum score between the calculated potential clobber score and the grade you had on the midterm. The higher of the two will be used to calculate your final grade.
Rescheduling Exams
If you know in advance that you will be unable to take an exam, please discuss it with the instructor as soon as possible, at least a day before the exam so that the reason can be verified and plans can be put in place. Make-up exams would likely take place after the initial exam.
For emergency absences, please reach out to the instructor when possible so that plans can be put in place.
Policies regarding absences for the Final Exam are covered by the University Provost; for Spring semester courses, a makeup Final Exam would be scheduled at the start of the following Fall semester. Requests for a makeup Final Exam due to reasons that could reasonably be anticipated (e.g. traveling for summer break) are unlikely to be approved.
Collaboration & Academic Misconduct
In general, we encourage collaboration, but there is a very fine line between collaboration and cheating. We can learn a lot from working with each other and it can make the course more fun, but we also want to ensure that every student can get the maximum benefit from the material this course has to offer. Keep in mind that the overall goal is for YOU to learn the material so you will be prepared for the exams and for job interviews etc. in the future. Cheating turns the assignments into an exercise that is a waste of both your time and ours; save us both by not doing it.
You will be caught. Course staff carefully grades all written homework and we use MOSS (Measure of Software Similarity) to check code.
Cheating consists of sharing code or solutions to assignments by either copying, retyping, looking at, or supplying a copy of a file. Examples include:
- Coaching a friend to arrive at a solution by simply following your instructions (i.e. no thinking involved). An example is helping a friend write a program line-by-line.
- Copying code from:
- a similar course at another university
- using solutions/code on the web, including GitHub.
- Copying from another student or using their code as reference.
- Similarly, you are not allowed to show your work with anyone outside of the current CIT 5950 course staff via electronic or non-electronic means. You are also not allowed to post this work publicly.
You are not allowed to post your code from this course in a separate public repository or anywhere else that is publicly accessible. Doing so is against the academic conduct policy and can result in a failing grade in the course.
If you want to use this as part of a resume or portfolio, instead describe the project, decribe what you did, and mention that you can show your work to potential employers upon request.
Cheating is a very serious offense. If you are caught cheating, you can expect an initiation of a cheating case in the University system and a zero for the assignment. Depending on circumstances, you may receive a failing grade in the course. Cheating is an insult to the instructor and course staff, to the department and major program, and most importantly, to you and your fellow students. If you feel that you are having a problem with the material, or don’t have time to finish an assignment, or have any number of other reasons to cheat, then PLEASE talk with the instructor, we are more than happy to work with students as needed. Just don’t cheat.
If you are in doubt about what might constitute cheating, send the instructor an email describing the situation and we will be happy to clarify it for you.
See Penn’s Code of Academic Integrity for more information.
Policy on Generative A.I.
This isn’t as much a policy as it is advice. For this class, I recommend against using generative ai like ChatGPT or related technologies. I am not denying that ChatGPT can be a useful tool, I am just not convinced it is useful for your growth and learning of the material in this class.
-
ChatGPT is pretty good at making things sound correct, in ways that can make it hard to discern when it is actually incorrect vs when it is spouting nonsense. (See ChatGPT is a bullshit generator. But it can still be amazingly useful). When you are first learning about a topic, it can be especially hard to determine what is correct and what is “incorrect but articulated in a way that sounds like it is correct”.
-
There are also issues with how correct GPT is in general. People with more expertise than I on this matter hypothesize that many claims of ChatGPT ability to pass exams and solve coding problems come from the fact that it memorized the solutions enough during training. In other words, ChatGPT is being evaluated on its training data, biasing the results. Tests on questions outside of its training data give a much more negative evaluation of ChatGPT’s abilities to solve problems. As a person, you are likely to encounter many issues that can’t be solved only via internet memorization (like some of the exam questions for this class). See GPT-4 and professional benchmarks: the wrong answer to the wrong question.
I do not claim that ChatGPT is useless by these statements. There are many things it can do, I just doubt their usefulness in this class. We will not ban the usage of ChatGPT or similar tools except for during exams, but we expect you to be able to:
- explain & reason about your code yourself during office hours, project milestones and demos
- reason and think critically about exam questions without help. Questions will be designed for you to reason about them, not just to have memorized the correct answer.
All in all, use your best judgement.