# Luca Bolognese's WebLog

This blog will be frozen on 2/19/2010. New one started at http://lucabolognese.wordpress.com/
• #### Excel Financial functions 2.0 released

I simply fixed a bug related to the Rate function (wrong name for parameters). It is here: http://code.msdn.microsoft.com/FinancialFunctions
• #### Simulating INumeric with dynamic in C# 4.0

When I wrote my Excel financial library I agonized over the decision of which numeric type to use to represent money. Logic would push me toward decimal , but common usage among financial library writers would push me toward double . I ended up picking...
• #### New release of Financial Functions .NET uploaded on MSDN Code Gallery

I fixed the bug described in this thread and cleaned up the root finding algorithm. I’m still unhappy about it, but I have no time to code a better one right now (i.e. Ridder, Brent). I also added changes.txt and todo.txt to keep track of things. Changes...
• #### Bayesian inference in F# – Part IIb – Finding Maia underlying attitude

Other parts: Part I – Background Part II – A simple example – modeling Maia The previous post ended on this note. let MaiaJointProb attitude action = match attitude with | Happy -> happyActions |> List.assoc action | UnHappy ->...
• #### Financial Functions for .NET released !

Today I released the following library on CodeGallery. It is the result of three months of coding during my paternity leave in Italy. You can get it from here . What is it? This is a .NET library that provides the full set of financial functions from...
• #### Bayesian inference in F# - Part IIa - A simple example - modeling Maia

Other parts: Part I - Background Part IIb - Finding Maia underlying attitude Let's start with a simple example: inferring the underlying attitude of a small baby by observing her actions. Let's call this particular small baby Maia. People...
• #### Expression tree serialization code posted on Code Gallery

Luke and I worked on this last year for one week doing pair programming. It is a good sample of how you can serialize LINQ expression trees to xml. The sample includes these components: An Expression Tree serialization API : A general purpose XML serialization...
• #### Bayesian inference in F# - Part I - Background

Other posts: Part IIa - A simple example - modeling Maia Part IIb - Finding Maia underlying attitude My interest in Bayesian inference comes from my dissatisfaction with 'classical' statistics. Whenever I want to know something, for...
• #### My F# PDC presentation is online (+ ppt and demo application)

You can watch it here . Also I attached the demo application I built on stage.
• #### 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...

Other parts: Part I - Data modeling Part II - Html scraping Part III - Async loader for prices and divs Part IV - Async loader for splits Part V - Adjusting historical data An unnamed friend told me that I should stop posting small...

Other parts: Part I - Data modeling Part II - Html scraping Part III - Async loader for prices and divs Part IV - Async loader for splits Part VI - Code posted Here is the problem. When you download prices/divs/splits from Yahoo you...

Other parts: Part I - Data modeling Part II - Html scraping Part III - Async loader for prices and divs Part V - Adjusting historical data Part VI - Code posted Downloading splits is a messy affair. The problem is that Yahoo doesn...

Other parts: Part I - Data modeling Part II - Html scraping Part IV - Async loader for splits Part V - Adjusting historical data Part VI - Code posted It is now time to load our data. There is a bit of uninteresting code to start...

Other parts: Part I - Data modeling Part III - Async loader for prices and divs Part IV - Async loader for splits Part V - Adjusting historical data Part VI - Code posted Getting stock prices and dividends is relatively easy given...

Other parts: Part II - Html scraping Part III - Async loader for prices and divs Part IV - Async loader for splits Part V - Adjusting historical data Part VI - Code posted Today we shipped the September CTP of F# !!!! Evviva !! Read...
• #### A C# library to write functional code - Part V - The Match operator

Other posts in the series: Part I - Background Part II - Tuples Part III - Records Part IV - Type Unions Part V - The Match operator This is my last post of this series. It is about the match operator. To the untrained eyes this operator...
• #### A C# library to write functional code - Part IV - Type Unions

Other posts in the series: Part I - Background Part II - Tuples Part III - Records Part IV - Type Unions Part V - The Match operator I'm sorry for my prolonged absence in the middle of this series of posts. I'm on a long paternity leave...
• #### A C# library to write functional code - Part III - Records

Other posts in the series: Part I - Background Part II - Tuples Part III - Records Part IV - Type Unions Part V - The Match operator Now that we know what Tuples are, we can start talking about Record, as they use a derivative of Tuples...
• #### A C# library to write functional code - Part II - Tuples

Other posts in the series: Part I - Background Part II - Tuples Part III - Records Part IV - Type Unions Part V - The Match operator Tuples are a way for you not to name things. In Object Oriented languages you got to name everything...
• #### A C# library to write functional code - Part I - Background

Other posts in the series: Part I - Background Part II - Tuples Part III - Records Part IV - Type Unions Part V - The Match operator In December (slow time in msft) I decided to understand what functional programming is all about. When...
• #### "LINQ to SQL Overview" video

This is my presentation from TechEd Barcelona: The link has been fixed. It should work now. Let me know if it doesn't. http://www.microsoft.com/emea/msdn/spotlight/sessionh.aspx?videoid=716 . The European locale brings out my Italian accent ... On...