Git Product home page Git Product logo

Comments (10)

trampster avatar trampster commented on July 24, 2024 4

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.

queequac avatar queequac commented on July 24, 2024 2

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.

chucker avatar chucker commented on July 24, 2024 1

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.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

This isn't complete yet, but this is being worked on here: dotnet/android#5539

from maui-samples.

queequac avatar queequac commented on July 24, 2024

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.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

I think this will be based on Mono's AOT -- specific for iOS and Android.

from maui-samples.

queequac avatar queequac commented on July 24, 2024

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.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

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:

https://github.com/dotnet/runtime/blob/master/src/mono/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/README.md

from maui-samples.

hez2010 avatar hez2010 commented on July 24, 2024

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.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.