Rust baksia2014
Upcoming SlideShare
Loading in...5
×
 

Rust baksia2014

on

  • 171 views

Rust lang introduction for the Baksia meetup

Rust lang introduction for the Baksia meetup

Statistics

Views

Total Views
171
Views on SlideShare
167
Embed Views
4

Actions

Likes
0
Downloads
1
Comments
0

2 Embeds 4

https://twitter.com 3
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Rust baksia2014 Rust baksia2014 Presentation Transcript

    • Introducing the Rust programming language Reidar Sollid Functional concurrent oriented low level language
    • So what is Rust 2 Presentation Title - Classification • A programming language from Mozilla labs • • Compiled un-managed language • Ahead of time compiler • Concurrent-oriented • – Message passing – Default immutable variables (mutable keyword) • • Lambda expressions with a lot if easy to use code • Classes and traits • No NPE crashes, libs use Option<T> or Result<T,U> • Shared memory is not allowed (Go and Scala does)
    • What problem to solve 3 Presentation Title - Classification
    • Multiple tabs with websockets 4 Presentation Title - Classification
    • And this 5 Presentation Title - Classification
    • Shared memory model 6 Presentation Title - Classification Shared memory Process thread Process thread Process thread
    • Message passing 7 Presentation Title - Classification Process thread Process thread Process thread
    • Concurrency and shared memory model 8 Presentation Title - Classification
    • Tasks 9 Presentation Title - Classification
    • Task management 10 Presentation Title - Classification • An Rust program consists of a tree of tasks, with their own stack and sole ownership of allocated heap data • Communicate through ports and channels • Propagates failures to its parent (the task spawned this one) unless unsupervise function is called. • May be executed in parallel and are scheduled by the runtime • Has its own GC (No global ”stop the world to clean up”)
    • Hello world 11 Presentation Title - Classification
    • Pattern matching 12 Presentation Title - Classification
    • Pattern matching example 13 Presentation Title - Classification
    • Closures 14 Presentation Title - Classification
    • Closures example 15 Presentation Title - Classification
    • Ports and Channels Task commuication 16 Presentation Title - Classification
    • Port and channel example 17 Presentation Title - Classification
    • Pointers 18 Presentation Title - Classification
    • Pointers example 19 Presentation Title - Classification
    • Class construct 20 Presentation Title - Classification
    • Some high order functions 21 Presentation Title - Classification
    • Unit test example 22 Presentation Title - Classification
    • Crate examples 23 Presentation Title - Classification
    • Stickers ? 24 Presentation Title - Classification