Replies: 33 comments
-
The ordinal coreclr runtime requires JIT and won't be available on iOS-like platforms. There are coreclr-compatible Mono runtime in this repo supporting iOS. The NativeAOT variant of coreclr also starts experimental support for iOS. The .NET Core platform supports iOS. |
Beta Was this translation helpful? Give feedback.
-
我的场景是ios上 c++引擎嵌入c#运行时,不过还在调研,基本需求是 -多个实例 -热更新 -导入导出c++接口 |
Beta Was this translation helpful? Give feedback.
-
目前所有CLR实现都不支持单进程内多个实例,AssemblyLoadContext可能可以部分满足需求。 |
Beta Was this translation helpful? Give feedback.
-
mono试了可以热更,不过对alc支持不完善,基本不可用感觉 |
Beta Was this translation helpful? Give feedback.
-
还有别的办法能实现 B C两个DLL都引用了A DLL,但是互相隔离的嘛 哪怕是静态变量这种 |
Beta Was this translation helpful? Give feedback.
-
mono的alc是不行的,要自己改虚拟机,mono的开发比较坑 |
Beta Was this translation helpful? Give feedback.
-
@huoyaoyuan 我一直跟进mono的嵌入开发5年多了,坑特别多,有没有什么渠道可以反馈下,让官方重视下吗? |
Beta Was this translation helpful? Give feedback.
-
不能并行的话有没有前一个用了清理一下重新加载的方法 |
Beta Was this translation helpful? Give feedback.
-
不能,bug很多 |
Beta Was this translation helpful? Give feedback.
-
好吧 谢谢 |
Beta Was this translation helpful? Give feedback.
-
Mono部分人手不多,代码结构也区别很大。我个人没有深入研究过Mono代码,不好断言工作量多大,但不排除巨坑的可能。 |
Beta Was this translation helpful? Give feedback.
-
像这种必现的问题:#98805 官方也没有动力去修复,都是懒得去验证 |
Beta Was this translation helpful? Give feedback.
-
Not yet: #98127 |
Beta Was this translation helpful? Give feedback.
-
话说你们后面换方案了吗,发现很多我们关心的问题都是你提的 |
Beta Was this translation helpful? Give feedback.
-
@am11 yeah I've seen the PR and missed it. However, the coreclr interpreter is much more broken then mono intepreter. |
Beta Was this translation helpful? Give feedback.
-
这个思路就别想了,现在严格来说没有主动卸载程序集的办法,alc都是基于gc被动的,也经常会出问题 |
Beta Was this translation helpful? Give feedback.
-
好家伙,那就是这个嵌入mono的进程只能是一次性的了 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
阿这,我mono用alc.Unload() 静态容器里的东西也没清理掉 难绷 |
Beta Was this translation helpful? Give feedback.
-
你可以理解为他们这个完全没实现就行了,是完全 |
Beta Was this translation helpful? Give feedback.
-
Notably, that is support strictly for the iOS Simulator. It is not meant to handle anything else. It is purely a way to have faster debug loop for apps that you intend to run with NativeAOT. The JIT restrictions for dynamic code still apply to device deployments and hence CoreCLR cannot be used there. |
Beta Was this translation helpful? Give feedback.
-
NativeAOT-Mint was a quick hackathon experiment designed to answer the question: "Is it possible to retarget the Mono Interpreter on top of another .NET runtime, or is it too dependent on Mono's underlying implementation." The answer from the experiment was "yes, it is possible, but NativeAOT is not the right runtime - the amount of work to make NativeAOT support dynamic code execution is too great". So what about Mint in CoreCLR? That's an interesting future experiment. At this time there are no plans, but it's something we've thought about. |
Beta Was this translation helpful? Give feedback.
-
这个作用范围是整个alc吗 |
Beta Was this translation helpful? Give feedback.
-
对,就是内部直接设置了false,即使脚本设置为true |
Beta Was this translation helpful? Give feedback.
-
确实,临时变量都没gc,估计有bug就直接false了 |
Beta Was this translation helpful? Give feedback.
-
还有别的clr可选嘛 |
Beta Was this translation helpful? Give feedback.
-
.NET Framework,.NET Core的实现都是如此 |
Beta Was this translation helpful? Give feedback.
-
coreclr没有解释模式吗 |
Beta Was this translation helpful? Give feedback.
-
目前处于无人维护的状态,仅限入门级程序可以跑通。mono的解释器一直都有维护,Mint的试验是将其对接到coreclr或NativeAOT上。 |
Beta Was this translation helpful? Give feedback.
-
说起来mono aot跟native aot的区别主要在哪,native代码的多少吗 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions