[IronPython] Understanding the code

Dino Viehland dinov at exchange.microsoft.com
Fri Feb 10 17:46:00 CET 2006


The mailing list would be a great place for this - simply because it'd be nice if we could archive it rather than losing the data.

The reason for Ops (and other classes being generated) is usually because they'd be a bunch of copy & paste code that would have to be maintained by hand.  Instead we use Python scripts to generate this code so it's just all around easier to maintain, make updates and get everything right, not miss a spot, etc...  Our functions are also like this (where we have fast paths for 0-5 arguments that are all generated) and there's lots of other spots.  We cleaned this up a lot recently so generated code ends up in partial classes (that way it's easy to not accidentally modify this) and we've made sure they're all up to date as well.




________________________________

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jeremy Stell-Smith
Sent: Friday, February 10, 2006 7:18 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Understanding the code

no, I have the source, I'm going through it, but a combination of going through the source, and using reflector to change the IL back to csharp seems to be working, if slow.

On 2/9/06, J. Merrill <jvm_cop at spamcop.net> wrote:
You know that the source code from IronPython is available, don't you?  So you're reflecting on the assemblies that IP generates?  That's perhaps not a fruitful use of your time, as they're planning on (major) changes to support making callable-from-other-.Net-languages DLLs / libraries.

At 11:06 PM 2/9/2006, Jeremy Stell-Smith wrote
>I'm currently spiking out an "IronRuby".  And I've been going to IronPython to see how y'all do things.  It's been helpful, but there's not a lot of documentation and it's taking some time to figure things out (though reflector has been real helpful :) ).
>
>I was wondering if anyone had an IM they'd be willing to volunteer for small stupid questions, like "why is half of Ops generated?" or "what's the difference between a function1 and a function2?"
>
>Thanks,
>
>Jeremy Stell-Smith
>XP Coach/Developer
>ThoughtWorks


J. Merrill / Analytical Software Corp

_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060210/eed06b4f/attachment.html>


More information about the Ironpython-users mailing list