F# usage
-
Just a quick one; How many CPeople are using F# these days, and if so what for? Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
I think Marc Clifton has done some work in F#. You might want to hit him up for some knowledge. Just a thought. Computational Types in C# and F#[^]
-
Just a quick one; How many CPeople are using F# these days, and if so what for? Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
Professional Sports. While I was looking for a new employer over the last year, twice I was pitched jobs for Major League Baseball teams that needed F# developers. I did some research on it and found troves of data sets available spanning decades of time. Now I know where all those worthless statistics come from when announcers are trying to find something interesting to say when there is a lull in the game.
Director of Transmogrification Services Shinobi of Query Language Master of Yoda Conditional
-
Professional Sports. While I was looking for a new employer over the last year, twice I was pitched jobs for Major League Baseball teams that needed F# developers. I did some research on it and found troves of data sets available spanning decades of time. Now I know where all those worthless statistics come from when announcers are trying to find something interesting to say when there is a lull in the game.
Director of Transmogrification Services Shinobi of Query Language Master of Yoda Conditional
MadMyche wrote:
Major League Baseball teams that needed F# developers.
Why F# though, versus C#? What does F# give MLB that C#/Java could not?
-
MadMyche wrote:
Major League Baseball teams that needed F# developers.
Why F# though, versus C#? What does F# give MLB that C#/Java could not?
Well it's the functional aspect of it that, supposedly, makes it more useful for working with extremely large datasets.
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
-
Just a quick one; How many CPeople are using F# these days, and if so what for? Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
In addition to Slacker007's post, there's [this](https://www.codeproject.com/Articles/1200375/Class-less-Coding-Minimalist-Csharp-and-Why-Fsharp) interesting (academically speaking, I suppose) article I wrote recently.
Mel Padden wrote:
Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
Along with Scala and Haskell, I've heard it's used in the financial industry. It's a good language to learn because I found it influences, in a positive way, my C# coding, particularly looking at how mutability is handled. The company I left a while back was re-implementing all their ATM code in F#, mainly because the new kids on the block (spurred on by the CTO that hated C# because he didn't understand it) thought what I'd done in C# was too complicated. Funny they chose F#. Well, they would have chosen Python (because the CTO loved Python) but they couldn't use Python because the Chromium support sucked. :laugh: At the end of the day, to repeat stuff I've written about F# previously, the world is mutable, so programming in pure immutable FP is a real PITA. Tail recursion, monads, etc. Ugh. Given that, what you end up with in F# often looks like an imperative code square that's been shoved into a declarative code circle. That's certainly what the new kids ended up with, from what I saw before I left. OK, so they implemented communication streams in F#. Big whoop. Plus, getting anyone (like your teammates) educated in any FP syntax is daunting, nay, impossible.
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
Well, I use it everyday in many situations. To express frustration: oh, for F# sake! To express incredulity: the F# do you want me to do? To express disappointment in something: this F#ing car is pure undiluted junk; To express surprise: F# me sideways! And many other uses, these are off the top of my head... Note: there are a whole lot of F# jobs out there. It's hard to find one thet is not.
* CALL APOGEE, SAY AARDWOLF * GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X * Never pay more than 20 bucks for a computer game. * I'm a puny punmaker.
-
Just a quick one; How many CPeople are using F# these days, and if so what for? Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
-
Just a quick one; How many CPeople are using F# these days, and if so what for? Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
I've been using F# almost since it came out. Initially, I was using it to simulate performance of large government pension funds. Lately, I've been building an infrastructure to allow me to build simulations of adaptive social systems. In terms of coding style, I find myself combining object-oriented and functional styles in the same programs, the object-oriented for interfacing with .NET/WPF types, and the functional where it seems natural. There are several things I really like about F#. First, it allows me to fit a lot of computation into just a few lines of code: No pages of curly brackets and semicolons. Second, I don't feel straight-jacketed into a particular coding style; I can use what is appropriate in the circumstances. Third, it is relatively free of arcana like annotations. Fourth, you don't have to know everything to do anything. And fifth, the combination of Visual Studio and the F# interpreter rocks! I hope this is helpful.
-
In addition to Slacker007's post, there's [this](https://www.codeproject.com/Articles/1200375/Class-less-Coding-Minimalist-Csharp-and-Why-Fsharp) interesting (academically speaking, I suppose) article I wrote recently.
Mel Padden wrote:
Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
Along with Scala and Haskell, I've heard it's used in the financial industry. It's a good language to learn because I found it influences, in a positive way, my C# coding, particularly looking at how mutability is handled. The company I left a while back was re-implementing all their ATM code in F#, mainly because the new kids on the block (spurred on by the CTO that hated C# because he didn't understand it) thought what I'd done in C# was too complicated. Funny they chose F#. Well, they would have chosen Python (because the CTO loved Python) but they couldn't use Python because the Chromium support sucked. :laugh: At the end of the day, to repeat stuff I've written about F# previously, the world is mutable, so programming in pure immutable FP is a real PITA. Tail recursion, monads, etc. Ugh. Given that, what you end up with in F# often looks like an imperative code square that's been shoved into a declarative code circle. That's certainly what the new kids ended up with, from what I saw before I left. OK, so they implemented communication streams in F#. Big whoop. Plus, getting anyone (like your teammates) educated in any FP syntax is daunting, nay, impossible.
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
Marc Clifton wrote:
an imperative code square that's been shoved into a declarative code circle.
Wonderful !
«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it. A few hundred years later another traveler despairing as myself, may mourn the disappearance of what I may have seen, but failed to see.» Claude Levi-Strauss (Tristes Tropiques, 1955)
-
Just a quick one; How many CPeople are using F# these days, and if so what for? Like many others, I found it very interesting when it first came out, but never really found a compelling application for it, and there don't seem to be many F# jobs around so...
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
I use F# for everything I can without getting in trouble. (I'm supposed to be using C#.) It has many features that make common programming operations easier, but that are not available in many mainstream languages (including C#), for example: - Automatic type elision (C# has this with var keyword, but in F# it's somewhat more powerful and can identify function types, etc) - Discriminated union types (i.e. a value that can be either THIS or THAT, but not both)
type GameResult =
| Winner of playerName: string
| Stalemate- Record types - easy copy-and-update syntax and automatic structural comparison
let youngBiff = { Name = "Biff Tannen"; Age = 18 }
let oldBiff = { youngBiff with Age = 73 }
youngBiff = oldBiff // falseIt's also great for scripting. You can easily run and test individual code lines, functions, etc. in F# interactive. It is definitely multi-paradigm -- it's "functional first", but I also prefer writing OO and imperative code in F# because of features such as the ones mentioned above. I wish F# would supplant C# (or at least gain parity) as the premier .NET language. I don't think there's anything C# does better (except this). But alas, it seems like we're more likely to see C# slowly turn into F# with curly brackets, semicolons, and superfluous type definitions.