Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Wondering about F#

Wondering about F#

Scheduled Pinned Locked Moved The Lounge
csharpcomgraphicsgame-devregex
25 Posts 17 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Super Lloyd
    wrote on last edited by
    #1

    Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

    My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

    A M P L P 9 Replies Last reply
    0
    • S Super Lloyd

      Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

      My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

      A Offline
      A Offline
      Argonia
      wrote on last edited by
      #2

      I tried it a little bit . F# is Functional Programming Language. Its really powerful tool. It makes you see some things in a different way not the "normal"(iterative) one. You can accomplish some things will a lot less coding than the Iterative Programming Languages. I think that the best programs maybe the ones where you have the two types of programming (the iterative and functional). Some things are really easier in the second kind of langs. Some people think that its even fun.

      S 1 Reply Last reply
      0
      • A Argonia

        I tried it a little bit . F# is Functional Programming Language. Its really powerful tool. It makes you see some things in a different way not the "normal"(iterative) one. You can accomplish some things will a lot less coding than the Iterative Programming Languages. I think that the best programs maybe the ones where you have the two types of programming (the iterative and functional). Some things are really easier in the second kind of langs. Some people think that its even fun.

        S Offline
        S Offline
        Super Lloyd
        wrote on last edited by
        #3

        Mm...; I might give it a go until I feel comfortable with it! :p

        My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

        B A 2 Replies Last reply
        0
        • S Super Lloyd

          Mm...; I might give it a go until I feel comfortable with it! :p

          My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

          B Offline
          B Offline
          Bassam Abdul Baki
          wrote on last edited by
          #4

          Super Lloyd wrote:

          I might give it a go until I feel comfortable with it!

          And once you get comfortable with it you'll stop? ;P

          Web - BM - RSS - Math - LinkedIn

          S 1 Reply Last reply
          0
          • S Super Lloyd

            Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

            My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

            M Offline
            M Offline
            Manfred Rudolf Bihy
            wrote on last edited by
            #5

            When I hear F# all that comes to mind is this: Tim Minchin - F#[^] Cheers! :laugh:

            "I had the right to remain silent, but I didn't have the ability!"

            Ron White, Comedian

            S K 2 Replies Last reply
            0
            • B Bassam Abdul Baki

              Super Lloyd wrote:

              I might give it a go until I feel comfortable with it!

              And once you get comfortable with it you'll stop? ;P

              Web - BM - RSS - Math - LinkedIn

              S Offline
              S Offline
              Super Lloyd
              wrote on last edited by
              #6

              :laugh: Once I feel comfortable with it, I'll use it.. discriminately! ;)

              My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

              1 Reply Last reply
              0
              • M Manfred Rudolf Bihy

                When I hear F# all that comes to mind is this: Tim Minchin - F#[^] Cheers! :laugh:

                "I had the right to remain silent, but I didn't have the ability!"

                Ron White, Comedian

                S Offline
                S Offline
                Super Lloyd
                wrote on last edited by
                #7

                And this is for C#[^]?

                My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                M 1 Reply Last reply
                0
                • S Super Lloyd

                  Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

                  My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  Now if only some regular CP author had written articles on it. Perhaps that person might be known as Marc.

                  I was brought up to respect my elders. I don't respect many people nowadays.
                  CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                  S Sander RosselS 2 Replies Last reply
                  0
                  • S Super Lloyd

                    Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

                    My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    I have used it as parts of projects that were mostly in C#, to do things that would be annoyingly verbose in C# (stuff with trees mostly).

                    S 1 Reply Last reply
                    0
                    • S Super Lloyd

                      Mm...; I might give it a go until I feel comfortable with it! :p

                      My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                      A Offline
                      A Offline
                      Argonia
                      wrote on last edited by
                      #10

                      :) One of the positive things about my learning in the uni was learning the concept of Functional Programing. I can freely say it was really helpful when i needed to work with F# . The language can be fun if you know the basic differences and programing practices in iterative and functional programming. For example you can make almost anything with the functions filter and map to a list, seq and etc.You just need to know how to combine their power :)

                      1 Reply Last reply
                      0
                      • P Pete OHanlon

                        Now if only some regular CP author had written articles on it. Perhaps that person might be known as Marc.

                        I was brought up to respect my elders. I don't respect many people nowadays.
                        CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                        S Offline
                        S Offline
                        Super Lloyd
                        wrote on last edited by
                        #11

                        Excellent, I'll have a look, thanks! :)

                        My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                        1 Reply Last reply
                        0
                        • L Lost User

                          I have used it as parts of projects that were mostly in C#, to do things that would be annoyingly verbose in C# (stuff with trees mostly).

                          S Offline
                          S Offline
                          Super Lloyd
                          wrote on last edited by
                          #12

                          I have this feeling: data data data!...

                          My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                          1 Reply Last reply
                          0
                          • S Super Lloyd

                            Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

                            My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                            P Offline
                            P Offline
                            parths
                            wrote on last edited by
                            #13

                            Have you tried TryFSharp[^]? They have a learning section (needs Silverlight) which takes you through most of the features of F# and a few example domain uses. I think it'd help if you're acquainted with functional programming but it's not necessary.

                            "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

                            S 1 Reply Last reply
                            0
                            • P parths

                              Have you tried TryFSharp[^]? They have a learning section (needs Silverlight) which takes you through most of the features of F# and a few example domain uses. I think it'd help if you're acquainted with functional programming but it's not necessary.

                              "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

                              S Offline
                              S Offline
                              Super Lloyd
                              wrote on last edited by
                              #14

                              Thanks, I discovered the link (it's in the MSDN documentation! :)) I was planing to try it on this weekend / tonight!! ^^

                              My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                              1 Reply Last reply
                              0
                              • P Pete OHanlon

                                Now if only some regular CP author had written articles on it. Perhaps that person might be known as Marc.

                                I was brought up to respect my elders. I don't respect many people nowadays.
                                CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                                Sander RosselS Offline
                                Sander RosselS Offline
                                Sander Rossel
                                wrote on last edited by
                                #15

                                I was about to post that, then read your post :thumbsup: And actually I should be giving that thumbsup to Marc :laugh:

                                It's an OO world.

                                public class Naerling : Lazy<Person>{
                                public void DoWork(){ throw new NotImplementedException(); }
                                }

                                1 Reply Last reply
                                0
                                • S Super Lloyd

                                  And this is for C#[^]?

                                  My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #16

                                  Trumped by B#[^]

                                  I wanna be a eunuchs developer! Pass me a bread knife!

                                  1 Reply Last reply
                                  0
                                  • S Super Lloyd

                                    Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

                                    My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                                    B Offline
                                    B Offline
                                    Bob Calco
                                    wrote on last edited by
                                    #17

                                    F# is an amazing language. It's "impure" in that it is neither Smalltalk ("pure OO") nor Haskell ("pure Functional") but its creators have struck an excellent balance between these two paradigms using OCaml as a basis -- but not the specification -- for the language. There are features in F# that OCaml developers wish they had! When you finally wrap your head around pattern matching, active patterns, quotations and computation expressions, you will not be able to look at mere mortal languages like C# and VB.NET with the same enthusiasm. The F# compiler is one of the smartest in existence and its type inference, tail-call optimization and code generation capabilities are second to none on any platform. F# and Scala are doing the same thing on their respective platforms -- bringing the worlds of OO and functional programming into practical symbiosis. F# kicks Scala's butt really only because the CLR kicks the JVM's butt in two specific areas: The ability to support tail-call optimization (which is critical to making functional programming's reliance on recursion efficient) and the fact the CLR did not have to resort to "type erasure" to support generics ... so, you don't lose any reflective capability over types at all with its seemingly loosey-goosey type syntax. For myself I use F# for nearly all business logic and in the MVVM paradigm for the VM part, almost exclusively. Manipulating collections is a delight in F# and VM is about binding data and actions to the UI. This is a non-visual exercise and F# really makes it nice. Using it for GUI programming is an exercise in self abuse because the tooling support just isn't there, but that's OK, what it does do is so outrageously cool and useful in real programming that it doesn't need to do everything. F# justifies the CLR's support for multiple languages in ways C#, VB.NET and other semantically similar languages cannot.

                                    S R 2 Replies Last reply
                                    0
                                    • S Super Lloyd

                                      Those F# evangelists are sure very vocal! I keep hearing about it... Mmm... I tried it a while ago and I was not really convinced (except for the async "let!" but we have it in C# now!! ^^) So I wonder, is anyone using F# here? How does it complement you .NET project? (or do you do pure F#?! ;P) edit a pattern (from my googling) is emerging! no one write user control in F#! but F# seems very good at manipulating data! and writing DSL

                                      My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                                      T Offline
                                      T Offline
                                      Thornik
                                      wrote on last edited by
                                      #18

                                      F# is a hype. "Fire and motion" if you read enough Spolsky. For a normal human with normal brains F# means nothing - we DON'T think in "functional style".

                                      C 1 Reply Last reply
                                      0
                                      • B Bob Calco

                                        F# is an amazing language. It's "impure" in that it is neither Smalltalk ("pure OO") nor Haskell ("pure Functional") but its creators have struck an excellent balance between these two paradigms using OCaml as a basis -- but not the specification -- for the language. There are features in F# that OCaml developers wish they had! When you finally wrap your head around pattern matching, active patterns, quotations and computation expressions, you will not be able to look at mere mortal languages like C# and VB.NET with the same enthusiasm. The F# compiler is one of the smartest in existence and its type inference, tail-call optimization and code generation capabilities are second to none on any platform. F# and Scala are doing the same thing on their respective platforms -- bringing the worlds of OO and functional programming into practical symbiosis. F# kicks Scala's butt really only because the CLR kicks the JVM's butt in two specific areas: The ability to support tail-call optimization (which is critical to making functional programming's reliance on recursion efficient) and the fact the CLR did not have to resort to "type erasure" to support generics ... so, you don't lose any reflective capability over types at all with its seemingly loosey-goosey type syntax. For myself I use F# for nearly all business logic and in the MVVM paradigm for the VM part, almost exclusively. Manipulating collections is a delight in F# and VM is about binding data and actions to the UI. This is a non-visual exercise and F# really makes it nice. Using it for GUI programming is an exercise in self abuse because the tooling support just isn't there, but that's OK, what it does do is so outrageously cool and useful in real programming that it doesn't need to do everything. F# justifies the CLR's support for multiple languages in ways C#, VB.NET and other semantically similar languages cannot.

                                        S Offline
                                        S Offline
                                        Super Lloyd
                                        wrote on last edited by
                                        #19

                                        you kind of confirm (very nicely) my growing (yet uninformed) bias, that F# is good at manipulating data... Will start to look at it this weekend! ^^

                                        My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                                        I 1 Reply Last reply
                                        0
                                        • B Bob Calco

                                          F# is an amazing language. It's "impure" in that it is neither Smalltalk ("pure OO") nor Haskell ("pure Functional") but its creators have struck an excellent balance between these two paradigms using OCaml as a basis -- but not the specification -- for the language. There are features in F# that OCaml developers wish they had! When you finally wrap your head around pattern matching, active patterns, quotations and computation expressions, you will not be able to look at mere mortal languages like C# and VB.NET with the same enthusiasm. The F# compiler is one of the smartest in existence and its type inference, tail-call optimization and code generation capabilities are second to none on any platform. F# and Scala are doing the same thing on their respective platforms -- bringing the worlds of OO and functional programming into practical symbiosis. F# kicks Scala's butt really only because the CLR kicks the JVM's butt in two specific areas: The ability to support tail-call optimization (which is critical to making functional programming's reliance on recursion efficient) and the fact the CLR did not have to resort to "type erasure" to support generics ... so, you don't lose any reflective capability over types at all with its seemingly loosey-goosey type syntax. For myself I use F# for nearly all business logic and in the MVVM paradigm for the VM part, almost exclusively. Manipulating collections is a delight in F# and VM is about binding data and actions to the UI. This is a non-visual exercise and F# really makes it nice. Using it for GUI programming is an exercise in self abuse because the tooling support just isn't there, but that's OK, what it does do is so outrageously cool and useful in real programming that it doesn't need to do everything. F# justifies the CLR's support for multiple languages in ways C#, VB.NET and other semantically similar languages cannot.

                                          R Offline
                                          R Offline
                                          Reese Currie
                                          wrote on last edited by
                                          #20

                                          Gave this a 5--great answer, Bob. I like how you fit F# into your process. I've tried and liked F#, but working more with the JVM and very rarely with .NET, I do more Scala. (.NET folks are welcome to send flowers of sympathy.) Scala is a lot nicer to work with than Java. I wanted to note there's a way to "simulate" tail recursion in Scala using "@tailrec" but simulation's not exactly the same thing; @tailrec is a bit of compile-time smoke and mirrors. At least it means you can write tail recursive code without worrying about blowing your call stack, and the performance "isn't that bad" on things I've written that rely on tail recursion. I think F# long-term will be more successful because Microsoft is interested in people using it. Oracle doesn't really encourage you to give Scala a try, and most of the writing on Scala is so academic in nature it really takes endurance to wade through it all to the point of doing something practical with it.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups