From c049591acdb37941b992352adf6ba7769668b76e Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 12 Apr 2019 13:52:44 -0300 Subject: [PATCH 1/5] Forgot about the GC --- porque-rust.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/porque-rust.html b/porque-rust.html index f48bd08..e3d9759 100644 --- a/porque-rust.html +++ b/porque-rust.html @@ -3,7 +3,7 @@ - Por que você deveria aprender Rust + Porque você deveria aprender Rust @@ -74,7 +74,7 @@
-

Por Que Rust

+

Porque Rust

@@ -437,6 +437,10 @@ presente.abrir() +
+

E GC?

+
+
Swift 5 Exclusivity Enforcement From cfa3987de73f59a7606e854d40502bd7cef41c07 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 12 Apr 2019 15:15:11 -0300 Subject: [PATCH 2/5] Forgot to open a section --- porque-rust.html | 1 + 1 file changed, 1 insertion(+) diff --git a/porque-rust.html b/porque-rust.html index e3d9759..898e23f 100644 --- a/porque-rust.html +++ b/porque-rust.html @@ -156,6 +156,7 @@
+

Imutabilidade por Default

From d5a070de071fa53f47a0b03fb54c7e9a9137edfd Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 12 Apr 2019 15:59:20 -0300 Subject: [PATCH 3/5] Dont use fragment for the single image in the slide --- porque-rust.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porque-rust.html b/porque-rust.html index 898e23f..fb48bbe 100644 --- a/porque-rust.html +++ b/porque-rust.html @@ -259,7 +259,7 @@ a = String::from("hello");
- +
-

Resultado final com performance semelhate ao C...

+

Resultado final com performance semelhante ao C...

@@ -206,6 +206,10 @@ fn main() {
@@ -440,6 +444,18 @@ presente.abrir()

E GC?

+ +

GC não é determinístico.

+ +
@@ -706,6 +722,24 @@ OK(())
+
+
+

Falando em WASM...

+
+ +
+

WASM

+ +

wasm-pack

+
+ +
+

WASI

+ +

The WebAssembly System Interface

+
+
+

Bibliotecas

From f3bd9913ea478cf26fc43025043541bf395a200f Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 12 Apr 2019 17:34:13 -0300 Subject: [PATCH 5/5] I guess that is it! --- porque-rust.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/porque-rust.html b/porque-rust.html index eb5acbe..588aa48 100644 --- a/porque-rust.html +++ b/porque-rust.html @@ -679,6 +679,8 @@ OK(())

Macros

+ + ?
@@ -686,6 +688,50 @@ OK(())

Traits/Generics

+ +
+

+enum Result<T, E> {
+    Ok(T),
+    Err(E),
+}
+                        
+
+ +
+

+trait Summary {
+    fn summarize(&self) -> String;
+}
+						
+
+ +
+

+struct Super {
+    phrase: String
+}
+
+impl Summary for Super {
+    fn summarize(&self) -> String {
+        self.phrase
+            .split_whitespace()
+            .map(|word| word.chars().nth(0).unwrap())
+            .collect();
+    }
+}
+                        
+
+ +
+

+fn get_summary(summarizable: T) -> String
+    where T: Summary
+{
+    ...
+}
+                        
+