jaredpar's WebLog

Code, rants and ramblings of a programmer.
Posts
  • jaredpar's WebLog

    ISynchronizeInvoke ... now

    • 1 Comments
    ISynchronizeInvoke is an interface which allows you to execute a delegate synchronously or asynchronously. The implementer of the interface can control how the delegate is executed. In particular the implementer controls on which thread the delegate is...
  • jaredpar's WebLog

    Mixing SEH and C++ Exceptions

    • 1 Comments
    Recently I had a half day adventure trying to catch a SafeIntException in code I was writing. The particular function involved a bit of math with user controlled values. Writing a bunch of IfFailGo's with several TryAdd style API's was getting tiresome...
  • jaredpar's WebLog

    CLR Memory Model

    • 2 Comments
    Internally and externally I see a lot of questions about the .Net Memory Model. I think a lot of the confusion comes from the specs. Mainly that there are really two of them. The first is the ECMA CLI Memory Model (Partition 1, Section 12). This standard...
  • jaredpar's WebLog

    Active Objects and Futures

    • 5 Comments
    Herb Sutter gave one of my favorite and inspiring presentations.  It is called "The Free Lunch is Over".  The original article can be found here .  My first encounter though came from his PDC presentation and highly recommend...
  • jaredpar's WebLog

    Tuples Part 1

    • 6 Comments
    A tuple in computer science can be described as a set of name/value pairs. In some cases it can be described as simply a set of values that are accessible via an index [1]. Previously I discussed how to create a Tuple inside of PowerShell . This series...
  • jaredpar's WebLog

    Tuples Part 8: Finishing up

    • 2 Comments
    There are only a few missing features from our tuple implementation.  Mainly FxCop compliance, debugging support and test case code.  The actual functional work is complete.  The one issue with FxCop compliance is the chosen names. ...
  • jaredpar's WebLog

    Tuples Part 7: Mutable Tuples

    • 1 Comments
    Part 6 left us with comparable tuples.  At this point, the Tuple class is functionally complete.  There will be a little more done with the debugability and overall fit into larger projects.  But otherwise it is sound.  Now the focus...
  • jaredpar's WebLog

    Tuples Part 5: Equality

    • 2 Comments
    Part 4 left us with a reusable, abstract and inference friendly Tuple class.  The next step is to be able to test for Tuple equality.  For the Tuple implementation, two tuples will be defined as equal if all of their members are equal. ...
  • jaredpar's WebLog

    Tuples Part 3: Type Inference Friendly Constructor

    • 1 Comments
    Last time we were left with a constructor that required us to explicitly specify generic parameters. This is not always easy or possible. We'll now alter the script to generate a constructor which utilizes type inference to create a Tuple. In addition...
  • jaredpar's WebLog

    Tuples Part 2: Basic Structure

    • 3 Comments
    Part 1 of the series outlined the basic structure of the tuple. This entry will produce a PowerShell script that will generate N tuple classes containing 1-N name value pairs. The first step is to get a few script variables defined. All of the names used...
  • jaredpar's WebLog

    Tuples Part 6: Comparing

    • 3 Comments
    Part 5 produced equality tests for Tuples. This section will add comparison support through the IComparable<T> interface. Implementing comparable is very similar to adding equality support. Once again there is a generic class available to make all...
  • jaredpar's WebLog

    Tuples Part 4: Interface

    • 1 Comments
    Now we have a decent tuple generation script which produces a very usable set of tuple classes. After awhile I ended up getting stuck because the tuples are not flexible enough. It's not possible to use a 2 pair tuple where a 1 pair is expected even though...
  • jaredpar's WebLog

    A smarter Select-StringRecurse

    • 1 Comments
    Previously I blogged about a recursive select-string function. Recently I've extended it a bit. I found the function to be very useful but when I encountered problems searching large directories that contained binary files. Namely searching them usually...
Page 1 of 1 (13 items)

January, 2008