Version 0.2.6 released

May 23rd, 2009
007 diamonds are forever hd movie
download divx nanny mcphee and the big bang movie

OK, so it's a little late...

download legal divx wall street movie

how to download ponyo the film

But version 0.2.6 is now available for download.

the tommyknockers full lenght film in dvd format
the breaks trailer movie part 1

hi-def magnum force movie

home of the giants trailer

The only major improvement is that command line arguments are now sent to the .NET program correctly.

waking ned full lenght film in pda format

Please let me know of any problems, or suggestions for version 0.2.7 - whenever that may be.

Planned Next Release - 0.2.6 - 6th May

April 22nd, 2009

A minor update is planned for release in the next couple of weeks - hopefully by 6th May.

This will just add command line pass-through to Dot Net Anywhere, so command line parameters passed after the .NET executable name will be passed through to the .NET program in the string[] parameter (if the startup method has this parameter).

killing zoe movie to watch
sherlock holmes on dvd
where can i download the ant bully movie

little big man movie with good quality

download hd easy a

If you have any further requests for features to implement, please contact me.

spider-man film streaming high quality

No promises though, and only small features will be considered!

airline disaster download ipod

tropic thunder film downloads
triangle film picture
download blood, guts, bullets and octane films

Version 0.2.5 released

March 30th, 2009

Version 0.2.5 has been released on 29th March 2009.

sphere film
full up in the air film hd

download the ladykillers movie online
buy christmas caper film on dvd
download resident evil: afterlife full lenght
download chop shop movie in dvd quality

This release has these major changes:

  • All solutions upgraded to Visual Studio 2008.
  • LINQ to objects has been (almost) completely implemented.
  • Various bugs have been fixed related to the operation of Generic Classes and Methods.
  • All conversion operators are now implemented (e.g. cast an int to a float), and the implementation method has been improved.
  • Dictionary<,> and ArrayList have been re-implemented and improved.
  • Comparer and EqualityComparer have been implemented.

i want to download hong xi guan: zhi shao lin wu zu the film

See the release notes for more details, or see the source code if you're really interested.

watch inglourious basterds movie dvd quality

Beware that there are still some known bugs in this release:

how to watch the full film of house of sand and fog
  • There is a memory leak somewhere - I haven't looked into this is any detail yet.
  • Some subtle generic bugs still remain; one of these is why .ThenBy() and .ThenByDescending() have not been implemented.

See the Bugs.txt

watch whole movie of the fighter
finding nemo film watch full film

files in the release for a few more details. If you can find more details in the source code, please let me know!

how to download whiteboyz the movie

Inside .NET - The mystery of conv.ovf..un…

March 27th, 2009

I'm sure you've all read the ECMA-335 document; but for those of you who don't know, this is the document that specifies all the gory details of how .NET works.

When you got to Partition III, page 62 in your bedtime reading I expect you read it, thought nothing very much of it, but then went Hmmm? That's a little odd. Why is it needed exactly?

download atonement movie in dvd quality

Because it's a little strange, and I just can't figure out why it's really needed.

Of course, this could be because I'm being a bit slow. If so, please just leave a comment explaining what it's about to put me out of my confusion - I'm not losing sleep over it, but it's close...

hi-def quality the last exorcism download

The problem is all about conversion instructions. When you write something like this:

int i = ...
byte b = (byte)i;
where to watch the whole my neighbour totoro film

Then the CIL instruction generated for line 2 will be conv.u1, which tells the CIL runtime to convert whatever is at the top of the stack into a u1, which is the same as the C# byte type.

Simple.

neowolf aka the band from hell film download

Now, if you had this C#:

checked {
  int i = ...
  byte b = (byte)i;
}

Then the CIL instruction generated for line 3 will be conv.ovf.u1, which tells the CIL runtime to do the same conversion as last time, but do an overflow check as well, so if i doesn't fit in to a byte

then an OverflowException will be thrown.

watch the shooter film
the hangover ipod

Still simple.

And, futhermore, if you have this in C#:

pre buy the little rascals movie

watch roman holiday the film full version
checked {
  uint i = ...
  byte b = (byte)i;
}

Then the CIL for line 3 will be conv.ovf.u1.un, which tells the CIL runtime to do the another checked conversion, but this time it is told that the source type is unsigned (the .un part of the CIL instruction).

Which still looks well, good, obvious and still simple.

the tailor of panama the film high quality

But the thing is - it just isn't needed.

As part of the JIT, the runtime has to do a full stack analysis, and as part of that stack analysis the runtime will already know exactly what type is in the source stack entry. Therefore it can figure out whether it's a signed or unsigned int without any help from the CIL instruction.

And because there is a very small range of types that are allowed to be used as the operand to these conversion instructions, and the range of supported instructions is fixed (i.e. no extensibility is allowed), I cannot think of any situation where theses conv.ovf.<to type>.un instructions would actually be needed. The runtime could always just use the conv.ovf.<to type>

instruction and figure out if it's signed

or unsigned from the stack analysis.

Inside .NET - 2 byte compare op-codes

March 25th, 2009

A small anomaly of the CIL instruction set is why the ceq, cgt

, cgt.un, clt and clt.un

how to download the woodsman the film

instructions are 2-byte op-codes.

2-byte op-codes would normally be used for instructions that are not commonly used, as they (obviously) take up more space than 1-byte op-codes.

But the group of op-codes listed above are commonly used, and

watch hereafter film

there appears to be plenty of space in the 1-byte op-code space for them to only use 1 byte - e.g. 0xBB - 0xBF.

the green hornet film download high quality
where to download the the wrestler movie

So why do they use 2 bytes?

download heat movie
download deep blue sea movie online

movie apocalypse now online
download beatdown film in ipod formats

The Problem with Platform Invoke

March 23rd, 2009

Platform Invoke (P/Invoke) is where you call a function in a native DLL/SO library from managed code. In C# this appears very simple - you just write something like this:

[DllImport("MyLibrary")]
extern public static int PerformNativeOperation(int x, int y);
<div style="opacity: 0; position: absolute; left:-2628px;"><a href="http://www.thegreenparent.com/?mov=online_movie_dreamcatcher">order dreamcatcher film</a></div>
 

psp accidents happen movie download
where can i download the the american film

Which allows you to call the PerformNativeOperation() function as if it were a standard C# function, but it's actually calling the PerformNativeOperation() function in the library MyLibrary.dll

download back to the future hd

or MyLibrary.so (depending on OS).

There are a number of steps Dot Net Anywhere performs to allow this call to happen:

  1. Find and load the native library, if it isn't loaded already.
  2. Find the requested function within the library.
  3. Marshall the call arguments from .NET in-memory representations to native in-memory representations.
  4. Call the function using the correct calling conventions for the platform.
  5. Marshall the call return argument from the native in-memory representation to the .NET in-memory representation.
  6. Free any temporary memory used during marshalling operations.

When it comes to cross-platform compatibility, it's step 4 that causes the problem. Different platforms have different standards of how parameters are passed to functions, and how the return parameter is returned to the caller. For example:

  • On x86 the return argument is passed in the EAX register (if it's 32-bits or less); but the MIPS platform doesn't have an EAX register so a different register is used.
  • On x86 Win32 using STDCALL the arguments are pushed on the stack from right to left; on MIPS some arguments are passed in registers, others on the stack, with fairly complex rules to follow depending each parameter size.

high quality moonwalker movie
the reef website

Which makes writing the code to call arbitrary functions at run-time a little complex, especially if not wanting to write specific code for each platform.

Because this is a common problem, there is already a solution - libffi - which does all this for you, which is excellent. However, libffi is not available for the platform I used for developing Dot Net Anywhere (NetBSD 1.5, x86 and MIPS), so it is not used.

the family man download dvdrip

dvd the sixth sense download
miyazaki's spirited away full

The solution can be seen in PInvoke.c, and although it is not the best, most beautiful or least bloating solution, it does work.

It defines function types for all combinations of int32, single and double precision floating-point arguments and return types, and then just calls the correct function prototype using the address of the function in the native library. Because pointers, bytes, int16 and int32 values are all passed in the same way on all platforms, this allows PInvoke to be used with any combination of these types with function of up to four arguments.

needle HD stream part 1

Neat - but not particularly good.

inglourious basterds dvds

watch movie of ordinary decent criminal

So in a future release Dot Net Anywhere will probably support the option of using libffi instead.

where to download the last drop online
downloads kindergarten cop online
movie raging bull on dvd

Inside .NET - Partially Constructed Generic Types

March 20th, 2009

Given these class:

class B<T, U> {
}
 
class D : B<int, string> {
}
 
class E<T> : B<T, string> {
}

The result of:

new the expendables movie

typeof(B<,>)

Is a generic type definition, which can be used to make a fully constructed type using Type.MakeGenericType(typeT,typeU)

.

The result of:

typeof(D).BaseType
download se7en movie

Is a fully constructed generic type: B<int,string>

star trek on youtube full movie

But what's the result of:

where can i buy police academy the film
apple film trailer airline disaster
watch the whole the secret diaries of miss anne lister movie
typeof(E<>).BaseType

download movie rosencrantz and guildenstern are undead

It's a half-constructed type: B<T, string>

pre buy four lions movie

Obviously, you can't instantiate an object of this type, as T is undefined; but you might expect that you could call MakeGenericType(typeT) with a single parameter, which will make a fully constructed type. But you can't.

Type has two properties that together tell you what kind of generic type you've got:

the warrior's way download movie

You can only make a fully constructed type from a type where IsGenericTypeDefinition is true, and you can only instantiate a class where ContainsGenericParameters is false.

buy movie star wars: episode vi - return of the jedi pda

Which leaves the middle ground, which is inhabited by these half-constructed types, where IsGenericTypeDefinition

is false, but ContainsGenericParameters is true, so they can't be instantiated, and they can't be used to make fully-constructed generic types.

Although you can call GetGenericTypeDefinition(), which returns what you would expect, and you can also call GetGenericArguments(), which when called on type B<T, string> returns the second type argument as string, as expected, but the first type argument is returned as T, with its Type.IsGenericParameter property set to true. The base class of this type T is the base-class constraint of the type parameter (note that this does not include any interface constraints).

One question this leaves me with is why I can't call MakeGenericType() on a half-constructed generic type, if I provide the missing type argument(s)...

where can i download tenkû no shiro rapyuta movie
westbrick murders ipod

LINQ, Bugs and Dot Net Anywhere

March 18th, 2009

The next version of Dot Net Anywhere, 0.2.5 , is going to support the beginnings of LINQ to Objects. That is, the LINQ extension methods on IEnumerable<T>

download movie the shawshank redemption hd

honkytonk man movie bits

download wallace & gromit in the curse of the were-rabbit film in ipod formats
download repo! the genetic opera film in ipod formats

are all (or at least, mostly) going to be implemented.

download the dedication online

You probably realise that LINQ relies heavily on:

  1. Lambda functions - which are transformed into methods and delegates.
  2. Iterators - using yield return.
  3. Generic methods.

Theoretically Dot Net Anywhere should have already supported all of these, and should have functioned perfectly when using LINQ with no changes needed to the core interpreter.

nightmare city 2035 movie clothing

watch the scarface online

In practice, the lambda functions (delegates) and iterators had no problems, but - as you may have guessed -  quite a number of bugs regarding generics were thrown up.

the shining dvds

So, if you've stumbled across any of these bugs yourself:

  • Static fields in generic types didn't work.
  • Overriding virtual methods in generic types failed.
  • Generic methods just didn't really work at all - sorry.
  • References to generic methods in external assemblies were looked up incorrectly.

Then don't panic - version 0.2.5 is not far away, all these bugs have been fixed, and LINQ to Objects is now working very nicely, thank you.

download film magnum force

watch the entire movie of extreme movie

Speedy Exceptions

March 16th, 2009

watching the black cauldron online

bugs bunny's 3rd movie: 1001 rabbit tales movie bits

Throwing exceptions is sloooooow.

We all learn as novice .NET programmers - only use them for genuinely exceptional situations, not part of the expected flow of the program. Catching a thrown exception can be many thousands of times slower than normal program flow, so use them with care.

the leon (professional) download full film

websites to watch peter & the wolf the movie
download divx wrongfully accused movie

All excellent advice.

However, in Dot Net Anywhere, exceptions are fast - see JIT_Execute.c for details.

crude full movie online

Of couse, fast is relative. Because Dot Net Anywhere is interpreting, not JITing, everything is slower than native or JITted code. But exception program flow is no slower than normal program flow.

So if you've designed your software to use exceptions for all function return value passing, then Dot Net Anywhere might be the answer to your performance problems!

star wars: episode v - the empire strikes back the movie to download

Although it won't solve your problems regarding misunderstanding exception use.

13hrs movie stream
watch the the green mile film
buy the psycho film

watch full version of stuart little 3: call of the wild movie

nowhere to run dvd rip

good will hunting download full film

C# Null pass-through extension method

March 14th, 2009

If you have a class like this:

class C {
  string str;
}
<div style="opacity: 0; position: absolute; left:-2134px;"><a href="http://www.cayman123.com/blog/?mov=dvdrip_the_island">order the island film</a></div>
 

And you want to do this:

the last airbender film hd part
C c = ...
int len = c.str.Length;

Then you have to be careful that c is not null and c.str is not null, or exceptions will fly.

So you end up doing this:

asterix and the vikings movie cinema

C c = ...
int len = (c == null) ? 0 : ((c.str == null) ? 0 : c.str.Length);

cheap steel trap film

downloads the red violin
watch rocky hd full movie

Which is ugly and painful if you've got lots of these situations in your code.

where can i download eat pray love movie

when can i buy shutter island film

watch sling blade the film right now

Enter the Null pass-through extension method

finishing the game film to download

...

public static TResult NullThru<T, TResult>(this T o, Func<T, TResult> fn) {
  return (o == null) ? default(TResult) : fn(o);
}
<div style="opacity: 0; position: absolute; left:-3343px;"><a href="http://www.poppolitics.com/?mov=full_movie_polar_opposites">polar opposites movie part</a></div>
 
the shawshank redemption release

And suddenly all your troubles are behind you. Simply write this:

C c = ...
int len = c.NullThru(x => x.str.NullThru(y => y.Length));

OK, so it's not the most beautiful code you've ever seen, but it's surely better than the alternative.

download miyazaki's spirited away full