40
I Use This!
Low Activity

News

Analyzed 34 minutes ago. based on code collected about 2 hours ago.
Posted almost 16 years ago by Jb Evain
As I was writing in my last entry, announcing the most awesome Cecil.Decompiler library, I took my last week off to host a CodeCamp event at my parents place in the quiet place of Ardèche, France. I had the pleasure to host, by order of ... [More] arrival, Romain Verdier Patrice Lamarche Vincent Bourdon Robert Pickering Mathieu Szablowski Sébastien Lebreton While I was working on the core of the decompiler, I paired with Romain to work on improving our pattern matching story, to refine a basic AST to something more evolved. We still clearly need to do some work here, as we’re not completely satisfied with what we came with. Robert with his experience of F# and pattern matching then helped Romain. Patrice worked on a NUnit addin which allow us to write tests that are executed for both optimized and non optimized code. He then joined Vincent to work on the Visual Basic language support. Vincent also wrote a ColoredConsoleFormatter, which adds some color to my tests in the console routines. Robert started a Windows.Forms front tend in F# a while ago, but we decided to switch to C#, to lower the entry barrier for contributions. The inimitable Sébastien took the responsibility to write the front-end for the next millennium. I’ll force him to blog on it ASAP. Mathieu took the pictures. He sadly was busy working on a presentation he had to do for a client next week. On the next monday, Vincent told me something like: wow it’s quite depressing, I barely had a single laugh today, while we were laughing every five minutes during the last few days. So we maybe weren’t the most productive crowd of week-end hackers, but at least we had tons of fun. I guess that if I had a lesson to take from the event, it would have been to prepare it a little bit more, and have more fine grained tasks, but I also loved the organic way it evolved. Thanks guys for the week-end, hopefully we’ll manage to organize more of those CodeCamp. [Less]
Posted almost 16 years ago by Jb Evain
I know I’m quite late to present what I’ve been working on during the last Hack-Week we had at Novell, but better late than never, right? Cecil.Decompiler is a library which relies on Cecil, takes one of its method, and give you back an object ... [More] graph representing the decompiled body of the method, an AST, depending on the language you target. It also provides you ways to pretty print this AST at your convenience. It takes its roots in Cecil and is actually a refactoring of the Cecil.FlowAnalysis library that folks at db4o contributed to the Mono project. During the last Hack-Week, I started refactoring Cecil.FlowAnalysis, and since then, I’ve been working pretty seldom on it. It was last month that I decided to give it a kick, and even took a week of vacations to organize a CodeCamp with friends to give it a boost and have fun altogether. The next blog post will be the occasion to describe the last week, and to thank my friends for their help. Let me first warn you. It’s still very young, and doesn’t support a lot of constructions. On the other hand, it can already do pretty neat stuff, and its architecture makes it easy to use and improve, or add new languages. The mandatory picture of a little program using the decompiler to decompile itself: Don’t pay attention to the code as it’s full of debug code. Basically only the last two lines are interesting. The code can be pulled from SVN: http://anonsvn.mono-project.com/source/trunk/cecil/decompiler I guess this will trigger a few interesting questions, so I cooked a little list of questions I already had, and answers I provided. Q: What it is usable for? A: It can be very useful for tools that perform static analysis on the assembly. For instance, Gendarme could use it to detect more complex patterns in your code. Q: Why would you work on such a project while there’s obviously a better known tool that seems to do the same (and which have been working for a long time)? A: Cecil.Decompiler is Open Source, and licensed under the very liberal MIT/X11. Also it’s a library, which makes it easy to use from your own IDE, tool, or whatever project you can think of. Q: But then what’s a good library without a good GUI? A: I’ll write more on that later, but my good friend Sébastien, author of the fantastic Reflexil project, started a Windows Forms GUI on top of it. And from what I understand, he plans to write the core of his tool using in platform agnostic fashion, so that plugins for his GUI could be re-used by a Gtk# GUI for instance. Q: Why don’t you push a binary distribution for now? A: The project is still very new, and we’re changing it a lot. So if someone is interested in having a look at it, he should rather directly pull the sources from SVN regularly. Q: Should I start filing bugs ? A: It’s not worth it from now, we’re pretty much aware of what’s missing and failing. [Less]
Posted almost 16 years ago by Jb Evain
Posted about 16 years ago by Jb Evain
Posted about 16 years ago by Jb Evain
Alright, I surrender.
Posted about 16 years ago by Jb Evain
Posted about 16 years ago by Jb Evain
Mono’s 2.0 grand release has finally arrived.
Posted about 16 years ago by Jb Evain
Posted about 16 years ago by Jb Evain
Posted about 16 years ago by Jb Evain
A week ago, I was writing about the ability to use Mono’s System.Core to run C# 3 and LINQ applications on .net 2. A few months ago, I was writing about the new LINQ provider that friends at db4o released. This LINQ provider uses LINQ ... [More] expression trees to optimize LINQ queries, turning them into db4o’s native query language. Today I’m going to write about a cute new hack from our friends at db4o. If the 3.5 version of the Compact Framework comes with a System.Core, and a LINQ to objects implementation, it doesn’t contain the namespace System.Linq.Expressions, which is used by all optimized LINQ providers. What those fine folks did, was simply to take Mono’s implementation of this namespace. There was one issue with that approach. Expression Trees can be compiled at runtime, and that uses System.Reflection.Emit, that the Compact Framework doesn’t have. A nice thing is that folks at Mainsoft contributed to Mono’s System.Core an expression interpreter, which allows you to use the full LINQ expression trees without using System.Reflection.Emit. They sent me the patches they have for the expression interpreter to make it pass the full test suite we have, so I’ll integrate it shortly. And voilà, just by using Mono’s implementation of System.Core, and by hacking a little in it, to make it compile on the Compact Framework, they’ve been able to produce a new assembly, System.Linq.Expressions.dll. You just have to reference it in your Compact Framework project, and it will let you use LINQ expression trees, which allows you to write optimized LINQ providers for the Compact Framework. Of course, this is completely open-source and licensed under the MIT/X11. For now, you can find the code in db4o’s repository, but I’ll backport the changes they did to the LINQ expression interpreter, so that people that want to use it can use our code base directly. Congrats to you guys for making the finest choice in the third party code you ship! [Less]