SlideShare une entreprise Scribd logo
1  sur  45
Télécharger pour lire hors ligne
© 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?

Contenu connexe

Tendances

Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
 

Tendances (20)

Declarative UIs with Jetpack Compose
Declarative UIs with Jetpack ComposeDeclarative UIs with Jetpack Compose
Declarative UIs with Jetpack Compose
 
Building Slack's internal developer platform as a product.pdf
Building Slack's internal developer platform as a product.pdfBuilding Slack's internal developer platform as a product.pdf
Building Slack's internal developer platform as a product.pdf
 
Railway Oriented Programming
Railway Oriented ProgrammingRailway Oriented Programming
Railway Oriented Programming
 
Monoids - Part 1 - with examples using Scalaz and Cats
Monoids - Part 1 - with examples using Scalaz and CatsMonoids - Part 1 - with examples using Scalaz and Cats
Monoids - Part 1 - with examples using Scalaz and Cats
 
Building Microservice Systems Without Cooking Your Laptop: Going “Remocal” wi...
Building Microservice Systems Without Cooking Your Laptop: Going “Remocal” wi...Building Microservice Systems Without Cooking Your Laptop: Going “Remocal” wi...
Building Microservice Systems Without Cooking Your Laptop: Going “Remocal” wi...
 
Jetpack Compose beginner.pdf
Jetpack Compose beginner.pdfJetpack Compose beginner.pdf
Jetpack Compose beginner.pdf
 
python.ppt
python.pptpython.ppt
python.ppt
 
DevOps Engineer [Arabic]
DevOps Engineer [Arabic]DevOps Engineer [Arabic]
DevOps Engineer [Arabic]
 
Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023
Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023
Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023
 
OOP and FP
OOP and FPOOP and FP
OOP and FP
 
Introducing type script
Introducing type scriptIntroducing type script
Introducing type script
 
Quickly Testing Qt Desktop Applications
Quickly Testing Qt Desktop ApplicationsQuickly Testing Qt Desktop Applications
Quickly Testing Qt Desktop Applications
 
Jetpack Compose.pptx
Jetpack Compose.pptxJetpack Compose.pptx
Jetpack Compose.pptx
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Terraform on Azure
Terraform on AzureTerraform on Azure
Terraform on Azure
 
A swift introduction to Swift
A swift introduction to SwiftA swift introduction to Swift
A swift introduction to Swift
 
JavaからScala、そしてClojureへ: 実務で活きる関数型プログラミング
JavaからScala、そしてClojureへ: 実務で活きる関数型プログラミングJavaからScala、そしてClojureへ: 実務で活きる関数型プログラミング
JavaからScala、そしてClojureへ: 実務で活きる関数型プログラミング
 
TypeScript for Java Developers
TypeScript for Java DevelopersTypeScript for Java Developers
TypeScript for Java Developers
 
Qt Application Programming with C++ - Part 2
Qt Application Programming with C++ - Part 2Qt Application Programming with C++ - Part 2
Qt Application Programming with C++ - Part 2
 

Similaire à 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
 

Similaire à 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
 

Plus de Chris Swan

Plus 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"
 

Dernier

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
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
Muhammad Subhan
 

Dernier (20)

Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
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
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
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
 
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
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
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
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
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
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 

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