- Recent
- Popular
- Tags (2)
- Subscribers (5)
- Printf and Formatting Debug Output in F#December 29 2008
-
The F# library provides a variety of functions (based on the printf functions found in OCaml) that produce formatted text.
printf outputs formatted text to the console using the stdout stream. printfn outputs formatted text suffixed with a new-line character to the console using the stdout stream. eprintf outputs formatted text to the console using the stderr stream. eprintfn outputs formatted text suffixed with a new-line character to the console using the stderr stream. sprintf returns formatted text as a string. bprintf appends formatted text to a System.Text.StringBuilder. fprintf writes formatted text to a System.IO.TextWriter. fprintfn writes formatted text suffixed with a new-line character to a System.IO.TextWriter. twprintf write - Cameo AppearanceDecember 18 2008
-
It’s that time of year again. CodeMash time.
When I first moved to the Seattle area, I was concerned that I wouldn’t be able to come back to Ohio for this year’s CodeMash. Of all of the conferences that I’ve attended over the years, CodeMash has been among the most rewarding, and I really didn’t want to miss this one. Fortunately, the stars have aligned, and my family’s holiday vacation is bringing me back to the Midwest just in time to join in on all the fun.
This year’s speaker list is just insane. With names like Bill Wagner, Richard Campbell, Steve Smith, Mads Torgersen and David Laribee, I’m expecting to have a very full and satisfied brain. But CodeMash is about more than just the sessions; it’s also about the pure geek nirvana of hanging out with a group of people who are just
- YAPES: Problem Seven, Part 1September 17 2008
-
If there’s one mathematical curiosity that appears more often than any other in the Project Euler problems, it’s prime numbers. To be fair, we've dealt with primes before, but problem seven is the first that requires a prime number generator as part of its solution.
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 10001st prime number?I must admit that I’ve been riffing on this problem for quite a while now. There are so many variations to prime number generation that I’ve had difficulty choosing one with the right balance of elegance and efficiency. Because I’ll be reusing my generator for future problems, I must be certain that it’s fast enough. However, as always my primary goal is to produce the most beautiful solution that I can.
Spoiler alert! I'm revealing the problem solution early.
primes |> Seq.nth 10000Trivial, right? Of course, the challenge of this problem is in declaring the magic behind primes. We have a couple of options available to us, but since there’s a great deal that can be learned from
- F#TW!September 1 2008
-
NOTE: I have shamefully stolen the title of this post from the custom T-shirt sported by Amanda Laucher at Tech Ed Developer 2008. The cleverness is all hers.
I’m a bit late to the blog posting party, but the F# Team shipped the F# September 2008 CTP on Friday. Kudos to Don, Luke, Chris, Brian, Jomo and the gang! Note that this isn’t yet another research release1, but an honest-to-goodness preview of F# as a fully-supported .NET language. In addition to the CTP release, the F# Developer Center is now open for business!
The CTP is jam-packed with hotness including…
- I'm Alive!August 1 2008
-

After two full months with no new posts, I’m finally coming up for air. The past two months have been some of the busiest of my life. Below are a few of the things I’ve been doing.
- Relocating to the Seattle area. At the ALT.NET Open Spaces, Seattle, John Lam warned me not to underestimate the stress of relocation. I did my best to heed his warning, but the challenges of moving a family 2,000 miles away from friends and familiarity are many. The initial months cramped in a small, temporary apartment were brutal. However, I’m happy to report that I’m writing this from our new home, surrounded by boxes yet to be unpacked. Now, if only our house back in Toledo, Ohio would sell…
- Starting a new job at Microsoft. Getting used to the rapid pace at Microsoft takes a lot of effort. In fact, new hires generally aren’t expected to be really productive until after the first six months. Though I have to admit, I really like it. It’s exciting to be working shoulder to shoulder with so many people who are passionate about creating the best developer tools that they can.
