Rust baksia2014

50 %
50 %
Information about Rust baksia2014
Technology

Published on March 15, 2014

Author: javareidar

Source: slideshare.net

Description

Rust lang introduction for the Baksia meetup

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

Add a comment

Related presentations

Related pages

Search "White rust" (23228 documents found) - DOCSLIDE.US

Rust baksia2014 Rust lang introduction for the Baksia meetup Rust presentation 1. Inquiry in Action: Developing Ways of Knowing Frances Rust Urban Teacher ...
Read more

Rust Shield - Documents

RSH TDS 01/09 TECHNICAL DATA SHEET Description RUST-SHIELD is specially formulated to control rust and corrosion on ferrous metals. properly, RUST-SHIELD ...
Read more