Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would really love if MS brought out some kind of .net core electron alternative. Xaml is nice enough to build UI with, .net core works across macOS and Linux, and the whole package wouldn't need an entire copy of chromium for each install


React-native is different from electron apps, though. I don't think they need chromium, just the Javascript portion of it.

XAML is an abandoned platform. I've been with WPF for maybe 8 years. Haven't enjoyed coding like i do now. If you have ever worked with React, it will change you. It is something else to be able to make a UI with ease, to be absolutely confident about state, and to tap into the biggest community on earth (npm) to import whatever you want. Also tooling, the ability to edit modules live while the rest of the application just stays put.


I've heard react native is not very performant because it essentially operates through a webview?


No... :D Why would anyone use it then, you could just as well wrap a regular webview. RN's gui elements are native, it taps into native animations, schedulers, openGL and so on. But driven by Javascript running in a separate thread. RN produces real mobile apps, RN-windows real UWP applications, RN-macos real mac apps, and so on.


You heard the opposite of reality. Here are the key facts:

- React Native is faster than apps using a webview because it uses native UI components for their OS targets (e.g. Android and iOS). They also look more native.

- React Native runs the JS code in a separate thread from the native UI components rendering. Webview apps will use the same thread for their app code and the DOM rendering.


Ok, that makes more sense


would be interesting to port wpf widgets to .net core and expose those through some sort of electron alternative.


Yes, a cross platform WPF. UPF I guess


Like Xamarin for .NET Core?


Does Xamarian provide desktop widgets?


There is Xamarin.Forms, which is essentially cross platform XAML with a base set of widgets. It supports Android, iOS, UWP, and they are working on MacOS. No Linux yet.


I wouldn't recommend Forms, I worked with it for about 4-5 months full time last summer and it was unstable and unperformant.


Last summer was a long time ago in Xamarin world. Works pretty well now.


Maybe it was Visual Studio Community that was making it worse, that thing was unstable as hell as well. So much time spent fixing project files...


Forms is the only real selling point for Xamarin. Too bad it doesn't have a good reputation.


The OS API integration, C# and F# are also selling points.

Qt doesn't support even half of the OS APIs that Xamarin does.

As for JavaScript based solutions, I don't intend to ever use it outside the browser.


I have same feelings for js in general, but I suggest you to try React Native. Just follow their official docs/tutorial. I was pleasantly surprised how straightforward it is. I believe you can as well use TypeScript.


I don't see a value for TypeScript outside the browser when I can use C# and F# instead of it.

As for ReactNative, give it two or three years and maybe then I will bother learning it.

As an old dog I have already seen too many carriages pass by, very few of them come back.


You should bother with React Native. It game changer in the mobile world, not a trendy thing that will pass away. Senior iOS devs are going the RN route. Companies all over the places use it for their mobile clients. A little company named WIX recreated its entire mobile front with React Native.

https://www.youtube.com/watch?v=abSNo2P9mMM


I beg to differ. The xamarin stack on Android without forms is much preferable to whatever confused iteration of java+toolchain Google is currently offering.


I'd like to see some benchmark comparisons with electron


Is xamarin free?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: