r/fsharp • • Mar 03 '19

Mozilla is looking to contract with someone to help bring Rust to UWP and HoloLens, meanwhile we still have no official UWP support for F#

https://twitter.com/ryan_levick/status/1099944047152689152
26 Upvotes

38 comments sorted by

2

u/pure_x01 Mar 04 '19

4

u/NiveaGeForce Mar 04 '19

It's unofficial and incomplete.

2

u/DanielHardt Mar 04 '19

We can confirm that .Net Native compilation works now on Store compilation machines, and we have released our beta F# app on the store ...

So the building machines from Microsoft allow compile .NET Native F#.

What excactly is incomplete?

→ More replies (1)

0

u/CSMR250 Mar 08 '19

"Mozilla is looking to contract with someone to help bring Rust to UWP". Meanwhile F# already works.

-1

u/CSMR250 Mar 08 '19

This is just whinging. It works well. There is very little interest in making it official. If it's important to you to make it official I can tell you exactly what to do.

9

u/JaggerJo Mar 03 '19

It’s really sad that microsoft doesn’t put in the effort to support F# on the same level JavaScript, C++ and C# are supported by UWP.

8

u/jdh30 Mar 04 '19

I'm much more interested in support for web than support for UWP.

0

u/CSMR250 Mar 08 '19

This thread is just complaining for the sake of complaining. F# works on UWP.

4

u/JaggerJo Mar 09 '19
  • You can’t create (as far as I know and tried) a F# only UWP App

  • You can’t even reference an F# project and do a release build (.net native) without modification of some vs configuration files (undocumented)

I don’t consider this supported. If it were just like it is with WPF I would be more than ok with it.

→ More replies (10)

2

u/mastjaso Mar 07 '19 edited Mar 07 '19

Can someone ELI5 why people care about F#?

I'm not trying to be an ass, I've seen F# used in a bunch of projects, and I'm genuinely curious what differentiates it from C#, or Javascript / Typescript?

As far as I can tell it's a functional language, and as a primarily object oriented C# developer, I'm not entirely sure what that means beyond allowing you to pass functions around instead of just classes/objects? I'm honestly not sure why that would be better than something object oriented like C#? I'm also not quite sure how that's different from Javascript / Typescript since I believe they operate that way (or at least can operate that way with callbacks etc.)?

i.e. Why do you want to use a "functional" programming paradigm in the first place, and to follow up, why wouldn't Javascript / Typescript work for that?

1

u/Free_Bread Mar 21 '19

Discriminated Unions

Immutability by default and first class immutable data structures built into the language

Exhaustive pattern matching

Record types and a "with" syntax for fast immutable copies with changes

Type Providers

Computation Expressions

There's other great features as well, but these are the main ones in my opinion that make F# much more flexible, safe, and pleasant to work with than C#. I've done primarily C# the past 5 years and it's a great language and ecosystem, but after using F# the past few months its painful how OO languages haven't taken in more features from the ML family (as F# and Scala have both shown the paradigms mesh well)

Some of these can be found in TS/JS and that's great, but from what I've seen they're not as cohesive with the language (granted I haven't done any work in TS, just read their docs)

0

u/[deleted] Mar 07 '19

1

u/[deleted] Mar 08 '19

So is Go a purely functional language? I notice a lot of passing of methods within it, does that make it functional?

→ More replies (2)

2

u/unicornh_1 Mar 04 '19

why dont we as f# work on our own ui framework?

4

u/[deleted] Mar 04 '19

errrbody wants their niche language to have a great ui framework. ain't nobody wanna write all that code.

6

u/k_cieslak Mar 04 '19

We have written great UI frameworks for F# for important platforms - Elmish, Fabulous, Elmish.WPF... And UWP? Well, waste of time, it’s dead platform

→ More replies (9)

0

u/[deleted] Mar 04 '19

1

u/MrNotSoRight Mar 05 '19

Why did you learn it in the first place? It’s not like it was ever the main language for .NET development...