Welcome to MSDN Blogs Sign in | Join | Help

March 2008 - Posts

Single-case Active Patterns vs Function Calls

In response to an earlier post a reader wrote: Sent From: namin Subject: (|EnsurePrefix|) -- why is it an active pattern? __________________________________ Hi Chris, I was reading your blog entry Regular Expressions via Active Patterns and I am puzzled
Posted by ChrSmith | 0 Comments
Filed under: ,

How not to reverse a list

Brian McNamara, the latest addition to our stellar F# dev team, wrote up a great blog post on some pitfalls of F#. Specifically, how if you aren't careful something as simple as reversing the items in a list can take on order O(N^2) time and potentially
Posted by ChrSmith | 0 Comments
Filed under: ,

Project Euler - Problem 24

Project Euler problem 24 in F# Problem 24 is defined as: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabetically,
Posted by ChrSmith | 2 Comments
Filed under: ,

How to debug compiler generated code

James Margetson recently showed me a great tip for debugging compiler generated code. Typically the problem is that using the Visual Studio debugger all you see is the x86 disassembly of the JIT-ed methods, but what you really need is the IL opcodes that
Posted by ChrSmith | 2 Comments
Filed under: ,

Project Euler - Problem 19

I haven't been to Project Euler in a while, but since I'm seeing other F# folks are getting into it, I figured I'd help work to improve the average F# 'genus rating' on the site. (Currently at 11%.) The easiest one I haven't already solved is problem
Posted by ChrSmith | 1 Comments
Filed under:

How not to name types and identifiers

From the 'code which is valid but looks strange and might be removed in the next release of F#, but isn't a big deal anyways' department: Adding managed, generic .Net names as part of the inference proceedure process. #light open System.Collections.Generic
Posted by ChrSmith | 0 Comments
Filed under:
 
Page view tracker