-
-
Notifications
You must be signed in to change notification settings - Fork 67
Support for AOT compilation #103
Comments
Actually, Angel 2 has no dependency on Note the call to Removing mirrors-by-default was one of the biggest changes in Angel 2. Also, there already is support for using |
Thank you for your reply. I'm going to try your advices. |
Still failing despite your instructions. prod.dart
Command :
|
Ah, on further investigation, I figured it out. Just remove the Note: this means that, at least at the moment, Jael will not work in AOT. A new major version could potentially use the |
Indeed, I commented in Thank you for your help. |
No problem! Excited.
I might have to release a Jael v3 without mirrors, because templating is
convenient.
That being said, setting up reflectable *just* for the purposes of running
a templating engine might be overkill.
On Tue, May 7, 2019 at 10:53 AM ***@***.*** ***@***.***> wrote:
Indeed, I commented in config.dart the importation of angel_jael and
configuration line, now it works !
Instant startup, reduce memory from about 250mb to 30mb, all good :-)
Thank you for your help.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACMIUPH3JX6PTUAKGLNLY6TPUGJWFANCNFSM4HLF2JGA>
.
--
--
*Tobe Osakwe*
Student, B.S. Comp. Sci, Florida State University
https://thosakwe.com
|
With Dart 2.3, you can compile your backend ahead of time but it doesn't work with angel ...
Steps to reproduce:
Download Dart 2.3 here : http://gsdview.appspot.com/dart-archive/channels/stable/raw/2.3.0/sdk/
Create a new angel project with
angel init test_project
Go to test_project and run
dart2aot bin/prod.dart bin/prod.dart.aot
Problem:
You get this error :
Cause:
Like the case of Flutter, the package 'mirrors' doesn't work with aot compilation ... No workaround, just find a way to replace it (with reflectable for example which is ok with aot)
The text was updated successfully, but these errors were encountered: