IronLanguages / dlr

Dynamic Language Runtime
Apache License 2.0
369 stars 84 forks source link

Suggestion about Assembly.Save and Expression.CompileToMethod #278

Open LonghronShen opened 9 months ago

LonghronShen commented 9 months ago
  1. In .NET 8, we finally get a way to save the Assembly. See AssemblyBuilderImpl
  2. As for the missing of CompileToMethod, we may use this library as a workaround?
fMichaleczek commented 8 months ago
  1. It may not even be usable on the net9.0 branch. It's active but it will be on the LTS branch and without promise of MVP in november 2024 . I am confident but we have seen on WASM multithreading that there may be technical constraints which delay it by 2 years. https://github.com/dotnet/runtime/issues/92975

  2. InMemory, no debug File, no validation. It's good for a small lib but not for a DLR engine with language platforms. The tooling around the lib has not the requirement to debug a wide system. https://github.com/yantrajs/yantra/wiki/Expression-Compiler#no-validation

LonghronShen commented 7 months ago

Good point. I mean, to what extent can we make a workaround solution. This may lead to some suggestions about refactoring the architecture of the DLR framework which allows us to inject some workaround into the framework.