From d905cb20502ba49cfde1d498dff64be4fa1ea311 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 21 Dec 2020 11:04:02 +0100 Subject: [PATCH] Add more content --- .gitattributes | 1 + ...ta_f.sp._tritici_on_Triticum_aestivum).jpg | 3 + img/goodbye.jpg | 3 + rust_web.org | 97 ++++++++++++++++++- 4 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 .gitattributes create mode 100644 img/Bruine_roest_op_tarwe_(Puccinia_recondita_f.sp._tritici_on_Triticum_aestivum).jpg create mode 100644 img/goodbye.jpg diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4fae6dc --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.jpg filter=lfs diff=lfs merge=lfs -text diff --git a/img/Bruine_roest_op_tarwe_(Puccinia_recondita_f.sp._tritici_on_Triticum_aestivum).jpg b/img/Bruine_roest_op_tarwe_(Puccinia_recondita_f.sp._tritici_on_Triticum_aestivum).jpg new file mode 100644 index 0000000..7fec9fb --- /dev/null +++ b/img/Bruine_roest_op_tarwe_(Puccinia_recondita_f.sp._tritici_on_Triticum_aestivum).jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f4f5404ad478234525978b8ab6683929aab025fc0d3dd039089a31776d79b88 +size 379451 diff --git a/img/goodbye.jpg b/img/goodbye.jpg new file mode 100644 index 0000000..30a6980 --- /dev/null +++ b/img/goodbye.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9dc60703700f98ef77a9c3a9418aef06ef20117dfb91cf3e5221436ab609624e +size 84986 diff --git a/rust_web.org b/rust_web.org index 7a09c97..628d79b 100644 --- a/rust_web.org +++ b/rust_web.org @@ -7,8 +7,7 @@ #+SUBTITLE: web apps with rust #+DESCRIPTION: An introduction to rust, rocket and diesel. #+KEYWORDS: rust rocket diesel -#+DATE: <2020-12-18 Fri> -#+AUTHOR: \href{rocket-presentation@onders.org}{finga} +#+AUTHOR: \href{mailto:rocket-presentation@onders.org}{finga} #+EMAIL: rocket-presentation@onders.org #+LANGUAGE: en #+SELECT_TAGS: export @@ -18,6 +17,8 @@ #+OPTIONS: H:2 #+LATEX_CLASS: beamer #+LATEX_CLASS_OPTIONS: [aspectration=1610] +# #+LATEX_HEADER: \hypersetup{colorlinks=true,linkcolor=gray} +#+LATEX_HEADER: \hypersetup{colorlinks=true,linkcolor=black,urlcolor=gray} #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) %8BEAMER_opt(Opt) #+BEAMER_THEME: Frankfurt #+BEAMER_COLOR_THEME: seagull @@ -29,3 +30,95 @@ * Rust ** What is Rust? + #+BEGIN_CENTER + #+LaTeX:\includegraphics[width = 0.65\textwidth]{img/Bruine_roest_op_tarwe_(Puccinia_recondita_f.sp._tritici_on_Triticum_aestivum).jpg} + #+END_CENTER + +*** Rust: the language + - About 10 years old (2010) + - Memory safe without gcing, optional ref counting + - Ownership, lifetimes, traits + - Variables are immutable by default and can be shadowed + - Performance of idiomatic Rust is comparable to the performance + of idiomatic cpp + +** Where to get infos + +*** Chat (Discord) + - [[https://discord.gg/rust-lang][The Rust Programming Language]] + - [[https://discord.com/invite/tcbkpyQ][The Rust Programming Language Community Server]] + +*** Some links + - [[https://doc.rust-lang.org/book/][The rust book]] (~$ rustup docs --book~), [[https://doc.rust-lang.org/rust-by-example/][Rust by example]] + - [[https://doc.rust-lang.org/std/][The Rust Standard Library]] + - [[https://cheats.rs][cheats.rs]] + - [[https://cargo.io][cargo.io]]/[[https://lib.rs][lib.rs]] + +** What are we going to use? + +*** Definitely + - [[https://rocket.rs][rocket]] + - [[https://diesel.rs][diesel]] + - log + +*** Maybe + - anyhow + - lettre + - sha3 + - serde + - chrono + +** How to install + +*** Install Rust + #+BEGIN_SRC sh + $ curl --proto '=https' --tlsv1.2 -sSf \ + https://sh.rustup.rs | sh + #+END_SRC + +*** Install nightly Rust + #+BEGIN_SRC sh + $ rustup toolchain install nightly + #+END_SRC + +*** Install rustfmt + #+BEGIN_SRC sh + $ rustup component add rustfmt + #+END_SRC + +*** Install clippy (Linter and static code analysis) + #+BEGIN_SRC sh + $ rustup component add clippy + #+END_SRC + +* Rocket + +** What is Rocket? + +* Diesel + +** What is an ORM? + +** What is diesel capable of? + +* Lets code something + +* Conclusion + +** What did we do? + +** What did you hopefully learn! + +** Some projects + - [[https://git.onders.org/finga/ldap0r][ldap0r]] (~300 SloC) + - [[https://git.onders.org/finga/filerly][filerly]] (wip) + +** The End + #+BEGIN_CENTER + #+LaTeX:\includegraphics[width = 0.3\textwidth]{img/goodbye.jpg} + + \Huge + Thanks for your attention!!1! + + This is the end.. + #+END_CENTER