SlideShare a Scribd company logo
1 of 30
Download to read offline
Another billion
WEB TECHNOLOGIES FOR NEXT GENERATION OF
CONNECTED DEVICES
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
1
Overview
We have a new generation of low power
low performance connected devices.
It is called Internet of Things
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
2
Can we learn from mobiles?
How can we develop apps for them?
Can we reuse knowledge and tools?
Can we learn anything from mobile
industry?
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
3
Background
C++ developer, embedded systems and mobile OS
development
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
4
Web – Mobiles – Next Gen
We have made a long journey with
mobile internet and web.
It took many steps to get where we are
today – working mobile web
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
5
Smartphones
Smartphones are running version of desktop
browsers.
Will we repeat the same mistakes with next
generation devices?
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
6
This was going to be future of
mobile web
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
7
History – Wireless Application
Protocol
Driven by mobile operators driven
Mobile equivalent of HTML + HTTP
Huge investment by entire industry for technology
nobody really used
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
8
History – WAC 2.0
Wholesale Applications Community – platform for
mobile software developers
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
9
History – WAC 2.0
◦ Driven by mobile operators
◦ Based on HTML, JavaScript, and CSS
Almost like HTML5, but not quite. By the time it
was ready, HTML5 was picking up.
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
10
Mobile Browsers
Initially driven (and limited) by hardware and
software (mobile phones).
This usually caused more issues than in solved.
Versions of desktop browsers are available on
mobiles now.
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
11
Next Gen - IoT
Internet of Things is emerging technology – smart
sensors, wearable tech, connected house,
connected car... You name it
Reasonably established in some categories like
wearable tech and smart watches.
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
12
Internet of things by numbers
Range of connected devices and already counting
in billions
◦ Many trivial devices – smart sensors
◦ More complex devices with dedicated OS –
Google Project Brillo
◦ Devices supporting web technologies – perhaps
smallest group of IoT devices, but given the
scope of market still significant
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
13
Next Gen - IoT
Why web technologies ?
Existing dev tools and existing developers
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
14
Raspberry Pi
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
15
Epiphany -Fast, Modern
Browser for the Raspberry Pi
Much-improved HTML5
JavaScript JIT
Hardware-accelerated video
decoding
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
16
Samsung Gear 2
Runs WebKit
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
17
IoT issues
As with any emerging technology, there are issues
to be sorted out
Ease of development
Security
Privacy
Less powerful hardware
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
18
Lets use WebKit
Using WebKit as development environment for IoT
has many advantages
◦ Existing development tools
◦ Developers
◦ Well understood Security implementation
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
19
Security
We get a lot from WebKit technologies by default
https:// - based on TLS and SSL using OpenSSL
libraries
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
20
Privacy
Privacy in WebKit – for embedded devices, we can
disable or configure some features
◦ Cookies
◦ web storage
◦ CORS
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
21
Running Out Of Memory
If you run with memory budget of 200MB you are
likely to hit OOM
◦ The Web App really needs that much memory –
not much to do apart from redesigning
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
22
Running Out Of Memory
Web App is not optimised
Optimise the App itself and improve WebKit OOM
handling and Garbage Collection algorithm.
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
23
Generic optimisation
for(var i=0; i<10; i++){
var obj = {key:'val'};
console.log(obj);
}
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
24
OOM stress test
var numberOfImages = 0;
var memoryDiv = document.getElementById('memory');
//get references to the 6 static DOM elements up
front.
var imageDivs = [];
for (var i = 0; i < 6; i++) {
imageDivs.push(document.getElementById('image' +
i));
}
Initialise variables
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
25
WebKit OOM & GC
function interval() {
var currentImageDiv = imageDivs[numberOfImages % 6];
currentImageDiv.innerHTML =
'<img src="testimage.png?cachebuster=' + numberOfImages + '" />';
numberOfImages++;
}
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
26
Existing GC issue in WebKit
In certain situations clearing the WebKit's
MemoryCache doesn't releases all CachedResource
to system.
https://bugs.webkit.org/show_bug.cgi?id=111094
Garbage Collect to release the references of
CachedResource
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
27
Out Of Memory in WebKit
Existing functionality in WebKit is proven for
desktop.
Managing memory budget involves cache, font
storage, Garbage Collection
Full Memory Pressure Handler is needed in WebKit.
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
28
Going forward
Web developers and designers should consider
memory optimisation on Next Gen devices.
Better memory management in WebKit is needed.
Specific embedded WebKit port for IoT devices is
needed.
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
29
Conclusion
Performance as such is not generally an issue
Hardware acceleration is not an issue
Memory usage is the issue
12/09/2015
STATE OF THE BROWSER 5
MARTIN JAKL @JAKLMARTIN
30

More Related Content

Similar to Another billion devices STOB5

Semicon west monetizing the internet of things
Semicon west   monetizing the internet of thingsSemicon west   monetizing the internet of things
Semicon west monetizing the internet of thingsPaul Brody
 
Tec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examplesTec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examplesMarkus Van Kempen
 
BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...
BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...
BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...Jon Stevens-Hall
 
Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...
Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...
Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...DataStax Academy
 
Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...
Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...
Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...How to Web
 
Cloud Computing Report For Print
Cloud Computing Report For PrintCloud Computing Report For Print
Cloud Computing Report For Printjimeyren
 
Ian Uriarte Timbergrove at IBM IoTExchange 2019
Ian Uriarte Timbergrove at IBM IoTExchange 2019Ian Uriarte Timbergrove at IBM IoTExchange 2019
Ian Uriarte Timbergrove at IBM IoTExchange 2019IanUriarte2
 
Ad hoc analytics with Cassandra and Spark
Ad hoc analytics with Cassandra and SparkAd hoc analytics with Cassandra and Spark
Ad hoc analytics with Cassandra and SparkMohammed Guller
 
BMC Engage 2015: Optimizing Service Desk Interactions with Knowledge Management
BMC Engage 2015: Optimizing Service Desk Interactions with Knowledge ManagementBMC Engage 2015: Optimizing Service Desk Interactions with Knowledge Management
BMC Engage 2015: Optimizing Service Desk Interactions with Knowledge ManagementJon Stevens-Hall
 
IoT Deep Dive - Be an IoT Developer for an Hour
IoT Deep Dive - Be an IoT Developer for an HourIoT Deep Dive - Be an IoT Developer for an Hour
IoT Deep Dive - Be an IoT Developer for an HourTaisuke Yamada
 
THE INTERNET OF THINGS IS GETTING REAL
THE INTERNET OF THINGS IS GETTING REALTHE INTERNET OF THINGS IS GETTING REAL
THE INTERNET OF THINGS IS GETTING REALDrupalCamp Kyiv
 
New Platforms. New Delivery Modes
New Platforms. New Delivery ModesNew Platforms. New Delivery Modes
New Platforms. New Delivery ModesJoe Drumgoole
 
IBM Bluemix saves the game
IBM Bluemix saves the gameIBM Bluemix saves the game
IBM Bluemix saves the gamegjuljo
 
HTML5 for mobile development
HTML5 for mobile developmentHTML5 for mobile development
HTML5 for mobile developmentCarlos Justiniano
 
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...Markus Van Kempen
 
Iot Line Fair 2015 /New Things About IoT
Iot Line Fair 2015 /New Things About IoTIot Line Fair 2015 /New Things About IoT
Iot Line Fair 2015 /New Things About IoTCeylan Parlakay
 
Fifth Edition Architecture Week @Gothenburg 141009
Fifth Edition Architecture Week @Gothenburg 141009Fifth Edition Architecture Week @Gothenburg 141009
Fifth Edition Architecture Week @Gothenburg 141009Capgemini
 
Public pz-taking yourbusinesstothecloud
Public pz-taking yourbusinesstothecloudPublic pz-taking yourbusinesstothecloud
Public pz-taking yourbusinesstothecloudIBMInnovationSpaces
 

Similar to Another billion devices STOB5 (20)

Semicon west monetizing the internet of things
Semicon west   monetizing the internet of thingsSemicon west   monetizing the internet of things
Semicon west monetizing the internet of things
 
Tec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examplesTec118 Teched2015 IOT use case and examples
Tec118 Teched2015 IOT use case and examples
 
BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...
BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...
BMC Engage 2015: IT Asset Management - An essential pillar for the digital en...
 
Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...
Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...
Glassbeam: Ad-hoc Analytics on Internet of Complex Things with Apache Cassand...
 
Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...
Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...
Christopher Martin, Senior Manager, Bosch - It’s Complicated: Why making a gr...
 
Cloud Computing Report For Print
Cloud Computing Report For PrintCloud Computing Report For Print
Cloud Computing Report For Print
 
Ian Uriarte Timbergrove at IBM IoTExchange 2019
Ian Uriarte Timbergrove at IBM IoTExchange 2019Ian Uriarte Timbergrove at IBM IoTExchange 2019
Ian Uriarte Timbergrove at IBM IoTExchange 2019
 
Ad hoc analytics with Cassandra and Spark
Ad hoc analytics with Cassandra and SparkAd hoc analytics with Cassandra and Spark
Ad hoc analytics with Cassandra and Spark
 
BMC Engage 2015: Optimizing Service Desk Interactions with Knowledge Management
BMC Engage 2015: Optimizing Service Desk Interactions with Knowledge ManagementBMC Engage 2015: Optimizing Service Desk Interactions with Knowledge Management
BMC Engage 2015: Optimizing Service Desk Interactions with Knowledge Management
 
IoT Deep Dive - Be an IoT Developer for an Hour
IoT Deep Dive - Be an IoT Developer for an HourIoT Deep Dive - Be an IoT Developer for an Hour
IoT Deep Dive - Be an IoT Developer for an Hour
 
THE INTERNET OF THINGS IS GETTING REAL
THE INTERNET OF THINGS IS GETTING REALTHE INTERNET OF THINGS IS GETTING REAL
THE INTERNET OF THINGS IS GETTING REAL
 
New Platforms. New Delivery Modes
New Platforms. New Delivery ModesNew Platforms. New Delivery Modes
New Platforms. New Delivery Modes
 
Ibm iot overview
Ibm   iot overviewIbm   iot overview
Ibm iot overview
 
IBM Bluemix saves the game
IBM Bluemix saves the gameIBM Bluemix saves the game
IBM Bluemix saves the game
 
HTML5 for mobile development
HTML5 for mobile developmentHTML5 for mobile development
HTML5 for mobile development
 
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
Display device (mqtt) data with Real Time Insights on IBM Internet of Things ...
 
Iot Line Fair 2015 /New Things About IoT
Iot Line Fair 2015 /New Things About IoTIot Line Fair 2015 /New Things About IoT
Iot Line Fair 2015 /New Things About IoT
 
Fifth Edition Architecture Week @Gothenburg 141009
Fifth Edition Architecture Week @Gothenburg 141009Fifth Edition Architecture Week @Gothenburg 141009
Fifth Edition Architecture Week @Gothenburg 141009
 
Public pz-taking yourbusinesstothecloud
Public pz-taking yourbusinesstothecloudPublic pz-taking yourbusinesstothecloud
Public pz-taking yourbusinesstothecloud
 
Mobile Trends 2012
Mobile Trends 2012Mobile Trends 2012
Mobile Trends 2012
 

Recently uploaded

Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Vipesco
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaKayode Fayemi
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatmentnswingard
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfSkillCertProExams
 
Digital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalDigital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalFabian de Rijk
 
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verifiedDelhi Call girls
 
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...Pooja Nehwal
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxraffaeleoman
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfSenaatti-kiinteistöt
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...amilabibi1
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoKayode Fayemi
 
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Delhi Call girls
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lodhisaajjda
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIINhPhngng3
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar TrainingKylaCullinane
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Baileyhlharris
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCamilleBoulbin1
 

Recently uploaded (18)

ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
Digital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalDigital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of Drupal
 
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
 
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptx
 

Another billion devices STOB5

  • 1. Another billion WEB TECHNOLOGIES FOR NEXT GENERATION OF CONNECTED DEVICES 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 1
  • 2. Overview We have a new generation of low power low performance connected devices. It is called Internet of Things 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 2
  • 3. Can we learn from mobiles? How can we develop apps for them? Can we reuse knowledge and tools? Can we learn anything from mobile industry? 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 3
  • 4. Background C++ developer, embedded systems and mobile OS development 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 4
  • 5. Web – Mobiles – Next Gen We have made a long journey with mobile internet and web. It took many steps to get where we are today – working mobile web 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 5
  • 6. Smartphones Smartphones are running version of desktop browsers. Will we repeat the same mistakes with next generation devices? 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 6
  • 7. This was going to be future of mobile web 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 7
  • 8. History – Wireless Application Protocol Driven by mobile operators driven Mobile equivalent of HTML + HTTP Huge investment by entire industry for technology nobody really used 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 8
  • 9. History – WAC 2.0 Wholesale Applications Community – platform for mobile software developers 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 9
  • 10. History – WAC 2.0 ◦ Driven by mobile operators ◦ Based on HTML, JavaScript, and CSS Almost like HTML5, but not quite. By the time it was ready, HTML5 was picking up. 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 10
  • 11. Mobile Browsers Initially driven (and limited) by hardware and software (mobile phones). This usually caused more issues than in solved. Versions of desktop browsers are available on mobiles now. 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 11
  • 12. Next Gen - IoT Internet of Things is emerging technology – smart sensors, wearable tech, connected house, connected car... You name it Reasonably established in some categories like wearable tech and smart watches. 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 12
  • 13. Internet of things by numbers Range of connected devices and already counting in billions ◦ Many trivial devices – smart sensors ◦ More complex devices with dedicated OS – Google Project Brillo ◦ Devices supporting web technologies – perhaps smallest group of IoT devices, but given the scope of market still significant 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 13
  • 14. Next Gen - IoT Why web technologies ? Existing dev tools and existing developers 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 14
  • 15. Raspberry Pi 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 15
  • 16. Epiphany -Fast, Modern Browser for the Raspberry Pi Much-improved HTML5 JavaScript JIT Hardware-accelerated video decoding 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 16
  • 17. Samsung Gear 2 Runs WebKit 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 17
  • 18. IoT issues As with any emerging technology, there are issues to be sorted out Ease of development Security Privacy Less powerful hardware 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 18
  • 19. Lets use WebKit Using WebKit as development environment for IoT has many advantages ◦ Existing development tools ◦ Developers ◦ Well understood Security implementation 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 19
  • 20. Security We get a lot from WebKit technologies by default https:// - based on TLS and SSL using OpenSSL libraries 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 20
  • 21. Privacy Privacy in WebKit – for embedded devices, we can disable or configure some features ◦ Cookies ◦ web storage ◦ CORS 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 21
  • 22. Running Out Of Memory If you run with memory budget of 200MB you are likely to hit OOM ◦ The Web App really needs that much memory – not much to do apart from redesigning 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 22
  • 23. Running Out Of Memory Web App is not optimised Optimise the App itself and improve WebKit OOM handling and Garbage Collection algorithm. 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 23
  • 24. Generic optimisation for(var i=0; i<10; i++){ var obj = {key:'val'}; console.log(obj); } 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 24
  • 25. OOM stress test var numberOfImages = 0; var memoryDiv = document.getElementById('memory'); //get references to the 6 static DOM elements up front. var imageDivs = []; for (var i = 0; i < 6; i++) { imageDivs.push(document.getElementById('image' + i)); } Initialise variables 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 25
  • 26. WebKit OOM & GC function interval() { var currentImageDiv = imageDivs[numberOfImages % 6]; currentImageDiv.innerHTML = '<img src="testimage.png?cachebuster=' + numberOfImages + '" />'; numberOfImages++; } 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 26
  • 27. Existing GC issue in WebKit In certain situations clearing the WebKit's MemoryCache doesn't releases all CachedResource to system. https://bugs.webkit.org/show_bug.cgi?id=111094 Garbage Collect to release the references of CachedResource 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 27
  • 28. Out Of Memory in WebKit Existing functionality in WebKit is proven for desktop. Managing memory budget involves cache, font storage, Garbage Collection Full Memory Pressure Handler is needed in WebKit. 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 28
  • 29. Going forward Web developers and designers should consider memory optimisation on Next Gen devices. Better memory management in WebKit is needed. Specific embedded WebKit port for IoT devices is needed. 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 29
  • 30. Conclusion Performance as such is not generally an issue Hardware acceleration is not an issue Memory usage is the issue 12/09/2015 STATE OF THE BROWSER 5 MARTIN JAKL @JAKLMARTIN 30