Comments (10)
The original question was about NativeAOT (was CoreRT), which is vastly better than Android AOT.
NativeAOT is full AOT solution that massively reduces the deployment size. Andorid AOT makes your deployment bigger.
I think the answer however is no because in NativeAOT is an experiment and is not support on arm yet let alone Android. And Maui still uses the mono runtime even in .Net 6
from maui-samples.
I see, thanks for pointing this out.
To be honest, I was hoping for "CoreRT" (now called NativeAOT for dotnet6 and not relying on CoreCLR), which is really rocking fast, especially wrt to cold start. But of course it would lack all native bindings for Android, which could be one of the most costly parts when trying to bring this to Android.
from maui-samples.
Native-AoT? (Formerly known as CoreRT, committed for dotnet 6
I don't think it's committed for anything; the project lists it as an an "experimental fork".
.NET 6 mobile (nÊe Xamarin) still uses Mono's runtime (albeit now with .NET 6's BCL instead of Mono's).
from maui-samples.
This isn't complete yet, but this is being worked on here: dotnet/android#5539
from maui-samples.
Is that one related to dotnet's upcoming Native-AoT? (Formerly known as CoreRT, committed for dotnet 6 and developed in https://github.com/dotnet/runtimelab/tree/feature/NativeAOT)
Not sure about this after reading through the referenced item, since it mentions MonoAOT and comparable several times.đ¤
from maui-samples.
I think this will be based on Mono's AOT -- specific for iOS and Android.
from maui-samples.
I see, thanks for the clarification.
Is there some documenttion or additional material? Would be interesting to have a comparison of both AOT approaches... and why iOS and Android won't make use of the same native AOT compiler that will ship with .NET6+.
from maui-samples.
iOS and Android will use the Mono runtime instead of CoreCLR, and so that is why they would also use the Mono AOT compiler.
I don't know when CoreCLR would be able to run on iOS or Android -- or if that will even happen at all.
If there are docs, you might check the dotnet/runtime repo, one I found:
from maui-samples.
Mono aot is slow at both startup speed and runtime performance, really hope that MAUI can make use of NativeAOT (previously named CoreRT) instead of mono aot in the future.
from maui-samples.
iOS has had AOT in .NET 6 for a while, because it is required for devices.
We just landed Android AOT, which should ship in .NET 6 Preview 7: dotnet/android#5539
You use the <RunAOTCompilation>true</RunAOTCompilation>
for a Release
build to try it out. This enables the <MonoAOTCompiler/>
MSBuild task.
I think that solves the original question? Closing, thanks.
from maui-samples.
Related Issues (20)
- why are all sample codes not running because of packages? HOT 3
- BugSweeper
- WebAuthenticator in PlatformIntegrationDemo ends (crashes?) App HOT 1
- Native embedding sample
- NativeEmbeddingDemo doesn't work. HOT 2
- DatePicker crashes app HOT 3
- Point of Sale will not even Compile... HOT 4
- WEATHER APP DOES NOT RUN!! HOT 2
- Update quest.config
- Share.RequestAsync() doesn't work on .Net MAUI HOT 1
- Update OIDC keys for the OSPO API
- All of the CollectionView samples need to be updated so the CV is inside a Grid not a StackLayout
- MAUI and OpenXR HOT 1
- ISSUE on Windows for any official .NET MAUI examples in the repo that uses TableView
- Update native embedding sample
- Application name in the Localization Sample does not work on iOS platform. HOT 2
- Command bindings are not re-established when navigating back and forth in UIInterface samples HOT 3
- CollectionView ScrollTo not working HOT 1
- Push notifications sample HOT 1
- PlatformIntegrationDemo WebAuthenticator problems on emulator?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui-samples.