What simple, non-trivial, usable code have you created in F?

I like to use it whenever I have the need for parser support (nowadays you might call it DSL) and whenever I implement symbol-processing algorithms The latest productive code I've written in F# concerns filters (used to filter incomming messages to a logging service). I've got a couple of basic filters (that processes the subject, etc. ) and higher-order logic filters that combine other filters with AND/OR/NOT operators. The implementation simplifies such "expressions" by converting them to CNF, collecting by type and using special rules (like a a.

I like to use it whenever I have the need for parser support (nowadays you might call it DSL) and whenever I implement symbol-processing algorithms. The latest productive code I've written in F# concerns filters (used to filter incomming messages to a logging service). I've got a couple of basic filters (that processes the subject, etc.) and higher-order logic filters that combine other filters with AND/OR/NOT operators.

The implementation simplifies such "expressions" by converting them to CNF, collecting by type and using special rules (like a a I guess the hole thing has in F# as many lines of code I would have needed with C# to write just the simplification ;).

I like this idea, it can really show the advantages of F# – erikkallen May 5 '09 at 16:52.

Here is a great session from PDC -- he does a fairly non-trivial example application.

Thanks for the link, this is a really great and entertaining presentation. Impressive! – 0xA3 Apr 29 '09 at 19:29.

There are a lot of blogs with fun code samples; start at fsharp.net and follow the various community blogs and samples to dig up a bit of content.

I know it's not a direct answer, but my advice: port some library from Haskell. You'll get some great, guaranteed functional code to read and write. It'll force you into a different mindset.

Examples: FParsec and FsCheck. Lots of candidates at Hacakge. Alternatively work through the Real World Haskell book and try to write some of the examples in F#.

Finally, check out codeplex and friends for things tagged with F#.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions