Re: [Ironruby-core] requiring .NET assemblies

2008-02-18 Thread Curt Hagenlocher
So, the Customer class was generated by SubSonic and is contained in DataAccess.Subsonic.dll? Do you get the same results by leaving out the include and saying DataAccess::SubSonic::Customer.new instead? On Feb 18, 2008 12:30 PM, Ivan Porto Carrero <[EMAIL PROTECTED]> wrote: > Hi, > > I ran int

Re: [Ironruby-core] requiring .NET assemblies

2008-02-18 Thread Curt Hagenlocher
a332' or one of its dependencies" The problem went away when I copied the SubSonic DLLs into the same directory as the executable. On Feb 18, 2008 6:19 PM, Ivan Porto Carrero <[EMAIL PROTECTED]> wrote: > Yep > > > On Feb 19, 2008 1:37 PM, Curt Hagenlocher <[EMAIL P

Re: [Ironruby-core] External libraries implementation status update

2008-03-11 Thread Curt Hagenlocher
On 3/6/08, Wayne Kelly <[EMAIL PROTECTED]> wrote: > > strscan.so: > - any progress Curt? I was under the impression that I had finished this, but I'm thousands of miles away from being able to check. Have you tried to use StringScanner? -- Curt Hagenloc

Re: [Ironruby-core] External libraries implementation status update

2008-03-17 Thread Curt Hagenlocher
alize that this external module was already implemented as a > Builtin. Yeah, there's no mechanism yet for loading it from an external module. Or at least, there wasn't when it was implemented. -- Curt Hagenlocher [EMAIL PROTECTED] ___ Iro

Re: [Ironruby-core] Submitting Patches?

2008-03-21 Thread Curt Hagenlocher
At some point in the not-too-distant past, this process was started by signing a contributor agreement. This could be done by sending an email to [EMAIL PROTECTED] and requesting to be added as a contributor to the IronRuby project. On Fri, Mar 21, 2008 at 10:32 AM, Jayme <[EMAIL PROTECTED]> wrot

Re: [Ironruby-core] Regarding IronRuby... How true it sounds from this blog

2008-04-28 Thread Curt Hagenlocher
? No one has been able to post working code on > creating an IronPython engine in another app domain on the IronPython > mailing list. Actually, I seem to recall that this works fine in IronPython -- provided that you're running under FullTrust. (Which, as you pointed out, needs t

Re: [Ironruby-core] Opening up our tree to external committers

2008-04-30 Thread Curt Hagenlocher
One advantage of having "one dll per library" is that you can make decisions about which DLL to load based solely on the library name. Once you have multiple libraries per DLL, you need a more complicated probing or mapping scheme to know which assembly to load. On Wed, Apr 30, 2008 at 6:38 PM, T

Re: [Ironruby-core] Opening up our tree to external committers

2008-04-30 Thread Curt Hagenlocher
On Wed, Apr 30, 2008 at 8:36 PM, M. David Peterson <[EMAIL PROTECTED]> wrote: > On Wed, 30 Apr 2008 21:14:23 -0600, Curt Hagenlocher <[EMAIL PROTECTED]> > wrote: > > One advantage of having "one dll per library" is that you can make > > decisions abo

Re: [Ironruby-core] Opening up our tree to external committers

2008-04-30 Thread Curt Hagenlocher
On Wed, Apr 30, 2008 at 8:43 PM, Tomas Matousek < [EMAIL PROTECTED]> wrote: > The only issue that needs to be solved is how to efficiently discover > libraries embedded in .NET assemblies. > It's certainly the *primary* issue. :) -- Curt Hagenloc

Re: [Ironruby-core] (no subject)

2008-05-11 Thread Curt Hagenlocher
MutableString.ToSymbol()? On Sun, May 11, 2008 at 5:34 AM, Peter Bacon Darwin < [EMAIL PROTECTED]> wrote: > It would be useful to have a helper function to clean up this kind of > code. Or is there one and I can't find it? > > > > RubyUtils.GetConstant(context, rubyClass, > SymbolTable.StringT

Re: [Ironruby-core] (no subject)

2008-05-11 Thread Curt Hagenlocher
d. > > > > Both end up calling Content.GetStringSlice(...) anyway but the second one > seems to go through slightly fewer method calls. My feeling is the former > is more intuitive. > > > > Pete > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTE

Re: [Ironruby-core] Try IronRuby in your browser

2008-05-12 Thread Curt Hagenlocher
You might want to change your blog entry to say "OSI-approved Open Source license" instead of "GPL-based license" so that you don't give our lawyers a collective heart attack ;). On Mon, May 12, 2008 at 9:46 AM, Oleg Tkachenko <[EMAIL PROTECTED]> wrote: > Hello! > > I put together some simple ver

Re: [Ironruby-core] activerecord status with r110

2008-05-16 Thread Curt Hagenlocher
Do you have any feeling for how these programs are using thread.critical=? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Blackwell Sent: Friday, May 16, 2008 12:03 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] activerecord status with

[Ironruby-core] Code Review: RubySHA

2008-05-21 Thread Curt Hagenlocher
tfpt review /shelveset:RubySHA;REDMOND\curth Enough of Digest::SHA.* to pass current blockages -- Curt Hagenlocher [EMAIL PROTECTED] RubySHA.diff Description: RubySHA.diff ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http

[Ironruby-core] Code Review: RubyArrayPack

2008-05-21 Thread Curt Hagenlocher
tfpt review /shelveset:RubyArrayPack;REDMOND\curth Significant subset of Array.pack and String.unpack -- Curt Hagenlocher [EMAIL PROTECTED] RubyArrayPack.diff Description: RubyArrayPack.diff ___ Ironruby-core mailing list Ironruby-core@rubyforge.org

Re: [Ironruby-core] Code Review: RubyArrayPack

2008-05-21 Thread Curt Hagenlocher
Is the "unchecked" just a formality under C#? It's not currently throwing an exception. IronRuby: >>> [1000].pack('c') => "\350" Matz: irb(main):012:0> [1000].pack('c') => "\350" -Original Message- From:

[Ironruby-core] Code Review: ItsAboutTime

2008-05-22 Thread Curt Hagenlocher
tfpt review /shelveset:ItsAboutTime;REDMOND\curth As part of bringing up ActiveRecord, implemented Time.strftime and fixed various issues with Time.local and Time.gm -- Curt Hagenlocher [EMAIL PROTECTED] ItsAboutTime.diff Description: ItsAboutTime.diff

[Ironruby-core] Code Review: RubyGlob

2008-05-27 Thread Curt Hagenlocher
tfpt review "/shelveset:RubyGlob;REDMOND\curth" Complete(?) implementation of Dir.glob. Passes all the pertinent specs. -- Curt Hagenlocher [EMAIL PROTECTED] RubyGlob.diff Description: RubyGlob.diff ___ Ironruby-core mailing list Iro

[Ironruby-core] Code Review: RubyMarshalFix2

2008-05-27 Thread Curt Hagenlocher
tfpt review "/shelveset:RubyMarshalFix2;REDMOND\curth" Fixed Marshal.load to work correctly with user-defined types not scoped to the global namespace -- Curt Hagenlocher [EMAIL PROTECTED] RubyMarshalFix2.diff Description: RubyMarsha

[Ironruby-core] Code Review: FastFixes1

2008-05-28 Thread Curt Hagenlocher
tfpt review "/shelveset:FastFixes1;REDMOND\curth" Fixed critical error in Dir.glob Added File.split Added stub for BigDecimal class -- Curt Hagenlocher [EMAIL PROTECTED] FastFixes1.diff Description: FastFixes1.diff ___ Ironruby-core ma

[Ironruby-core] Code Review: YamlChanges1

2008-05-28 Thread Curt Hagenlocher
tfpt review "/shelveset:YamlChanges1;REDMOND\curth" Make YAML use RubyArray, Hash and MutableString instead of CLR native types. -- Curt Hagenlocher [EMAIL PROTECTED] YamlChanges1.diff Description: YamlChanges1.diff ___ Ironruby-core ma

Re: [Ironruby-core] Code Review: YamlChanges1

2008-05-28 Thread Curt Hagenlocher
Sorry... I have no idea why that diff turned up empty, but I don't seem to be able to generate a correct one right now :(. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Wednesday, May 28, 2008 5:32 PM To: IronRuby External

Re: [Ironruby-core] Code Review: FastFixes1

2008-05-29 Thread Curt Hagenlocher
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Lam (IRONRUBY) Sent: Wednesday,28 May 28, 2008 17:04 To: Curt Hagenlocher; IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Code Review: FastFixes1 Missin

Re: [Ironruby-core] Build target for YAML project

2008-06-01 Thread Curt Hagenlocher
The reason for this is that our internal directory tree doesn't quite match the tree that gets published to RubyForge. The process for pushing out the sources includes the application of some transforms to file layout and to certain files. This file was apparently missed, probably because it was

Re: [Ironruby-core] IronRuby got /.-ed

2008-06-03 Thread Curt Hagenlocher
e. We *are* talking about Slashdot here, aren't we? -- Curt Hagenlocher [EMAIL PROTECTED] ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Trying to duplicate Phil Haack's example

2008-06-08 Thread Curt Hagenlocher
What happens if you try to require an empty .rb file in the startup directory? Same error, or success? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Akins Sent: Sunday, June 08, 2008 9:39 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core]

Re: [Ironruby-core] Trying to duplicate Phil Haack's example

2008-06-08 Thread Curt Hagenlocher
I don't think he would have gotten that far if it were. Ruby.Runtime.RubyContext is in IronRuby.dll, which has to be loaded in order to do anything at all. Offhand, I'd say that versioning is the most likely source of the problem, perhaps related to changes in file names. Make sure that there

Re: [Ironruby-core] Trying to duplicate Phil Haack's example

2008-06-08 Thread Curt Hagenlocher
There should be a "stringio.rb" in the Libs directory. It has a single line which reads: load_assembly 'IronRuby.Libraries', 'Ruby.StandardLibrary.StringIO' Either "Libs" needs to be in your Ruby path, or you'll need to copy this .rb file (and probably the other .rb files in Libs) someplace where

Re: [Ironruby-core] Dynamic Lanugages in Silverlight 2 Beta 2

2008-06-10 Thread Curt Hagenlocher
That’s assuming that it’s a reference to this: http://www.codeplex.com/dynamicscriptcontrol. Let me know if I’m mistaken. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jimmy Schementi Sent: Tuesday, June 10, 2008 3:34 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-co

Re: [Ironruby-core] can't require any of the libs

2008-06-11 Thread Curt Hagenlocher
We don’t do anything auto-magic as far as the path is concerned. I specify the include directories on the command-line by running the now-notorious “ir.cmd”. My version of the file looks like this: %MERLIN_ROOT%\bin\debug\ir.exe -I %MERLIN_ROOT%\..\External\Languages\Ruby\ruby-1.8.6\lib\ruby\

Re: [Ironruby-core] SVN r114 is out

2008-06-12 Thread Curt Hagenlocher
What’s changed since the last release is that we’re now exposing protected members on CLR types as protected members on the Ruby class that’s generated to represent the type. And in doing so, we’re apparently hiding the (public) no-arg method on the base class. And what’s more, it looks like t

Re: [Ironruby-core] SVN r114 is out

2008-06-12 Thread Curt Hagenlocher
:29 PM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: What's changed since the last release is that we're now exposing protected members on CLR types as protected members on the Ruby class that's generated to represent the type. And in doing

Re: [Ironruby-core] Signing problem on Vista 64

2008-06-16 Thread Curt Hagenlocher
To elaborate on this a little, the 64-bit versions of Windows basically have two copies of the registry -- one for 32-bit programs and one for 64-bit programs. If you've run "sn.exe -Vr" from the "Visual Studio 2008 Command Prompt", you will end up running the 32-bit version of the program whic

Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives

2008-06-18 Thread Curt Hagenlocher
languages, lots of business logic in a dynamic > language, and a platform layer underneath built with a language like C# that > is closely aligned with the VM. See also Steve Yegge's recent (and quite lengthy) blog entry at http://steve-yegge.blogspot.com/2008/06/rhinos-and-

Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives

2008-06-18 Thread Curt Hagenlocher
ou'll find that -- at least in the short term -- most programmers don't have a choice about the language they use; it's dictated to them by their employer. -- Curt Hagenlocher [EMAIL PROTECTED] ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Evil Fun with IronRuby

2008-06-18 Thread Curt Hagenlocher
We wouldn't be very true to Ruby if we didn't allow you to "monkey patch" CLR classes and interfaces. And really, this isn't all that different than using extension methods in C#. All classes in IronRuby have a "RubyClass" object associated with them, even if the class is being imported from t

Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives

2008-06-18 Thread Curt Hagenlocher
the code in "initialize" could well overwrite the OS for all I know. Any class that depends on method_missing (in Ruby) or __getattr__ (in Python) for method implementation is going to be problematic for Intellisense. And Rails' ActiveRecord is one of th

Re: [Ironruby-core] Wondering how many will go with C#, after IronRuby arrives

2008-06-18 Thread Curt Hagenlocher
We think that there's more than enough value on the .NET platform to retain developers. Quite frankly, if you're looking to write Ruby or Python code that doesn't take advantage of .NET features (such as cross-language interoperability, Windows Forms, WPF or Silverlight) then you're probably be

Re: [Ironruby-core] YAML

2008-06-19 Thread Curt Hagenlocher
YAML support currently does what it needs to do in order to run Rails. Beyond that, all bets are off ☺. Let the flow of bug reports commence! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Porto Carrero Sent: Thursday, June 19, 2008 3:33 PM To: ironruby-core@rubyforge.org

Re: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work?

2008-06-19 Thread Curt Hagenlocher
Yes, there's additional C# code involved which uses the DLR hosting interfaces. For the sample that was shown at TechEd, code in Global.asax.cs executed "routes.rb". This set up handlers to point to Ruby-based controllers. A C# RubyController class served both to delegate the request to the Ru

Re: [Ironruby-core] say['love'] = "*love*" fails

2008-06-21 Thread Curt Hagenlocher
Is this from ir.exe or from your hosting code? It looks like you didn't start entirely over. You need to make every reference global and not just subsequent ones. That is, $say = "I love Ruby" puts $say $say['love'] = "*LOVE*" ...etc. Also, it looks like we happen to be missing that particular

Re: [Ironruby-core] say['love'] = "*love*" fails

2008-06-21 Thread Curt Hagenlocher
`Initialize##11' This gives a different error that before - it is just because []= is missing? I'll take a look at RubyForge and fill a bug if required later this afternoon. Thanks Ben On Sat, Jun 21, 2008 at 2:22 PM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > Is this from

Re: [Ironruby-core] Asp.Net MVC with IronRuby - How does it work?

2008-06-21 Thread Curt Hagenlocher
hosting interface is the same? Once CTP 4 is out, I will be able to find out for myself, but if you could say if I was on the right line that would be good :) Thanks Ben On Fri, Jun 20, 2008 at 1:23 AM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > Yes, there's additional C#

Re: [Ironruby-core] say['love'] = "*love*" fails

2008-06-21 Thread Curt Hagenlocher
7;] = "*love*" fails Ahh!! Thank you! Out of interest, hHow far is the language from being 'done'? Or is that an unknown? Last I heard John mentioned 70% of the specs passing? On Sat, Jun 21, 2008 at 2:31 PM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > Yes, you ar

Re: [Ironruby-core] Improved error handling if IronRuby.Libraries is not referenced

2008-06-23 Thread Curt Hagenlocher
Sounds like something that belongs in the bug tracker... :). Someone seems to run into this issue every few weeks for Python as well, so there's definitely a compelling story for making a change. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Hall S

Re: [Ironruby-core] How to get to the CLR type

2008-06-24 Thread Curt Hagenlocher
XAML is definitely something that’s on our radar as “want improved support”, but we don’t have any specific plans yet. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Porto Carrero Sent: Saturday, June 14, 2008 3:38 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-co

Re: [Ironruby-core] Code Review: YamlParse

2008-06-26 Thread Curt Hagenlocher
...and all those other overloads are value types, so they can't be null. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Lam (IRONRUBY) Sent: Thursday, June 26, 2008 1:27 PM To: Oleg Tkachenko; Tomas Matousek; IronRuby External Code Reviewers Cc: iro

Re: [Ironruby-core] MutableString.each

2008-06-29 Thread Curt Hagenlocher
RuntimeException is defined in IronRuby.Libraries\Builtins\Exceptions.cs. Is MRI really that inconsistent about which type of error is thrown when you try to modify a frozen object? (Not that this would surprise me :(.) If so, it might be cleaner if the call to FreezeObject could record or othe

Re: [Ironruby-core] HOME env variable required

2008-06-29 Thread Curt Hagenlocher
I would bet that some of the specs themselves assume that HOME is defined as well. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Lam (IRONRUBY) Sent: Sunday, June 29, 2008 10:22 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] HOME env variable required Than

Re: [Ironruby-core] Code Review: MutableStringCenter

2008-06-29 Thread Curt Hagenlocher
I know that at some point, we were always defining multiple overloads in cases like this. For center, I would have probably included both the old signature and the new one: Center(CodeContext, MutableString, int len, [Optional]MutableString padding); Center(CodeContext, MutableString, object le

Re: [Ironruby-core] Code Review: StringElementReferenceAndSlice

2008-07-01 Thread Curt Hagenlocher
Looks good. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Remy Sent: Montag, 30. Juni 2008 18:31 To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: [Ironruby-core] Code Review: StringElementReferenceAndSlice tfpt review "

Re: [Ironruby-core] rand() needs a seed?

2008-07-06 Thread Curt Hagenlocher
By default, the parameterless constructor of the System.Random class (which is what we're using) uses the system time as the initial seed. Every time you ask for a random number, we create a new Random object, and in a tight loop like yours, they'll probably all get the same seed. We should pr

Re: [Ironruby-core] rand() needs a seed?

2008-07-06 Thread Curt Hagenlocher
I put a lock() on each call as well, because I believe the Next-methods aren't thread safe. Works for me. /Johan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: den 6 juli 2008 17:16 To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] rand() needs

Re: [Ironruby-core] Memory Leak with Certain Script Exceptions

2008-07-06 Thread Curt Hagenlocher
Are you continuously evaluating new bits of Ruby code? Is each execution in its own ScriptScope? In its own ScriptRuntime? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Clauson Sent: Saturday, July 05, 2008 11:45 PM To: ironruby-core@rubyforge.

Re: [Ironruby-core] Code Review: MoreYamlStuff

2008-07-07 Thread Curt Hagenlocher
Looks good. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oleg Tkachenko Sent: Monday, July 07, 2008 5:14 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: [Ironruby-core] Code Review: MoreYamlStuff tfpt review "/shelveset

Re: [Ironruby-core] Code Review: StringGsubEach

2008-07-07 Thread Curt Hagenlocher
Looks good. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Remy Sent: Monday, July 07, 2008 5:29 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: [Ironruby-core] Code Review: StringGsubEach tfpt review "/shelveset:Str

Re: [Ironruby-core] Duplicate definition of Action & other classes

2008-07-08 Thread Curt Hagenlocher
There's going to be some merging of classes as parts of the DLR move into the next version of the CLR. The alternative to the pain you're feeling would be for us to branch the DLR, which we're not ready to do yet. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On B

Re: [Ironruby-core] Duplicate definition of Action & other classes

2008-07-08 Thread Curt Hagenlocher
& other classes Microsoft is already starting the process of merging the DLR into the CLR? Is the DLR considered "done"? On Tue, Jul 8, 2008 at 10:34 AM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: There's going to be some merging of classes a

Re: [Ironruby-core] Code Review: StringGsubEach

2008-07-09 Thread Curt Hagenlocher
ngOps.RequireNotFrozenAndIncrVersion and MutableStringOps.RequireNoVersionChange be methods on MutableString? Inspecting/updating the version outside of MutableString seems to break the encapsulation pretty badly. Thanks, Shri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behal

Re: [Ironruby-core] Code Review: StringGsubEach

2008-07-09 Thread Curt Hagenlocher
D] On Behalf Of Curt Hagenlocher Sent: Wednesday, July 09, 2008 6:10 AM To: ironruby-core@rubyforge.org; IronRuby External Code Reviewers Subject: Re: [Ironruby-core] Code Review: StringGsubEach Our current threading story is to ensure that shared state is protected, but we haven't really done

Re: [Ironruby-core] Code Review: StringGsubEach

2008-07-09 Thread Curt Hagenlocher
ecks should be on MutableString. String freezing also needs some improvements, so let's file a bug for both. Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Wednesday, July 09, 2008 6:26 AM To: ironruby-core@rubyforge

Re: [Ironruby-core] Code Review: StringGsubEach

2008-07-09 Thread Curt Hagenlocher
AIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Wednesday, July 09, 2008 6:26 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Code Review: StringGsubEach Hmm... now that I think about it, it's really only "thread safe enough" if yo

Re: [Ironruby-core] Code Review: BlockDispatch7

2008-07-10 Thread Curt Hagenlocher
There doesn't generally appear to be any consistency about comparing the block parameter to null. For instance, in RangeOps, only StepFixnum checks; StepString, StepNumeric and StepObject do not. I know that the situation predates the current changeset, but it might be a good time to go throug

Re: [Ironruby-core] Code Review: BlockDispatch7

2008-07-10 Thread Curt Hagenlocher
d since it is imo better to kill the process rather than silently swallow the exception (I hit this when something wrong happened in the thread and I didn't know what because the exception has been swallowed). Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

Re: [Ironruby-core] Adding methods to Kernel

2008-07-13 Thread Curt Hagenlocher
You need to declare a "self" parameter, even though it will be unused. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Bacon Darwin Sent: Sunday, July 13, 2008 1:46 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Adding methods to Kernel I am still having problem

Re: [Ironruby-core] MutableString encoding issue

2008-07-14 Thread Curt Hagenlocher
MutableString can have one of three internal representations, depending on how it was last used. One of these is a byte array. This particular problem may be in the scanner or parser and not in the actual string class, as we don't otherwise have a problem storing the character: >>> $s = "\204

Re: [Ironruby-core] Code Review: YamlFixes

2008-07-23 Thread Curt Hagenlocher
Microseconds are being truncated to milliseconds instead being rounded. The least painful way to fix this is to .AddMilliseconds(1) to the result if usec >= 500. (I might be okay with the truncation if it's acknowledged in a comment.) There's a typo in a comment added to BaseConstructor.cs.

Re: [Ironruby-core] Code Review: YamlFixes

2008-07-23 Thread Curt Hagenlocher
).AddTicks(microsecond * 10); If that looks ok, I'm going to submit the shelveset. -- Oleg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Wednesday, July 23, 2008 9:11 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-co

Re: [Ironruby-core] Code Review: MO-RubyCall2

2008-08-05 Thread Curt Hagenlocher
There are two typos in IoOps.cs where _CreateIOSharedSite1 is being passed to the Target method of _CreateIOSharedSite11. It's a very hard-to-spot problem. Maybe one of the names should be changed. :) There's also a typo in a comment in RubyModule -- should be ctor instead of ctro. Otherwise

Re: [Ironruby-core] Code Review: interpret1

2008-08-05 Thread Curt Hagenlocher
Looks good to me. -Original Message- From: Jim Deville Sent: Tuesday, August 05, 2008 1:37 PM To: IronRuby External Code Reviewers; Curt Hagenlocher; Jimmy Schementi Cc: ironruby-core@rubyforge.org Subject: Code Review: interpret1 tfpt review "/shelveset:interpret1;REDMOND\jde

Re: [Ironruby-core] Code Review: MO-RubyActions-Subclasses

2008-08-06 Thread Curt Hagenlocher
Looks good. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomas Matousek Sent: Tuesday, August 05, 2008 11:38 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: [Ironruby-core] Code Review: MO-RubyActions-Subclasses tfpt re

Re: [Ironruby-core] Code Review: unniseo

2008-08-08 Thread Curt Hagenlocher
Change looks good. -Original Message- From: Jim Deville Sent: Friday, August 08, 2008 1:21 AM To: IronRuby External Code Reviewers; Curt Hagenlocher Cc: ironruby-core@rubyforge.org Subject: Code Review: unniseo tfpt review "/shelveset:unniseo;REDMOND\jdeville" Comment : -

Re: [Ironruby-core] Code Review: IntConv

2008-08-11 Thread Curt Hagenlocher
Looks good. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomas Matousek Sent: Monday, August 11, 2008 9:38 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: [Ironruby-core] Code Review: IntConv tfpt review "/shelveset:Int

Re: [Ironruby-core] IronRuby binary disribution

2008-08-14 Thread Curt Hagenlocher
Note that the error message is now different. The reason that you see three calls to "Update3" is probably because you required 'net/http' which requires 'net/protocol' which requires 'socket'. Socket itself is a binary extension in MRI, but IronRuby needs a stub socket.rb to load it. This st

Re: [Ironruby-core] IronRuby binary disribution

2008-08-14 Thread Curt Hagenlocher
inary distribution library layout is different, there is no "libs" directory, the libraries are separated under lib\IronRuby and lib\ruby\1.8 On Thu, Aug 14, 2008 at 10:32 AM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: Note that the error mes

Re: [Ironruby-core] ScriptableMember and Silverlight

2008-08-14 Thread Curt Hagenlocher
I don't know about the word "fixed" :). But attribute support is definitely one of the .NET interop scenarios on my radar. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jimmy Schementi Sent: Thursday, August 14, 2008 12:45 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby

Re: [Ironruby-core] Code Review: warning2

2008-08-15 Thread Curt Hagenlocher
"Baby steps." Don't think of it as just contributing to a project; think of it as helping to change a large multinational corporation in a way that benefits both it and the rest of the world. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seo Sanghyeon

Re: [Ironruby-core] Interacting with a WPF/Winforms application

2008-08-15 Thread Curt Hagenlocher
Running in a separate thread is what you probably want to do. There’s an IronPython sample that does something like this for WinForms – it’s called winforms.py and lives in the tutorial directory. Unfortunately, it looks like it depends on some IronPython-specific functionality in the command

Re: [Ironruby-core] Stupid to_clr_string

2008-08-15 Thread Curt Hagenlocher
This isn't a Silverlight issue but an IronRuby one. A Ruby string simply isn't the same as a CLR string - the Ruby string is mutable while the CLR string is not. We need to come up with a cohesive plan for dealing with the difference before we can "fix" anything. From: [EMAIL PROTECTED] [mail

Re: [Ironruby-core] Stupid to_clr_string

2008-08-15 Thread Curt Hagenlocher
sible to switch it to a clr string any time it calls any framework code? (like the invoke function I'm using). ~sean On Fri, Aug 15, 2008 at 10:33 AM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: This isn't a Silverlight issue but an IronRuby one.

Re: [Ironruby-core] Stupid to_clr_string

2008-08-15 Thread Curt Hagenlocher
15, 2008 at 10:33 AM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: This isn't a Silverlight issue but an IronRuby one. A Ruby string simply isn't the same as a CLR string - the Ruby string is mutable while the CLR string is not. We need to come up

Re: [Ironruby-core] r132 - can you check if it builds correctly on mono?

2008-08-16 Thread Curt Hagenlocher
oj file automatically. ...and if we're going to be strictly pedantic, casing isn't an OS thing -- it's an FS thing :P -- Curt Hagenlocher [EMAIL PROTECTED] ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] r132 - can you check if it builds correctly on mono?

2008-08-16 Thread Curt Hagenlocher
om/kb/100625 On Sat, Aug 16, 2008 at 8:23 PM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: >From Charles Oliver Nutter at Saturday, August 16, 2008 1:57 PM: > > Michael Letterle wrote: >> Or update the csproj so that the file names are cased c

Re: [Ironruby-core] sorting of strings is different in IronRuby than in Ruby

2008-08-20 Thread Curt Hagenlocher
We end up calling String.CompareTo which performs a lexicographical comparison. This is the source of the different behavior. This should be filed as a bug in RubyForge if it hasn’t been already. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Porto Carrero Sent: Wednesday

Re: [Ironruby-core] Code Review: RubyFxCop

2008-08-22 Thread Curt Hagenlocher
Looks good. GlobalSuppressions.cs needs a copyright notice. -Original Message- From: Tomas Matousek Sent: Friday, August 22, 2008 10:51 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: RubyFxCop tfpt review "/shelveset:RubyFxCop;REDMOND\tomat"

Re: [Ironruby-core] IronRuby on Netbeans

2008-08-27 Thread Curt Hagenlocher
. It remains to be seen how much of this is mitigated by the recent work done to add thread-safety to Rails 2.2. The flip side of this is that there's a good deal of work that needs to be done before any of this is a reality. -- Curt Hage

Re: [Ironruby-core] Code Review: YamlTestCleanup

2008-08-31 Thread Curt Hagenlocher
Looks good! -Original Message- From: Oleg Tkachenko Sent: Saturday, August 30, 2008 2:18 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: YamlTestCleanup tfpt review "/shelveset:YamlTestCleanup;REDMOND\olegtk" Comment : Cleans up YamlTest fo

Re: [Ironruby-core] Code Review: config-1

2008-09-03 Thread Curt Hagenlocher
Looks good. -Original Message- From: John Lam (IRONRUBY) Sent: Tuesday, September 02, 2008 10:05 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: config-1 tfpt review "/shelveset:config-1;REDMOND\jflam" Comment : Updated the Rakefile to refl

Re: [Ironruby-core] Code Review: config-2

2008-09-04 Thread Curt Hagenlocher
Changes look good. -Original Message- From: John Lam (IRONRUBY) Sent: Thursday, September 04, 2008 10:14 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: config-2 tfpt review "/shelveset:config-2;REDMOND\jflam" Comment : Updated Rakefile to

Re: [Ironruby-core] Experiences building IronRuby from source

2008-09-05 Thread Curt Hagenlocher
This is for building Silverlight. Silverlight builds against a different version of the CLR. You should ignore these warnings. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KE Sent: Friday, September 05, 2008 9:00 AM To: ironruby-core@rubyforge.org Su

Re: [Ironruby-core] Deriving from framework class with Initialize method

2008-09-07 Thread Curt Hagenlocher
Interesting. What do you think should happen when a CLS type has a method whose name collides with a "special" Ruby method name like "initialize" or "allocate"? This isn't an issue in IronPython because of Guido's foresight in decorating all special names with double underscores. :) Maybe for

[Ironruby-core] Code Review: InfiniteRubyRecursion1

2008-09-08 Thread Curt Hagenlocher
tfpt review "/shelveset:InfiniteRubyRecursion1;REDMOND\curth" Comment : Fix recursive behavior in Array.flatten and Hash.to_s Maintain multiple recursion trackers for different operations -- Curt Hagenlocher [EMAIL PROTECTED] InfiniteRubyRecursion1.diff Description: InfiniteRuby

[Ironruby-core] Overriding CLS Virtuals

2008-09-08 Thread Curt Hagenlocher
ticated interop scenarios than were previously possible. -- Curt Hagenlocher [EMAIL PROTECTED] ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Overriding CLS Virtuals

2008-09-08 Thread Curt Hagenlocher
Oops... that should have said "include System::IDisposable". My Outlook-based syntax checker is clearly not working. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Monday, September 08, 2008 9:22 PM To: ironruby-core@rubyforge.org Subject: [Iro

Re: [Ironruby-core] Mysteriously broken calls to dispose?

2008-09-09 Thread Curt Hagenlocher
Yes, this has been reported before (in fact, I think it was when someone was writing "using" ☺) and we haven't yet worked out a resolution. I'll see if there's something quick that can be fixed here later today. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Orion Edwards Sent:

Re: [Ironruby-core] Overriding CLS Virtuals

2008-09-09 Thread Curt Hagenlocher
ngs". :) On Mon, Sep 8, 2008 at 9:36 PM, Orion Edwards <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: You are my hero :-) Curt Hagenlocher wrote: I've committed some changes to IronRuby (in SVN revision 141) that let you implement CLS interfaces and override virtu

Re: [Ironruby-core] Mysteriously broken calls to dispose?

2008-09-09 Thread Curt Hagenlocher
C# or something so you can safely use it from IronRuby without the overloading mayhem. Cheers Ivan On Tue, Sep 9, 2008 at 1:25 PM, Curt Hagenlocher <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: Yes, this has been reported before (in fact, I think it was when someone was

Re: [Ironruby-core] Overriding CLS Virtuals

2008-09-09 Thread Curt Hagenlocher
re@rubyforge.org Subject: Re: [Ironruby-core] Overriding CLS Virtuals Let's revisit that later, I'm also not sure what the details were. Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Tuesday, September 09, 2008

Re: [Ironruby-core] Code Review: RhsArg

2008-09-10 Thread Curt Hagenlocher
Looks good! -Original Message- From: Tomas Matousek Sent: Wednesday, September 10, 2008 10:44 AM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review: RhsArg tfpt review "/shelveset:RhsArg;REDMOND\tomat" Implements block dispatch for R(N, *, =) case

Re: [Ironruby-core] Code Review: YamlRails

2008-09-15 Thread Curt Hagenlocher
Looks good. Did you confirm that a return from the block passed to quick_emit does not get passed back to the caller? -Original Message- From: Oleg Tkachenko Sent: Freitag, 12. September 2008 23:10 To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: Code Review:

  1   2   3   >