@Scalone
Mruby: Change The Embedded Development Way
Slide 2
Slide 2 text
No content
Slide 3
Slide 3 text
No content
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
Cloudwalk
What We Do?
Slide 7
Slide 7 text
Thiago Scalone
Cloudwalk Day A Day
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
Mruby: Change The Embedded Development Way
Slide 10
Slide 10 text
Internet Of Things
What?
The Internet of Things (IoT) is the network of physical objects
or “things" … Each thing is uniquely identifiable through its
embedded computing system but is able to interoperate
within the existing Internet infrastructure.
Internet
embedded
by Wikipedia
Slide 11
Slide 11 text
No content
Slide 12
Slide 12 text
No content
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
No content
Slide 15
Slide 15 text
No content
Slide 16
Slide 16 text
Internet Of Things
Why??
Slide 17
Slide 17 text
“devices will be
wirelessly connected”
By ABI Research
30 BILLION
Internet Of Things
Why??
Slide 18
Slide 18 text
“devices on the
Internet of Things by
2020” By Gartnet
26 BILLION
“devices will be
wirelessly connected”
By ABI Research
30 BILLION
Internet Of Things
Why??
Slide 19
Slide 19 text
“is size of market
expected” By Cisco
CEO
19 TRILLION
“devices will be
wirelessly connected”
By ABI Research
30 BILLION
Internet Of Things
Why??
“devices on the
Internet of Things by
2020” By Gartner
26 BILLION
Slide 20
Slide 20 text
“are produced for the
embedded world” By
Embedded Portal
95% OF CHIPS
“devices will be
wirelessly connected”
By ABI Research
30 BILLION
“is size of market
expected” By Cisco
CEO
19 TRILLION
Internet Of Things
Why??
“devices on the
Internet of Things by
2020” By Gartner
26 BILLION
Slide 21
Slide 21 text
Point of Sale devices
on Brazil
3 MILLIONS
“are produced for the
embedded world” By
Embedded Portal
95% OF CHIPS
“devices on the
Internet of Things by
2020” By Gartner
26 BILLION
“is size of market
expected” By Cisco
CEO
19 TRILLION
“devices will be
wirelessly connected”
By ABI Research
30 BILLION
Internet Of Things
Why??
Slide 22
Slide 22 text
Really?!
Slide 23
Slide 23 text
No content
Slide 24
Slide 24 text
Backend Developer
Thiago Scalone
Backend Developer
Love Tests,
Code and
Beer
Slide 25
Slide 25 text
Delivery the code and
collect feedback
CONTINUOUS DELIVERY
Backend App
Used To Have
Run the entire suite with
one command
TEST
Beautiful code and easy to
maintainable
BEAUTIFUL API
Documentation from code
DOCUMENTATION
Slide 26
Slide 26 text
Moving To Cloudwalk
Improvement
Thiago Scalone
Backend Developer
Love Tests,
Code and
Beer
Slide 27
Slide 27 text
No content
Slide 28
Slide 28 text
WINDOWS XP
Eclipse :(
Slide 29
Slide 29 text
Point Of Sale
What Is?
Slide 30
Slide 30 text
or even a good
filesystem
NO OS
Point Of Sale
What Is?
Slide 31
Slide 31 text
for example pipe or
fork
LIMITED SYSCALL
Point Of Sale
What Is?
or even a good
filesystem
NO OS
Slide 32
Slide 32 text
OsModemOpen();
OsPrnOpen();
OsPrnClose();
POORLY API
Point Of Sale
What Is?
for example pipe or
fork
LIMITED SYSCALL
or even a good
filesystem
NO OS
Slide 33
Slide 33 text
open, read, close
NO POSIX
Point Of Sale
What Is?
for example pipe or
fork
LIMITED SYSCALL
OsModemOpen();
OsPrnOpen();
OsPrnClose();
POORLY API
or even a good
filesystem
NO OS
Slide 34
Slide 34 text
your on spec
NO ANSIC
Point Of Sale
What Is?
open, read, close
NO POSIX
or even a good
filesystem
NO OS
for example pipe or
fork
LIMITED SYSCALL
OsModemOpen();
OsPrnOpen();
OsPrnClose();
POORLY API
Slide 35
Slide 35 text
Development Workflow
DEVELOPMENT .C
PHYSICALLY
UPLOAD
CUSTOMER
FEEDBACK
GENERATE .O
SIGN
TEST
MASSIFICATION
DEVELOPMENT .C
6 MONTHS
…
Slide 36
Slide 36 text
Development Workflow
PHYSICALLY
UPLOAD
30.000
Slide 37
Slide 37 text
ANYTHING NEW
Runtime
Slide 38
Slide 38 text
Mruby
Minimalistic Ruby
Static C/Ruby Gems
High Portable
ANSI C
Bare Metal
Resource Saving
Small
Slide 39
Slide 39 text
No content
Slide 40
Slide 40 text
How???
Slide 41
Slide 41 text
Around The World
Open Source
MRBGEMS
SSL (PolarSSL)
IO
Socket
Regex
Zip/Unzip (Miniz)
Slide 42
Slide 42 text
Da Funk
Open Source
API TO IOTS NEEDS
Notifications (Serf)
Communication (HTTP, ISO8583, Serial…)
Application update
Networking (GPRS, WIFI, ETHERNET…)
Hardware Abstraction
Slide 43
Slide 43 text
Da Funk + Around
DEVICE (IOT)
DA FUNK
MRBGEMS
AROUND
SDK/SO
APP
IO …
Slide 44
Slide 44 text
Da Funk + Around
DEVICE (IOT)
DA FUNK
MRBGEMS
AROUND
SDK/SO
APP
IO …
Slide 45
Slide 45 text
Command Line Tool
Go(Cgo) + Mruby
Slide 46
Slide 46 text
Command Line Tool
Go(Cgo) + Mruby
Slide 47
Slide 47 text
Emulation
Go + Thrust + Webruby
Slide 48
Slide 48 text
Notifications With Serf
Gossip Protocol By Hashicorp
SERF HANDSHAKE
KEEP ALIVE (ACK)
GIT PUSH
EVENT
SERF STREAM
DOWNLOAD APP
Slide 49
Slide 49 text
So…
Slide 50
Slide 50 text
Embedded
Slide 51
Slide 51 text
Developing
Slide 52
Slide 52 text
As Backend App
Slide 53
Slide 53 text
New Development Workflow
DEVELOPMENT RB FEEDBACK
TEST DEPLOY
MINUTES