Re: [Ironruby-core] Code Review: Thread.critical

2009-01-05 Thread Shri Borde
Good catch. I have fixed the issue. Also updated the tests according to Jim's suggestions. Also, the last test using Thread.kill was wrong but seemed to succeed since "flunk" fails silently when used on the non-main thread. New patch included if you want to take a look. Will go ahead and submit

Re: [Ironruby-core] Thread.key failure

2009-01-05 Thread Shri Borde
OK, atleast I know its not me. From: Jim Deville Sent: Monday, January 05, 2009 3:47 PM To: Shri Borde Subject: RE: Thread.key failure Fails for me on CRuby 186p287 JD From: Shri Borde Sent: Monday, January 05, 2009 3:45 PM To: Jim Deville Subject: Thread.key failure Could you try running this

Re: [Ironruby-core] ASP.NET integration ?

2009-01-05 Thread Jimmy Schementi
Phil Haack and I were working on a ASP.NET MVC integration. I have a older snapshot here: http://github.com/jschementi/ironrubymvc. He was working on filter support, and I haven't synced up with him yet, but I'm planning on it shortly. For webforms, there's a rough integration that Tomas made a

Re: [Ironruby-core] Code Review: Thread.critical

2009-01-05 Thread Curt Hagenlocher
The implementation of ThreadOps._CriticalMonitor and ThreadOps._IsInCriticalRegion as class-level fields will cause state information to leak between ScriptRuntimes. These should probably be put on the RubyContext, which can either be done directly or by using RubyContext.GetOrCreateLib

Re: [Ironruby-core] Loading Assemblies

2009-01-05 Thread Curt Hagenlocher
The IronPython assembly resolver is in PythonContext.cs. It's definitely worth reviewing. -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ben Hall Sent: Monday, January 05, 2009 2:51 AM To: ironruby-core@rubyforge.or

[Ironruby-core] ASP.NET integration ?

2009-01-05 Thread Ivan Porto Carrero
As my chapter on Rails is coming to an end I'd like to find out how things are going for ASP.NET webforms or asp.net MVC integration. Do you guys have an idea as to when we could expect something like this? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.7

Re: [Ironruby-core] Code Review: Thread.critical

2009-01-05 Thread Jim Deville
I'd rather see the functionality in irtest.bat in IronRuby's run.bat. That way it runs with run 0. The specs will probably need to be cleaned up to meet RubySpec style guidelines, and to get Brian to approve them. Go ahead and commit them, and I can clean them up, or we can work on them togeth

Re: [Ironruby-core] Code Review: Thread#raise

2009-01-05 Thread Shri Borde
I replied before seeing this... Taking a sampling of a few gems, I think it should actually be the other way. Mongrel and webbrick do use Thread#kill to kill a background thread, but other gems do not. Thread#raise was also used in just a couple of places to raise a timeout error. And it is ver

[Ironruby-core] Code Review: Thread.critical

2009-01-05 Thread Shri Borde
tfpt review "/shelveset:critical;REDMOND\sborde" Microsoft.Scripting.dll: Fix to interpreter to get better stack trace even when call-site caching kicks in. The try-catch needs to be added to all code that can throw an exception in the interpreter (or preferably in one function like Inte

Re: [Ironruby-core] Code Review: Thread#raise

2009-01-05 Thread Shri Borde
Warning sounds reasonable for Thread#kill and Thread#raise. FWIW, Mongrel and webbrick do use Thread#kill to kill a background thread. Thread.critical= can actually be used in a sane way for simple synchronization, like the lock keyword in C#. This is used much more widely, and a warning for th

Re: [Ironruby-core] Error retrieving from github

2009-01-05 Thread Colin Jack
Michael Letterle wrote: > To just do a clone, you shouldn't need ssh or any special firewall rules > try > using http instead: git clone http://github.com/ironruby/ironruby.git Hi, Yeah I tried that but got other errors ("Cannot get remote repository information"). I'm guessing its proxy relat

Re: [Ironruby-core] Error retrieving from github

2009-01-05 Thread Michael Letterle
To just do a clone, you shouldn't need ssh or any special firewall rules try using http instead: git clone http://github.com/ironruby/ironruby.git On Mon, Jan 5, 2009 at 10:13 AM, Colin Jack wrote: > Jirapong Nanta wrote: > > Hi Colin, > > You might want to check with this guide > > http://gi

Re: [Ironruby-core] Error retrieving from github

2009-01-05 Thread Colin Jack
Jirapong Nanta wrote: > Hi Colin, > You might want to check with this guide > http://github.com/guides/getting-a-copy-of-your-github-repo >first. > > Hope this helps, > -Jirapong Ta for the link, done all that now but same error. However "ssh -v g...@github.com" failed so I'm guessing it

Re: [Ironruby-core] Code Review: Thread#raise

2009-01-05 Thread Charles Oliver Nutter
kill and raise might be a bit of a bother if you add warnings, since they're used in several libraries without any good replacement other than reimpl (usually to interrupt stuck IO operations). But yeah, I'd be on board with an across-the-board Thread.critical= warning in both JRuby and IronRub

Re: [Ironruby-core] Error retrieving from github

2009-01-05 Thread jirapong.na...@gmail.com
Hi Colin, You might want to check with this guide http://github.com/guides/getting-a-copy-of-your-github-repo first. Hope this helps, -Jirapong On Jan 5, 2009, at 5:47 PM, Colin Jack wrote: Hi, I've been trying to get IronRuby from GIT using the steps in Ben's blog (http://blog.benhal

[Ironruby-core] Error retrieving from github

2009-01-05 Thread Colin Jack
Hi, I've been trying to get IronRuby from GIT using the steps in Ben's blog (http://blog.benhall.me.uk/2008/12/downloading-ironruby-from-github.html) but keep getting this error: github.com[0: 65.74.177.129]: errno=Invalid argument fatal: unable to connect a socket (Invalid argument) I was wonde

Re: [Ironruby-core] Loading Assemblies

2009-01-05 Thread Ben Hall
I'm back in the office so decided to give this another go. The problem is, it appears to keep attempting to load a particular assembly, resulting in a stackoverflowexception. The method Assembly.load_from(path) never appears to return. I've tried to put a (if already saw then don't load) but I ge