Open xoofx opened 5 years ago
Interesting project! I was wondering if you have had a look at our c# compiler, https://elementscompiler.com. There might be some overlap there, as we already compile c# to native (and other non-il targets); maybe we should talk and possibly cooperate. (Orthogonal to that, it would also be interesting to look at integrating our other languages in their CLR flavor more deeply with Unity, as well). Let me know what you think!
Great job Alex, very excited about this feature: Most of my stuff utilizes interop, if the Burst will be able to reduce its cost, it would be just fantastic. My community screaming for this feature.
very excited about this feature:
I forgot to update the slides, as [DllImport]
is now supported inside burst jobs
@xoofx That's great! We are going to check it out very soon, thanks!
Beware though that some platforms (like iOS) don't allow loading dynamic libraries
Yup, they work only in the editor if you target iOS, static libraries are required for builds, but luckily most of the projects that I'm working on is primarily for desktop platforms. (On top of this I'm not a fan to work with constrained environments 😸).
Will it be open source and available here on github just like we can use CoreRT today ?
I would like but It is out of my sole decision. But so far, it looks unlikely though...
@xoofx Thanks Alex, [DllImport]
works great. I'm using native libraries with Burst without any problems, however, there's only one problem with the Unity itself which described in this thread. It prevents me from mixing UnityEngine API with native code without involving Mono. 😢
Comments for Behind the burst compiler