bummer. the reason I found LinFu was that I want to create a
lightweight linear genetic programming api with it. Ignoring cool-
sounding terms like genetic programming, I basically wanted to load a
list of MethodInfo objects from all the dlls referenced in some IOC
container, and then use random selection to combine those methods with
parameters of the correct types, and simply execute all the statements
from start to finish linearly, thus the linear part.
I was seriously hoepful that DynamicObject would shorten the path to
this. The idea is that the methods to be combined are largely already
written by users, I am trying to find good ways to call them and pass
in the results to the next expression down the line.
Are there any features of LinFu that would be useful in constructing
such a system? I wrote something barebones using dynamic code
generation but it is a huge pain, I don't want to focus on
implementing the meta-programming part, I just want to do the
productive part.
On Mar 3, 4:31 pm, Philip Laureano <
philip.laure...@gmail.com> wrote:
> Hi Kaveh,
>
> I'll do my best to answer your questions. Here we go:
>
> 1. AFAIK, VB9 does support late binding with the Option Strict option turned
> off, so it does allow you to do duck typing on a per-method basis rather
> than adapt to an entire interface type at once.
>
> 2. Once the DLR is officially released, LinFu will use the DLR to do its
> late-bound calls instead of using reflection. Right now, LinFu does allow
> you to override its own late-binding routines, but for now, I'll spare you
> the gory details of how it can be done. :)
>
> 3. It sounds like you need to use the DynamicObject.LooksLike<T> method to
> analyze whether or not a particular type matches the structure of a
> particular interface. Right now, LinFu v2.0 has the ability to analyze
> whether or not a particular method meets a particular structure, but I have
> yet to extend it so that you can take two types and check if they are
> structurally compatible. I'll tag that as a feature for the next release.
>
> On a separate note, if you're really interested in doing command line
> parsing, I have a separate project located
> here<
http://code.google.com/p/tahogen/svn/tahogen/trunk%20that>that
> has a library called NDescent that you can use to parse your command
> line arguments and do something meaningful with the input, and that might be
> just what you're looking for...
>
> On Wed, Mar 4, 2009 at 3:34 AM, kaveh_shahbazian <
kaveh.shahbaz...@gmail.com