SlideShare a Scribd company logo
1 of 31
Download to read offline
How to (Help to)
Save Our Planet
with Green Coding
Janne Kalliola
Photo by Niilo Isotalo on Unsplash
Contents
About me and my book
Why green coding is important?
Energy consumption in modern software
Measurements or lack of them
Reducing waste
Practical solutions
Final words
1
2
3
4
5
6
7
About Myself
● Janne Kalliola, Chief Growth Officer
and founder of Exove
● Have been coding since 1983 – Basic,
Pascal, Lisp, Fortran, C/C++/Obj-C, Java,
PHP, JavaScript
● Now focusing on growth of Exove, a
leading open web technology
company delivering digital growth
● Working with green coding and
carbon neutrality for a few years now
My Book
exove.com/fi/vihrea-koodi exove.com/green-code
Second edition
published – AI,
cryptos, IoT, data
+ others
Why Is This
Important?
The ICT sector accounts for
4–10% of the world's energy
consumption1)
and 2.1–3.9%
of greenhouse emissions2)
.
The numbers are growing.
1)
Ministry of Transport and Communications: Climate and environmental strategy for the ICT sector.
2)
The real climate and transformative impact of ICT: A critique of estimates, trends, and regulations
3.0% of global carbon
emissions1)
=
1 580 000 000 tons
Every year.
1)
Global emissions 58.2Gt from UN Emissions Gap Report 2022
For the sake of
perspective, this is
about the mass of
all land mammals
and people.1)
1)
https://energyeducation.ca/encyclopedia/Gigatonne
ICT Infrastructure and Emissions
In the years 2017-2022, global internet traffic is estimated to
quadruple. 1)
Data consumption is predicted to multiply. Besides consumers,
data usage is increased by new technologies, such as AI, IoT,
blockchains and the metaverse.
The communication and data explosion will correspondingly
require more hardware and energy in all parts of the value chain.
And we do not clean our tracks properly. Electronic waste is the
world's fastest growing type of waste. Only 17% of electronic waste
is treated properly.
1)
Ministry of Transport and Communications: Climate and environmental strategy for the ICT sector.
Energy
Consumption
in Modern
Software
Generic Architecture of Modern Software
End-user Devices Network Cloud / Datacenter
Generic Architecture of Modern Software
Network between the
end-user devices and cloud
/ datacenter
Different connection
methods have different
energy usage per gigabyte
transferred
Typically, the last mile
connection uses the most
energy
N.B. The client may connect
to several backends
Devices used by end-users
to access the service
Battery-powered, such as
mobile phone or laptop, or
plugged into wall, such as
game console or TV
Device energy
consumption should be
split between the various
applications running on the
device
All systems participating in
providing the service
◦ Web and application
servers, databases, storage
◦ Firewalls, VPN endpoints,
log systems
◦ Backup & restore systems
◦ Internal connectivity
Energy consumed by
dedicated and shared
systems used
End-user Devices Network Cloud / Datacenter
Cloud / Datacenter
End-user Devices
Energy Consumption
Electricity consumption of
data transferred
Typically calculated on
energy used per gigabyte
Varies a lot between the
various types of networks –
10,000 times efficiency
differences (mobile vs. optic
fibre)
Electricity consumption of
the CPU, GPU, display,
network connection, GPS,
etc.
Typically very optimised
hardware when devices are
battery-powered
Not so when the device is
plugged to a wall socket
The screen is the biggest
hog of energy in mobile
devices
Electricity consumption of
servers, storage, and
internal network
Optimised hardware,
designed to be run with a
full throttle all the time
Network
Software and Emissions
Software needs hardware to run. Hardware causes emissions in
several steps in their lifecycle: manufacturing, logistics, usage and
dismantling
Hardware needs electricity, and the emissions depend on the type
of energy
Energy production causes emissions, including also renewables.
Using renewable or carbon offsetted energy does not solve the
problem, but moves it to another location.
Thus, it is paramount to save energy.
Measurements
– or lack of them
Measuring Energy Consumption
Energy consumption is not straightforward to measure due to
several factors:
● Several systems running on the same platform
● Hard to measure electricity consumption inside the device
● All cloud providers or datacenters do not provide electricity
information
● The communication between the cloud and the end user
device may use several different networks
● CDNs, caches, etc. all complicate matters
Instead
The study executed by the university of Beira Interior in Portugal
found a strong or very strong correlation between the execution
time and the electricity consumption.
Thus, if a software achieves the its goals with less time, it is more
efficient also in using energy.
Further, the less data is transferred, the less energy is used in the
data networks.
Thirdly, the less hardware is used, the less emissions are caused.
Reducing
Waste
Reducing Waste
In Lean manufacturing, “waste” is commonly defined as any
action that does not add value to the customer. [...] Lean
manufacturing is centered around eliminating waste from a
manufacturing process. 1)
We can use the same metaphor in reducing energy consumption
in software – execution and data transfer – by removing bits that
do not add value.
1)
https://www.techsolve.org/8-wastes-of-lean-manufacturing/
Types of Waste
Transferring data for the sake of
certainty
Algorithmic inefficiency
Deceiving user
Too much code
Wrong programming language
Waste in initialisation
Extraneous stuff
Redundant software
Using software in wrong task
User errors
Wrong architecture
Wrong data model
Extra data
Unoptimised data
Impact
Large
Small
Amount
of work
Small Large
✖
Do right
away
✖
Think for a
moment
Implement as part
of other tasks
✖
Do not do it
✖
✖
Do soon
Combine with a larger change
✖
✖
Split into parts
Impact
Large
Small
User
Experience
Worsens Improves
✖
Ponder
carefully
✖
Ponder carefully
Do not do it
✖
Implement as part
of other tasks
✖
Combine with a larger change
✖
✖
Do now
Do not do it
✖
✖
Do soon
✖
Do now
Do soon
✖
Practical
Solutions
Reduce Amount of Data Transferred
● Use proper formats, if possible
● Cache when you can and make sure that cache strategy is
well-thought out
● Compress everything that is possible
● Minimise possibilities for errors
● Reduce amount of videos, replace them with animations
(they compress better) or static images
● Reduce data transfer frequency
● Strip unneeded typefaces and/or glyphs from fonts
Reduce Amount of Code
● Remove dead code – rely on version control instead
● Be mindful when adding new libraries – check their footprint
and also check whether the same goal can be achieved with a
smaller library – be cautious to implement larger
implementations by yourself instead of using a readymade
library
● Limit the amount of code that is sent over the network – this
is a web specific problem
Improve Code Efficiency
● Find the hotspots of the software and focus on optimising
them. Do not spread optimisation efforts evenly to all code
● Do not do premature or local optimisations, focus on the
bigger picture
● Use right algorithms for the task – especially when the
amount of data is large
● Consider implementing critical parts with different language,
if possible
Final Words
This Is a Journey
● Do not expect that all changes can be done at once.
● Instead, we need to keep the client – internal or external –
needs in primary focus, and operate within agreed budgets.
● Satisfied clients allow us to make more changes to the
systems, including also making it more energy efficient, than
dissatisfied clients.
● Do not set too ambitious goals or try to gobble everything up
at once.
Photo by Todd Trapani on Unsplash
The most important
thing in starting a
journey is to take
the first step.
Questions?
Comments?
exove.com/fi/vihrea-koodi
exove.com/green-code
How to (Help to) Save Our Planet with Green Coding

More Related Content

What's hot

Digital Transformation Strategy & Framework | By ex-McKinsey
Digital Transformation Strategy & Framework | By ex-McKinseyDigital Transformation Strategy & Framework | By ex-McKinsey
Digital Transformation Strategy & Framework | By ex-McKinseyAurelien Domont, MBA
 
The Cloud Imperative in Life Sciences - Accenture
The Cloud Imperative in Life Sciences - AccentureThe Cloud Imperative in Life Sciences - Accenture
The Cloud Imperative in Life Sciences - Accentureaccenture
 
Digital Transformation
Digital TransformationDigital Transformation
Digital TransformationVishal Sharma
 
Accenture Program Project and Service Management
Accenture Program Project and Service ManagementAccenture Program Project and Service Management
Accenture Program Project and Service ManagementAccenture Technology
 
#BainWebinar Procurement Best Practices Through Covid19
#BainWebinar Procurement Best Practices Through Covid19 #BainWebinar Procurement Best Practices Through Covid19
#BainWebinar Procurement Best Practices Through Covid19 Bain & Company Brasil
 
Innovation Portfolio Management Analytics
Innovation Portfolio Management AnalyticsInnovation Portfolio Management Analytics
Innovation Portfolio Management AnalyticsScott Mongeau
 
What is digital what is transformation
What is digital what is transformationWhat is digital what is transformation
What is digital what is transformationDavid Edmundson-Bird
 
Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...
Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...
Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...Thoughtworks
 
Federal Vision 2030
Federal Vision 2030Federal Vision 2030
Federal Vision 2030accenture
 
SmartRecruiters Recruiting Platform
SmartRecruiters Recruiting PlatformSmartRecruiters Recruiting Platform
SmartRecruiters Recruiting PlatformPaul Andre de Vera
 
Iron Mountain: The Essential Guide To Understanding Digital Transformation
Iron Mountain: The Essential Guide To Understanding Digital TransformationIron Mountain: The Essential Guide To Understanding Digital Transformation
Iron Mountain: The Essential Guide To Understanding Digital TransformationMighty Guides, Inc.
 
2022 Insight Intelligent Technology™ Report
2022 Insight Intelligent Technology™ Report 2022 Insight Intelligent Technology™ Report
2022 Insight Intelligent Technology™ Report Insight
 
The Digital Transformation of the Health and Fitness industry
The Digital Transformation of the Health and Fitness industryThe Digital Transformation of the Health and Fitness industry
The Digital Transformation of the Health and Fitness industryBryan K. O'Rourke
 
IT OT Integration_Vishnu_Murali_05262016_UPDATED
IT OT Integration_Vishnu_Murali_05262016_UPDATEDIT OT Integration_Vishnu_Murali_05262016_UPDATED
IT OT Integration_Vishnu_Murali_05262016_UPDATEDVishnu Murali
 
Digital Transformation Framework By Ionology
Digital Transformation Framework By IonologyDigital Transformation Framework By Ionology
Digital Transformation Framework By IonologyNiall McKeown
 
The New Digital Ecosystem - understanding digital today
The New Digital Ecosystem - understanding digital todayThe New Digital Ecosystem - understanding digital today
The New Digital Ecosystem - understanding digital todayTamara Obradov
 
Supply Chain Transformation on the Cloud |Accenture
Supply Chain Transformation on the Cloud |AccentureSupply Chain Transformation on the Cloud |Accenture
Supply Chain Transformation on the Cloud |Accentureaccenture
 
Pitch Deck Teardown: Honeycomb 's $50M Series D deck
Pitch Deck Teardown: Honeycomb 's $50M Series D deckPitch Deck Teardown: Honeycomb 's $50M Series D deck
Pitch Deck Teardown: Honeycomb 's $50M Series D deckHajeJanKamps
 

What's hot (20)

Digital Transformation Strategy & Framework | By ex-McKinsey
Digital Transformation Strategy & Framework | By ex-McKinseyDigital Transformation Strategy & Framework | By ex-McKinsey
Digital Transformation Strategy & Framework | By ex-McKinsey
 
The Cloud Imperative in Life Sciences - Accenture
The Cloud Imperative in Life Sciences - AccentureThe Cloud Imperative in Life Sciences - Accenture
The Cloud Imperative in Life Sciences - Accenture
 
[Slides] Digital Transformation, with Brian Solis
[Slides] Digital Transformation, with Brian Solis[Slides] Digital Transformation, with Brian Solis
[Slides] Digital Transformation, with Brian Solis
 
Digital Transformation
Digital TransformationDigital Transformation
Digital Transformation
 
Accenture Program Project and Service Management
Accenture Program Project and Service ManagementAccenture Program Project and Service Management
Accenture Program Project and Service Management
 
#BainWebinar Procurement Best Practices Through Covid19
#BainWebinar Procurement Best Practices Through Covid19 #BainWebinar Procurement Best Practices Through Covid19
#BainWebinar Procurement Best Practices Through Covid19
 
Innovation Portfolio Management Analytics
Innovation Portfolio Management AnalyticsInnovation Portfolio Management Analytics
Innovation Portfolio Management Analytics
 
What is digital what is transformation
What is digital what is transformationWhat is digital what is transformation
What is digital what is transformation
 
Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...
Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...
Enabling sustainable transformation, Gary O'Brien, Global Advisory Lead, Thou...
 
Federal Vision 2030
Federal Vision 2030Federal Vision 2030
Federal Vision 2030
 
SmartRecruiters Recruiting Platform
SmartRecruiters Recruiting PlatformSmartRecruiters Recruiting Platform
SmartRecruiters Recruiting Platform
 
Iron Mountain: The Essential Guide To Understanding Digital Transformation
Iron Mountain: The Essential Guide To Understanding Digital TransformationIron Mountain: The Essential Guide To Understanding Digital Transformation
Iron Mountain: The Essential Guide To Understanding Digital Transformation
 
2022 Insight Intelligent Technology™ Report
2022 Insight Intelligent Technology™ Report 2022 Insight Intelligent Technology™ Report
2022 Insight Intelligent Technology™ Report
 
Successful Innovation Management
Successful Innovation Management Successful Innovation Management
Successful Innovation Management
 
The Digital Transformation of the Health and Fitness industry
The Digital Transformation of the Health and Fitness industryThe Digital Transformation of the Health and Fitness industry
The Digital Transformation of the Health and Fitness industry
 
IT OT Integration_Vishnu_Murali_05262016_UPDATED
IT OT Integration_Vishnu_Murali_05262016_UPDATEDIT OT Integration_Vishnu_Murali_05262016_UPDATED
IT OT Integration_Vishnu_Murali_05262016_UPDATED
 
Digital Transformation Framework By Ionology
Digital Transformation Framework By IonologyDigital Transformation Framework By Ionology
Digital Transformation Framework By Ionology
 
The New Digital Ecosystem - understanding digital today
The New Digital Ecosystem - understanding digital todayThe New Digital Ecosystem - understanding digital today
The New Digital Ecosystem - understanding digital today
 
Supply Chain Transformation on the Cloud |Accenture
Supply Chain Transformation on the Cloud |AccentureSupply Chain Transformation on the Cloud |Accenture
Supply Chain Transformation on the Cloud |Accenture
 
Pitch Deck Teardown: Honeycomb 's $50M Series D deck
Pitch Deck Teardown: Honeycomb 's $50M Series D deckPitch Deck Teardown: Honeycomb 's $50M Series D deck
Pitch Deck Teardown: Honeycomb 's $50M Series D deck
 

Similar to How to (Help to) Save Our Planet with Green Coding

The next hope of future is a green computing
The next hope of future is a green computingThe next hope of future is a green computing
The next hope of future is a green computingahmad satar
 
ICT4D_Lecture5_Infrastruct
ICT4D_Lecture5_InfrastructICT4D_Lecture5_Infrastruct
ICT4D_Lecture5_Infrastructssuserd82a5f1
 
apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...
apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...
apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...apidays
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Energy Saving by Virtual Machine Migration in Green Cloud Computing
Energy Saving by Virtual Machine Migration in Green Cloud ComputingEnergy Saving by Virtual Machine Migration in Green Cloud Computing
Energy Saving by Virtual Machine Migration in Green Cloud Computingijtsrd
 
What is Edge Computing and Why does it matter in IoT?
What is Edge Computing and Why does it matter in IoT?What is Edge Computing and Why does it matter in IoT?
What is Edge Computing and Why does it matter in IoT?Sameer Ahmed
 
Green cloud computing
Green cloud computingGreen cloud computing
Green cloud computingNalini Mehta
 
The 5 Tenets of Green IT Technology
The 5 Tenets of Green IT TechnologyThe 5 Tenets of Green IT Technology
The 5 Tenets of Green IT TechnologyOurITDepartment
 

Similar to How to (Help to) Save Our Planet with Green Coding (20)

The next hope of future is a green computing
The next hope of future is a green computingThe next hope of future is a green computing
The next hope of future is a green computing
 
Green Computing
Green ComputingGreen Computing
Green Computing
 
ICT4D_Lecture5_Infrastruct
ICT4D_Lecture5_InfrastructICT4D_Lecture5_Infrastruct
ICT4D_Lecture5_Infrastruct
 
Green computing
Green computingGreen computing
Green computing
 
Green it
Green itGreen it
Green it
 
WWT 2010: Greening Your IT
WWT 2010: Greening Your ITWWT 2010: Greening Your IT
WWT 2010: Greening Your IT
 
D45021518
D45021518D45021518
D45021518
 
FINAL
FINALFINAL
FINAL
 
apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...
apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...
apidays London 2023 - API Green Score, Yannick Tremblais & Julien Brun, Green...
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Energy Saving by Virtual Machine Migration in Green Cloud Computing
Energy Saving by Virtual Machine Migration in Green Cloud ComputingEnergy Saving by Virtual Machine Migration in Green Cloud Computing
Energy Saving by Virtual Machine Migration in Green Cloud Computing
 
Green computing
Green computingGreen computing
Green computing
 
Data Segregation
Data SegregationData Segregation
Data Segregation
 
Green cloud
Green cloudGreen cloud
Green cloud
 
What is Edge Computing and Why does it matter in IoT?
What is Edge Computing and Why does it matter in IoT?What is Edge Computing and Why does it matter in IoT?
What is Edge Computing and Why does it matter in IoT?
 
Green IT
Green IT Green IT
Green IT
 
The next wave of GreenIT
The next wave of GreenITThe next wave of GreenIT
The next wave of GreenIT
 
Green cloud computing
Green cloud computingGreen cloud computing
Green cloud computing
 
Green computing 1 1
Green computing 1 1Green computing 1 1
Green computing 1 1
 
The 5 Tenets of Green IT Technology
The 5 Tenets of Green IT TechnologyThe 5 Tenets of Green IT Technology
The 5 Tenets of Green IT Technology
 

More from Mindtrek

What the AI revolution means for Open Source, Open Tech and Open Societies
What the AI revolution means for Open Source, Open Tech and Open SocietiesWhat the AI revolution means for Open Source, Open Tech and Open Societies
What the AI revolution means for Open Source, Open Tech and Open SocietiesMindtrek
 
Data balance sheets laying foundations for sustainable and ethical use of data
Data balance sheets laying foundations for sustainable and ethical use of dataData balance sheets laying foundations for sustainable and ethical use of data
Data balance sheets laying foundations for sustainable and ethical use of dataMindtrek
 
Towards data responsibility - how to put ideals into action
Towards data responsibility - how to put ideals into actionTowards data responsibility - how to put ideals into action
Towards data responsibility - how to put ideals into actionMindtrek
 
Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...
Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...
Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...Mindtrek
 
Datatalouden ja tekoälyn regulaatio – missä mennään?
Datatalouden ja tekoälyn regulaatio – missä mennään?Datatalouden ja tekoälyn regulaatio – missä mennään?
Datatalouden ja tekoälyn regulaatio – missä mennään?Mindtrek
 
Green ICT Tools for Sustainable Digitalization
Green ICT Tools for Sustainable DigitalizationGreen ICT Tools for Sustainable Digitalization
Green ICT Tools for Sustainable DigitalizationMindtrek
 
Future-proof digitalization is on full speed – are you on board?
Future-proof digitalization is on full speed – are you on board?Future-proof digitalization is on full speed – are you on board?
Future-proof digitalization is on full speed – are you on board?Mindtrek
 
National Library of Finland - open source solutions in the development of nat...
National Library of Finland - open source solutions in the development of nat...National Library of Finland - open source solutions in the development of nat...
National Library of Finland - open source solutions in the development of nat...Mindtrek
 
The Case for Open Source in the Public Sector
The Case for Open Source in the Public SectorThe Case for Open Source in the Public Sector
The Case for Open Source in the Public SectorMindtrek
 
KEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open source
KEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open sourceKEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open source
KEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open sourceMindtrek
 
Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...
Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...
Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...Mindtrek
 
How open source empowers startups to start big, with case Double Open Oy
How open source empowers startups to start big, with case Double Open OyHow open source empowers startups to start big, with case Double Open Oy
How open source empowers startups to start big, with case Double Open OyMindtrek
 
Sustainable Open Source; Balancing Business and Community
Sustainable Open Source; Balancing Business and CommunitySustainable Open Source; Balancing Business and Community
Sustainable Open Source; Balancing Business and CommunityMindtrek
 
Empowering Employment: The Swedish Public Employment Service’s digital transf...
Empowering Employment: The Swedish Public Employment Service’s digital transf...Empowering Employment: The Swedish Public Employment Service’s digital transf...
Empowering Employment: The Swedish Public Employment Service’s digital transf...Mindtrek
 
KEYNOTE: How to automate the world the open source way
KEYNOTE: How to automate the world the open source wayKEYNOTE: How to automate the world the open source way
KEYNOTE: How to automate the world the open source wayMindtrek
 
"Perspectives from the EU level" by Henna Virkkunen
"Perspectives from the EU level" by Henna Virkkunen"Perspectives from the EU level" by Henna Virkkunen
"Perspectives from the EU level" by Henna VirkkunenMindtrek
 
"Sand battery and other new energy concepts by Vatajankoski" by Pekka Passi
"Sand battery and other new energy concepts by Vatajankoski" by Pekka Passi"Sand battery and other new energy concepts by Vatajankoski" by Pekka Passi
"Sand battery and other new energy concepts by Vatajankoski" by Pekka PassiMindtrek
 
"Finnish National Rural Network: Support framework for Smart Villages" by Sal...
"Finnish National Rural Network: Support framework for Smart Villages" by Sal..."Finnish National Rural Network: Support framework for Smart Villages" by Sal...
"Finnish National Rural Network: Support framework for Smart Villages" by Sal...Mindtrek
 
"Smart Villages in Finland" by Marianne Selkäinaho
"Smart Villages in Finland" by Marianne Selkäinaho"Smart Villages in Finland" by Marianne Selkäinaho
"Smart Villages in Finland" by Marianne SelkäinahoMindtrek
 
"Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b...
"Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b..."Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b...
"Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b...Mindtrek
 

More from Mindtrek (20)

What the AI revolution means for Open Source, Open Tech and Open Societies
What the AI revolution means for Open Source, Open Tech and Open SocietiesWhat the AI revolution means for Open Source, Open Tech and Open Societies
What the AI revolution means for Open Source, Open Tech and Open Societies
 
Data balance sheets laying foundations for sustainable and ethical use of data
Data balance sheets laying foundations for sustainable and ethical use of dataData balance sheets laying foundations for sustainable and ethical use of data
Data balance sheets laying foundations for sustainable and ethical use of data
 
Towards data responsibility - how to put ideals into action
Towards data responsibility - how to put ideals into actionTowards data responsibility - how to put ideals into action
Towards data responsibility - how to put ideals into action
 
Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...
Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...
Täytä velvollisuudet ja hyödynnä mahdollisuudet – käytännön työkaluja regulaa...
 
Datatalouden ja tekoälyn regulaatio – missä mennään?
Datatalouden ja tekoälyn regulaatio – missä mennään?Datatalouden ja tekoälyn regulaatio – missä mennään?
Datatalouden ja tekoälyn regulaatio – missä mennään?
 
Green ICT Tools for Sustainable Digitalization
Green ICT Tools for Sustainable DigitalizationGreen ICT Tools for Sustainable Digitalization
Green ICT Tools for Sustainable Digitalization
 
Future-proof digitalization is on full speed – are you on board?
Future-proof digitalization is on full speed – are you on board?Future-proof digitalization is on full speed – are you on board?
Future-proof digitalization is on full speed – are you on board?
 
National Library of Finland - open source solutions in the development of nat...
National Library of Finland - open source solutions in the development of nat...National Library of Finland - open source solutions in the development of nat...
National Library of Finland - open source solutions in the development of nat...
 
The Case for Open Source in the Public Sector
The Case for Open Source in the Public SectorThe Case for Open Source in the Public Sector
The Case for Open Source in the Public Sector
 
KEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open source
KEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open sourceKEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open source
KEYNOTE: From Lutece to CiteLibre, City of Paris' commitment to open source
 
Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...
Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...
Freedom & Functionality – A Startup Approach to Open Source & Innovation for ...
 
How open source empowers startups to start big, with case Double Open Oy
How open source empowers startups to start big, with case Double Open OyHow open source empowers startups to start big, with case Double Open Oy
How open source empowers startups to start big, with case Double Open Oy
 
Sustainable Open Source; Balancing Business and Community
Sustainable Open Source; Balancing Business and CommunitySustainable Open Source; Balancing Business and Community
Sustainable Open Source; Balancing Business and Community
 
Empowering Employment: The Swedish Public Employment Service’s digital transf...
Empowering Employment: The Swedish Public Employment Service’s digital transf...Empowering Employment: The Swedish Public Employment Service’s digital transf...
Empowering Employment: The Swedish Public Employment Service’s digital transf...
 
KEYNOTE: How to automate the world the open source way
KEYNOTE: How to automate the world the open source wayKEYNOTE: How to automate the world the open source way
KEYNOTE: How to automate the world the open source way
 
"Perspectives from the EU level" by Henna Virkkunen
"Perspectives from the EU level" by Henna Virkkunen"Perspectives from the EU level" by Henna Virkkunen
"Perspectives from the EU level" by Henna Virkkunen
 
"Sand battery and other new energy concepts by Vatajankoski" by Pekka Passi
"Sand battery and other new energy concepts by Vatajankoski" by Pekka Passi"Sand battery and other new energy concepts by Vatajankoski" by Pekka Passi
"Sand battery and other new energy concepts by Vatajankoski" by Pekka Passi
 
"Finnish National Rural Network: Support framework for Smart Villages" by Sal...
"Finnish National Rural Network: Support framework for Smart Villages" by Sal..."Finnish National Rural Network: Support framework for Smart Villages" by Sal...
"Finnish National Rural Network: Support framework for Smart Villages" by Sal...
 
"Smart Villages in Finland" by Marianne Selkäinaho
"Smart Villages in Finland" by Marianne Selkäinaho"Smart Villages in Finland" by Marianne Selkäinaho
"Smart Villages in Finland" by Marianne Selkäinaho
 
"Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b...
"Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b..."Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b...
"Animating Smart Village Strategies in Ireland: Opportunities and Outcomes" b...
 

Recently uploaded

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

How to (Help to) Save Our Planet with Green Coding

  • 1. How to (Help to) Save Our Planet with Green Coding Janne Kalliola Photo by Niilo Isotalo on Unsplash
  • 2. Contents About me and my book Why green coding is important? Energy consumption in modern software Measurements or lack of them Reducing waste Practical solutions Final words 1 2 3 4 5 6 7
  • 3. About Myself ● Janne Kalliola, Chief Growth Officer and founder of Exove ● Have been coding since 1983 – Basic, Pascal, Lisp, Fortran, C/C++/Obj-C, Java, PHP, JavaScript ● Now focusing on growth of Exove, a leading open web technology company delivering digital growth ● Working with green coding and carbon neutrality for a few years now
  • 4. My Book exove.com/fi/vihrea-koodi exove.com/green-code Second edition published – AI, cryptos, IoT, data + others
  • 6. The ICT sector accounts for 4–10% of the world's energy consumption1) and 2.1–3.9% of greenhouse emissions2) . The numbers are growing. 1) Ministry of Transport and Communications: Climate and environmental strategy for the ICT sector. 2) The real climate and transformative impact of ICT: A critique of estimates, trends, and regulations
  • 7. 3.0% of global carbon emissions1) = 1 580 000 000 tons Every year. 1) Global emissions 58.2Gt from UN Emissions Gap Report 2022
  • 8. For the sake of perspective, this is about the mass of all land mammals and people.1) 1) https://energyeducation.ca/encyclopedia/Gigatonne
  • 9. ICT Infrastructure and Emissions In the years 2017-2022, global internet traffic is estimated to quadruple. 1) Data consumption is predicted to multiply. Besides consumers, data usage is increased by new technologies, such as AI, IoT, blockchains and the metaverse. The communication and data explosion will correspondingly require more hardware and energy in all parts of the value chain. And we do not clean our tracks properly. Electronic waste is the world's fastest growing type of waste. Only 17% of electronic waste is treated properly. 1) Ministry of Transport and Communications: Climate and environmental strategy for the ICT sector.
  • 11. Generic Architecture of Modern Software End-user Devices Network Cloud / Datacenter
  • 12. Generic Architecture of Modern Software Network between the end-user devices and cloud / datacenter Different connection methods have different energy usage per gigabyte transferred Typically, the last mile connection uses the most energy N.B. The client may connect to several backends Devices used by end-users to access the service Battery-powered, such as mobile phone or laptop, or plugged into wall, such as game console or TV Device energy consumption should be split between the various applications running on the device All systems participating in providing the service ◦ Web and application servers, databases, storage ◦ Firewalls, VPN endpoints, log systems ◦ Backup & restore systems ◦ Internal connectivity Energy consumed by dedicated and shared systems used End-user Devices Network Cloud / Datacenter
  • 13. Cloud / Datacenter End-user Devices Energy Consumption Electricity consumption of data transferred Typically calculated on energy used per gigabyte Varies a lot between the various types of networks – 10,000 times efficiency differences (mobile vs. optic fibre) Electricity consumption of the CPU, GPU, display, network connection, GPS, etc. Typically very optimised hardware when devices are battery-powered Not so when the device is plugged to a wall socket The screen is the biggest hog of energy in mobile devices Electricity consumption of servers, storage, and internal network Optimised hardware, designed to be run with a full throttle all the time Network
  • 14. Software and Emissions Software needs hardware to run. Hardware causes emissions in several steps in their lifecycle: manufacturing, logistics, usage and dismantling Hardware needs electricity, and the emissions depend on the type of energy Energy production causes emissions, including also renewables. Using renewable or carbon offsetted energy does not solve the problem, but moves it to another location. Thus, it is paramount to save energy.
  • 16. Measuring Energy Consumption Energy consumption is not straightforward to measure due to several factors: ● Several systems running on the same platform ● Hard to measure electricity consumption inside the device ● All cloud providers or datacenters do not provide electricity information ● The communication between the cloud and the end user device may use several different networks ● CDNs, caches, etc. all complicate matters
  • 17. Instead The study executed by the university of Beira Interior in Portugal found a strong or very strong correlation between the execution time and the electricity consumption. Thus, if a software achieves the its goals with less time, it is more efficient also in using energy. Further, the less data is transferred, the less energy is used in the data networks. Thirdly, the less hardware is used, the less emissions are caused.
  • 19. Reducing Waste In Lean manufacturing, “waste” is commonly defined as any action that does not add value to the customer. [...] Lean manufacturing is centered around eliminating waste from a manufacturing process. 1) We can use the same metaphor in reducing energy consumption in software – execution and data transfer – by removing bits that do not add value. 1) https://www.techsolve.org/8-wastes-of-lean-manufacturing/
  • 20. Types of Waste Transferring data for the sake of certainty Algorithmic inefficiency Deceiving user Too much code Wrong programming language Waste in initialisation Extraneous stuff Redundant software Using software in wrong task User errors Wrong architecture Wrong data model Extra data Unoptimised data
  • 21. Impact Large Small Amount of work Small Large ✖ Do right away ✖ Think for a moment Implement as part of other tasks ✖ Do not do it ✖ ✖ Do soon Combine with a larger change ✖ ✖ Split into parts
  • 22. Impact Large Small User Experience Worsens Improves ✖ Ponder carefully ✖ Ponder carefully Do not do it ✖ Implement as part of other tasks ✖ Combine with a larger change ✖ ✖ Do now Do not do it ✖ ✖ Do soon ✖ Do now Do soon ✖
  • 24. Reduce Amount of Data Transferred ● Use proper formats, if possible ● Cache when you can and make sure that cache strategy is well-thought out ● Compress everything that is possible ● Minimise possibilities for errors ● Reduce amount of videos, replace them with animations (they compress better) or static images ● Reduce data transfer frequency ● Strip unneeded typefaces and/or glyphs from fonts
  • 25. Reduce Amount of Code ● Remove dead code – rely on version control instead ● Be mindful when adding new libraries – check their footprint and also check whether the same goal can be achieved with a smaller library – be cautious to implement larger implementations by yourself instead of using a readymade library ● Limit the amount of code that is sent over the network – this is a web specific problem
  • 26. Improve Code Efficiency ● Find the hotspots of the software and focus on optimising them. Do not spread optimisation efforts evenly to all code ● Do not do premature or local optimisations, focus on the bigger picture ● Use right algorithms for the task – especially when the amount of data is large ● Consider implementing critical parts with different language, if possible
  • 28. This Is a Journey ● Do not expect that all changes can be done at once. ● Instead, we need to keep the client – internal or external – needs in primary focus, and operate within agreed budgets. ● Satisfied clients allow us to make more changes to the systems, including also making it more energy efficient, than dissatisfied clients. ● Do not set too ambitious goals or try to gobble everything up at once. Photo by Todd Trapani on Unsplash
  • 29. The most important thing in starting a journey is to take the first step.