Reflections of a Mindless Individual

A journal (usually) about .NET, Graphics, and other... things...
7 comments
5 entries
Advertisement
YellPika
October 26, 2012
I'm Alive! (Or, The Game of Life in F#)
Mirrored from my blog.

Things have been pretty busy lately. Over the summer, I got my first job working as a programmer. A little over a month ago, I began attending university (first year). While the experiences thus far have been excellent on both counts, there have been a couple unfortunate downs…
2,139 views
YellPika
August 07, 2011
Emulating the Command Prompt in C# (Part 2)
Mirrored from my blog.

Last post I demonstrated how to make a simple command prompt using a basic Console project. This time I'm going to show how to embed one in a window.

I'll admit it, getting this to work was not particularly easy. I tried a number of different methods, from redirecting the outpu…
3,586 views
YellPika
August 07, 2011
Emulating the Command Prompt in C#
Mirrored from my blog.

The school I go to places ridiculous restrictions on the computers. Right clicks aside, one thing I wish above all things they hadn't disabled was the command prompt. Ironically, the computers also have support for a number of programming languages. A friend of mine managed to…
5,496 views
YellPika
July 15, 2011
Automatic Casting in IL
While developing spectral, I discovered something peculiar.

Consider this sample pseudo C#/IL:

public static T Sqrt(T value)
{
ldarg.0
conv.r8
call double System.Math.Sqrt(double)
ret
}

You'd expect some sort of error, right? The return type is T, but the returned value is a double.
Turns out it runs fin…
1,204 views
YellPika
July 11, 2011
Generic Arithmetic in .NET
Hrm... first post. This actually contains content from my blog, but I felt like writing it again, differently.
[hr]
It's a problem that's been tackled a hundred, billion times. My personal favourites are this and this. The first, however, I felt required too much code, and the second was too slow (di…
1,496 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
10 Followers
15 Entries
11 Followers
johnhattan
Programmer
1,277 Entries
48 Followers
ApochPiQ
Generalist
628 Entries
44 Followers
dgreen02
Generalist
338 Entries
56 Followers
Advertisement