dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.83k stars 773 forks source link

F# Support in .NET Native and UWP #1096

Closed NumberByColors closed 6 years ago

NumberByColors commented 8 years ago

Update

See this comment

There is now an official solution by Microsoft to put a .NET/Win32 app in the Windows Store that does not require the use of UWP APIs, Xamarin, React Native, or even changes to your existing F#/.NET code, because they removed the requirement of UWP APIs and .NET Native for Windows Store apps: Desktop to UWP Bridge.

Microsoft has basically modified the Windows Store in Windows 10 to support “Desktop” apps that are not using the UWP APIs. They just need to be packaged as UWP apps and they will even run on ARM devices (through x86 emulation) that run the recently announced Windows 10 for ARM in the future,

Original Issue

We’ve been working on adding F# support to the .NET Native compiler. When this work is finished, you’ll be able to write Portable Class Libraries in F# that can be used from Universal Windows apps, which are compiled with .NET Native. Since the .NET Native compiler is closed source, this issue is here as a way to share status regularly from the Microsoft team.

As some background, .NET Native is a compiler that turns .NET IL code directly into native code ahead-of-time, rather than just-in-time. If you hear “.NET Native doesn’t support F#,” what’s meant is “.NET Native doesn’t support all of the IL produced by the Visual F# compiler.”

Outline of the work required

  1. Identify the specific work required for .NET Native to support F# - In progress
  2. Implement the corresponding bug fixes and new features in the .NET Native and Visual F# compilers - In progress
  3. Implement whatever is necessary in Visual Studio to support source code, projects, and assemblies for F# Portable Class Libraries in Universal Windows apps - Not yet started.

    Identifying the specific work required

There are two kinds of issues we’re looking into: issues which we’ve confirmed by observing failing .NET Native compilations of F# IL; and issues we expect to have, but haven’t yet confirmed.

David (@numberbycolors) and Kevin (@KevinRansom) have spent several weeks working to compile the fsharp test suite with .NET Native. Most tests compiled without problems: 18 of the 23 unit tests with the coreclr tag. Several issues have been encountered in the other 5 failing tests:

There are other issues which we expect to encounter, but still need to confirm in other tests:

The next step is implementing the corresponding fixes and features in the .NET Native and Visual F# compilers. This work will be prioritized against the other work going on in .NET Native and Visual F#. Since the total amount of work is still unknown, we don’t have an estimate for when this F# support will be finished and delivered.

Some of these features and fixes have already been underway for months. While we’ve been investigating F#-specific issues in .NET Native, the team has continued to improve .NET Native. One feature known as “universal shared generics” is likely to have improved .NET Native’s support for F#, even without that being an explicit goal of the feature. Learn more about universal shared generics here.

Implement Visual Studio changes

Once the changes are made to the .NET Native and Visual F# compilers, the Visual F# team will need to do some work in Visual Studio to make sure F# projects behave correctly in Universal Windows app solutions.

zpodlovics commented 8 years ago

Please do not forget to do the groundwork for the CoreRT (.NET Core AOT) and the LLILC (LLVM based compiler for .NET Core) project too. The native target application support is important on every platform (eg.: mobile, server).

https://github.com/dotnet/llilc/issues/980

carlpaten commented 8 years ago

Can we get a status update? :)

ghost commented 8 years ago

I'd like to hear some of the progress made too

isaacabraham commented 8 years ago

Note that .NET native has been delayed across the board - it's not even made it for C# yet.

OnurGumus commented 8 years ago

That's incorrect. UWP apps must be and are .net native.

isaacabraham commented 8 years ago

Apologies, my bad. I was sure I read somewhere that it hasn't been bundled with the final release of .net core.

dsyme commented 8 years ago

@isaacabraham Both of you are correct. The native compiler for .NET Core is not yet bundled as open source. The native compiler used for UWP apps is proprietary. If I understand correctly they are different native compilers (though many components are shared)

ghost commented 7 years ago

How long has it been delayed for? Will we at least have F# UWP for RS2 in 2017?

carlpaten commented 7 years ago

@rogersachan: I'm under the impression that Microsoft isn't investing too much in F# anymore. Two employees (@NumberByColors and @KevinRansom) make up the bulk of recent contributions to the visualfsharp project, so the F# core team probably isn't much more than two people strong. Adding F# support to UWP is a very large task for two people to tackle.

What I'm saying is that, at this point, any timely resolution of UWP support is going to be coming from the community. It's hard to come up with estimates in those cases.

TL;DR: you want it, you build it. Microsoft doesn't care (for some suitable definition of "care").

enricosada commented 7 years ago

@lilred the visualfsharp team now is @KevinRansom @otawfik-ms and @cartermp .

cartermp commented 7 years ago

Update time!

Clearing up .NET Native

.NET Native is, for now, the proprietary native compilation technology used for AoT compilation of UWP apps. No other scenario is supported at this time.

The .NET Native toolchain team is tackling a huge number of core issues that affect everything (not just supporting one particular language), and these are a high priority for them to fix. These issues affect key internal and external customers.

Does the .NET Native Team Care about F#

In a word, YES. The issues which have been found are on their backlog and they have every intention of adding support for them. But to be clear, these are not trivial to support. Tailcall optimization, for example, is a big engineering effort that will take significant time to build and get right.

So where is F# on .NET Native Support Right now?

Still in Investigation Mode. We get recent internal builds of the toolchain that we run tests on, we add tests to try and see what else we can break, and we report issues. These issues get logged into the .NET Native engineering backlog as soon as they come up.

What can the F# community do to help?

The best thing you can do is to ask for F# support (such as UserVoice) and provide examples of how you would like to write F# for UWP applications.

If you have a need to write F# code for UWP apps, please reach out to me! You can email me directly (phcart at microsoft dot com) or DM me on Twitter. I want to get as much concrete info about needs as possible, as I can take these directly to the .NET Native team.

Does Microsoft Care about F#?

Yes! Yes yes yes yes yes! And more love for F# is coming, believe me - and not just in the OSS world. But things are taking time because so many things - the Visual Studio platform, the entirety of .NET - have been making major shifts in direction and huge engineering investments.

Okay, fine, so how about some dates?

As far as UWP/.NET Native support is concerned, I don't have a date for when F# support is completed. It won't be this year, though. As mentioned earlier - for example, getting tailcall optimization fully supported is going to be nontrivial and will take some time.

I'll reiterate this - F# is on the .NET Native roadmap, smaller issues have already been worked on, the big issues are logged, and the .NET Native team intends to fully support F#. But .NET Native and UWP are far from done, and there are massive engineering investments yet to come.

Hopefully this clears a few things up. Thanks for being understanding. If F# support for building UWP apps is essential to you, please send me at email (or DM me on Twitter) so we can set up a chat.

OnurGumus commented 7 years ago

Thank you for very detailed answer. Much needed and appreciated. However I have few opinions and questions.

  1. Some part of the tail call optimization is done directly by the compiler itself rather than JIT. How about adding .net native support to F# and implementing tail call support later ? Worst case we will eat the stack excessively, the loops will be slower or get a stackoverflow, I can live with this till the implementation complete?
  2. How about .NET native optional for F# projects? The only major drawback is it won't run on HoloLens and XBOX but considering there are very few UWP targeting these platforms we can live with it.
  3. How about asking assistance from xamarin guys ? Since they have already solved this problem. Remember IOS also disallow runtime code generation and xamarin does support F# iOS apps via AOT.
sefffal commented 7 years ago

.NET native is only a requirement of the windows store no? In the meantime, could we start creating UWP apps with F# that can be sideloaded or distributed through some other means?

dsyme commented 7 years ago

@lilred It's helpful to distinguish between the Visual F# IDE tools, the Xamarin tools and the F# language itself. Along with many from the community, people at Microsoft contribute to the language (I've recently submitted about 20 PRs to this repo, and I work for Microsoft), some contribute to .NET Core support, some to the Visual F# IDE tools, some to the Xamarin tools, some to Azure Functions support for F#, some to data science tools for F# (e.g. Tomas Petricek is consulting with Microsoft and contributing to FSharp.Data and FsLab) etc. There is also have a very steady stream of contributions to the Visual F# docs, including many from community.

That said, I think in the modern word of .NET open source, the most crucial roles for Microsoft are to enable high-quality open source contributions, amplify the base of contributors and package/deliver the software to enterprises. It's very noticeable that the areas that are closed-source such as UWP Native can become (understandable) sources of frustration, because it's plausible that the F# community could "just go fix it" if these components were open.

@ReverseBlade Yes, it's feasible for tailcalls just to be ignored in first-cut support. UWP Native would just have to ignore the tailcall prefix.

OnurGumus commented 7 years ago

@sefffal it is only required for publishing to windows store. For side loaded UWP apps, you can freely use F# and it will work on desktop, tablet and phone (but not on platforms that require .net native like hololens or xbox). (just make sure you uncheck .net native in build options)

ghost commented 7 years ago

So we won't see anything until VS "15" I suppose (seeing as VS vNext won't be ready anytime soon), but it's good hearing that it'll be done right and not rushed through like .NET Core's implementation of F#.

carlpaten commented 7 years ago

I know this is on a tangent, but does anyone have information as to why the UWP compiler is being kept closed-source? It seems like such a hurdle to developers. It's not like Microsoft are actually selling the compiler, they give it away as part of the Windows 10 SDK.

dsyme commented 7 years ago

not rushed through like .NET Core's implementation of F#.

This support is still in alpha ( latest docs here ), so I don't think it's being rushed (if the current bits were labelled as RTM quality I'd agree). However what is happening is that it's being done in the open.

I understand that some traditional users of Microsoft's dev tooling don't appreciate it, but seeing the cake made (and contributing to it) will be more normal now.

exercitusvir commented 7 years ago

@cartermp Thanks for the update.

What can the F# community do to help?

The best thing you can do is to ask for F# support (such as UserVoice) and provide examples of how you would like to write F# for UWP applications.

If you have a need to write F# code for UWP apps, please reach out to me! You can email me directly (phcart at microsoft dot com) or DM me on Twitter. I want to get as much concrete info about needs as possible, as I can take these directly to the .NET Native team.

I am not sure what you are asking for exactly. There are over 1500 votes for Add F# support for .NET Native and there are over 2000 votes for F# support in .Net native for UWP with examples why people would like to develop UWP apps in F#. There are more votes for .NET Native support for F# than any other F# language feature request on uservoice. This is probably almost the entire F# community that signed up for user voice. Why do you ask for concrete examples? F# is a .NET language that produces valid CIL and .NET Native needs to support all valid CIL to be called ".NET". Otherwise it should have been called C# Native or VB Native.

If Microsoft was really behind F# as much as you claim, then it would simply put enough resources behind it to make it work. Same with .NET Core. Talk is cheap. Show us some action.

dsyme commented 7 years ago

@exercitusvir For .NET Core, the most positive way to help is to contribute to the support. There is a list of known issues, though perhaps more important is trialling the existing support and reporting problems. Another significant issue is cross-compiling on Linux and Mac.

enricosada commented 7 years ago

Another way to help is to contribute current work in progress so vf# team can concentrate on the part we cannot do ( closed source, coord with other teams )

For example there is some to do to finish the dotnet core, lot of testing and cleanup

There is also corert and illc, that's the aot compiler, and it's oss, as alternative to the closed source .net native. coreclr too has open issues. Other communities implement that themselves, if it's oss.

Obv it's also possible wait and ask for more developer hours, but ihmo I think this is not the right place, because here everyone agree about that. The commercial side can help about that, but nobody of them is reading these issues

Mike-E-angelo commented 7 years ago

👍 to @exercitusvir. Truly amazing to see how long it has taken to get F# "support," and that UWP was designed in such a way that it didn't even consider it from the outset. Truly terrible and costly oversight, and reflects poorly on the entire UWP organization.

Reading over the language used here, I have to say that it really doesn't sound like you are committed to F# or really have very definite plans to support it. It really sounds like a go-around, to be honest. I hope I am wrong, but I for one am not getting the warm-and-fuzzies here, and I know there are others in the votes above that are expressing that, too. The fact that you are still caught in a quagmire of closed-source considerations and old-skool roadblocks really says a lot and is not something you see from other MSFT groups these days. We're also approaching the 6-month mark of this issue being created, and it doesn't seem like there is at least an alpha/test pilot, yet? Or really, any dates to watch/expect output. Concerning.

I also second the fact that you want to pull in developers for private conversations rather than listening to the thousands who have already spoken. This not only seems like you are trying to delay/fidget your way out of this, but makes me question which data you are leaning on to make your decisions on in the first place. Because clearly UWP management got this wrong. UWP group as a whole has a very bad rep of not being very community-centric, engaging, and transparent like other groups are, and it has done nothing but been a disservice for everyone involved.

But truly, the greatest disservice we are all saddled with is that somehow, someway, a Microsoft-managed group "managed" to build a ".NET" technology without the ability to support all .NET languages like the original architects of .NET designed and intended. This whole debacle should be a non-issue, yet, here we are. Good to see all those infamous, iron-clad whiteboard riddles you dole out to perspective interview candidates designed to really only filter the best-of-the-best are working their wonders. 😛

Hope this isn't too harsh, as ultimately I do support your efforts -- you've got my upvote and reactions! Just speaking my mind here -- and yes, that does get me into trouble, LOL!

OnurGumus commented 7 years ago

@Mike-EEE , actually the solution is very simple. Either, They will ignore tail calls. And fix Generic support, or make .NET native optional for Phones and PCs at least for F# projects. But all is not lost. The number of F#ers are growing and you can develop Xamarin apps with F# that runs on ios and android. Since no one actually uses UWP at all, who cares.

Mike-E-angelo commented 7 years ago

Since no one actually uses UWP at all, who cares.

Yeah... about that. 😛 Really starting to think UWP is best relegated to simply a rendering platform to render OTHER application UI built by teams who actually understand and care about .NET (like Avalonia).

forki commented 7 years ago

Meanwhile in community land: https://github.com/fsprojects/fable-react_native-demo/pull/10

OnurGumus commented 7 years ago

Actually we started to use Fable instead of TypeScript. I am so delighted with it. It's the best thing happened on javascript for the NET community. And I am sure vast majority of Microsofters never heard of it.

charlesroddie commented 7 years ago

Any progress @cartermp ? My startup is using F# / Xamarin Forms and we want to target UWP.

cartermp commented 7 years ago

@charlesroddie Unfortunately, none which could be directly actionable for you at this time. F# Support for CoreRT, the cross-platform native-compile runtime is being tracked and worked on (which is the first step towards support), but the ability to use F# in a UWP app likely won't be available for some time.

Mike-E-angelo commented 7 years ago

but the ability to use F# in a UWP app likely won't be available for some time

Wow, I'm trying to be supportive here, but this has already been in the works for how long now? Maybe it's time to make UWP open source like the rest of MSFT? Seems like it would get done a lot faster. 😛

OnurGumus commented 7 years ago

@charlesroddie Let me inform you a bit more. First of all, you can surely target UWP with F# libraries by using portable class libraries. The fact is it will only not work when you turn on .net native. Simply don't use .net native and you are fine. The problem is Windows Store unreasonably enforces .NET Native. So you won't be able to publish your app to Windows Store, but it will work on a tablet, pc and phone. But you will be able to publish it to Apple Store and Google Play ironically. It won't work on XBOX nor HoloLens I guess this is not a problem.

The real issue here when Microsoft invented .NET Native, they checked out F# usage and found out that only 0.01% of Windows Store apps make use of F#. So they ignored it. The solution is simple though: 1-) They could have made .NET Native optional, (it won't work on xbox one or HoloLens but will work else where) 2-) They could have ignored tail calls and in depth generics as a first step and fix them later.

For some reason they choose not to. Plus the resources given for F# tooling is rather limited from Microsoft side. That is actually contradictory , considering they are adding some functional features to C #7 , though those features are rather lame IMHO. So to sum up , Microsoft doesn't get functional programming is the future whereas entire world started to use functional paradigm actively even in the front end, now there are frameworks like Elm, Apple moved to Swift, Scala in Java world is a true first class functional language. Most likely Microsoft will follow in couple of years later with some regret.

Enough ranting, here's your options for F# usage.

Mike-E-angelo commented 7 years ago

Use F# with Xamarin and ignore UWP considering how UWP is not widely adopted

Wise words that get wiser by the day, @OnurGumus.

martinsuchan commented 7 years ago

when Microsoft invented .NET Native, they checked F# usage and found out that only 0.01% of Windows store apps make use of F#

Maybe the reason for the low usage is the fact, that there was very poor support for F# code in Windows 8/8.1 Store apps, only limited subset of API was available in PCLs. I really wanted to use F# for my Windows Store apps, use it for Page/Controls code-behind, etc. but it was just not working last time I tried it, and it looks like it's becoming chicken/egg problem now.

Mike-E-angelo commented 7 years ago

Maybe the reason for the low usage is the fact...

I am personally more concerned that a MSFT group would make efforts to limit the number of supported .NET languages used within a .NET technology (regardless of how used/underused that languages is). That seems to run counter to one of the fundamental qualities and tenets that has made .NET so great.

charlesroddie commented 7 years ago

@OnurGumus I agree very much. Either 1. (optional .net native) or 2. (allow a basic .net native for F# and improve over time) would be very good for us. If the current approach (sort out .net native fully and then allow f#) continues to take a long time, I hope MS will consider allowing 1. or 2. until full .net native support is ready.

@cartermp So CoreRT is linked to .NET native, so getting CoreRT to work will help get .NET native to work?

Krzysztof-Cieslak commented 7 years ago

Or just use Fable + React Native /shrug

forki commented 7 years ago

+1000 Fable |> React Native is really really great.

cartermp commented 7 years ago

@charlesroddie While it's not true that CoreRT is a part of .NET Native, getting support on CoreRT means getting support for native compilation such that it could be worked into the .NET Native toolchain. There are a lot of shared concepts and problems to be solved (e.g., support for tailcalls, how to handle reflection, F# enums, etc.).

From a larger standpoint, CoreRT support also means getting support for cross-platform, native-compiled F# applications.

OnurGumus commented 7 years ago

Please sign and spread the word to fellow F# devs: Change.org: Make Visual F# a true first class .NET language with proper tooling and UWP support https://www.change.org/p/microsoft-make-visual-f-a-true-first-class-net-language-with-proper-tooling-and-uwp-support?recruiter=664638536&utm_source=share_for_starters&utm_medium=copyLink

ghost commented 7 years ago

Change.org has never worked, and Microsoft will never listen at this point.

psfblair commented 7 years ago

As a HoloLens developer, I'm pretty miffed to read people's dismissive attitudes to the effect that it's no big deal if HoloLens isn't supported. It is a big deal. This platform is going to be a huge draw of new developers to the Microsoft community. People who want to be on the cutting edge want to use cutting-edge tools.

For those who want to develop 3D apps for HoloLens there is a workaround. Unity 3D comes with two "scripting backends" for incorporating developers' .NET code into a Unity3D Windows Store app for HoloLens. One of these scripting backends is called "IL2CPP." When it is used, the IL in .NET assemblies used in the Unity project -- including F# assemblies -- is translated into C++, which is then compiled to .NET native code.

(The way to get F# code into a Unity project is to compile the F# code into a DLL, and have a post-build step copy the DLL and the FSharp.Core DLL into the Assets\Plugins folder in the Unity project.)

I tested a tail call to see what would happen. So this code:

  let rec callTailRecursiveFunction index =
      if index <= 0 then
          ()
      else
          index - 1 |> callTailRecursiveFunction

turns into this:

extern "C"  void MyClass_callTailRecursiveFunction_m1362434375 (MyClass_t1938649317 * __this, int32_t ___index0, const MethodInfo* method)
  {

  IL_0000:
      {
          int32_t L_0 = ___index0;
          if ((((int32_t)L_0) > ((int32_t)0)))
          {
              goto IL_0006;
          }
      }
      {
          return;
      }

  IL_0006:
      {
          int32_t L_1 = ___index0;
          ___index0 = ((int32_t)((int32_t)L_1-(int32_t)1));
          __this = __this;
          goto IL_0000;
      }
  }

Which seems to indicate that, in this case at least, tail calls are optimized.

charlesroddie commented 7 years ago

Can we have an update on this please? It's a huge problem for F# and the delay is getting more and more riduculous.

Are there people working on this? Has there been progress made in the last year? Has there been any successful compilation of F# code with .Net Native?

F# can make Windows 8.1 apps but the technology is becoming obsolete and is often supported by 3rd party controls.

Are there people at Microsoft that we can contact to discuss our problems with getting apps onto the store?

psfblair commented 7 years ago

In response to my earlier post about Unity allowing F# for writing 3D UWP apps, unfortunately that has turned out not to be true as well. More details on my blog at http://seriouscodeblog.blogspot.ca/2017/04/no-virginia-you-cant-actually-write.html.

(Response to comment below: They've closed the bug so you can't upvote it, but you can vote for F# support in Unity here: https://feedback.unity3d.com/suggestions/f-support .)

Mike-E-angelo commented 7 years ago

Not sure if you noticed, @psfblair, but you can't even upvote the bug as you suggest on your blog post. F# truly gets no luv. 💔

OnurGumus commented 7 years ago

For the curious, let me summarize my own observations: There's not much improvement regarding uwp support from Visual F# team since last year. They are mostly busy with IDE improvements and bugs. And probably their next big goal is to move the project system to Roslyn, so that we will have proper .NET core and standard support from Visual Studio. However, they are careful on not implementing stuff that will break .net native support.

On CoreRt side there's very active development and active discussion regarding F#. However there seems to be a lot of work remaining and there's no clear indication for corert being the future of uwp .net native.

Finally, in my opinion, there's a clear indication for, Microsoft stopping investing in uwp in near future. For example, their latest Microsoft teams product is an electron application. There is windows phone version but very subpar and buggy compared to ios and android version. Also Microsoft has just published a new JavaScript framework for mobile called reactXP. There is also some emphasis on xamarin too. But these days you won't hear much about uwp.

Mike-E-angelo commented 7 years ago

I'm soooooo holding my snark @OnurGumus, but I am glad to hear of the inactivity of and away from UWP. Although really one could say that UWP hasn't seen much activity for years. (oops, I tried).

Although, it does seem we have replaced one mediocre platform (UWP) with a better one (ReactXP), I am curious about how .NET integrates with this now. As ReactXP and React in general is exclusively JavaScript, and I am not seeing .NET being a part of this. Now it appears that MSFT has jumped into the JS pool with both a JS framework and a JS IDE in VSCode to work with it, without much .NET.

Really hoping to see some .NET integration into this magic. Maybe this is it? https://github.com/xamarin/WebSharp

forki commented 7 years ago

Regarding reactxp: fable is already working VERY nicely with react and react native. I assume it would work with reactxp as well. We already discussed it on the fable channel. We basically agreed that new controls are very welcome, but we are very sceptical about the idea of abstracting mobile and web development. Usually you have very different workflows. It's just not a good idea from UX standpoint. But anyways: go fable!

Mike-E-angelo commented 7 years ago

fable is already working VERY nicely with react and react native

That's right! I forgot to ask about that and thought about that while writing my earlier comment. There is Fable, at the very least. It would seem terribly shortsighted to not provide a bridge to .NET (since UWP is all about bridges ;) ;) ;) -- sorry, can't help it!), but who knows. After Silverlight, I have not put much faith into the leadership there at Windows command. 😛

I am curious about what you mean @forki about abstracting mobile/web development. I believe we are overdue for some innovation in UX and app design. That is, the barriers between "native" and "web" are simply arbitrary (and conditioned) constructs that are unnecessarily reinforced (and expected). And as React seems to be proving, the "barriers" between these two conceptions are becoming murkier and less defined with each passing day.

I like to think that the reason why is that there really isn't a barrier between these two. Good UX is good UX. If I go to a web page and it has great design/layout interaction, it will happen no matter what device I view it on. This is sort of the paradigm that should happen with native applications, and it appears React is facilitating exactly that sort of world.

I am definitely interested in hearing others' perspective around this, of course.

forki commented 7 years ago

@Mike-EEE the problem is that different devices allow you different workflows. I was actually starting to write a React/ReactNative layer for fable when I learned that I just don't want to use it. ;-)

TBH it would not be hard to do and maybe there are some apps that would work well with that.

Reagrding UWP - I personally could not care less. But react native allows you to target UWP - so then fable does it as well. Go fable - forget .NET.

OnurGumus commented 7 years ago

@Mike-EEE Despite the criticism, there is also one unique feature of UWP that is not available in any other platform. That is WinRT.

UWP (and previously windows store apps) is the only platform that supported JavaScript apps natively without any wrappers from the beginning.

One can most definitely develop a JavaScript HTML based UWP app and call C# written WinRT DLLs natively. This is a relatively underrated and unknown feature. This way, you might still live in the .NET world.

Mike-E-angelo commented 7 years ago

react native allows you to target UWP

@forki the problem is not being able to target UWP (or windows), it's being able to target Windows (or any platform) in .NET. You have to realize that companies, organizations, and developers (:angel:) have over a decade of investment in this stack. It makes the most business "cents" to be able to leverage those investments forward, rather than starting over and learning something completely new (that may or may not be as elegant/efficient/effective as what you had in the past).

forget .NET.

Blasphemy! 😆

This is a relatively underrated and unknown feature

@OnurGumus I would say it is known, just not very popular. ;) (Also, did you mean to say "WinJS" and not "WinRT"?) WinJS has/had two problems:

  1. From the .NET perspective, working in JS is about as attractive as working in binary. Not to mention, inefficient. As now you are writing and maintaining code in two different languages rather than one, and having to context switch between the two (and acquiring/hiring resources that can maintain them). Although neat, and possible to do, it would be about as viable to mix/match VB.NET and C#.NET projects in a solution.
  2. From the HTML5/JS perspective, you are asking me as someone who can write a website that innately reaches a market of 3.5B devices to spend time/resources to build an app that can reach a fraction (1/3 at best). This especially doesn't make "cents" now that Electron does the same thing but reaches that full marketplace as well.

Although WinJS does provide .NET integration, that does not look to be the case with ReactXP, which is what I am trying to square away here. Since WebSharp is also Electron-based, I am thinking (read: hoping) that is what links the two.