• Stars
    star
    601
  • Rank 72,878 (Top 2 %)
  • Language
    C++
  • License
    Apache License 2.0
  • Created 10 months ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A basic introduction to coding in modern C++.

15-445/645 C++ Bootcamp

This bootcamp aims to provide a basic introduction to coding in modern C++. The features of the C++ language are too vast and expansive to cover in one bootcamp, and quite frankly, it is learned best through experience. The staff is certain that 15-445 will make you a more confident C++ programmer! However, we do cover some C++ topics that are necessary to know while doing the programming assignments. This tutorial does not cover basic C/C++ syntax. It mainly covers C++ programming features, particularly concepts that do not exist in C.

This is the first iteration of the C++ bootcamp for 15-445/645, and feedback is appreciated!

Format

The bootcamp consists of C++ code files, located in src/, that are meant to be read in depth. Each of these files can be compiled into an executable with the same name. Use CMake to build these executables. This set of commands should build all the executables. After running these commands, these executables should be located in the build directory.

$ mkdir build
$ cd build
$ cmake ..
$ make -j8

For instance, the src/references.cpp file compiles into the references executable, located in ./build. The same holds for every file in the source directory.

Files

There are fifteen files in the src/ directory, each which cover different concepts. They are meant to be read in the order below, since each file builds up on the previous one. However, if you know some modern C++ concepts and are looking to refresh your knowledge, it is probably okay to start by reading the files on concepts you are unfamiliar about.

References and Move Semantics

  • references.cpp: Covers C++ references.
  • move_semantics.cpp: Covers C++ move semantics.
  • move_constructors.cpp: Covers C++ class move constructors and move assignment operators.

C++ Templates

  • templated_functions.cpp: Covers C++ templated functions.
  • templated_classes.cpp Covers C++ templated classes.

Misc

  • wrapper_class.cpp: Covers C++ wrapper classes.
  • iterator.cpp: Covers implementing a basic C++ style iterator.
  • namespaces.cpp: Covers C++ namespaces.

C++ Standard Library (STL) Containers

  • vectors.cpp: Covers std::vector.
  • set.cpp: Covers std::set.
  • unordered_map.cpp: Covers std::unordered_map.
  • auto.cpp: Covers the usage of the C++ keyword auto, including using auto to iterate through C++ STL containers.

C++ Standard Library (STL) Memory

  • unique_ptr.cpp: Covers std::unique_ptr.
  • shared_ptr.cpp: Covers std::shared_ptr.

C++ Standard Library (STL) Synch Primitives

  • mutex.cpp: Covers std::mutex.
  • scoped_lock.cpp: Covers std::scoped_lock.
  • condition_variable.cpp: Covers std::condition_variable.
  • rwlock.cpp: Covers the usage of several C++ STL synchronization primitive libraries (std::shared_mutex, std::shared_lock, std::unique_lock) to create a reader-writer's lock implementation.

Other Resources

There are many other resources that will be helpful while you get accquainted to C++. I list a few here!

Appendix: Official C++ Documentation for Topics Covered in the Bootcamp

This documentation may be useful to you! It's very comprehensive (much more comprehensive than this bootcamp) but it may lack some readability. Overall, I think it's still a good idea to try to read and understand this documentation, especially when working on the projects. Although the bootcamp tries to be as comprehensive as possible, it still only covers the bare bones of using modern C++.

More Repositories

1

bustub

The BusTub Relational Database Management System (Educational)
C++
3,755
star
2

peloton

The Self-Driving Database Management System
C++
2,026
star
3

noisepage

Self-Driving Database Management System from Carnegie Mellon University
C++
1,735
star
4

ottertune

The automatic DBMS configuration tool
Python
1,202
star
5

dbdb.io

The On-line Database of Databases
Python
465
star
6

benchbase

Multi-DBMS SQL Benchmarking Framework via JDBC
Java
400
star
7

optd

CMU-DB's Cascades optimizer framework
Rust
324
star
8

mongodb-d4

Automatic MongoDB database designer
Python
54
star
9

cmdbac

CMDBAC - Carnegie Mellon Database Application Catalog
Python
35
star
10

libfixeypointy

Fixed-Point Decimal Library from Carnegie Mellon University
C++
32
star
11

noisepage-stats

DBMS Performance & Correctness Testing Framework
Python
30
star
12

peloton-design

Peloton Design Docs
27
star
13

peloton-test

SQL Testing Framework for the Peloton DBMS
Java
20
star
14

pgextmgrext

A Postgres Extension to Manage Extensions! (As well as some random stuff)
Rust
13
star
15

15721-s24-cache1

15-721 Spring 2024 - Cache #1
Rust
12
star
16

noisepage-pilot

Because "pilot" was a better name than "brain"
Jupyter Notebook
8
star
17

dbgym

Python
7
star
18

15721-s24-scheduler1

15-721 Spring 2024 - Scheduler #1
Rust
5
star
19

noisepage-control

NoisePage Autonomous Control Plane Infrastructure
4
star
20

terrier-dashboard

JavaScript
4
star
21

noisepage-forecast

Python
4
star
22

pgext-analyzer

PostgreSQL Extensions Analyzer
C++
2
star
23

15721-s24-cache2

15-721 Spring 2024 - Cache #2
Rust
1
star
24

15721-s24-catalog2

15-721 Spring 2024 - Catalog #2
Rust
1
star
25

benchpress

Benchpress Demo (SIGMOD 2015)
JavaScript
1
star
26

noisepage-testfiles

Test Files & Data Sets for NoisePage DBMS Project
TSQL
1
star
27

15721-s24-scheduler2

Rust
1
star