Rust Language
For Beginner
Arief A.
Most Loved Programming Language 2020 survey stackoverflow
DID YOU KNOW THIS?
Source : https://insights.stackoverflow.com/survey/2020#most-loved-dreaded-and-wanted
TIMELINE
2016 2017 2018 2019
?
Merupakan logo yang dibuat oleh
komuniti rust atau yang lebih dikenal
rustacean, diambil dari kata
crustacean.
FERRIS
OVERVIEW
01
A Language empowering everyone to build
reliable and efficient software
u s t
Build in it rust
Command Line Networking
Predictable performance.
Tiny resource footprint.
Rock-solid reliability.
Rust is great for network
services.
WebAssembly
Use Rust to supercharge
your JavaScript, one
module at a time. Publish
to npm, bundle with
webpack, and you’re off to
the races.
Embedded
Targeting low-resource
devices? Need low-level
control without giving up
high-level conveniences?
Rust has you covered.
Rust helps you maintain
your app with confidence
and distribute it with
ease.
Why Rust ?
Rust is blazingly fast and memory-
efficient: with no runtime or
garbage collector, it can power
performance-critical services, run
on embedded devices, and easily
integrate with other languages.
Reliability
Rust’s rich type system
and ownership model
guarantee memory-safety
and thread-safety —
enabling you to
eliminate many classes
of bugs at compile-time.
Rust has great documentation, a
friendly compiler with useful error
messages, and top-notch tooling —
an integrated package manager and
build tool, smart multi-editor
support with auto-completion and
type inspections, an auto-formatter,
and more.
Productivity Performance
5830
Contributor
Contributions
200420
Rust package manager and build
system.
CARGO
CARGO
To compile and run the
program
Cargo run
To start a new package
with Cargo
Cargo new
To compile the
program
Cargo build
—Dennis Ritchie
“The only way to learn a new
programming language is by
writing programs in it.”
fn main () {
println! (“Hello World !”);
}
Println!
fn main () {
let x= 7
println! (“Hello World !”);
println! (“Seminggu ada {}
hari”,x);
}
/
fn main () {
println! (“Hello World !”);
let x= 7
println! (“Seminggu ada
{valx} hari”, valx=x);
}
Let
fn main () {
let x= 7;
let x=x+1;
let x=x*2;
println! (“Hasil dari x
adalah {}”,x);
}
Shadoww
// string
fn main () {
let x= “arief”;
println! (“orang ganteng
adalah {}”,x);
}
//float
fn main () {
let y: f64= 7.0;
println! (“kegantengan
arief adalah {}”,x);
}
//Boolean
fn main () {
let z= true;
println! (“apakah arief
ganteng ? {}”,x);
}
Variables
// array
fn main () {
let z=[1,2,3,4] ;
println! (“varz adalah
{}”,z[...]);
}
//tupple
fn main () {
let y = (2,3,”arief”,2.0);
println! (“vary adalah
{}”,y.2);
}
//Emoji
fn main () {
let z= “👍”;
println! (“good job
dude{}”,z);
}
Variables
Cargo
Inspiration Code Challange
#inspirationcodechallange
@ariefal891
___
CREDITS: This presentation template was created by
Slidesgo, incluiding icons by Flaticon, and
infographics & images by Freepik.
THANKS!
Do you have any questions?
ariefal891@gmail.com
+6281563937583
Facebook : Arief Al Rasyid
Instagram : @ariefal891
Please, keep this slide for attribution.
RESOURCES
Rust for beginner:
● Rust tutorial
● 12 Things to help you learn rust
● Rust PlayGround
● 9 Companies that use rust in
production
● Stackoverflow Surveys 2020
Rust language for beginner

Rust language for beginner

  • 1.
  • 2.
    Most Loved ProgrammingLanguage 2020 survey stackoverflow DID YOU KNOW THIS? Source : https://insights.stackoverflow.com/survey/2020#most-loved-dreaded-and-wanted
  • 3.
  • 4.
  • 5.
    Merupakan logo yangdibuat oleh komuniti rust atau yang lebih dikenal rustacean, diambil dari kata crustacean. FERRIS
  • 6.
  • 7.
    A Language empoweringeveryone to build reliable and efficient software u s t
  • 9.
    Build in itrust Command Line Networking Predictable performance. Tiny resource footprint. Rock-solid reliability. Rust is great for network services. WebAssembly Use Rust to supercharge your JavaScript, one module at a time. Publish to npm, bundle with webpack, and you’re off to the races. Embedded Targeting low-resource devices? Need low-level control without giving up high-level conveniences? Rust has you covered. Rust helps you maintain your app with confidence and distribute it with ease.
  • 10.
    Why Rust ? Rustis blazingly fast and memory- efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, and easily integrate with other languages. Reliability Rust’s rich type system and ownership model guarantee memory-safety and thread-safety — enabling you to eliminate many classes of bugs at compile-time. Rust has great documentation, a friendly compiler with useful error messages, and top-notch tooling — an integrated package manager and build tool, smart multi-editor support with auto-completion and type inspections, an auto-formatter, and more. Productivity Performance
  • 13.
  • 14.
    Rust package managerand build system. CARGO
  • 15.
    CARGO To compile andrun the program Cargo run To start a new package with Cargo Cargo new To compile the program Cargo build
  • 16.
    —Dennis Ritchie “The onlyway to learn a new programming language is by writing programs in it.”
  • 17.
    fn main (){ println! (“Hello World !”); } Println!
  • 18.
    fn main (){ let x= 7 println! (“Hello World !”); println! (“Seminggu ada {} hari”,x); } / fn main () { println! (“Hello World !”); let x= 7 println! (“Seminggu ada {valx} hari”, valx=x); } Let
  • 19.
    fn main (){ let x= 7; let x=x+1; let x=x*2; println! (“Hasil dari x adalah {}”,x); } Shadoww
  • 20.
    // string fn main() { let x= “arief”; println! (“orang ganteng adalah {}”,x); } //float fn main () { let y: f64= 7.0; println! (“kegantengan arief adalah {}”,x); } //Boolean fn main () { let z= true; println! (“apakah arief ganteng ? {}”,x); } Variables
  • 21.
    // array fn main() { let z=[1,2,3,4] ; println! (“varz adalah {}”,z[...]); } //tupple fn main () { let y = (2,3,”arief”,2.0); println! (“vary adalah {}”,y.2); } //Emoji fn main () { let z= “👍”; println! (“good job dude{}”,z); } Variables
  • 22.
  • 24.
  • 25.
    CREDITS: This presentationtemplate was created by Slidesgo, incluiding icons by Flaticon, and infographics & images by Freepik. THANKS! Do you have any questions? ariefal891@gmail.com +6281563937583 Facebook : Arief Al Rasyid Instagram : @ariefal891 Please, keep this slide for attribution.
  • 26.
    RESOURCES Rust for beginner: ●Rust tutorial ● 12 Things to help you learn rust ● Rust PlayGround ● 9 Companies that use rust in production ● Stackoverflow Surveys 2020

Editor's Notes

  • #13 https://serokell.io/blog/rust-companies