Function Programming - About Function Languages - mostly OCAML

free web hosting
Free Web Hosting > Computers & Tech > Programming > Programming General > Misc. Programming Languages

Function Programming - About Function Languages - mostly OCAML

wykurz
two years ago i have discoverred function programming. i'd like to shortly discuss it here and, maby, encourage some of you to try your skills writing functions.

when programming imperatively, programmers often think of solving the problem in language categories. here i'd use an array, here i could use a pointer etc. funtion programming does not give programmer such tools. even more - thers is no such thing as variable.

function programming was invented by mathematicians. it's very simmilar to mathematical modelling of universe. solving a problem - writing an algorithm, is to define some absrtact form from simple (mathematical) objects, like numbers, sets, functions.

to show you some great abilities function programming gives the programmer it's good to think about everything as a function. even integers are functions! (please refer to Church numbers). now you can mix everything with everything and what you get might be also anything. function operating on funtions giving in result a function is common.

in my opinion, what's most cool when programming functions, is that code you create is clear and easy to understand. it makes debugging very simple. although solving a problem with functions might take a bit more time than imperatively. but you don't spend time on debugging. For instance it took me just an hour to write from a scrach AVL trees and test them. In C or C++ it would take at least twice that time.

if i interested you just a bit please refer to:
http://caml.inria.fr/
http://homepages.inf.ed.ac.uk/wadler/guide.html

 

 

 


Reply

mdchurchill
Functional programming is indeed very nice. Also, it's now becoming a lot more useful with the introduction of F#, my current language of choice, that allows one to do functional programming (basically ocaml) in the .NET framework allowing you to link it up with everything else (including, for example, P#, a prolog interpreter for the .NET framework, allowing you do to predicate logic inference from a functional programming language :-)

Also, if you'd like to experiment to see what functional programming's about in a fun environment, I refer you to http://web.comlab.ox.ac.uk/geomlab/

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. ocaml web framework - 145.59 hr back. (1)
  2. function programming - 145.76 hr back. (1)
Similar Topics

Keywords : function, programming, function, languages, ocaml

  1. If Programming Languages Were Cars...
    (4)
  2. How To Learn A Programming Language
    overview of the best way to go about learning a programming language. (0)
    How to Learn a Programming Language 1. Choose a programming language. Pythonand Turtle
    Graphics are good starter languages. they are very straightforward and easy to learn. Also, there is
    a module called Pygame available that makes handling windows a breeze. Another programming language
    for a beginner to try is Kids Programming Language, or KPL's new version, called Phrogram.
    Don't be put off by KPL's name! Once you learn the basic concepts of programming, you
    can then take those ideas into any programming language you choose. Be aware however....
  3. Need Help With Correct Programming
    (2)
    O.K. here's the deal. I can't go to school to learn programming like I want, because I have
    outstanding student loans that I can't pay on. So, since I'm here, I figure I'll ask
    some questions. With regards to the basics, HTML, should I be using HTML when creating my site or
    the XHTML? I'm still a little unsure of the exact differences, but once I know were to go, I
    will get the correct books and website information. And what about CSS? Is there newer or older
    versions? I have one book already which teaches some about HTML and CSS, but I hav....
  4. Programming As A Career
    (7)
    Yeah! You saw it wright. "Programming vs Career" not "Programming and Career". Let me elaborate.
    I am 19 and have been programming for few years now. My language wallet is comprised of GW Basic
    (that I learnt in my school), C++ (in Higher Secondary) and the VB 6.0 IDE (perhaps the easiest of
    them all). Currently I am prepairing for the Joint Entrance Exams, here in India, for Computer
    Science and Engineering. Actually, I am not quite into studying my course material and my career is
    in disarray, because of my immense passion for Computers, be it Programming, Gaming....
  5. Where To Start Learning Programming
    Please advise me on which language to (16)
    I am a beginer to programming i wish to know from which language should i start programming C, C++
    Is there any problem if i jump directly to vb or like please respond where can i find good beginer
    tutorials Thank you....
  6. HP RPN: HP Calculator Programming Language
    (0)
    I like it because it's a fairly easy language to do just about anything on my non-graphic
    calculator. The biggest problem I find with it is a lack of memory. I figured out a very simple
    way to program TicTacToe into it with some decent AI, but I was only able to put about 3/4 of the
    program into the calculator. *sigh* maybe I'll have to steamline the code some more, or figure
    out some other games I can make that don't require graphics... --YB....
  7. About Filemaker
    programming (1)
    hello to everything I want to communicate to them to all the programmers that do not have much
    experience or has laziness to write I cosay there is a programming system which I am called to
    filemaker pro 7 that allows the programmer to be able to generate modules distributables very easy
    driving....
  8. Texas Instruments Calculator Programming
    (15)
    TI-89!....

    1. Looking for function, programming, function, languages, ocaml

Searching Video's for function, programming, function, languages, ocaml
advertisement




Function Programming - About Function Languages - mostly OCAML



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE