Results 1 to 12 of 12

Thread: Functional programming (specifically Microsoft F#)

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,945

    Functional programming (specifically Microsoft F#)

    Hi,

    I 've been experimenting with functional programming, Microsoft F# to be specific.

    After several hours of trying I finally succeeded in making a small application called "FTextBin" that does more than demonstrate a F# function.

    It extracts "human-readable" strings from binary files much like the Linux/Unix strings command. (I wrote something similar in vb6 and vb.net, search the forum for "TextBin".)

    To use it:
    1. Load and compile it with Microsoft Visual Studio.
    2. Start a command line based shell. (Cmd.exe/Power Shell.)
    3. Run the executable with the binary file to be searched as a command line argument.
    4. It should now dump a list of strings to the standard output.

    If an exception occurs during run-time, it will simply display: "Error: "exception message".

    Normally, I would post something like this in the code bank, but I don't think there's one for F#.

    Any way, who else here has experimented and/or has experience with functional programming?
    Last edited by Peter Swinkels; Mar 8th, 2017 at 02:32 PM. Reason: Code now fully written in a functional style.

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width