Earlier quoted context omitted.
> C# benefits from the whole Microsoft ecosystem, which includes Visual Studio. Both good and bad. Visual Studio isn't cross-platform, for example.
Well, Visual Studio Code[1] is, so it may be coming in the future. 1: https://www.visualstudio.com/en-us/products/code-vs.aspx
Swift Ported to Android
31–40 of 153 posts
Re: Swift Ported to Android
#32Interesting, in the context of Xamarin acquisition by Microsoft. Swift can very well spoil C#'s steam.
Swift isn't a significant improvement over C#. Also, keep in mind that C# benefits from the whole Microsoft ecosystem, which includes Visual Studio. Beyond the language, what's even more important is the application model. That's where frameworks like React Native have the edge. This might change if Microsoft upgrades Xamarin.Forms into full-blown Universal Windows App support (think WPF on iOS and Android).
Re: Swift Ported to Android
#33Earlier quoted context omitted.
Swift isn't a significant improvement over C#. Also, keep in mind that C# benefits from the whole Microsoft ecosystem, which includes Visual Studio. Beyond the language, what's even more important is the application model. That's where frameworks like React Native have the edge. This might change if Microsoft upgrades Xamarin.Forms into full-blown Universal Windows App support (think WPF on iOS and Android).
You might just be looking at the language from a syntax perspective. However the two are very different in the way that you compile and run them. In C# the code is translated into a custom bytecode (IR) and then the CLR is used to execute that and manage the memory through GC. In Swift's case it compiles down to native processor code instructions and can have optimisations applied ahead of time. This allows the app t…
C# is compiled to native code on Windows Phone since version 8.
The C# extensions for Singularity (Sing#) and Midori (System C#) generate static binaries. Work which served as starting point to MDIL on WP 8.x and .NET Native.
The new .NET Native compiler even exposes SIMD.
Mono also supports AOT compilation since a long time.
As always language != implementation.
Re: Swift Ported to Android
#34Re: Swift Ported to Android
#35Why Android requires special support? Isn't it just linux with quite standard libc and ABI to interact with Java counterpart?
Google has ripped most of the stuff they see as fluff for Android.
Edit: Any C and C++ API not listed as stable and public on the NDK docs is not guaranteed to exist in all devices.
Re: Swift Ported to Android
#36Interesting, but even Apple doesn't use switf on iOS. So is there really a point?
Re: Swift Ported to Android
#37Earlier quoted context omitted.
What?
Wasn't a very useful comment, but what I think he/she meant was that Apple doesn't actually use Swift much in its own apps: http://appleinsider.com/articles/16/01/18/apple-making-spars... A lot of devs take this to mean Swift should be avoided for now. Edit: To be clear, I don't agree with this sentiment! Swift is awesome. Just trying to clear up the parent comment's confusion!
Re: Swift Ported to Android
#38Earlier quoted context omitted.
Swift isn't a significant improvement over C#. Also, keep in mind that C# benefits from the whole Microsoft ecosystem, which includes Visual Studio. Beyond the language, what's even more important is the application model. That's where frameworks like React Native have the edge. This might change if Microsoft upgrades Xamarin.Forms into full-blown Universal Windows App support (think WPF on iOS and Android).
How much RAM does a single hello world take in C#? How much time does it take to create a thread in mono on my Linux VM? How much does it cost a license for Visual Studio?
Free if your revenue is under $1m, then $40/month including CI, source hosting and issue tracker.
Re: Swift Ported to Android
#39UI in Swift is heavily tied to Cocoa, right? What tools exist to draw UI in Swift on another platform?
On Android, Swift will likely be in the same position as the NDK, which isn't a great place to be for UI, but it's doable. You'll be able to make the same UI calls you'd make from C code.
Re: Swift Ported to Android
#40Interesting, in the context of Xamarin acquisition by Microsoft. Swift can very well spoil C#'s steam.