Zeno's Notes

...

Posts tagged dotnet

4 notes

Mono 2.6.7 crash competition

When I compile the following code with Mono 2.6.7, the compiler crashes.

class V<T>
{
	T[] d;
	T this [int i]
	{
		get { return d[0]; }
	}
}

class C
{
	void M()
	{
		V<int> m;
		var x = m[0];
	}
}

It is a short piece of code (101 non-whitespace characters) that still can illustrate the problem.

But is it minimal (ignoring whitespace)? A little bit of playing around gave me this:

class V<T>
{
	T[] d;
	T this [int i]
	{
		get { return d[0]; }
	}
}

class C
{
	void M()
	{
		V<int> m;
		x = m[0];
	}
}

Just 98 characters! Can you come up with something smaller that triggers this bug? Something smaller that triggers another bug?

Filed under mono csharp golf dotnet cli crash compiler

6 notes

Today I learned …

… that I should prefer GtkSharp Treeview to NodeView. The bit of simplification that NodeView brings does not justify the loss in flexibility.

I am currently using Gtk# to develop a small GUI demo for the MyMediaLite recommender system library, which will hopefully in a presentable state until CeBIT next week.

Filed under dotnet csharp mono gtk gtksharp mymedialite cebit demo

1 note

Porting MyMediaLite to Java: First Steps

One of the most frequently heard complaints about our MyMediaLite recommender system library is that it is not written in Java. It seems that many recommender systems researchers and practitioners use Java as their preferred platform.

So I was thinking about a Java port of MyMediaLite for a while now, and I was very happy to find a student willing to do the port as a semester project.

Andreas (the student in charge of the Java port) has ported the first rating prediction engine to Java, and it delivers the same results as the C# implementation ;-).

It is not yet as fast as the C# version of MyMediaLite (C# handles scenarios with many objects much nicer than Java …), but we will work on that, too.

Great job so far, Andreas!

Filed under recsys mymedialite java port csharp opensource dotnet freesoftware mono

0 notes

MyMediaLite 0.08

Today we released MyMediaLite 0.08.

For those who don’t know, MyMediaLite is a lightweight and flexible recommender system library.

Good news for Ruby programmers: It is now possible to use MyMediaLite from IronRuby.

You can subscribe to new releases at mloss.org: https://mloss.org/software/subscribe/282 and at freshmeat.net: http://freshmeat.net/projects/mymedialite.

Filed under recsys mono csharp dotnet ruby python ironruby ironpython perl opensource freesoftware