News for hackers. Stuff that matters.
Re:Mono for Unreal Engine by azakai on Thursday October 23, 2014 @08:24PM (#8501498)
First and foremost, compiling to C++ means you then optimize it using a full C++ compiler like gcc or clang+LLVM. Not only are those compilers generally better than JITs, they can also do whole-program optimizations. JITs are getting that too (Dalvik=>ART, newer .NET runtimes), but the C and C++ compilers have a big head start.

(In theory a JIT can do all the things C++ compilers do, of course.)

Aside from performance, Mono must be ported to each target platform (I've heard this can take significant effort). On the other hand, well-written C++ code should just run (the rest of the engine is in C++ anyhow).

edit: yes, Unity compiles C# to C++, then to JS to run in the browser.

Re:Mono for Unreal Engine by Skinney on Friday October 24, 2014 @04:59AM (#8502766)
All true, but you're forgetting that Mono can AOT compile C# to native code using LLVM. That's how Xamarin.iOS works. So il2cpp doesn't really bring anything new to the table.
Re:Mono for Unreal Engine by pdaddyo on Friday October 24, 2014 @07:59AM (#8503202)
But it does solve their biggest issue - ultimately enabling Unity projects to publish to the web without plugins (WebGL / javascript).

Once all code in a Unity project eventually ends up as C++ (even if it started as C#), they can leverage Emscripten, asm.js and related technologies to enable Unity devs to use C# in the editor, which is converted to C++, and ultimately Javascript. It seems crazy, but it might just work!

Re:Mono for Unreal Engine by cwyers on Friday October 24, 2014 @09:28AM (#8503516)
"But it does solve their biggest issue - ultimately enabling Unity projects to publish to the web without plugins (WebGL / javascript)."

I'm not really sure that is their biggest issue; HTML5 publishing of Unity games seems mostly a novelty at this point.

Re:Mono for Unreal Engine by azakai on Friday October 24, 2014 @12:57PM (#8504613)
It is still pretty new, yes, but it seems to work well (see for example https://hacks.mozilla.org/2014/10/unity-games-in-webgl-owlch... ), and it's been one of the most-asked for features by Unity users on their forums.
Re:Mono for Unreal Engine by Skinney on Friday October 24, 2014 @08:07AM (#8503222)
Regarding the C# -> C++ -> JS thing, it really must alot easier to do a C# -> JS conversion...