O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
Rust on Arduino Due
Tim Kellogg
@kellogh
Source: https://github.com/tkellogg/dueboot
Getting started on OSX:
• http://arduino.cc/en/Guide/ArduinoDue
• brew install...
• As fast as C/C++
• No manual memory management, no GC
• Functional goodies
• Built-in unit testing
• Polymorphism (but n...
CPU Power?
Battery Life?
Quality?
Ariane 5
https://www.youtube.com/watch?v=kYUrqdUyE
pI
"We've demonstrated how as little
as a single bit flip can cause the
driver to lose control of the engine
speed in real ca...
• Buffer overflow
• Unsafe casting
• Race conditions between tasks
C binding generator:
https://github.com/crabtw/rust-bindgen
Remaining Issues
• Heap allocations
• Interrupts as Tasks
• Non-trivial language features
Book: Practical Internet of Things
@kellogh
Programming The Arduino Due in Rust
Programming The Arduino Due in Rust
Programming The Arduino Due in Rust
Próximos SlideShares
Carregando em…5
×

Programming The Arduino Due in Rust

6.105 visualizações

Publicada em

Slides from my talk at GlueCon '14 about programming an Arduino Due in Rust, and about using Rust for embedded or IoT applications.

Publicada em: Tecnologia
  • Seja o primeiro a comentar

Programming The Arduino Due in Rust

  1. 1. Rust on Arduino Due Tim Kellogg @kellogh
  2. 2. Source: https://github.com/tkellogg/dueboot Getting started on OSX: • http://arduino.cc/en/Guide/ArduinoDue • brew install rust • brew install llvm --all-targets • edit Rakefile of dueboot repository
  3. 3. • As fast as C/C++ • No manual memory management, no GC • Functional goodies • Built-in unit testing • Polymorphism (but no inheritance) • Compiles to ARM (Android, Raspberry Pi, Due)
  4. 4. CPU Power? Battery Life? Quality?
  5. 5. Ariane 5 https://www.youtube.com/watch?v=kYUrqdUyE pI
  6. 6. "We've demonstrated how as little as a single bit flip can cause the driver to lose control of the engine speed in real cars due to software malfunction that is not reliably detected by any fail-safe"
  7. 7. • Buffer overflow • Unsafe casting • Race conditions between tasks
  8. 8. C binding generator: https://github.com/crabtw/rust-bindgen
  9. 9. Remaining Issues • Heap allocations • Interrupts as Tasks • Non-trivial language features
  10. 10. Book: Practical Internet of Things @kellogh

×