xoofx / xoofx.github.io

Repository of my blog
https://xoofx.github.io/
7 stars 1 forks source link

Behind the burst compiler #6

Open xoofx opened 5 years ago

xoofx commented 5 years ago

Comments for Behind the burst compiler

dwarfland commented 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!

nxrighthere commented 5 years ago

Great job Alex, very excited about this feature: v 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.

xoofx commented 5 years ago

very excited about this feature:

I forgot to update the slides, as [DllImport] is now supported inside burst jobs

nxrighthere commented 5 years ago

@xoofx That's great! We are going to check it out very soon, thanks!

xoofx commented 5 years ago

Beware though that some platforms (like iOS) don't allow loading dynamic libraries

nxrighthere commented 5 years ago

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 😸).

xoofx commented 5 years ago

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...

nxrighthere commented 4 years ago

@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. 😢