Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: Functional Programming languages - Better?

  1. #21
    Join Date
    Aug 2006
    Location
    60°27'48"N 24°48'18"E
    Beans
    3,458

    Re: Functional Programming languages - Better?

    Quote Originally Posted by Vox754 View Post
    Is it simply a matter of which paradigm we were exposed first?
    Quite probably, and I maybe even likely. This is why I would be very curious to see what a programmer would be like who got exposed to functional programming first

    FP does seem to be a bit challenging and/or mind-blowing for a lot of people who are used to procedurality/imperativeness... it was, for me, back in the day.

    Actually, I think we've seen this before, people confusing "functional" with "procedural".
    Yes, it's quite common, that's why I'm suspecting it.
    LambdaGrok. | #ubuntu-programming on FreeNode

  2. #22
    Join Date
    Feb 2010
    Location
    Paraguay
    Beans
    169
    Distro
    Ubuntu

    Re: Functional Programming languages - Better?

    Quote Originally Posted by CptPicard View Post
    FP does seem to be a bit challenging and/or mind-blowing for a lot of people who are used to procedurality/imperativeness... it was, for me, back in the day.
    Yes, it's quite common, that's why I'm suspecting it.


    For those who don't know the difference:

    http://en.wikipedia.org/wiki/Procedural_programming

    http://en.wikipedia.org/wiki/Functional_programming
    Onward and upwards,
    Kenny Meyer
    Personal Blog | DuckDuckGo | LoCo Paraguay
    Vimacs - META X term <ENTER> vim <ENTER>

  3. #23
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Functional Programming languages - Better?

    Quote Originally Posted by CptPicard View Post
    After Lisping for quite a while and getting used to having automatic tailcall optimization and hence the ability to write CPS, I feel so incredibly tied down to the stack whenever I go back to a language that behaves like C does. It's like a straightjacket knowing that I always will have to just go back up the call stack... once you free your mind of those assumptions your view on writing code changes; but before that "switch" happens, it can really seem a bit weird because the C-mindset is so strong. This is one of the reasons why I would like to teach beginners in C -- C works better as a general case of Lisp, but not the other way around.
    Write good C/C++ and your code will be tailcall optimised.

    http://amitksaha.wordpress.com/2009/...ation-gcc-gdb/
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  4. #24
    Join Date
    Aug 2006
    Location
    Germany
    Beans
    396

    Re: Functional Programming languages - Better?

    Using Haskell and its LLVM Backend you get quite notable Results(tail Call opt.?!)
    Last edited by Shin_Gouki2501; April 16th, 2010 at 10:14 AM.
    the jvm is my home...
    http://clojure.org/
    http://www.scala-lang.org/...and it rocks a lot!

  5. #25
    Join Date
    Oct 2007
    Beans
    20
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Functional Programming languages - Better?

    As for Functional programming, Lisp is more suitable that any other. I quite often see people ignoring Lisp when they speak about functional programming, and speaks about Haskell, ML, etc.
    There is a version of Lisp for parallel computing developed years before called QLisp, which is totally cool.
    There are other languages where one can program in a Functional manner, like in ECMAScript based languages like JavaScript.

  6. #26
    Join Date
    Aug 2006
    Location
    60°27'48"N 24°48'18"E
    Beans
    3,458

    Re: Functional Programming languages - Better?

    Quote Originally Posted by jase21 View Post
    As for Functional programming, Lisp is more suitable that any other. I quite often see people ignoring Lisp when they speak about functional programming, and speaks about Haskell, ML, etc.
    Well, IMO the important point about Lisp that it is the most "multiparadigm" of languages while also having the most cleanly defined core. It certainly has some core functional tools, most importantly the lambda, but Lisp is not "only" a functional language, although you can code in functional style in it.

    Most importantly it's not "pure" which is an either/or proposition. Therefore, Lisp code lacks the useful theoretical guarantees that come from never, ever having side-effects...
    LambdaGrok. | #ubuntu-programming on FreeNode

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •