source: doc/theses/mike_brooks_MMath/uw-ethesis-frontpgs.tex

Last change on this file was 43b6516, checked in by Peter A. Buhr <pabuhr@…>, 4 days ago

final pass of abstract

  • Property mode set to 100644
File size: 8.5 KB
Line 
1% T I T L E P A G E
2% -------------------
3% Last updated August 16, 2022, by IST-Client Services
4% The title page is counted as page `i' but we need to suppress the
5% page number. Also, we don't want any headers or footers.
6\pagestyle{empty}
7\pagenumbering{roman}
8
9% The contents of the title page are specified in the "titlepage"
10% environment.
11\begin{titlepage}
12 \begin{center}
13 \vspace*{1.0cm}
14
15 % TODO: punch up the title, thinking getting interest in the department-wide posting of my presentation
16 % Modern collections for C
17 {\Huge\bf \CFA Container Library}
18
19 \vspace*{1.0cm}
20
21 by \\
22
23 \vspace*{1.0cm}
24
25 {\Large Michael Leslie Brooks} \\
26
27 \vspace*{3.0cm}
28
29 A thesis \\
30 presented to the University of Waterloo \\
31 in fulfillment of the \\
32 thesis requirement for the degree of \\
33 Master of Mathematics \\
34 in \\
35 Computer Science \\
36
37 \vspace*{2.0cm}
38
39 Waterloo, Ontario, Canada, \the\year \\
40
41 \vspace*{1.0cm}
42
43 \copyright{} Michael Leslie Brooks \the\year \\
44 \end{center}
45\end{titlepage}
46
47% The rest of the front pages should contain no headers and be numbered using Roman numerals starting with `ii'
48\pagestyle{plain}
49\setcounter{page}{2}
50
51\cleardoublepage % Ends the current page and causes all figures and tables that have so far appeared in the input to be printed.
52% In a two-sided printing style, it also makes the next page a right-hand (odd-numbered) page, producing a blank page if necessary.
53\phantomsection % allows hyperref to link to the correct page
54
55\begin{comment}
56% E X A M I N I N G C O M M I T T E E (Required for Ph.D. theses only)
57% Remove or comment out the lines below to remove this page
58\addcontentsline{toc}{chapter}{Examining Committee}
59\begin{center}\textbf{Examining Committee Membership}\end{center}
60 \noindent
61The following served on the Examining Committee for this thesis. The decision of the Examining Committee is by majority vote.
62 \bigskip
63
64 \noindent
65\begin{tabbing}
66Internal-External Member: \= \kill % using longest text to define tab length
67External Examiner: \> Bruce Bruce \\
68\> Professor, Dept. of Philosophy of Zoology, University of Waterloo \\
69\end{tabbing}
70 \bigskip
71
72 \noindent
73\begin{tabbing}
74Internal-External Member: \= \kill % using longest text to define tab length
75Supervisor(s): \> Ann Elk \\
76\> Professor, Dept. of Zoology, University of Waterloo \\
77\> Andrea Anaconda \\
78\> Professor Emeritus, Dept. of Zoology, University of Waterloo \\
79\end{tabbing}
80 \bigskip
81
82 \noindent
83 \begin{tabbing}
84Internal-External Member: \= \kill % using longest text to define tab length
85Internal Member: \> Pamela Python \\
86\> Professor, Dept. of Zoology, University of Waterloo \\
87\end{tabbing}
88 \bigskip
89
90 \noindent
91\begin{tabbing}
92Internal-External Member: \= \kill % using longest text to define tab length
93Internal-External Member: \> Meta Meta \\
94\> Professor, Dept. of Philosophy, University of Waterloo \\
95\end{tabbing}
96 \bigskip
97
98 \noindent
99\begin{tabbing}
100Internal-External Member: \= \kill % using longest text to define tab length
101Other Member(s): \> Leeping Fang \\
102\> Professor, Dept. of Fine Art, University of Waterloo \\
103\end{tabbing}
104
105\cleardoublepage
106\end{comment}
107
108% D E C L A R A T I O N P A G E
109% -------------------------------
110 % The following is a sample Declaration Page as provided by the GSO
111 % December 13th, 2006. It is designed for an electronic thesis.
112 \addcontentsline{toc}{chapter}{Author's Declaration}
113 \begin{center}\textbf{Author's Declaration}\end{center}
114
115 \noindent
116I hereby declare that I am the sole author of this thesis. This is a true copy of the thesis, including any required final revisions, as accepted by my examiners.
117
118 \bigskip
119
120 \noindent
121I understand that my thesis may be made electronically available to the public.
122
123\cleardoublepage
124\phantomsection % allows hyperref to link to the correct page
125
126% A B S T R A C T
127% ---------------
128\addcontentsline{toc}{chapter}{Abstract}
129\begin{center}\textbf{Abstract}\end{center}
130
131\CFA strives to fix mistakes in C, chief among them, safety.
132This thesis presents a significant step forward in \CFA's goal to remove unsafe pointer operations.
133It describes improvements to the \CFA language design to support advanced container features.
134These features are implemented across the \CFA compiler and runtime libraries.
135The results maintain another \CFA goal of offering strong backwards compatibility with C.
136To achieve these goals, this work leverages preexisting \CFA contributions by prior students, particularly novel applications of the compiler's type system.
137
138All modern programming languages provide at least these three high-level containers (collections): array, linked-list, and string.
139Often, the array is part of the programming language, while linked lists are built from (recursive) pointer types, and strings from arrays and/or linked lists.
140For all three types, languages and/or their libraries supply varying degrees of high-level mechanisms for manipulating these objects at the bulk and component levels, such as copying, slicing, extracting, and iterating among elements.
141Unfortunately, typical implementations for the these key types in C cause 60\%--70\% of the reported software vulnerabilities involving memory errors, where 70\%--80\% of hacker attack-vectors target these types.
142Therefore, hardening these three C types and suggesting programers use them as their default types goes a long way to increase memory safety in the majority of C programs.
143
144Specifically, an array utility is provided that tracks length internally, relieving the user of managing explicit length parameters and stopping buffer-overrun errors.
145This feature requires augmenting the \CFA type system, making array length available at compile and runtime.
146A linked-list utility is provided, which obviates many user-managed recursive pointers while catering directly to system-programming using intrusive linking.
147Finally, a string utility is provided with implicit memory management of text in a specialized heap, removing error-prone buffer management, including overrun, and providing a copy-on-write speed boost.
148For all three utilities, performance is argued to be on-par with, and occasionally surpassing, relevant comparators.
149With the array, this case is made by showing complete erasure down to a naked C array, modulo runtime bound checks, which are removable more often than with Java-style length management.
150With the linked list and string, empirical measures are compared with C and \CC comparable libraries.
151These utilities offer programmers workable alternatives to hand-rolling specialized libraries, which is a huge safety benefit, eliminating many system vulnerabilities.
152The results establish \CFA's position as a safety-forward programming alternative.
153
154\cleardoublepage
155\phantomsection % allows hyperref to link to the correct page
156
157% A C K N O W L E D G E M E N T S
158% -------------------------------
159\addcontentsline{toc}{chapter}{Acknowledgements}
160\begin{center}\textbf{Acknowledgements}\end{center}
161
162I would like to thank all the little people who made this thesis possible.
163
164Finally, a special thank you to Huawei Canada for funding this work.
165\cleardoublepage
166\phantomsection % allows hyperref to link to the correct page
167
168\begin{comment}
169% D E D I C A T I O N
170% -------------------
171\addcontentsline{toc}{chapter}{Dedication}
172\begin{center}\textbf{Dedication}\end{center}
173
174This is dedicated to the one I love.
175\cleardoublepage
176\end{comment}
177
178% T A B L E O F C O N T E N T S
179% ---------------------------------
180\renewcommand\contentsname{Table of Contents}
181\tableofcontents
182\cleardoublepage
183\phantomsection % allows hyperref to link to the correct page
184
185% L I S T O F F I G U R E S
186% -----------------------------
187\addcontentsline{toc}{chapter}{List of Figures}
188\listoffigures
189\cleardoublepage
190\phantomsection % allows hyperref to link to the correct page
191
192% L I S T O F T A B L E S
193% ---------------------------
194\addcontentsline{toc}{chapter}{List of Tables}
195\listoftables
196\cleardoublepage
197\phantomsection % allows hyperref to link to the correct page
198
199\begin{comment}
200% L I S T O F A B B R E V I A T I O N S
201% ---------------------------
202\renewcommand*{\abbreviationsname}{List of Abbreviations}
203\printglossary[type=abbreviations]
204\cleardoublepage
205\phantomsection % allows hyperref to link to the correct page
206
207% L I S T O F S Y M B O L S
208% ---------------------------
209\printglossary[type=symbols]
210\cleardoublepage
211\phantomsection % allows hyperref to link to the correct page
212\end{comment}
213
214% Change page numbering back to Arabic numerals
215\pagenumbering{arabic}
Note: See TracBrowser for help on using the repository browser.