Sign in
jaredpar's WebLog
Code, rants and ramblings of a programmer.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
API Design
C#
C++
Closures
Debugging
DotNet
F#
Futures
Generics
Gotcha
Immutable
Lambda
LINQ
Misc
Orcas
Patterns
PInvoke
PowerShell
Rant
Threading
Tuple
Type Inference
VB
Visual Studio
VsVim
Archive
Archives
February 2013
(1)
August 2012
(1)
May 2012
(1)
July 2011
(1)
March 2011
(3)
January 2011
(3)
November 2010
(2)
October 2010
(2)
September 2010
(1)
July 2010
(5)
June 2010
(8)
May 2010
(2)
April 2010
(1)
March 2010
(2)
February 2010
(5)
January 2010
(2)
December 2009
(6)
November 2009
(3)
October 2009
(1)
September 2009
(1)
August 2009
(1)
June 2009
(2)
May 2009
(1)
April 2009
(3)
March 2009
(2)
February 2009
(3)
January 2009
(10)
December 2008
(6)
November 2008
(7)
October 2008
(20)
September 2008
(8)
August 2008
(11)
July 2008
(5)
June 2008
(13)
May 2008
(9)
April 2008
(16)
March 2008
(7)
February 2008
(11)
January 2008
(13)
December 2007
(6)
November 2007
(9)
October 2007
(10)
September 2007
(5)
August 2007
(8)
July 2007
(2)
June 2007
(2)
May 2007
(3)
April 2007
(3)
February 2007
(3)
January 2007
(8)
December 2006
(3)
November 2006
(2)
October 2006
(4)
September 2006
(1)
August 2006
(1)
July 2006
(2)
April 2006
(7)
November 2005
(3)
October 2005
(1)
September 2005
(1)
August 2005
(2)
July 2005
(8)
June 2005
(1)
May 2005
(7)
April 2005
(4)
March 2005
(4)
February 2005
(2)
January 2005
(2)
November 2004
(1)
September 2004
(3)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
jaredpar's WebLog
ISynchronizeInvoke ... now
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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 5: Equality
Posted
over 5 years ago
by
JaredPar MSFT
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 7: Mutable Tuples
Posted
over 5 years ago
by
JaredPar MSFT
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 3: Type Inference Friendly Constructor
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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
Posted
over 5 years ago
by
JaredPar MSFT
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)