[#17198] enhancing Ruby error messages for out of the bound constant Fixnum? — Guillaume Cottenceau <gc@...>

Hi,

11 messages 2001/07/03

[#17206] /* */ comments — Dave Thomas <Dave@...>

43 messages 2001/07/04
[#17207] Re: /* */ comments — Stephen White <spwhite@...> 2001/07/04

On Wed, 4 Jul 2001, Dave Thomas wrote:

[#17251] Re: /* */ comments — Sean Chittenden <sean-ruby-talk@...> 2001/07/04

> Over on http://www.rubygarden.org, dv posted a patch to parse.y that

[#17268] Re: /* */ comments — matz@... (Yukihiro Matsumoto) 2001/07/05

Hi,

[#17212] Ruby 1.6.4 Win32 .exe installer question — A Bull in the China Shop of Life <feoh@...>

Folks;

11 messages 2001/07/04

[#17225] Re: /* */ comments — Arnaud Meuret <ameuret@...4you.com>

|From: Mark Slagell [mailto:ms@iastate.edu]

17 messages 2001/07/04

[#17240] Ruby Mascot/logo — "Kevin Powick" <kpowick@...>

Hi there.

14 messages 2001/07/04

[#17281] Inheritance — "Aleksei Guzev" <aleksei.guzev@...>

15 messages 2001/07/05
[#17282] Re: Inheritance — ts <decoux@...> 2001/07/05

>>>>> "A" == Aleksei Guzev <aleksei.guzev@bigfoot.com> writes:

[#17348] Adding a method to a class at the top-level — Guillaume Cottenceau <gc@...>

Comrades,

14 messages 2001/07/05

[#17482] Aliases for class methods — "HarryO" <harryo@...>

Say I wanted to write my own version of File#open that adds some

23 messages 2001/07/08

[#17511] Ruby on Slashdot — jweirich@...

Ruby is currently mentioned on Slashdot. I posted some references.

29 messages 2001/07/08
[#17512] Re: Ruby on Slashdot — Tobias Reif <tobiasreif@...> 2001/07/08

Interesting...

[#17518] Re: Ruby on Slashdot — matz@... (Yukihiro Matsumoto) 2001/07/09

Hi,

[#17519] Re: Ruby on Slashdot — "James (ruby-talk)" <ruby@...> 2001/07/09

> |I thought about that too; what about Ruby being a standard?

[#17525] Re: Ruby on Slashdot — matz@... (Yukihiro Matsumoto) 2001/07/09

Hi,

[#17536] Re: Ruby on Slashdot — David Alan Black <dblack@...> 2001/07/09

Hello --

[#17572] Re: Constants and Variables — "HarryO" <harryo@...>

> If you want objects that don't change, try Object#freeze,

25 messages 2001/07/10

[#17732] Re: Array#sort! returns nil when array empty — hfulton@...

> Array#sort! returns nil if the array is empty, whereas ri

32 messages 2001/07/12
[#17736] Re: Array#sort! returns nil when array empty — Paul Brannan <pbrannan@...> 2001/07/12

On Fri, 13 Jul 2001 hfulton@pop-server.austin.rr.com wrote:

[#17739] Re: Array#sort! returns nil when array empty — ts <decoux@...> 2001/07/12

>>>>> "P" == Paul Brannan <pbrannan@atdesk.com> writes:

[#17746] Re: Array#sort! returns nil when array empty — Paul Brannan <pbrannan@...> 2001/07/12

On Fri, 13 Jul 2001, ts wrote:

[#17747] What is Array#- ? — Jim Freeze <jim@...> 2001/07/12

While following the Array thread, I noticed the minus

[#17752] Re: What is Array#- ? — Dave Thomas <Dave@...> 2001/07/12

Jim Freeze <jim@freeze.org> writes:

[#17753] Re: What is Array#- ? — Jim Freeze <jim@...> 2001/07/12

On Fri, 13 Jul 2001, Dave Thomas wrote:

[#17833] Extending objects — "Aleksei Guzev" <aleksei.guzev@...>

16 messages 2001/07/14
[#17834] Ruby-newbie seeks help with Rubywin starting IRB — "Euan Mee" <lucid@...> 2001/07/14

Once I fire up Rubywin, and then invoke _R_uby _I_rb from the

[#17839] Re: Ruby-newbie seeks help with Rubywin starting IRB — A Bull in the China Shop of Life <feoh@...> 2001/07/14

At 07:05 PM 7/14/01 +0900, Euan Mee spewed forth:

[#17859] Re: Creating methods on the fly — "HarryO" <harryo@...>

I

18 messages 2001/07/15

[#17925] Movement in scripting language communities to integrate XML-RPC — gsemones@... (Guerry Semones)

Greetings,

20 messages 2001/07/16
[#17934] Re: Movement in scripting language communities to integrate XML-RPC — Tobias Reif <tobiasreif@...> 2001/07/16

"out of the box" by including

[#18018] Broadcasting data — "HarryO" <harryo@...>

Does someone have an example of broadcasting data around a network using

12 messages 2001/07/18

[#18023] [ANN] libxslt Rubified! — Wai-Sun Chia <waisun.chia@...>

Hello,

16 messages 2001/07/18
[#18024] Re: [ANN] libxslt Rubified! — TAKAHASHI Masayoshi <maki@...> 2001/07/18

Wai-Sun Chia <waisun.chia@compaq.com> wrote:

[#18100] Looking for Ruby programming exercises — Wayne Vucenic <wvucenic@...> 2001/07/19

I've been learning Ruby, mostly with the Pickaxe book, and it's going

[#18188] Newbie. Sinking fast. Please help. — Matt <matt@...>

I bought Programming Ruby a number of months back and finally have an opportunity to try out Ruby. However, I can't get it to build. Actually, that's not quite accurate. It builds fine. It won't pass 'make test'.

12 messages 2001/07/20

[#18193] Re: 99 bottles of beer — "Dat Nguyen" <thucdat@...>

18 messages 2001/07/20
[#18204] Re: 99 bottles of beer — Glen Starchman <glen@...> 2001/07/20

99.downto(0){|x|w=" on the wall";u="#{x!=0?eval(x.to_s):'no more'}

[#18306] Ruby as opposed to Python? — "Mark Nenadov" <mnenadov@...>

Hello. I have toyed with the idea of trying Ruby out for some time now.

118 messages 2001/07/22
[#18759] Re: Ruby as opposed to Python? — Paul Prescod <paulp@...> 2001/07/29

Yukihiro Matsumoto wrote:

[#18774] Re: Ruby as opposed to Python? — "Florian G. Pflug" <fgp@...> 2001/07/30

On Mon, Jul 30, 2001 at 05:58:22AM +0900, Paul Prescod wrote:

[#18393] Trouble Using FXRuby on cygwin/Windows NT — rgilbert1@... (Robbie Gilbert)

Hi,

10 messages 2001/07/23

[#18566] Which database should I use? — Urban Hafner <the-master-of-bass@...>

Hello everybody,

17 messages 2001/07/26
[#18575] Re: Which database should I use? — Urban Hafner <the-master-of-bass@...> 2001/07/26

[#18582] Re: Which database should I use? — Michael Neumann <neumann@...> 2001/07/26

Urban Hafner wrote:

[ruby-talk:18062] Re: Wny two exception handling methods?

From: Ned Konz <ned@...>
Date: 2001-07-18 19:17:47 UTC
List: ruby-talk #18062
Michael Neumann wrote:

> Rescue is a keyword, raise a method. They are used for exception handling,
> catch/throw are two methods, and are used to escape from nested loops,

Thanks for the clarification.

> Don't know about "resume", but perhaps "retry" is what you want.
> "retry" executes the block that failed once again.

Yes, I know about retry, but that's not what I'm interested in. I want to 
be able to retry the method that raised the exception -- in the original 
context. Ruby's (apparent) semantics are to throw away the stack between 
where the exception was initially raised and the first exception handler. 
Because of this, it's impossible to examine the context, fix the error, and 
then resume the thread, and instead you have to have explicit exception 
handling constructs throughout your code. I realize that in a 
non-interactive environment, this isn't as interesting, and you have to add 
the explicit exception handling.

It's just that in Smalltalk you don't have to add exception handling when 
trying out your program. If you get an exception, you can fix the problem 
and resume right where the program left off. In other words, you can retry 
at the level of any of the blocks between where the exception was first 
raised and the (possibly global) exception handler.

>> One of the reasons that resume semantics are interesting in Smalltalk is
>> that you can (for instance) pop up a debugger on an exception, interact
>> with the system, and then resume execution of the program.
> 
> That should be possible with Ruby, too.

How would that be possible with no resume? Imagine wrapping a whole program 
that lacks explicit rescue clauses inside a single exception handler that 
brings up a debugger. If the stack contexts have already been thrown away 
by the unwind mechanism, how are you going to do anything but retry the 
_whole program_?

But this very model works (well) in Smalltalk -- by default the global 
exception handler pops up a window that allows you to enter a debugger, 
retry, or abort the thread.

>> I guess that Ruby isn't yet aimed at the kind of long-running and
>> interactive systems that Smalltalk excels at. For instance, I used to
>> write factory machine control software in Smalltalk. Without stopping the
>> machine, we could load new versions of methods into the system, stop
>> threads, debug them, and resume them, and otherwise maintain the system
>> without bringing it down.
> 
> Possible with Ruby, too.

Even pausing/single-stepping/resuming arbitrary threads? How?

> Ruby is as dynamic as Smalltalk is.
> No problem to load new methods at runtime, etc..

Yes, this is one of the reasons that Ruby's appealing to me.

>> Does Ruby offer this ability? It seems that the debugger hooks are in an
>> inconvenient place (via a command-line option); does this mean that one
>> cannot debug a running system that has not been started with the debug
>> flag? I realize that you could have a thread in which you could do evals,
>> but can you (for instance) pause a running thread, step through it a bit,
>> and then resume it?
> 
> Smalltalk runs a debugger by default (I guess). Ruby do not.
> That's because Smalltalk is mostly an IDE + language, where Ruby is just
> an interpreter.

I understand that. But given Ruby's reflection and GUI abilities, why 
wouldn't a native Ruby IDE be a good thing to have?

> But it should be possible to load a debugger at runtime. Just call
> anywhere in a Ruby program "require debug.rb". That should do it.

Good, I'll try that. How does the debugger actually set breakpoints? Does 
it wrap the method in question, is there a method that you can call for a 
breakpoint (as in Smalltalk), or is there some flag that the interpreter 
has to check for every instruction (as is the case in Perl)?

In Perl, running with the debugger has a signficant performance penalty 
because of the check for breakpoints. Given Ruby's ability to wrap methods, 
I could imagine that a Ruby debugger wouldn't need to slow down any.

Thanks for the input!

In This Thread