***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rust Tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rebola Pardo, Adrian
Rust Tutorial
Commits
d2a3f909
Commit
d2a3f909
authored
3 weeks ago
by
Rebola Pardo, Adrian
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes to unsafe rust presentation
parent
4f5b9fd6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unsafe-rust/presentation.tex
+5
-2
5 additions, 2 deletions
unsafe-rust/presentation.tex
with
5 additions
and
2 deletions
unsafe-rust/presentation.tex
+
5
−
2
View file @
d2a3f909
...
...
@@ -35,7 +35,7 @@ The safe/unsafe boundary can be weaponized though!
\end{frame}
\begin{frame}
{
The unsafe superpowers
}
What can I do with unsafe Rust?
What can I do with unsafe Rust?
(exhaustive list)
\begin{itemize}
\item
Dereference a raw pointer
\item
Access fields of a union
...
...
@@ -48,6 +48,7 @@ What can I do with unsafe Rust?
\end{itemize}
\pause
Raw pointers need not respect the borrow rules...
\pause
\emph
{
... but the references they dereference to do!
}
\end{frame}
...
...
@@ -60,6 +61,7 @@ Raw pointers need not respect the borrow rules...
\item
\emph
{
The ``pitch to management`` version
}
: safe Rust means you will never need to worry about data races.
\end{itemize}
\pause
\emph
{
Reality
}
: safe Rust means your binary will not execute a data race,
\textit
{
whatever it takes
}
.
\end{frame}
...
...
@@ -75,7 +77,8 @@ Raw pointers need not respect the borrow rules...
\includegraphics
[width=40ex]
{
screenshot.png
}
\end{center}
\emph
{
Reality
}
: Unsafe, C
{
+
}{
+
}
-style code often
\emph
{
undefined behavior
}
in Rust.
\pause
\emph
{
Reality
}
: Unsafe, C
{
+
}{
+
}
-style code often results in
\emph
{
undefined behavior
}
in Rust.
\end{frame}
\begin{frame}
{
Myths around unsafe Rust
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment