Live data from Hacker News

Google joins .NET Foundation as Samsung brings .NET support to Tizen

techcrunch.com

91–100 of 341 posts

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#91
post #59

Earlier quoted context omitted.

The implication is "I have no interest in this because I'm happy with what I have". Okay, that's fine, please enjoy your Java and build wonderful things. Oh, BTW, why are you typing into a reply box on a thread you have no interest in? And the implication there is because your tool is a poopy head and I wanted to subtly point that out by expressing my lack of interest. So, yeah, go away because that's not contributin…

> So, yeah, go away because that's not contributing to the conversation. Well, maybe there’s another implication. Google switching to C# would lead to them neglecting and deprecating the Java ecosystem on Android. That’s gonna be real ugly for app devs, ending up having to rewrite everything. So, maybe, there is a real contribution in the comment, which you just haven’t seen yet?

I don't think anyone is suggesting Google should drop Java, just that C# should be made a first class citizen, side-by-side with Java.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#93
post #48
post #2

Nice. Now please make C# a first-class citizen in Android and start to migrate from Java to C#.

Google have not made their own languages Dart/Go official to Android. Why would they make languages other than Java a priority now?

> Why would they make languages other than Java a priority now?

Because mentat asked please.

In other words, it might have less to do with the merit of the language than with the politics of the organization.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#94
post #2

Nice. Now please make C# a first-class citizen in Android and start to migrate from Java to C#.

I agree that C# would be a step up, it's not a big enough difference to justify a migration. Also the cross-platform tools aren't good enough yet

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#95
post #77
post #69

Earlier quoted context omitted.

Dart doesn't have the adoption yet and has a different plan when it comes to mobile ( https://github.com/flutter/flutter ). I love Go, but it's not really a suitable language to do UI, or anything that deals with data models. C#, however, is a perfect replacement for Java, most of the times. I would say "it's simply superior in every imaginable metric other than cross-platform implementations of the compiler/VM" but…

Java's value is not some inherent superiority of language for mobile development, it is about throwing (100s of) millions of dollars and 100s of engineers to make it work. And I think it remains true for C# also. Unless someone sinks 100s of millions on C# too it seems non-starter to me. By the way Microsoft has already tried mobile ecosystem with .net/C# that did not work out very well.

The transition from Java to C# is pretty easy and pleasant as C# is similar but better.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#96

I like the laptop with a bunch of lovely Microsoft technologies, and then WiX. Please, please die WiX. Imperative XML + non-deterministic execution order + the worst error messages of the entire stack. I love C# and the CLR, but damn WiX sucks.

I can't believe WiX hasn't already died. I tried using it 7 or 8 years ago. What a terrible idea to use XML like that. But, that was back when XML was ... the ... bees ... knees! I mean everyone was gaga over using XML for everything.

Based on the current developer zeitgeist, I expect them to transition to JSON.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#97

Earlier quoted context omitted.

What magic are you talking about? Various .Net frameworks have silly amounts of magic, but C# itself?

When I started going into C# from Java a bit, there were two things slightly annoying me: - Class extensions: I saw code examples online that just wouldn't work for me because the compiler told me a certain method of a built-in class wouldn't exist. After I while I found out that the author of that snippet had used class extensions and not bothered to mention. - The var keyword: While this is sometimes nice for quick…

Interesting. I wonder what would be your opinion on languages with even more magic, like Swift.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#98
post #70
post #42

Earlier quoted context omitted.

Is that something Google wants? I don't see the advantage for them short of adding on C# devs

C# offers more support for memory friendly coding and performance than Java, which could ultimately improve Android's performance. Of course, this would only work if they switch languages, which I don't see the Android team doing willingly without upper management "help".

I don't think they have to switch languages. With official support/talent working on Xamarin.Android (which is already great) coming from both MS and Google, that'd be enough to make C# on android a sure thing.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#99
post #72
post #49

Earlier quoted context omitted.

* C# is much more mature * It has an enormous user base * It's not owned by Oracle Not saying they will but those are real possible reasons for Google to do this.

One possible way out will be something like Swift port to Android made by an open source contributor to Swift. Someone with deep knowledge of C# can take a stab at C# to Android. I'd think Google have very few C# people internally.

They have Jon Skeet, this is enough, at least to attract more c# developers.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#100
post #52

Earlier quoted context omitted.

Better support for mixed managed/native code for one. There's P/Invoke, and .NET's byte code includes instructions for low level pointer manipulation (which C# exposes). You could even compile C/C++ to CIL and obviate the need for some architecture specific binaries.

Actually, with the JNA (not JNI), one can invoke native code from Java even easier than in C# – you just define a Java Interface containing the relevant C functions, bind the library, and get an Object implementing it.

But that C/C++ code you're calling still needs to be compiled to native code. The GP was referring to .NET CIL (bytecode) supporting (by design) a large subset of C/C++ semantics.

The GP wants to avoid shipping N different binaries for N platforms in cases where the C/C++ code being called isn't already on the platforms.

I haven't used Managed C++ and I'm fuzzy on the details, but my understanding is that a fairly large subset of C/C++ can be efficiently compiled to .NET CIL. (Of course, the class loader for untrusted security contexts will refuse to load classes that use the type-unsafe/memory-unsafe portions of .NET CIL, just like the Java classloader for untrusted applets won't load classes making arbitrary JNI calls.)

Post reply on HN