SlideShare una empresa de Scribd logo
1 de 45
Descargar para leer sin conexión
© 2023 - Atsign | docs.atsign.com
What to expect from Dart & Flutter on
RISC-V
Fluttercon - Jul 2023
© 2023 - Atsign | docs.atsign.com
It’s 2028, your Flutter app is in the top 10
Huawei’s latest foldable flagship has a RISC-V SoC
© 2023 - Atsign | docs.atsign.com
Hi, I’m Chris
@cpswan
https://chris.swanz.net
© 2023 - Atsign | docs.atsign.com
Agenda
➔ What is RISC-V
➔ Why?
➔ Can I run Dart on my soldering iron?
➔ Dart on RISC-V today
➔ The road ahead
➔ What about Apple and cloud providers?
What is RISC-V?
© 2023 - Atsign | docs.atsign.com
https://riscv.org/about/
RISC-V is an open standard
Instruction Set Architecture (ISA)
enabling a new era of processor
innovation through open
collaboration
© 2023 - Atsign | docs.atsign.com
RISC-V is an open standard
Instruction Set Architecture (ISA)
enabling a new era of processor
innovation through open
collaboration
© 2023 - Atsign | docs.atsign.com
RISC-V is an open standard
Instruction Set Architecture (ISA)
enabling a new era of processor
innovation through open
collaboration
© 2023 - Atsign | docs.atsign.com
RISC-V is an open standard
Instruction Set Architecture (ISA)
enabling a new era of processor
innovation through open
collaboration
© 2023 - Atsign | docs.atsign.com
RISC-V is an open standard
Instruction Set Architecture (ISA)
enabling a new era of processor
innovation through open
collaboration
Why?
© 2023 - Atsign | docs.atsign.com
© 2023 - Atsign | docs.atsign.com
© 2023 - Atsign | docs.atsign.com
https://www.theregister.com/2019/11/26/riscv_foundation_switzerland/
© 2023 - Atsign | docs.atsign.com
https://www.theregister.com/2020/08/10/huawei_halts_chip_production_as/
© 2023 - Atsign | docs.atsign.com
💡
© 2023 - Atsign | docs.atsign.com
https://www.designnews.com/electronics-test/western-digital-
transitions-risc-v-open-source-architecture-big-data-iot
© 2023 - Atsign | docs.atsign.com
“We're not doing this for cost reasons.
This is all completely and totally about
innovation. ... Unlocking our ability to
bring innovation to data and process it in
ways we can't contemplate today.”
Martin Fink, CTO, Western Digital
© 2023 - Atsign | docs.atsign.com
$
Can I run Dart on my soldering iron?
© 2023 - Atsign | docs.atsign.com
PINECIL – Smart Mini Portable Soldering Iron
© 2023 - Atsign | docs.atsign.com
MCU vs SoC
RISC-V MCUs:
● 32 or 64 bit
● RTOS
● Toothbrushes, clocks
● Low power IoT devices
● Can’t run Dart
RISC-V SoCs:
● 64 bit
● Linux
● Phones, tablets, set top boxes
● High power IoT devices
● Can run Dart
© 2023 - Atsign | docs.atsign.com
Dart is a dynamically linked language.
Let’s take a peek inside /runtime:
# riscv64 - ignoring certs stuff
./etc:
-rw-r--r-- 1 root root 494 Sep 22 2022 nsswitch.conf
./lib:
-rwxr-xr-x 2 root root 124920 Apr 10 08:35 ld-linux-riscv64-lp64d.so.1
./usr/lib/riscv64-linux-gnu:
-rw-r--r-- 1 root root 22480 Jun 11 11:48 libatomic.so.1
./lib/riscv64-linux-gnu:
-rw-r--r-- 1 root root 6160 Apr 10 08:35 librt.so.1
-rw-r--r-- 1 root root 43384 Apr 10 08:35 libresolv.so.2
-rw-r--r-- 1 root root 5856 Apr 10 08:35 libpthread.so.0
-rw-r--r-- 1 root root 5856 Apr 10 08:35 libnss_dns.so.2
-rw-r--r-- 1 root root 440768 Apr 10 08:35 libm.so.6
-rw-r--r-- 1 root root 5856 Apr 10 08:35 libdl.so.2
-rwxr-xr-x 1 root root 1213544 Apr 10 08:35 libc.so.6
-rwxr-xr-x 2 root root 124920 Apr 10 08:35 ld-linux-riscv64-lp64d.so.1
Dart on RISC-V today
© 2023 - Atsign | docs.atsign.com
The story so far
Today
Dart 3.1
Beta
Mar 2023
Dart 3.0
Beta
May 2022
Dart 2.17
Experimental
Sep 2019
SDK #38587
Add RISC-V
© 2023 - Atsign | docs.atsign.com
Dart on real RISC-V hardware
# dart --version
Dart SDK version: 3.1.0-163.1.beta (beta)
(Wed Jun 7 05:06:41 2023 -0700) on "linux_riscv64"
© 2023 - Atsign | docs.atsign.com
https://arstechnica.com/gadgets/2023/01/google-announces-official-android-support-for-risc-v/
© 2023 - Atsign | docs.atsign.com
Lars Bergstrom Progress in 2023: AOSP
Android Runtime (ART) available
Cuttlefish emulator available
Prebuild tools - compilers & system root
libraries available
Initial support landing soon for vector &
bit manipulation extensions beyond
RV64GC to optimise the platform
Profiling works (prebuilts coming soon)
https://www.youtube.com/watch?v=xLwdUn3DQp8
© 2023 - Atsign | docs.atsign.com
Cuttlefish RISC-V Emulator
© 2023 - Atsign | docs.atsign.com
Open Source Projects Upstream with RISC-V
Contributions and work with
ecosystem partners and upstream
maintainers on:
● LLVM
● Kernel
● QEMU
● Graphics libraries
● Crypto libraries
● Codecs
Work to ensure ABI is forwards
compatible with new potential
atomics additions
Support for many RISC-V members
on the Android SIG looking into
standing up AOSP on a variety of
emulation and physical devices
© 2023 - Atsign | docs.atsign.com
The road ahead
© 2023 - Atsign | docs.atsign.com
Android Roadmap
2023 Q3
Virtual devices with
accelerated graphics
Android Runtime (ART)
optimisations
Optimisations landing
for QEMU, kernel and
all in tree libraries
2024
Emulators available
with full feature set
to test apps on
various device form
factors
Release NDK with
RISC-V support
2023 Q4
NDK ABI finalised
and canary builds
available on public CI
RISC-V on x86-64
and Arm64 for easier
testing
Android Profiles
Supported ABI will be added to the CDD list as riscv64 (no 32bit)
All “supported instruction sets” will be a combination of:
● A RISC-V profile (probably RVA22)
● Ratified extensions (probably vector + vector crypto)
● Intentional omissions: SIMD, Scalar Crypto
Will require Android compatible devices to be conforming hardware
● Must correctly implement the RISC-V ISA
● Must not misuse elements of the encoding space reserved for future extensions
Platforms (but not applications) can take advantage of the RISC-V features in the
reserved vendor space
© 2023 - Atsign | docs.atsign.com
Full Stack Dart needs Debian
Release on called RISC-V
11 Aug 2021 Bullseye
12 (stable) Jun 2023 Bookworm
13 (testing) Summer 2025? Trixie
Unstable Rolling Sid ✅
What about Apple?
What about cloud?
© 2023 - Atsign | docs.atsign.com
Review
➔ RISC-V is an open standard Instruction Set Architecture (ISA)
➔ Geopolitics, innovation, and cost are driving adoption
➔ You can’t Dart on a PINECIL soldering iron
➔ Dart 3.x betas run great on RISC-V dev boards today
➔ Some big chunks of infrastructure aren’t ready yet
◆ Looks like >2y but <5y work from here
➔ Apple & cloud provider secrecy makes them hard to predict
© 2023 - Atsign | docs.atsign.com
Call to action: Try running Dart on RISC-V in QEMU
https://wiki.ubuntu.com/RISC-V/QEMU
© 2023 - Atsign | docs.atsign.com
RISC-V computer inside Terraria
https://www.pcgamer.com/wunderkind-builds-fully-compliant-risc-v-computer-entirely-inside-terraria-then-plays-pong-on-it/
Resources
Blog posts
https://blog.thestateofme.com/2017/12/01/risc-v-innovation-and-not-ha
ving-to-ask-permission/
https://blog.thestateofme.com/2019/05/22/open-source-and-export-cont
rols/
Bookmarks
https://pinboard.in/u:cpswan/t:RISC-V
RISC-V International on YouTube
https://www.youtube.com/@RISCVInternational/videos
Thanks for your time
chris@atsign.com
@cpswan
Questions?

Más contenido relacionado

La actualidad más candente

Présentation spring data Matthieu Briend
Présentation spring data  Matthieu BriendPrésentation spring data  Matthieu Briend
Présentation spring data Matthieu Briend
SOAT
 
Abhishek Kumar - Resume - Software Engineer
Abhishek Kumar - Resume - Software EngineerAbhishek Kumar - Resume - Software Engineer
Abhishek Kumar - Resume - Software Engineer
Abhishek Kumar
 

La actualidad más candente (20)

Java
JavaJava
Java
 
Spring Certification Questions
Spring Certification QuestionsSpring Certification Questions
Spring Certification Questions
 
Présentation spring data Matthieu Briend
Présentation spring data  Matthieu BriendPrésentation spring data  Matthieu Briend
Présentation spring data Matthieu Briend
 
Introduction to java beans
Introduction to java beansIntroduction to java beans
Introduction to java beans
 
React js programming concept
React js programming conceptReact js programming concept
React js programming concept
 
Spring Framework - Core
Spring Framework - CoreSpring Framework - Core
Spring Framework - Core
 
Express JS
Express JSExpress JS
Express JS
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
 
Jakarta EE: Today and Tomorrow
Jakarta EE: Today and TomorrowJakarta EE: Today and Tomorrow
Jakarta EE: Today and Tomorrow
 
Spring aop
Spring aopSpring aop
Spring aop
 
Java spring framework
Java spring frameworkJava spring framework
Java spring framework
 
Hibernate
Hibernate Hibernate
Hibernate
 
Abhishek Kumar - Resume - Software Engineer
Abhishek Kumar - Resume - Software EngineerAbhishek Kumar - Resume - Software Engineer
Abhishek Kumar - Resume - Software Engineer
 
Java™ (OOP) - Chapter 8: "Objects and Classes"
Java™ (OOP) - Chapter 8: "Objects and Classes"Java™ (OOP) - Chapter 8: "Objects and Classes"
Java™ (OOP) - Chapter 8: "Objects and Classes"
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Spring andspringboot training
Spring andspringboot trainingSpring andspringboot training
Spring andspringboot training
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
 
Jdbc Ppt
Jdbc PptJdbc Ppt
Jdbc Ppt
 
Java OOP Programming language (Part 8) - Java Database JDBC
Java OOP Programming language (Part 8) - Java Database JDBCJava OOP Programming language (Part 8) - Java Database JDBC
Java OOP Programming language (Part 8) - Java Database JDBC
 
Java Beans
Java BeansJava Beans
Java Beans
 

Similar a Fluttercon Berlin 23 - Dart & Flutter on RISC-V

RISC-V-The Open New-Era of Computing-04-19-202.pptx
RISC-V-The Open New-Era of Computing-04-19-202.pptxRISC-V-The Open New-Era of Computing-04-19-202.pptx
RISC-V-The Open New-Era of Computing-04-19-202.pptx
AzharZahid1
 
ASICSoft Technologies Overview - R&D
ASICSoft Technologies Overview - R&DASICSoft Technologies Overview - R&D
ASICSoft Technologies Overview - R&D
Tony Devlin
 

Similar a Fluttercon Berlin 23 - Dart & Flutter on RISC-V (20)

RISC-V-The Open New-Era of Computing-04-19-202.pptx
RISC-V-The Open New-Era of Computing-04-19-202.pptxRISC-V-The Open New-Era of Computing-04-19-202.pptx
RISC-V-The Open New-Era of Computing-04-19-202.pptx
 
Flutter Vikings 2022 - Full Stack Dart
Flutter Vikings 2022  - Full Stack DartFlutter Vikings 2022  - Full Stack Dart
Flutter Vikings 2022 - Full Stack Dart
 
QConSF 2022 - Backends in Dart
QConSF 2022 - Backends in DartQConSF 2022 - Backends in Dart
QConSF 2022 - Backends in Dart
 
Flutter Vikings 2022 - End to end IoT with Dart and Flutter
Flutter Vikings 2022 - End to end IoT with Dart and FlutterFlutter Vikings 2022 - End to end IoT with Dart and Flutter
Flutter Vikings 2022 - End to end IoT with Dart and Flutter
 
RISC-V-Introduction-_-Aug-2021.pptx
RISC-V-Introduction-_-Aug-2021.pptxRISC-V-Introduction-_-Aug-2021.pptx
RISC-V-Introduction-_-Aug-2021.pptx
 
Connectivity is here (5 g, swarm,...). now, let's build interplanetary apps! (1)
Connectivity is here (5 g, swarm,...). now, let's build interplanetary apps! (1)Connectivity is here (5 g, swarm,...). now, let's build interplanetary apps! (1)
Connectivity is here (5 g, swarm,...). now, let's build interplanetary apps! (1)
 
RISC-V Summit 2020: The Next Ten Years
RISC-V Summit 2020: The Next Ten YearsRISC-V Summit 2020: The Next Ten Years
RISC-V Summit 2020: The Next Ten Years
 
RISC-V Introduction
RISC-V IntroductionRISC-V Introduction
RISC-V Introduction
 
RISC-V Foundation Overview
RISC-V Foundation OverviewRISC-V Foundation Overview
RISC-V Foundation Overview
 
SYCL 2020 Specification
SYCL 2020 SpecificationSYCL 2020 Specification
SYCL 2020 Specification
 
NATS Connect Live!
NATS Connect Live!NATS Connect Live!
NATS Connect Live!
 
RISC-V Foundation Overview
RISC-V Foundation OverviewRISC-V Foundation Overview
RISC-V Foundation Overview
 
ASICSoft Technologies Overview - R&D
ASICSoft Technologies Overview - R&DASICSoft Technologies Overview - R&D
ASICSoft Technologies Overview - R&D
 
Berlin Embedded Linux meetup: How to Linux on RISC-V
Berlin Embedded Linux meetup: How to Linux on RISC-VBerlin Embedded Linux meetup: How to Linux on RISC-V
Berlin Embedded Linux meetup: How to Linux on RISC-V
 
Dart on Arm - Flutter Bangalore June 2021
Dart on Arm - Flutter Bangalore June 2021Dart on Arm - Flutter Bangalore June 2021
Dart on Arm - Flutter Bangalore June 2021
 
The new reality and tremendous opportunity of open source processing
The new reality and tremendous opportunity of open source processingThe new reality and tremendous opportunity of open source processing
The new reality and tremendous opportunity of open source processing
 
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practiceEmbedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
 
Kubernetes für Workstations Edge und IoT Devices
Kubernetes für Workstations Edge und IoT DevicesKubernetes für Workstations Edge und IoT Devices
Kubernetes für Workstations Edge und IoT Devices
 
Flutter Festival London 2022 - End to end IoT with Dart and Flutter
Flutter Festival London 2022 - End to end IoT with Dart and FlutterFlutter Festival London 2022 - End to end IoT with Dart and Flutter
Flutter Festival London 2022 - End to end IoT with Dart and Flutter
 
Distributed Deep Learning At Scale On Apache Spark With BigDL
Distributed Deep Learning At Scale On Apache Spark With BigDLDistributed Deep Learning At Scale On Apache Spark With BigDL
Distributed Deep Learning At Scale On Apache Spark With BigDL
 

Más de Chris Swan

Más de Chris Swan (20)

LNETM - Atsign - Privacy with Personal Data Services
LNETM - Atsign - Privacy with Personal Data ServicesLNETM - Atsign - Privacy with Personal Data Services
LNETM - Atsign - Privacy with Personal Data Services
 
SOOCon24 - Showing that you care about security - OpenSSF Scorecards
SOOCon24 - Showing that you care about security - OpenSSF ScorecardsSOOCon24 - Showing that you care about security - OpenSSF Scorecards
SOOCon24 - Showing that you care about security - OpenSSF Scorecards
 
All Day DevOps 2023 - Implementing OSSF Scorecards Across an Organisation.pdf
All Day DevOps 2023 - Implementing OSSF Scorecards Across an Organisation.pdfAll Day DevOps 2023 - Implementing OSSF Scorecards Across an Organisation.pdf
All Day DevOps 2023 - Implementing OSSF Scorecards Across an Organisation.pdf
 
QConNY 2023 - Implementing OSSF Scorecards Across an Organisation
QConNY 2023 - Implementing OSSF Scorecards Across an OrganisationQConNY 2023 - Implementing OSSF Scorecards Across an Organisation
QConNY 2023 - Implementing OSSF Scorecards Across an Organisation
 
Flutter SV Meetup Oct 2022 - End to end encrypted IoT with Dart and Flutter
Flutter SV Meetup Oct 2022 - End to end encrypted IoT with Dart and FlutterFlutter SV Meetup Oct 2022 - End to end encrypted IoT with Dart and Flutter
Flutter SV Meetup Oct 2022 - End to end encrypted IoT with Dart and Flutter
 
London IoT Meetup Sep 2022 - End to end encrypted IoT
London IoT Meetup Sep 2022 - End to end encrypted IoTLondon IoT Meetup Sep 2022 - End to end encrypted IoT
London IoT Meetup Sep 2022 - End to end encrypted IoT
 
EMFcamp2022 - What if apps logged into you, instead of you logging into apps?
EMFcamp2022 - What if apps logged into you, instead of you logging into apps?EMFcamp2022 - What if apps logged into you, instead of you logging into apps?
EMFcamp2022 - What if apps logged into you, instead of you logging into apps?
 
Devoxx UK 2022 - Application security: What should the attack landscape look ...
Devoxx UK 2022 - Application security: What should the attack landscape look ...Devoxx UK 2022 - Application security: What should the attack landscape look ...
Devoxx UK 2022 - Application security: What should the attack landscape look ...
 
Full Stack Squared 2022 - Power of Open Source
Full Stack Squared 2022   - Power of Open SourceFull Stack Squared 2022   - Power of Open Source
Full Stack Squared 2022 - Power of Open Source
 
Droidcon London 2021 - Full Stack Dart
Droidcon London 2021   - Full Stack DartDroidcon London 2021   - Full Stack Dart
Droidcon London 2021 - Full Stack Dart
 
Keeping a project going
Keeping a project goingKeeping a project going
Keeping a project going
 
TMS9995 on RC2014
TMS9995 on RC2014TMS9995 on RC2014
TMS9995 on RC2014
 
CloudCamp London Nov 2019 Intro
CloudCamp London Nov 2019 IntroCloudCamp London Nov 2019 Intro
CloudCamp London Nov 2019 Intro
 
DevSecOps Days London - Teaching 'Shift Left on Security'
DevSecOps Days London - Teaching 'Shift Left on Security'DevSecOps Days London - Teaching 'Shift Left on Security'
DevSecOps Days London - Teaching 'Shift Left on Security'
 
Cooking with a touch of science and a dash of engineering
Cooking with a touch of science and a dash of engineeringCooking with a touch of science and a dash of engineering
Cooking with a touch of science and a dash of engineering
 
Agile Enterprise Rome 2018 - Ops and Security in a PaaS and Serverless world
Agile Enterprise Rome 2018 - Ops and Security in a PaaS and Serverless worldAgile Enterprise Rome 2018 - Ops and Security in a PaaS and Serverless world
Agile Enterprise Rome 2018 - Ops and Security in a PaaS and Serverless world
 
The Marginal Cost of Making Mistakes
The Marginal Cost of Making MistakesThe Marginal Cost of Making Mistakes
The Marginal Cost of Making Mistakes
 
CloudCamp London 8 Mar 2018 - Douglas Adams
CloudCamp London 8 Mar 2018 - Douglas AdamsCloudCamp London 8 Mar 2018 - Douglas Adams
CloudCamp London 8 Mar 2018 - Douglas Adams
 
Jeffconf 2017 LessOps
Jeffconf 2017 LessOpsJeffconf 2017 LessOps
Jeffconf 2017 LessOps
 
"Our problems are easy"
"Our problems are easy""Our problems are easy"
"Our problems are easy"
 

Último

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 

Último (20)

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 

Fluttercon Berlin 23 - Dart & Flutter on RISC-V

  • 1. © 2023 - Atsign | docs.atsign.com What to expect from Dart & Flutter on RISC-V Fluttercon - Jul 2023
  • 2. © 2023 - Atsign | docs.atsign.com It’s 2028, your Flutter app is in the top 10 Huawei’s latest foldable flagship has a RISC-V SoC
  • 3. © 2023 - Atsign | docs.atsign.com Hi, I’m Chris @cpswan https://chris.swanz.net
  • 4. © 2023 - Atsign | docs.atsign.com Agenda ➔ What is RISC-V ➔ Why? ➔ Can I run Dart on my soldering iron? ➔ Dart on RISC-V today ➔ The road ahead ➔ What about Apple and cloud providers?
  • 6. © 2023 - Atsign | docs.atsign.com https://riscv.org/about/ RISC-V is an open standard Instruction Set Architecture (ISA) enabling a new era of processor innovation through open collaboration
  • 7. © 2023 - Atsign | docs.atsign.com RISC-V is an open standard Instruction Set Architecture (ISA) enabling a new era of processor innovation through open collaboration
  • 8. © 2023 - Atsign | docs.atsign.com RISC-V is an open standard Instruction Set Architecture (ISA) enabling a new era of processor innovation through open collaboration
  • 9. © 2023 - Atsign | docs.atsign.com RISC-V is an open standard Instruction Set Architecture (ISA) enabling a new era of processor innovation through open collaboration
  • 10. © 2023 - Atsign | docs.atsign.com RISC-V is an open standard Instruction Set Architecture (ISA) enabling a new era of processor innovation through open collaboration
  • 11. Why?
  • 12. © 2023 - Atsign | docs.atsign.com
  • 13. © 2023 - Atsign | docs.atsign.com
  • 14. © 2023 - Atsign | docs.atsign.com https://www.theregister.com/2019/11/26/riscv_foundation_switzerland/
  • 15. © 2023 - Atsign | docs.atsign.com https://www.theregister.com/2020/08/10/huawei_halts_chip_production_as/
  • 16. © 2023 - Atsign | docs.atsign.com 💡
  • 17. © 2023 - Atsign | docs.atsign.com https://www.designnews.com/electronics-test/western-digital- transitions-risc-v-open-source-architecture-big-data-iot
  • 18. © 2023 - Atsign | docs.atsign.com “We're not doing this for cost reasons. This is all completely and totally about innovation. ... Unlocking our ability to bring innovation to data and process it in ways we can't contemplate today.” Martin Fink, CTO, Western Digital
  • 19. © 2023 - Atsign | docs.atsign.com $
  • 20. Can I run Dart on my soldering iron?
  • 21. © 2023 - Atsign | docs.atsign.com PINECIL – Smart Mini Portable Soldering Iron
  • 22. © 2023 - Atsign | docs.atsign.com MCU vs SoC RISC-V MCUs: ● 32 or 64 bit ● RTOS ● Toothbrushes, clocks ● Low power IoT devices ● Can’t run Dart RISC-V SoCs: ● 64 bit ● Linux ● Phones, tablets, set top boxes ● High power IoT devices ● Can run Dart
  • 23. © 2023 - Atsign | docs.atsign.com Dart is a dynamically linked language. Let’s take a peek inside /runtime: # riscv64 - ignoring certs stuff ./etc: -rw-r--r-- 1 root root 494 Sep 22 2022 nsswitch.conf ./lib: -rwxr-xr-x 2 root root 124920 Apr 10 08:35 ld-linux-riscv64-lp64d.so.1 ./usr/lib/riscv64-linux-gnu: -rw-r--r-- 1 root root 22480 Jun 11 11:48 libatomic.so.1 ./lib/riscv64-linux-gnu: -rw-r--r-- 1 root root 6160 Apr 10 08:35 librt.so.1 -rw-r--r-- 1 root root 43384 Apr 10 08:35 libresolv.so.2 -rw-r--r-- 1 root root 5856 Apr 10 08:35 libpthread.so.0 -rw-r--r-- 1 root root 5856 Apr 10 08:35 libnss_dns.so.2 -rw-r--r-- 1 root root 440768 Apr 10 08:35 libm.so.6 -rw-r--r-- 1 root root 5856 Apr 10 08:35 libdl.so.2 -rwxr-xr-x 1 root root 1213544 Apr 10 08:35 libc.so.6 -rwxr-xr-x 2 root root 124920 Apr 10 08:35 ld-linux-riscv64-lp64d.so.1
  • 24. Dart on RISC-V today
  • 25. © 2023 - Atsign | docs.atsign.com The story so far Today Dart 3.1 Beta Mar 2023 Dart 3.0 Beta May 2022 Dart 2.17 Experimental Sep 2019 SDK #38587 Add RISC-V
  • 26. © 2023 - Atsign | docs.atsign.com Dart on real RISC-V hardware # dart --version Dart SDK version: 3.1.0-163.1.beta (beta) (Wed Jun 7 05:06:41 2023 -0700) on "linux_riscv64"
  • 27. © 2023 - Atsign | docs.atsign.com https://arstechnica.com/gadgets/2023/01/google-announces-official-android-support-for-risc-v/
  • 28. © 2023 - Atsign | docs.atsign.com Lars Bergstrom Progress in 2023: AOSP Android Runtime (ART) available Cuttlefish emulator available Prebuild tools - compilers & system root libraries available Initial support landing soon for vector & bit manipulation extensions beyond RV64GC to optimise the platform Profiling works (prebuilts coming soon) https://www.youtube.com/watch?v=xLwdUn3DQp8
  • 29. © 2023 - Atsign | docs.atsign.com Cuttlefish RISC-V Emulator
  • 30. © 2023 - Atsign | docs.atsign.com Open Source Projects Upstream with RISC-V Contributions and work with ecosystem partners and upstream maintainers on: ● LLVM ● Kernel ● QEMU ● Graphics libraries ● Crypto libraries ● Codecs Work to ensure ABI is forwards compatible with new potential atomics additions Support for many RISC-V members on the Android SIG looking into standing up AOSP on a variety of emulation and physical devices
  • 31. © 2023 - Atsign | docs.atsign.com
  • 33. © 2023 - Atsign | docs.atsign.com Android Roadmap 2023 Q3 Virtual devices with accelerated graphics Android Runtime (ART) optimisations Optimisations landing for QEMU, kernel and all in tree libraries 2024 Emulators available with full feature set to test apps on various device form factors Release NDK with RISC-V support 2023 Q4 NDK ABI finalised and canary builds available on public CI RISC-V on x86-64 and Arm64 for easier testing
  • 34. Android Profiles Supported ABI will be added to the CDD list as riscv64 (no 32bit) All “supported instruction sets” will be a combination of: ● A RISC-V profile (probably RVA22) ● Ratified extensions (probably vector + vector crypto) ● Intentional omissions: SIMD, Scalar Crypto Will require Android compatible devices to be conforming hardware ● Must correctly implement the RISC-V ISA ● Must not misuse elements of the encoding space reserved for future extensions Platforms (but not applications) can take advantage of the RISC-V features in the reserved vendor space
  • 35. © 2023 - Atsign | docs.atsign.com Full Stack Dart needs Debian Release on called RISC-V 11 Aug 2021 Bullseye 12 (stable) Jun 2023 Bookworm 13 (testing) Summer 2025? Trixie Unstable Rolling Sid ✅
  • 36.
  • 37.
  • 40. © 2023 - Atsign | docs.atsign.com Review ➔ RISC-V is an open standard Instruction Set Architecture (ISA) ➔ Geopolitics, innovation, and cost are driving adoption ➔ You can’t Dart on a PINECIL soldering iron ➔ Dart 3.x betas run great on RISC-V dev boards today ➔ Some big chunks of infrastructure aren’t ready yet ◆ Looks like >2y but <5y work from here ➔ Apple & cloud provider secrecy makes them hard to predict
  • 41. © 2023 - Atsign | docs.atsign.com Call to action: Try running Dart on RISC-V in QEMU https://wiki.ubuntu.com/RISC-V/QEMU
  • 42. © 2023 - Atsign | docs.atsign.com RISC-V computer inside Terraria https://www.pcgamer.com/wunderkind-builds-fully-compliant-risc-v-computer-entirely-inside-terraria-then-plays-pong-on-it/
  • 44. Thanks for your time chris@atsign.com @cpswan