Luca presenting F# at PDC 2008

Next Thursday at 1.45pm I will present "An introduction to Microsoft F#" at PDC 2008. If you are there, please stop by or drop by the lounge area to chat.

There are a bunch of other great sessions from my team. They are all good (I swear I tried to format John’s session correctly, but failed).

  • TL16: The Future of C#
  • Speaker: Anders Hejlsberg
  • Mon 10/27 | 1:45 PM-3:00 PM | Petree Hall CD
  • Repeated: Wed 10/29 | 3:00 PM-4:15 PM | 502A
  • TL10: Deep Dive: Dynamic Languages in .NET
  • Speaker: Jim Hugunin
  • Mon 10/27 | 3:30PM | 502A
  • TL11: An Introduction to Microsoft F#
  • Speaker: Luca Bolognese
  • Thu 10/30 | 1:45 PM-3:00 PM | 502A
  • TL12: Future Directions for Microsoft Visual Basic
  • Speaker: Paul Vick
  • Tue 10/28 | 5:15 PM-6:30 PM | 406A
  • TL54: Natural Interop with Silverlight and Office
  • Alex Turner
  • Tue 10/28 | 12:45 PM-1:30 PM | 404A
  • TL57: A Panel on the Future of Programming Languages
  • G. Bracha, D.Crockford, A. Hejlsberg, E. Meijer, W.Schulte, J. Siek
  • Wed 10/29 | 10:30 AM-11:45 AM | 403AB
    • TL44 IronRuby: The Right Language for the Right Job
      • l Speaker: John Lam
      • l Mon 10/27, 5:15PM, 515B

Downloading stock prices in F# – Part VI – Code posted

Other parts:

An unnamed friend told me that I should stop posting small snippets of code and instead post entire solutions on CodeGallery. I did it for this one and here is the link.

Here is what’s in the zip file:

  • BackTestF – main library to download stock prices

    • Common.fs – common things used in the rest of the project (i.e. data modeling and common funcs)

    • html.fs – functions to scrap html tables, rows and cells

    • loader.fs – this is where the main async downloading algorithms are implemented

    • persistence.fs – async saving and loading of stock prices to files

    • algorithms.fs – async calculations of compound yearly returns given tickers and dates

    • dotNetWrapper.fs – gives a .NET friendly interface to the whole library so that you can use it from C#/VB.NET

  • Tests – too few testcases running on xUnit (you need to download xUnit separately to run them

  • ReturnCalculator – simple console application to show usage of the library

  • Bob – rough winforms UI application that uses the library. An unnamed friend (Jonathan) promised me that he was going to create a UI for my little library. My requirements were very simple: “I want the best UI app of this century, one that fully takes advantage of the async nature of my code”. Bob doesn’t fully satisfy my requirements yet :)

The code in persistence.fs, algorithms.fs and especially dotnetwrapper.fs is pretty rough and uninteresting. This is why I don’t blog about it. I reserve the right to do it if I get around to clean it up.