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

Last change on this file since c2f6b79 was 4205c07, checked in by Peter A. Buhr <pabuhr@…>, 4 weeks ago

change short dash to long dash

  • 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 Wallamaloo \\
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
131All modern programming languages provide three high-level containers (collections): array, linked-list, and string.
132Often array is part of the programming language, while linked-list is built from (recursive) pointer types, and string from a combination of array and linked-list.
133For all three types, languages and/or their libraries supply varying degrees of high-level mechanisms for manipulating these objects at the bulk and component level, such as copying, slicing, extracting, and iterating among elements.
134Unfortunately, these three aspects of C cause 60\%--70\% of the reported software vulnerabilities involved memory errors, and 70\%--80\% of hacker attack-vectors target these types.
135Therefore, hardening these three C types goes a long way to make the majority of C programs safer.
136
137This work looks at extending these three foundational container types in the programming language \CFA, which is a new dialect of the C programming language.
138The thesis describes improvements made to the \CFA language design, both syntax and semantics, to support the container features, and the source code created within the \CFA compiler, libraries, and runtime system to implement these features.
139This work leverages preexisting work within the compiler's type and runtime systems generated by prior students working on the \CFA project.
140
141Overall, this work has produced significant syntactic and semantic improvements to C's container types.
142\begin{enumerate}[leftmargin=*]
143\item
144Introduce a small number of subtle changes to the typing rules for the C array, while still achieving significant backwards compatibility.
145\item
146Create a new polymorphic mechanism in the \CFA @forall@ clause to specify array dimension values, similar to a fixed-typed parameter in a \CC \lstinline[language=C++]{template}.
147The new array type, enabled by prior features, defines an array with guaranteed runtime bound checks (often optimizer-removable) and implicit (guaranteed accurate) inter-function length communication.
148\item
149Create a new polymorphic list type and its runtime library following the established design pattern of intrusive link-fields for performance reasons, especially in concurrent programs.
150\item
151Create a new string type and runtime library comparable to the \CC @string@ type, including analogous coexistence with raw-character pointers, enabling programs to work with strings by value, without incurring excessive copying.
152Substrings are supported, including the ability for overlapping ranges to share edits transparently.
153\end{enumerate}
154The thesis includes a performance evaluation that shows the new \CFA containers perform comparably with their C counterparts in many programming cases.
155
156\cleardoublepage
157\phantomsection % allows hyperref to link to the correct page
158
159% A C K N O W L E D G E M E N T S
160% -------------------------------
161\addcontentsline{toc}{chapter}{Acknowledgements}
162\begin{center}\textbf{Acknowledgements}\end{center}
163
164I would like to thank all the little people who made this thesis possible.
165
166Finally, a special thank you to Huawei Canada for funding this work.
167\cleardoublepage
168\phantomsection % allows hyperref to link to the correct page
169
170\begin{comment}
171% D E D I C A T I O N
172% -------------------
173\addcontentsline{toc}{chapter}{Dedication}
174\begin{center}\textbf{Dedication}\end{center}
175
176This is dedicated to the one I love.
177\cleardoublepage
178\end{comment}
179
180% T A B L E O F C O N T E N T S
181% ---------------------------------
182\renewcommand\contentsname{Table of Contents}
183\tableofcontents
184\cleardoublepage
185\phantomsection % allows hyperref to link to the correct page
186
187% L I S T O F F I G U R E S
188% -----------------------------
189\addcontentsline{toc}{chapter}{List of Figures}
190\listoffigures
191\cleardoublepage
192\phantomsection % allows hyperref to link to the correct page
193
194% L I S T O F T A B L E S
195% ---------------------------
196\addcontentsline{toc}{chapter}{List of Tables}
197\listoftables
198\cleardoublepage
199\phantomsection % allows hyperref to link to the correct page
200
201\begin{comment}
202% L I S T O F A B B R E V I A T I O N S
203% ---------------------------
204\renewcommand*{\abbreviationsname}{List of Abbreviations}
205\printglossary[type=abbreviations]
206\cleardoublepage
207\phantomsection % allows hyperref to link to the correct page
208
209% L I S T O F S Y M B O L S
210% ---------------------------
211\printglossary[type=symbols]
212\cleardoublepage
213\phantomsection % allows hyperref to link to the correct page
214\end{comment}
215
216% Change page numbering back to Arabic numerals
217\pagenumbering{arabic}
Note: See TracBrowser for help on using the repository browser.