Yet another Hello World

Posted by Jb Evain Wed, 30 Jan 2008 20:51:00 GMT

Statue

using System;
using System.Linq.Expressions;

class HelloWorldOfTrees {

    static void Main ()
    {
        var param = Expression.Parameter (typeof (string), "p");

        var cwl = Expression.Lambda<Action<string>> (
            Expression.Call (
                typeof (Console).GetMethod (
                    "WriteLine", new [] { typeof (string) }),
                param), param).Compile ();

        cwl ("Hello World !");
    }
}
[mono] /tmp @ gmcs test.cs 
[mono] /tmp @ mono test.exe 
Hello World !

Well heh, you can’t do really much more than that, but at least, that is working (sort of).

Mono presentation at Microsoft Techdays 2

Posted by Jb Evain Sun, 27 Jan 2008 12:51:00 GMT

Grand Palais

For the second year in a row, I’ll be presenting a session about Mono and Moonlight during the Microsoft Techdays that take place in Paris, on Feb 11. We’ll have the pleasure to have with me my oh so famous boss Miguel, to introduce my session, and answer a few questions.

Here’s the direct link to the session sum up: PrĂ©sentation des projets Mono et Moonlight .

Update: You can download the slides of the presentation.

We're back baby 1

Posted by Jb Evain Sun, 13 Jan 2008 15:45:00 GMT

Concorde

After having undergone a month of technical difficulties, this blog is back online. Sorry for the turbulences. More technical content to follow. Happy new year!

A handful of useful scripts

Posted by Jb Evain Thu, 11 Oct 2007 09:16:00 GMT

I've just uploaded a zip file containing a handful of scripts I use in my every day routine.
  • cleol: Clean the end of lines of the files passed as arguments. Accept ruby wildcards (such as * or **/*). That will replace the windows style line endings by unix style line endings, but will also remove useless white-spaces.
  • clprop: Clean the svn properties of the files passed as arguments. Accept ruby wildcards (such as * or **/*). That will remove the svn:executable properties, and set the svn:eol-style to native to the files.
  • svnci: My own script that prompt me my favorite lightweight editor to edit my ChangeLog entries.
  • monoport: I've detailed this one in this blog entry. I recently added to it the possibility to get a monoport entry printed to stdout. Typically, it allows me to apply patches directly from monoport:
    monoport -g:4512 | patch -p0
    
    Requires the cute library hpricot.

Older posts: 1 2 3 4 5 6 ... 33