Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

CoreCLR

Discussion in 'Experimental Scripting Previews' started by Qbit86, Oct 22, 2018.

  1. Qbit86

    Qbit86

    Joined:
    Sep 2, 2013
    Posts:
    487
  2. bdovaz

    bdovaz

    Joined:
    Dec 10, 2011
    Posts:
    1,052
    I'm also interested in this.
     
    JesOb likes this.
  3. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    838


    They're building their own compiler like this, namely Burst.
     
  4. Qbit86

    Qbit86

    Joined:
    Sep 2, 2013
    Posts:
    487
    Burst is different piece of technology, it's not directly related to target environment and BCL.
     
  5. RDeluxe

    RDeluxe

    Joined:
    Sep 29, 2013
    Posts:
    117
    Would like to know too.
     
  6. xoofx

    xoofx

    Unity Technologies

    Joined:
    Nov 5, 2016
    Posts:
    417
    Afaik, nobody is currently working on this. There is an ideal plan that we would like to be able to run ECS tech on CoreCLR at some point, but it is unlikely to happen in the short/medium term.
     
  7. Alloc

    Alloc

    Joined:
    Jun 5, 2013
    Posts:
    241
    So an heavily upgraded runtime is out of scope? :(
    As nice as ECS might be it's a feature limited for very specific use cases. Not every generic .NET code can be adapted to ECS. CoreCLR on the other hand is supposed to give a substantial performance boost and would probably benefit everyone, including third party code and even generic .NET code (not made with Unity in mind).
     
    Qbit86 likes this.
  8. liiir1985

    liiir1985

    Joined:
    Jul 30, 2014
    Posts:
    147
    CoreCLR currently doesn't work on platforms which don't allow JIT, like iOS.That's also the reason why unity made il2cpp.
    CoreCLR's AOT solution CoreRT is still in pre-alpha status and not production ready, so it's most unlikely unity would adopt coreclr at any near future
    I used to integrate the gc from coreclr into unity. But soon I realized, this would be nearly impossible, since it's not possible to obtain reliable stackmap from clang compiler or llvm platform. This whole story makes precise GC not usable.
     
  9. GeekZebra

    GeekZebra

    Joined:
    Jan 28, 2013
    Posts:
    22
    Any news or update on this?
     
    Qbit86 likes this.
  10. MechEthan

    MechEthan

    Joined:
    Mar 23, 2016
    Posts:
    166
    GeekZebra likes this.
  11. GeekZebra

    GeekZebra

    Joined:
    Jan 28, 2013
    Posts:
    22
    Thanks for the info, I'm really hyped with the burst compiler too but I was wandering if we would be one day able to run on CoreCLR? If there was a plan to implement it at some point or if it is completely ruled out.
     
  12. SirIntruder

    SirIntruder

    Joined:
    Aug 16, 2013
    Posts:
    49
    Completely understand that there is no simple way of getting CLR in any short/medium future. Does Unity plan on aligning its Mono branch to Net5 when it comes out later this year? Microsoft promised Net5 will feature Mono with latest CoreFX system libraries.
     
  13. xoofx

    xoofx

    Unity Technologies

    Joined:
    Nov 5, 2016
    Posts:
    417
    About CoreCLR, there was a similar discussion recently and I responded here
     
    nickrart, GeekZebra and MechEthan like this.
  14. GeekZebra

    GeekZebra

    Joined:
    Jan 28, 2013
    Posts:
    22
    Thanks. That's good news someone is actually looking at it.
     
  15. nickrart

    nickrart

    Joined:
    Mar 24, 2017
    Posts:
    31
    Indeed! this would be awesome
     
  16. jflejmer

    jflejmer

    Joined:
    Mar 1, 2015
    Posts:
    6
    Are there any updates on this?
     
  17. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    No, we don't have any updates on CoreCLR support now.
     
  18. LoneDev6

    LoneDev6

    Joined:
    May 22, 2013
    Posts:
    20
    Any news on this?
     
  19. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    LoneDev6 likes this.