Re: [Ironruby-core] NoMethodException

2014-04-28 Thread Orion Edwards
Can you give an example of the ruby code that is failing? The error indicates IronRuby is having trouble finding an appropriate constructor to call for a C# class Can you give some more information about the class you're trying to instantiate? eg - What constructors does it have - Are they priva

Re: [Ironruby-core] WATIR on IronRuby?

2014-03-09 Thread Orion Edwards
It's not difficult to build IronRuby from source - you simply check out the code from github, and either compile the visual studio solution, or run a bat file from the command prompt Orion Edwards | Technical Leader PHONE +64 7 838 9800 | EMAIL orion.edwa...@gallagher.co

Re: [Ironruby-core] Putting together another release

2013-02-06 Thread Orion Edwards
I guess one thing I wasn't clear on in my last email - Who creates the build for (and publishes) the IronRuby release files? I'm willing to do work to get things ready, but I can't actually publish anything :-) Orion Edwards | Technical Leader PHONE +64 7 838 9800 | E

[Ironruby-core] Putting together another release

2013-02-03 Thread Orion Edwards
g forward to any feedback Orion Edwards | Technical Leader PHONE +64 7 838 9800 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co ### This e-mail is confidential and may contain information subject to legal privi

Re: [Ironruby-core] IronRuby and .net 4.5

2013-01-06 Thread Orion Edwards
I've used it on many windows 7 machines that only have .NET 4.5 installed, and also windows 8, and it works fine .NET 4.5 is a superset of 4.0, so all the core libraries that IronRuby uses are all the same in both. ______ Orion Ed

Re: [Ironruby-core] IronRuby hosting - executing C# method

2012-11-20 Thread Orion Edwards
ments ______ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Konstantin Kos To: ironruby-core@rubyforge.org Date: 21/11/2012 09:25 a.m. Subject:[Ironruby

Re: [Ironruby-core] using external library (REXML) is extremely slow when running my app in debug mode

2012-09-02 Thread Orion Edwards
. It's on the Tools\Options dialog on the "Debugging" section ______ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Anton Firsov

Re: [Ironruby-core] IronRuby scripting in Windows Store apps

2012-08-26 Thread Orion Edwards
That sounds fantastic :-) __ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Tomas Matousek To: "ironruby-core@rubyforge.org"

Re: [Ironruby-core] Using .Net cascade assemblies

2012-08-14 Thread Orion Edwards
on MSDN or I can tell you more if you'd like ______ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Alexander Ranger To: ironruby-core@rubyforge.org Date

Re: [Ironruby-core] Problems with 1.1.3

2012-08-11 Thread Orion Edwards
It's really annoying... The installer puts the assemblies in the Global Assembly Cache, but it doesn't put them anywhere else. The easiest way to get them is from the zip file on the IronRuby website On 11/08/2012, at 9:11 PM, Joaquin Menchaca wrote: > Does the new installer in 1.1.3 not insta

Re: [Ironruby-core] Calling .Net generic method with Ruby object

2012-07-18 Thread Orion Edwards
x27;re just putting ruby objects in a list so that ruby code can retrieve them later that will be fine, but if you're trying to do other things, you may run into problems... __ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX

Re: [Ironruby-core] IronRuby's Marshal.dump doesn't work with CLR types, or ruby types backed by a CLR type

2012-07-09 Thread Orion Edwards
I personally haven't done any work on it since those last emails. I'm away from work for the next week or so, so I can't go and look it up easily. >From my vague memories of the code, it shouldn't be much work to get it marshalling .NET objects that use the .NET Serialization API's. I had it workin

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Orion Edwards
ility with ruby 1.9 (and ships standard libraries such as ostruct from 1.9 also), so it is designed to fail with the same errors as MRI 1.9 I'm not sure what you can do to work around it, all the best. __ Orion Edwards | Technical Leader

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Orion Edwards
ne for me. ______ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Nathan Standiford To: Date: 20/06/2012 04:55 a.m. Subject:[Ironruby-core] Problem

[Ironruby-core] IronRuby installer

2012-05-21 Thread Orion Edwards
I spent a bit more time trying to get the IronRuby installer to go, and succeeded; resulting in the following pull request: https://github.com/IronLanguages/main/pull/71 The main problem seemed to be that the IronRuby installer created 3 MSM's (DLR, IrRedist and IronStudio) and then merged them

Re: [Ironruby-core] Float specs

2012-05-08 Thread Orion Edwards
?? the specs were already there, from rubyspec. On Wed, May 9, 2012 at 6:12 AM, Roger Pack wrote: > and the specs...? > > -- > Posted via http://www.ruby-forum.com/. > ___ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.or

Re: [Ironruby-core] mixing in a C# interface which declares generic return types

2012-04-03 Thread Orion Edwards
puts "get called..." 12 end def get_all puts "get all called..." System::Array.of(Fixnum).new( [1,2,3] ) end end __ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | E

[Ironruby-core] Float specs

2012-01-31 Thread Orion Edwards
to Rational, so I'd suggest leaving them until IronRuby's implementation of Rational gets sorted out. Thanks, Orion __________ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher

Re: [Ironruby-core] Array Specs

2012-01-31 Thread Orion Edwards
guages/main/pull/52 Regards Orion ______ Orion Edwards | Technical Leader PHONE +64 7 838 9800 | FAX +64 7 838 9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Tomas Matousek To: "ironruby-core@rubyforge.org

Re: [Ironruby-core] ironruby in VB.net and rubygems

2012-01-29 Thread Orion Edwards
Not sure if this is your problem, but off the top of my head I'll try help. IronRuby needs to know the path to it's standard library directory. This is stored in the ir.exe.config file that ships along with IronRuby. When you host IronRuby from inside another application, this config file isn't

Re: [Ironruby-core] Array Specs

2012-01-05 Thread Orion Edwards
k To: "ironruby-core@rubyforge.org" Date: 05/01/2012 05:59 p.m. Subject:Re: [Ironruby-core] Array Specs Sent by:ironruby-core-boun...@rubyforge.org Cool! I?ll take a look asap. Tomas From: ironruby-core-boun...@rubyforge.org [ mailto:ironruby-core-boun...@r

[Ironruby-core] Array Specs

2012-01-04 Thread Orion Edwards
I've been working on bringing IronRuby up to speed with rubyspec, and picked the core\array folder as a start: My pull request is here: https://github.com/IronLanguages/main/pull/52 I'd like to fix them all, but I'm not sure if I'll have the time to do so - Here is a summary of the rubyspec\

[Ironruby-core] Cannot build IronRuby or IronPython MSI's

2012-01-03 Thread Orion Edwards
I did a git pull today of IronLanguages\main, and noticed a giant stack of changes on December 30, 31 and Jan 1 - which look like they're related to Win8 and Mango, amongst other things. I'm trying to build the IronRuby installer - the process also builds the IronPython installer along with it.

[Ironruby-core] IronRuby internals - How can I get the full path to the current file?

2012-01-03 Thread Orion Edwards
I thought I'd be a good samaritan and implement require_relative in IronRuby, but I'm having real trouble figuring out what the current file's path actually is. The closest I've got is something like this: * Pull apart the the caller/backtrace to get the file name * File.expand_path(file, File

Re: [Ironruby-core] Crontab Issues

2011-12-05 Thread Orion Edwards
The error looks to be with running Mono under cron WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322 That's indicating mono is loading it's version of the .NET 1.1 framework (which dates to 2003), instead of the .NET 4.0 framework (2010),

Re: [Ironruby-core] IronRuby's Marshal.dump doesn't work with CLR types, or ruby types backed by a CLR type

2011-10-31 Thread Orion Edwards
tput exactly the same data as CRuby implementation (for Ruby objects). Otherwise you won?t be able to read data serialized by CRuby in IronRuby and vice versa. Tomas From: ironruby-core-boun...@rubyforge.org [ mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards Sent: Tuesday, Oc

Re: [Ironruby-core] RubySpecs

2011-10-31 Thread Orion Edwards
Tomas From: ironruby-core-boun...@rubyforge.org [ mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards Sent: Monday, October 31, 2011 1:19 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] RubySpecs I've just run mspec under the Languages\Ruby\Tests\mspec\ruby

[Ironruby-core] RubySpecs

2011-10-31 Thread Orion Edwards
I've just run mspec under the Languages\Ruby\Tests\mspec\rubyspec\core folder against MRI 1.9.2p0 (which is checked into the ironlanguages-main git repo), and it crashes with a segfault in putc_spec.rb I then tried running against MRI 1.9.2p290 and I get the following: 1518 files, 9618 e

Re: [Ironruby-core] [ironlanguages-main] Ruby 1.9 marshalling compatibility. (630995e)

2011-10-30 Thread Orion Edwards
Hi Tomas (and other IronRuby devs). I'm trying to implement this, but I'm not sure quite how to go about dynamically invoking the 'message' and 'backtrace' methods on the other objects. It looks like the other methods all have a UnaryOpStorage or other kind of 'storage' that they use to invoke

Re: [Ironruby-core] IronRuby's Marshal.dump doesn't work with CLR types, or ruby types backed by a CLR type

2011-10-27 Thread Orion Edwards
by implementation (for Ruby objects). Otherwise you won?t be able to read data serialized by CRuby in IronRuby and vice versa. Tomas From: ironruby-core-boun...@rubyforge.org [ mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards Sent: Tuesday, October 25, 2011 6:22 PM To: ironruby-core

Re: [Ironruby-core] IronRuby's Marshal.dump doesn't work with CLR types, or ruby types backed by a CLR type

2011-10-25 Thread Orion Edwards
objects). Otherwise you won?t be able to read data serialized by CRuby in IronRuby and vice versa. Tomas From: ironruby-core-boun...@rubyforge.org [ mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Orion Edwards Sent: Tuesday, October 25, 2011 6:22 PM To: ironruby-core@rubyforge.org Subje

[Ironruby-core] IronRuby's Marshal.dump doesn't work with CLR types, or ruby types backed by a CLR type

2011-10-25 Thread Orion Edwards
Backstory: I'm trying to use DRb for some in-house utility code. DRb itself seems to work fine, but I found that when I misspelled a method name, instead of reporting back a NoMethodError, the IronRuby process crashed immediately to the console. This is using a relatively recent build of IronRu

[Ironruby-core] Pull requests

2011-10-03 Thread Orion Edwards
I've had an open pull request which resolves a deadlock in IronRuby itself sitting on github for over a month now. There are also two other pull requests which improve visual studio integration. While I can understand perhaps why the core ironruby committers might not know about the visual stu

[Ironruby-core] Deadlock issue

2011-09-05 Thread Orion Edwards
I logged an issue on Codeplex (#6449) about the previous deadlock bug I encountered, and I have come up with a patch which should fix the issue, which I've submitted as a pull request: https://github.com/gglresearchanddevelopment/ironlanguages-main/commit/e8be67232d71eb879a1b9487e6fc5e8a93f99266

[Ironruby-core] Deadlock in IronRuby

2011-09-01 Thread Orion Edwards
I'm encountering what looks like a fairly textbook deadlock in the core IronRuby code when creating Classes: Thread 0: -> calls RubyContext.GetOrCreateClass(Type) - acquires RubyContext.ModuleCacheLock -> function body invokes RubyContext.GetOrCreateClassNoLock(Type) -> The class does not

Re: [Ironruby-core] Sync rubyspec

2011-08-09 Thread Orion Edwards
Thank you! From: Enrico Sada To: ironruby-core@rubyforge.org Date: 10/08/2011 09:34 a.m. Subject:[Ironruby-core] Sync rubyspec Sent by:ironruby-core-boun...@rubyforge.org I started to update rubyspec to latest version (pull requests: https://github.com/IronLanguages/

Re: [Ironruby-core] Lost messages

2011-07-28 Thread Orion Edwards
ps://github.com/IronLanguages/main/pull/20) wasn't merged in just > due to me forgetting to test it out. The operator patch > (https://github.com/IronLanguages/main/pull/21) was closed, but does > not looked like it was merged in. Should both these still be merged > in? > > ~J

[Ironruby-core] Lost messages

2011-07-28 Thread Orion Edwards
Hi I sent a couple emails from my work account (my name at gallagher.co) enquiring about 2 patches I had submitted that seem to be in limbo. The first email was 2 months ago the second approx a week. Both these messages appear to have been dropped. Is the mailing list still alive? Is anyone c

[Ironruby-core] Codeplex workitem 6117 "solution"

2011-05-29 Thread Orion Edwards
Summary: No matter what settings you change, "Operators" in IronRuby are always green (hex 008080). I put a few hours into investigating this ( http://ironruby.codeplex.com/workitem/6117 ) and as far as I can tell, it's a bug in visual studio. The language classifier used by IronRuby (DlrClass

Re: [Ironruby-core] Working on IronRuby visual studio tools

2011-05-25 Thread Orion Edwards
we use the GAC for resolving dependencies of "IronStudio" components between Ruby and Python. A non-MSI installation using VSIX has no dependency management, so things could break easily. ~Jimmy On May 23, 2011, at 4:28 PM, Orion Edwards wrote: Re-post of this email as it acci

[Ironruby-core] Codeplex workitem 6118: Requesting Code Review

2011-05-24 Thread Orion Edwards
As mentioned in the bug http://ironruby.codeplex.com/workitem/6118 , IronRuby .rbproj files have some severe problems when working with source-controlled projects. I discovered that one of the major causes of this was the way that the DLR's DirectoryBasedProjectNode was handling add/rename/dele

[Ironruby-core] Working on IronRuby visual studio tools

2011-05-23 Thread Orion Edwards
Re-post of this email as it accidentally was sent as a reply to someone else's... Oops - I'm hoping to do some work to fix some of the bugs in IronRuby's visual studio integration, but I'm having a few issues getting a dev environment up and runnin

[Ironruby-core] Building and Deploying IronRuby tools

2011-05-22 Thread Orion Edwards
I'm hoping to do some work to fix some of the bugs in IronRuby's visual studio integration, but I'm having a few issues getting a dev environment up and running. - I can build IronStudio.sln from the Solutions folder, and my modified version of the IronRuby tools loads in the visual studio expe

Re: [Ironruby-core] Fwd: WorkItem Issue #6095 - "IronRuby 1.1.3 Can't count"

2011-05-04 Thread Orion Edwards
> >I see two ways of fixing the bug, >> >> 1. removing the [RubyMethod("count")] declaration from >> IListOps.Length which would make count inefficent on IList's. >> 2. reimplementing the object and block variations of count in >> IListOps >> >> In my humble opinion, 1 would be best,

Re: [Ironruby-core] Increasing Memory Usage

2010-12-15 Thread Orion Edwards
On 15/12/2010, at 5:32 AM, James Jefferson wrote: > > I've now got ironruby running in production and my initial tests show > that whilst the memory usage does increase with usage, it does seem to > top out, and then stop increasing (and even descreases) and is no longer > impacting the perf

Re: [Ironruby-core] rspec no likely :(

2010-11-08 Thread Orion Edwards
you always need to require 'rubygems' before requiring spec and friends, even in MRI. Are you doing that? On Tue, Nov 9, 2010 at 1:31 PM, andrew Wilson wrote: > So I tried out the 1.1.1 release and am having a bit of issues. > > First the installer doesn't seem to care about the location I pick

Re: [Ironruby-core] rspec no likely :(

2010-11-08 Thread Orion Edwards
err.. woops, consider that last email unsent :-) On Tue, Nov 9, 2010 at 2:34 PM, Orion Edwards wrote: > you always need to require 'rubygems' before requiring spec and friends, > even in MRI. > >> >> >> ... If I require 'rubygems' 'spec/mock

Re: [Ironruby-core] IronRuby 1.1.1 IIRB failing

2010-10-26 Thread Orion Edwards
> grab the binaries from the link above if you want an xcopy deployment. > > > > It seems irb doesn’t like the command you’re writing … does it include > non-ASCII characters? > > > > Tomas > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto:

[Ironruby-core] IronRuby 1.1.1 IIRB failing

2010-10-25 Thread Orion Edwards
After upgrading to IronRuby 1.1.1, I try run IIRB, and I get the following exception: Have I screwed up my install? What I did was this: 1. Ran the IronRuby installer 2. Copied the bin and lib folders to a local folder that I have checked into source control (to deploy IronRuby to other machines)

Re: [Ironruby-core] Ironruby on Rails with SQL Azure

2010-08-31 Thread Orion Edwards
My guess is that SQL Azure doesn't follow quite the same protocol as normal SQL Server. As I don't have a SQL azure account, I can't play around with it myself, but I'd suggest trying to get a simple command line version of IronRuby up and running and see if you can use the raw sqlserver adapter to

Re: [Ironruby-core] FW: Code Review: G19.Final

2010-08-16 Thread Orion Edwards
Nice work! Thanks Tomas On Tue, Aug 17, 2010 at 1:42 PM, Tomas Matousek < tomas.matou...@microsoft.com> wrote: > This change might break apps that already worked with IronRuby v1.0 or > v1.1. The reason might be: > - IronRuby is now using 1.9.1 standard libraries, which might depend on 1.9 > feat

Re: [Ironruby-core] Should Kernel.require accept Assembly instances?

2010-08-10 Thread Orion Edwards
>> }.get_value(Object, nil) >> >> And then I figured I could do something like this: >> context.loader.load_assembly(...) >> >> ... but the overload I need is marked private (the one that is public >> expects a string containing the assembly's name, as opposed

Re: [Ironruby-core] Should Kernel.require accept Assembly instances?

2010-08-09 Thread Orion Edwards
Those are valid points. Perhaps #load_assembly could accept an assembly > reference. > > Sent from my iPhone > > > On Aug 7, 2010, at 5:16 PM, Orion Edwards wrote: > > What's the advantage to extending require? >> >> Presumably you're currently us

Re: [Ironruby-core] "Start spreading the news"

2010-08-09 Thread Orion Edwards
On 9/08/2010, at 6:42 PM, Jimmy Schementi wrote: > > This is a monumental opportunity for you all, the IronRuby community, to > rally around something Microsoft invested in, enough to a initial 1.0 > release, and make it your own. However, there are two things we should ask > Microsoft to comm

Re: [Ironruby-core] "Start spreading the news"

2010-08-08 Thread Orion Edwards
4. Rails on .NET I think asp.net mvc took a lot of the wind out of this particular scenario, but rails is still literally *years* ahead of MVC in both maturity and thinking. If we could get rails under ironruby easily deplorable to iis, I think this would help a lot On question I'd REALLY lik

Re: [Ironruby-core] "Start spreading the news"

2010-08-08 Thread Orion Edwards
Thanks Cory for the levelheadedness. It's all too easy to get upset and overreact (as I well know) Re Tomas' question about what would it take to make the github repo canonical. To me, it would need several things 1. The release builds need to be built directly from this repo 2. All the offici

[Ironruby-core] "Start spreading the news"

2010-08-07 Thread Orion Edwards
I'm sure most of you have seen this already, but I hadn't seen Jimmy's "farewell Microsoft" blog post posted to the list, so here it is if anyone hasn't read it http://blog.jimmy.schementi.com/2010/08/start-spreading-news-future-of-jimmy.html I'd like to thank Jimmy for his work thus far on Iro

Re: [Ironruby-core] Will the performance catch up be next milestone?

2010-08-07 Thread Orion Edwards
ava is better on unix, so therefore you should run JRuby on Unix. I don't think this would change even if 100% of the JRuby core devs used windows all day long :-) On 8/08/2010, at 6:41 AM, Charles Oliver Nutter wrote: > On Fri, Jul 30, 2010 at 5:27 PM, Orion Edwards > wrote: >

Re: [Ironruby-core] Should Kernel.require accept Assembly instances?

2010-08-07 Thread Orion Edwards
What's the advantage to extending require? Presumably you're currently using the .NET Assembly.Load or Assembly.LoadFrom methods to do this? (And if you're compiling code in memory, you'll certainly be making heavy use of the .NET reflection API's already anyway) Require is a standard part of c

Re: [Ironruby-core] Will the performance catch up be next milestone?

2010-07-30 Thread Orion Edwards
hey do a REALLY good job, people running rails apps on linux might switch to windows! I'd love to see #2 happen, but unfortunately it's a long way off. The IronRuby team seems to be really awesome, but there's only like 3 of you, right? :-( > > From: ironruby-core

Re: [Ironruby-core] Will the performance catch up be next milestone?

2010-07-28 Thread Orion Edwards
It's probably not intentional but his benchmark graphs are misleading. Because Mono is not nearly as fast or as mature as Microsoft's .NET, the performance of IronRuby on mono is much worse. Unfortunately all his graphs show Mono performance only, which makes IronRuby appear very slow. If you loo

Re: [Ironruby-core] What's next?

2010-05-15 Thread Orion Edwards
On 15/05/2010, at 8:51 AM, Bassel Samman wrote: > Yes, even compiled code can be > reverse engineered, but at least you are not handing it out on a silver > platter. Ummm... Yes you are. Have you seen reflector? Unless you're writing all your code in C++, you're pretty much shipping the sour

Re: [Ironruby-core] What's next?

2010-05-11 Thread Orion Edwards
On Wed, May 12, 2010 at 10:06 AM, Tomas Matousek < tomas.matou...@microsoft.com> wrote: > What would you like to achieve by pre-compiling code? Faster startup time? > Packaging your code in a dll instead of a bunch of .rb files? Using Ruby > code statically from C#? > Personally I'm not too fusse

Re: [Ironruby-core] IronRuby version of existing gems

2010-03-11 Thread Orion Edwards
>> The name is spelled as “.NET”, and so "gemname-universal-dotNET" would read better than just "gemname-universal-dotnet". dotNET looks awful. Microsoft are well known for terrible marketing and terrible naming, so I'd argue that "use the correct spelling" is an anti-feature :-) Personally, I

[Ironruby-core] What appears to be a really sneaky bug related to loading assemblies (System::Action is temporarily nil)

2010-03-10 Thread Orion Edwards
Intro: Using IronRuby 1.0 rc2; .NET 3.5SP1 on windows XP sp3 I have some code which is using DynamicMethod / GetILGenerator to create statically typed methods at runtime, so I can call IUnknown-based COM objects from IronRuby. Here is a snippet # ... piles of code which figures out what the met

Re: [Ironruby-core] Handling CLR events

2010-03-04 Thread Orion Edwards
> return unless @__handlers__ > @__handlers__.each do |ev| * * Look out! Someone snuck in and put __python__ in your nice ruby code! ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

[Ironruby-core] IronRuby 1.0rc2 - crash calling =~ on clr string

2010-02-17 Thread Orion Edwards
Ouch. Here's a repro PS C:\dev\test> ir IronRuby 0.9.4.0 on .NET 2.0.50727.4927 Copyright (c) Microsoft Corporation. All rights reserved. >>> "hello".to_clr_string =~ "hello" Process is terminated due to StackOverflowException. The windows appcrash dialog pops up: Here's what it says if it's at

Re: [Ironruby-core] MRI 1.8.7 compatibility

2010-02-16 Thread Orion Edwards
On Tue, Feb 16, 2010 at 12:30 PM, Jim Deville wrote: > I honestly don’t think that shipping a 1.0 will delay any future release by > much. I also don’t think that a Rails 3 release would hurt the progress > towards 1.9. Unless something major changes, I believe all of the 1.8.7 > features we are

Re: [Ironruby-core] MRI 1.8.7 compatibility

2010-02-15 Thread Orion Edwards
> IronRuby 1.0.x releases: ONLY ruby-1.8.6 compatible > IronRuby 1.x releases: ONLY ruby-1.9 compatible > My fear is that releasing 1.0 so close to release of Rails 3 without the > ability to run it will do little for IronRuby's image in the wider Ruby > community (who, from my admittedly limited

Re: [Ironruby-core] Threading model

2010-02-14 Thread Orion Edwards
On Mon, Feb 15, 2010 at 11:17 AM, Jimmy Schementi < jimmy.scheme...@microsoft.com> wrote: > IronRuby maps Ruby’s green threads directly to CLR threads, and there is no > GIL. > Holy race conditions, batman! I'll be a lot more careful calling Thread.new now :-)

[Ironruby-core] Threading model

2010-02-14 Thread Orion Edwards
Here is what I *think* happens: - Thread.new and the other ruby threading methods from the ruby standard library will create and run on new CLR threads, but there is 'global interpreter lock' type thing to emulate MRI - I can sidestep the GIL by explicitly using underlying CLR threading methods

Re: [Ironruby-core] MRI 1.8.7 compatibility

2010-02-11 Thread Orion Edwards
t; > JD > > > > *From:* ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] *On Behalf Of *Orion Edwards > *Sent:* Thursday, February 11, 2010 11:52 AM > *To:* ironruby-core@rubyforge.org > *Subject:* Re: [Ironruby-core] MRI 1.8.7 compatibilit

Re: [Ironruby-core] MRI 1.8.7 compatibility

2010-02-11 Thread Orion Edwards
+1 ! Any idea how long after the 1.0 RTM we might start seeing 1.8.7 (or 1.9.x?) > compatibility? > ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

[Ironruby-core] Hanselminutes

2010-02-04 Thread Orion Edwards
Just listened to jimmy on hanselminutes (yeah I know it was a week or 2 ago, I'm catching up on podcasts) talking about IronRuby. Congrats on a job well done. Hopefully that will get some more people interested in IR :-) ___ Ironruby-core mailing list Ir

Re: [Ironruby-core] A nicer syntax for generic extension methods

2010-02-02 Thread Orion Edwards
>> If you index System.Collections.Generic.List by a fixnum instead of a class/module you’ll get the generic definition of arity 1 Nice! I had no idea that feature existed ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/m

Re: [Ironruby-core] A nicer syntax for generic extension methods

2010-02-01 Thread Orion Edwards
IIRC you can open "concrete" generics, but not "open" ones: In plain english this means you can add methods to List but not List. This is essentially because List isn't a real type in the CLR, it's basically some metadata that can be used to build a real type when the T is supplied. You could as

Re: [Ironruby-core] IronRuby idiom for using (IDisposable) ?

2010-02-01 Thread Orion Edwards
I also think it's a nice idea. I have a few other such methods (Array#to_clr_a, Time#to_clr_time, and the godawful Array#to_2d_a) that seem like they'd also be a good fit :-) On Mon, Feb 1, 2010 at 11:17 PM, Thibaut Barrère wrote: > > Maybe we can have a separate gem that groups a bunch of typica

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-26 Thread Orion Edwards
> > > Can we move forward to solve the problem instead of mocking? > -- > I would expect you would have better success moving forward if you did not make inflammatory statements such as these: "This is a big defect in the IronRuby. Too many configurations will scare developers away." "Not many p

Re: [Ironruby-core] Why IronRuby?

2010-01-26 Thread Orion Edwards
I'm currently using IronRuby to do automated UI testing using the WPF UI Automation framework. IronRuby is working out brilliantly, the WPF UI automation framework on the other hand is "sub par", but that's another story. Have also used it for many ad-hoc tasks such as exploring .NET api's, transf

Re: [Ironruby-core] Did Something Changed Again in Spec...

2010-01-25 Thread Orion Edwards
On Tue, Jan 26, 2010 at 7:50 AM, Mohammad Azam wrote: > The problem is that every person has their own IronRuby folder. It has > to work same for everyone. Kind of like libraries in GAC. > > You are NOT thinking throughly about the problem! > > This is not regarding putting the path in ENV variab

Re: [Ironruby-core] Mocking behavior between clr types

2010-01-24 Thread Orion Edwards
> > I don't want that restriction :( One of the advantages I was hoping to > leverage was the ability to re-write methods that I wouldn't otherwise be > able to. Unfortunately that's not a limitation put there by Caricature, but one put there by the CLR itself. Unless you want to get into disass

Re: [Ironruby-core] Is it possible to generate DLLs?

2010-01-24 Thread Orion Edwards
Sure :-) I realise the world of enterprises is not neccessarily the world of reason or logic :-) At any rate, I remember some vague mentionings on the list about a platform abstraction layer and it's being able to read files directly out of zips, which sounds like it would also be useful... was th

Re: [Ironruby-core] Is it possible to generate DLLs?

2010-01-23 Thread Orion Edwards
If you've ever run reflector over a .NET dll, you'll realise that you're pretty much shipping the source to every C# or VB.net app you write - so going along with this I'd recommend just putting the ruby files in a zip, renaming the zip to .blah, and calling it a day On 24/01/2010, at 1:02 AM,

Re: [Ironruby-core] dealing with TFS

2010-01-23 Thread Orion Edwards
We've got a couple of people using the TFS->SVN bridge, which I think is made by the codeplex guys. It's SLOW, but it works well for them, as they're on smaller projects. On 24/01/2010, at 4:28 AM, Ivan Porto Carrero wrote: > Hi > > How do you guys deal with TFS? > > My guys have settled on R

Re: [Ironruby-core] Asynchronous Calls

2010-01-21 Thread Orion Edwards
What do you mean by "set up asynchronous calls"? If your get_settings method is a C# method using the IAsyncResult pattern, then you should be able to invoke it from IronRuby. >From memory you can pass a ruby Proc in place of the AsyncCallback and it >should all work: Example: callback = lambd

Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1)

2010-01-18 Thread Orion Edwards
gt; ["clr_to_ruby", "mangle", "ruby_to_clr", "unmangle"] > > >>> include IronRuby::Clr > > >>> Name.mangle("FooBar") > > => "foo_bar" > > >>> Name.unmangle("my_foo") > >

Re: [Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1)

2010-01-17 Thread Orion Edwards
I am doing load_assembly 'IronRuby', and it didn't work (the example is copy/pasted pretty much verbatim). Not sure if that means your version of IR is different to mine, or what? Cheers, On Mon, Jan 18, 2010 at 3:56 PM, Jimmy Schementi < jimmy.scheme...@microsoft.com> wrote: > load_assembly 'Ir

[Ironruby-core] Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1)

2010-01-17 Thread Orion Edwards
I'd like to use the IronRuby name mangling methods from within a script I'm writing, but it seems as though I can't access things that are defined in IronRuby.dll? Reflector tells me that TryMangleName is a public static method on IronRuby.Runtime.RubyUtils, which is defined in IronRuby.dll. I'm

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-16 Thread Orion Edwards
archPath > or something like that (it's on my computer which needs to charge). > > JD > > > > From: Orion Edwards > Sent: Friday, January 15, 2010 9:52 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] rexml/document with IronRuby >

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-15 Thread Orion Edwards
While I agree that changing the app.config is a common task, and it's easy if you're just shipping a single standalone app, it's a giant pain in the ass if you're having to upgrade an existing installation, or integrate with another program. (Outlook.exe.config anyone??) I've seen a fair few .ne

Re: [Ironruby-core] rexml/document with IronRuby

2010-01-15 Thread Orion Edwards
The worst thing about WCF is all the configuration! Just because everything else sucks it doesn't mean that it's ok for us to suck too! At least you can configure WCF programatically. Along the same lines, it would be nice for IronRuby to offer a programmatic option also (if it already does, th

Re: [Ironruby-core] Review: Time does not map to System.DateTime

2010-01-11 Thread Orion Edwards
I've just upgraded to the latest IronRuby and am hitting this... Given that I have a bunch of Time objects, how do I now convert them to a System::DateTime for clr interop? I can't seem to find any methods on the ruby Time object that return the clr object __

Re: [Ironruby-core] 2d array

2009-11-29 Thread Orion Edwards
... And here's a convenient helper class Array def to_2d_a(ruby_type) sub_count = self.length max_sub_len = self.map{ |a| a.length }.max ar = System::Array.CreateInstance(ruby_type.to_clr_type, sub_count, max_sub_len) self.each_with_index do |sub, idx| sub.each_with_index

Re: [Ironruby-core] 2d array

2009-11-29 Thread Orion Edwards
This worked for me: System::Array.CreateInstance(System::Object.to_clr_type, 5, 6) Getting and setting works using x[1,2] as you'd expect Cheers! On Mon, Nov 30, 2009 at 1:44 PM, Curt Hagenlocher wrote: > You can create an array using the BCL by calling Array.CreateInstance. > >From C#, it wo

[Ironruby-core] 2d array

2009-11-29 Thread Orion Edwards
I have some C# code which is expecting a 2d array. public static class Foo { public static int Bar(object[,] inArray) { ... } } Is there any way that I can call this from IronRuby? I can't figure out how to create the 2d array? I have a feeling this has been asked before, but I can't fin

Re: [Ironruby-core] Calling a C# static from IronRuby

2009-11-13 Thread Orion Edwards
On Fri, Nov 13, 2009 at 9:07 PM, Jimmy Schementi > wrote: FYI, we’re thinking about allowing you to use “include” with .NET types, which will include it’s static methods. That would enable: I'd be very much in favour of this. A .NET static class full of static methods always seemed like it

Re: [Ironruby-core] mailing list issues?

2009-11-11 Thread Orion Edwards
Hrm, they obviously got through then. Maybe gmail is being too clever for it's own good and not showing me my own messages :-( Confusing... Thanks anyway guys ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listin

[Ironruby-core] mailing list issues?

2009-11-11 Thread Orion Edwards
I sent a couple of emails about potential regressions in IronRuby 0.9.2, but they haven't yet shown up on the list. Is something wrong or are they likely to just be sitting in the moderation queue? Thanks, Orion ___ Ironruby-core mailing list Ironruby-co

[Ironruby-core] IronRuby 0.9.2 bug - Can't define a singleton method on a COM object instance

2009-11-08 Thread Orion Edwards
This code used to work under IronRuby 0.9.1 and earlier load_assembly "microsoft.office.word.interop" word = Microsoft::Office::Interop::Word::ApplicationClass.new metaclass = class << word; self; end metaclass.send :define_method, "fizz" do |*args| puts "hello" end #BANG! Under 0.9.2, this ha

[Ironruby-core] IronRuby 0.9.2 bug - super(.S, 1*&):433 @1 not supported on foreign meta-objects

2009-11-08 Thread Orion Edwards
I have the following code, which used to work under IronRuby 0.9.1 and earlier class Object def method_missing(sym, *args, &block) if sym.to_s =~ /blah regex/ # do stuff else super # call through to underlying ruby method_missing end end end Under 0.9.1 this worked acr

  1   2   >