[#101991] Gateway appears to be working!! — "David A. Black" <dblack@...>

Hi --

13 messages 2004/06/01

[#102028] What is the equivalent of Python's "%s" % "MyString"? — "Sam Sungshik Kong" <ssk@...>

Hello!

20 messages 2004/06/01

[#102050] Obfuscating Ruby Code. — "Ken Hilton" <kenosis@...>

Does anyone know of a Ruby source code obfuscator that's reliable and

56 messages 2004/06/01

[#102170] Floating point division operator /. (or fdiv method) — Michael Neumann <mneumann@...>

Hi,

31 messages 2004/06/02
[#102247] Re: [RCR] Floating point division operator /. (or fdiv method) — "Robert Klemme" <bob.news@...> 2004/06/03

[#102231] Reply wasn't posted; will test new post — "Pe, Botp" <botp@...>

Hi ALL:

38 messages 2004/06/03
[#102236] Re: Reply wasn't posted; will test new post — "daz" <dooby@...10.karoo.co.uk> 2004/06/03

[#102241] Re: Reply wasn't posted; will test new post — "David A. Black" <dblack@...> 2004/06/03

Hi --

[#102366] Active Record 0.8.2: Inheritable callback ques — David Heinemeier Hansson <david@...>

What's new in Active Record 0.8.2?

13 messages 2004/06/04

[#102401] Problem Installing Ruby Gems 0.4.0 on XP not segfault — "Ernie" <erne@...>

I get the following error I'm running Ruby 1.8 windows version installed

10 messages 2004/06/04

[#102412] Check assertion in Ruby — Edgardo Hames <ehames@...>

Hi, everybody. I would like to use an assert like function to test the

20 messages 2004/06/04

[#102431] How to ducktype a Hash? — "Sean O'Dell" <sean@...>

I need to detect when an object is a hash-like container for other objects,

137 messages 2004/06/05
[#102456] Re: How to ducktype a Hash? — "Robert Klemme" <bob.news@...> 2004/06/05

[#102495] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/05

On Saturday 05 June 2004 02:28, Robert Klemme wrote:

[#102496] Re: How to ducktype a Hash? — Dave Thomas <dave@...> 2004/06/05

[#102499] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/05

On Saturday 05 June 2004 10:39, Dave Thomas wrote:

[#102507] Re: How to ducktype a Hash? — Dave Thomas <dave@...> 2004/06/05

[#102514] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/06

On Saturday 05 June 2004 13:30, Dave Thomas wrote:

[#102530] Re: How to ducktype a Hash? — "John W. Long" <ng@...> 2004/06/06

Sean O'Dell wrote:

[#102535] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/06

On Saturday 05 June 2004 21:05, John W. Long wrote:

[#102563] Re: How to ducktype a Hash? — David Garamond <lists@...6.isreserved.com> 2004/06/06

Sean O'Dell wrote:

[#102573] Re: How to ducktype a Hash? — "David A. Black" <dblack@...> 2004/06/06

Hi --

[#102465] Re: How to ducktype a Hash? — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com> 2004/06/05

il Sat, 5 Jun 2004 11:15:37 +0900, "Sean O'Dell" <sean@celsoft.com> ha

[#102509] Re: How to ducktype a Hash? — "John W. Long" <ng@...> 2004/06/05

[#102516] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/06

On Saturday 05 June 2004 15:01, John W. Long wrote:

[#102649] Re: How to ducktype a Hash? — "Dave Burt" <burtdav@...> 2004/06/07

param.respond_to? '[]' and

[#102445] class A::B verses module A ; class B — quixoticsycophant@... (Jeff Mitchell)

module A

14 messages 2004/06/05

[#102597] Segfault on embedded ruby. — Godot <garciamj@...>

16 messages 2004/06/06

[#102601] Instiki 0.9.0: Rendering improvements, Latex integration, OS X version — David Heinemeier Hansson <david@...>

What's new in Instiki 0.9.0?

9 messages 2004/06/06

[#102675] Waiting for condor output files — Milo Thurston <nospam@...>

I've got a script that submits a whole load of condor jobs, and has to

11 messages 2004/06/07

[#102710] Re: How to ducktype a Hash? — "Austin Ziegler" <Austin.Ziegler@...>

> dblack@wobblini.evault.com

18 messages 2004/06/07

[#102716] Re: Unit tests ... not just for the young — "Kloubakov, Yura" <YKloubakov@...>

22 messages 2004/06/07
[#102729] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Monday 07 June 2004 16:13, Kloubakov, Yura wrote:

[#102789] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/08

> I've worked with some fresh guys right

[#102796] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 07:55, Michael Campbell wrote:

[#102808] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/08

> Non-college grads, though, never got hired unless they could prove their

[#102819] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 10:03, Michael Campbell wrote:

[#102822] Re: Unit tests ... not just for the young — Jim Freeze <jim@...> 2004/06/08

On Wednesday, 9 June 2004 at 3:52:21 +0900, Sean O'Dell wrote:

[#102823] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/08

>

[#102824] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 12:12, Michael Campbell wrote:

[#102731] Interfaces and semantics (or, how to hashpipe a duck) — Hal Fulton <hal9000@...>

Semantics, James Thurber notwithstanding, is not a town in Ohio.

34 messages 2004/06/08
[#102814] Re: Interfaces and semantics (or, how to hashpipe a duck) — djberg96@... (Daniel Berger) 2004/06/08

"Sean O'Dell" <sean@celsoft.com> wrote in message news:<200406080736.32485.sean@celsoft.com>...

[#102818] Re: Interfaces and semantics (or, how to hashpipe a duck) — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 11:23, Daniel Berger wrote:

[#102839] Re: Interfaces and semantics (or, how to hashpipe a duck) — "David A. Black" <dblack@...> 2004/06/08

Hi --

[#102788] ruby and mustard — "Ara.T.Howard" <Ara.T.Howard@...>

20 messages 2004/06/08

[#102817] Ruby/Interface — "Sean O'Dell" <sean@...>

Ruby/Interface 0.1-1

18 messages 2004/06/08

[#102863] oddities with select — Ben Giddings <bg-rubytalk@...>

I'm trying to use Ruby to talk to an network application, and noticed

21 messages 2004/06/08

[#102890] Re: Unit tests ... not just for the young — "Pe, Botp" <botp@...>

Gennady [mailto:gfb@tonesoft.com] wrote:

39 messages 2004/06/09
[#102891] Re: Unit tests ... not just for the young — Jim Freeze <jim@...> 2004/06/09

On Wednesday, 9 June 2004 at 11:46:12 +0900, "Pe?a, Botp" wrote:

[#102896] Re: Unit tests ... not just for the young — Dan Tapp <dhtapp@..._sig_line.com> 2004/06/09

Jim Freeze wrote:

[#102900] Re: Unit tests ... not just for the young — Tyler Zesiger <mailing-lists@...> 2004/06/09

I'd be afraid to hire a code-monkey who said yes.

[#102929] Re: Unit tests ... not just for the young — Tom Copeland <tom@...> 2004/06/09

On Wed, 2004-06-09 at 01:21, Tyler Zesiger wrote:

[#102930] Re: [OT] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/09

On Wed, 9 Jun 2004 22:48:30 +0900, Tom Copeland <tom@infoether.com> wrote:

[#102931] Re: [OT] Re: Unit tests ... not just for the young — Tom Copeland <tom@...> 2004/06/09

On Wed, 2004-06-09 at 09:56, Michael Campbell wrote:

[#102934] Re: [OT] Re: Unit tests ... not just for the young — Jim Freeze <jim@...> 2004/06/09

On Wednesday, 9 June 2004 at 23:02:22 +0900, Tom Copeland wrote:

[#102978] Re: [OT] Re: Unit tests ... not just for the young — Jean-Hugues ROBERT <jean_hugues_robert@...> 2004/06/09

At 23:21 09/06/2004 +0900, you wrote:

[#102914] strip DOS ^Ms? — Dick Davies <rasputnik@...>

15 messages 2004/06/09

[#102922] Active Record 0.8.3: Modules, mapping, and transactions — David Heinemeier Hansson <david@...>

What's new in Active Record 0.8.3?

12 messages 2004/06/09

[#102950] #include <re.h> required for Opteron but not Pentium. — Jim Freeze <jim@...>

Hi

14 messages 2004/06/09
[#103007] Re: #include <re.h> required for Opteron but not Pentium. — Tim Hunter <cyclists@...> 2004/06/09

On Thu, 10 Jun 2004 03:58:55 +0900, Jim Freeze wrote:

[#102951] History of Languages poster from O'Reilly — djberg96@... (Daniel Berger)

Hi all,

12 messages 2004/06/09

[#103072] Graphing 2Ds in Python is pretty easy... — piir@... (Todd Gardner)

Hello everyone,

16 messages 2004/06/10

[#103172] Array#rest — Charles Comstock <cc1@...>

I find myself frequently using array slice of 1..-1, to pass the rest of an

25 messages 2004/06/11

[#103217] Switch to .ruby extension? — doodpants@... (Karl von Laudermann)

The current convention for Ruby source file names is to end them with

72 messages 2004/06/11
[#103228] Re: Switch to .ruby extension? — Tyler Zesiger <mailing-lists@...> 2004/06/11

The obsessive levels of abbreviation in the *nix world infuriate me.

[#103580] Re: Switch to .ruby extension? — "SER" <ser@...> 2004/06/14

> I remember when I first started using linux (now I use FreeBSD, which

[#103599] Re: Switch to .ruby extension? — Tyler Zesiger <mailing-lists@...> 2004/06/14

I don't know how much of the thread you read through, but I repeated at

[#103602] Re: Switch to .ruby extension? — "Sean O'Dell" <sean@...> 2004/06/14

On Monday 14 June 2004 16:13, Tyler Zesiger wrote:

[#103605] Re: Switch to .ruby extension? — "Zach Dennis" <zdennis@...> 2004/06/14

>Most programmers

[#103608] Re: Switch to .ruby extension? — "Sean O'Dell" <sean@...> 2004/06/15

On Monday 14 June 2004 16:46, Zach Dennis wrote:

[#103618] Re: Switch to .ruby extension? — Sam Roberts <sroberts@...> 2004/06/15

Quoteing sean@celsoft.com, on Tue, Jun 15, 2004 at 09:40:26AM +0900:

[#103622] Re: Switch to .ruby extension? — "Sean O'Dell" <sean@...> 2004/06/15

On Monday 14 June 2004 19:09, Sam Roberts wrote:

[#103673] Re: Switch to .ruby extension? — Sam Roberts <sroberts@...> 2004/06/15

Wrote Sean O'Dell <sean@celsoft.com>, on Tue, Jun 15, 2004 at 11:36:18AM +0900:

[#103239] Re: Switch to .ruby extension? [OT] — Mark Hubbart <discord@...> 2004/06/11

[#103246] Re: Switch to .ruby extension? [OT] — Tyler Zesiger <mailing-lists@...> 2004/06/11

I think I may be earning myself a reputation as a user-friendliness

[#103252] Re: Switch to .ruby extension? [OT] — "Zach Dennis" <zdennis@...> 2004/06/11

[#103258] Re: Switch to .ruby extension? [OT] — Tyler Zesiger <mailing-lists@...> 2004/06/11

[#103225] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...>

Battery is a unit testing framework for Ruby. It captures all standard error

61 messages 2004/06/11
[#103236] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/11

Hi --

[#103250] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/11

On Friday 11 June 2004 11:47, David A. Black wrote:

[#103267] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/12

Hi --

[#103275] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/12

On Friday 11 June 2004 18:08, David A. Black wrote:

[#103308] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/12

On Sat, 12 Jun 2004, Sean O'Dell wrote:

[#103329] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/12

On Saturday 12 June 2004 03:49, David A. Black wrote:

[#103353] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/12

> arbitrary:

[#103366] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/12

On Saturday 12 June 2004 13:34, David A. Black wrote:

[#103389] Re: [ANN] celsoft.com/Battery 0.1.1 — Jean-Hugues ROBERT <jean_hugues_robert@...> 2004/06/13

At 08:12 13/06/2004 +0900, you wrote:

[#103525] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/14

On Sunday 13 June 2004 00:13, Jean-Hugues ROBERT wrote:

[#103533] Re: [ANN] celsoft.com/Battery 0.1.1 — James Britt <jamesUNDERBARb@...> 2004/06/14

Sean O'Dell wrote:

[#103536] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/14

On Monday 14 June 2004 09:27, James Britt wrote:

[#103412] Re: [ANN] celsoft.com/Battery 0.1.1 — Nathaniel Talbott <nathaniel@...> 2004/06/13

On Jun 12, 2004, at 12:28, Sean O'Dell wrote:

[#103413] Re: [ANN] celsoft.com/Battery 0.1.1 — Jamis Buck <jgb3@...> 2004/06/13

Nathaniel Talbott wrote:

[#103532] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/14

On Sunday 13 June 2004 07:52, Jamis Buck wrote:

[#103293] Any way to get the calling method's binding? — Gavin Sinclair <gsinclair@...>

Something I've wanted to do on a few occasions recently is to evaluate

13 messages 2004/06/12

[#103328] OpenSSL: patch — Jamis Buck <jgb3@...>

Attached is a patch for the Ruby/OpenSSL module, done against the code

25 messages 2004/06/12

[#103334] undefine — tony summerfelt <snowzone5@...>

is there a way to undefine a variable?

43 messages 2004/06/12
[#103405] Re: undefine — "Robert Klemme" <bob.news@...> 2004/06/13

[#103438] undefine — tony summerfelt <snowzone5@...> 2004/06/13

On Sun, 13 Jun 2004 20:08:48 +0900, you wrote:

[#103465] Re: undefine — Claus Spitzer <DocBoobenstein@...> 2004/06/14

Again, this is where it's useful to consider the OO approach and think

[#103550] undefine — tony summerfelt <snowzone5@...> 2004/06/14

On Mon, 14 Jun 2004 16:18:32 +0900, you wrote:

[#103560] Re: undefine — Michael Campbell <michael.campbell@...> 2004/06/14

> i just need the variable to 'not exist' however it's thought about (by

[#103335] "www.ruby-lang.org" still down for maintenance - thats not good — Lothar Scholz <mailinglists@...>

Hello,

12 messages 2004/06/12

[#103381] Ruby /.'ted — Dan Tapp <dhtapp@..._sig_line.com>

Ruby was just slashdotted under "Developers: Searching for the Best

14 messages 2004/06/13

[#103404] How to read a .csv file into a 2D array? — piir@... (Todd Gardner)

Hello everyone,

16 messages 2004/06/13

[#103468] Non-standard library project — Gavin Sinclair <gsinclair@...>

Hi all,

28 messages 2004/06/14

[#103650] "Litte Ruby" book — Csaba Henk <csaba@..._for_avoiding_spam.org>

The book (or book-germ) entitled "A Little Ruby, A Lot of Objects" was

15 messages 2004/06/15

[#103697] a newbie question about main, Object... — "Sam Sungshik Kong" <ssk@...>

Hello!

14 messages 2004/06/15

[#103742] Re: [ANN] celsoft.com/Battery 0.1.1 — "Austin Ziegler" <Austin.Ziegler@...>

Sean O'Dell [mailto:sean@celsoft.com] :

17 messages 2004/06/15
[#103744] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/15

On Tuesday 15 June 2004 13:53, Austin Ziegler wrote:

[#103874] Bidirectional named pipes on Linux — ptkwt@... (Phil Tomson)

12 messages 2004/06/16

[#103930] introducing Hash-like mixin — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>

Hi gurus and nubys,

17 messages 2004/06/17

[#103974] the new great computer language shootout — ptkwt@... (Phil Tomson)

26 messages 2004/06/17
[#103975] Re: the new great computer language shootout — Lennon Day-Reynolds <rcoder@...> 2004/06/17

Part of the speedup appears to be from their use of the Psyco JIT

[#103986] Re: the new great computer language shootout — Eric Hodel <drbrain@...7.net> 2004/06/17

Lennon Day-Reynolds (rcoder@gmail.com) wrote:

[#103992] Re: the new great computer language shootout — Eric Hodel <drbrain@...7.net> 2004/06/17

Eric Hodel (drbrain@segment7.net) wrote:

[#103977] How to make generic #== method? — Zakaria <zakaria@...>

Hi,

13 messages 2004/06/17

[#103993] Generating "real-time" 2D line plots in Windows 2k? — piir@... (Todd Gardner)

Hello everyone,

11 messages 2004/06/17

[#104182] rubys web performance — Florian Weber <csshsh@...>

hi!

31 messages 2004/06/20

[#104222] About top-level method — "Sam Sungshik Kong" <ssk@...>

Hello!

15 messages 2004/06/21

[#104272] A question about Class and Object — "Sam Sungshik Kong" <ssk@...>

Hello!

18 messages 2004/06/21

[#104364] Newbie question - how to replace multiple whitespace within a string? — Brian Tully <btully@...>

Sorry if this is too basic a question but I just inherited a handful of Ruby

10 messages 2004/06/22

[#104455] rubygems thoughts — Hans Fugal <fugalh@...>

My participation here is sporadic at best, so forgive me if these

34 messages 2004/06/24
[#104459] Re: rubygems thoughts — "Jim Weirich" <jim@...> 2004/06/24

[#104465] Re: rubygems thoughts — Hans Fugal <hfugal@...> 2004/06/24

Jim Weirich wrote:

[#104466] Re: rubygems thoughts — "Sean O'Dell" <sean@...> 2004/06/24

On Thursday 24 June 2004 10:18, Hans Fugal wrote:

[#104494] Is it considered Harmful? — "rolo" <rohitlodha@...>

Hi

133 messages 2004/06/24
[#104495] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/24

On Thursday 24 June 2004 16:15, rolo wrote:

[#104498] Re: Is it considered Harmful? — Eric Hodel <drbrain@...7.net> 2004/06/24

Sean O'Dell (sean@celsoft.com) wrote:

[#104499] Re: Is it considered Harmful? — "rolo" <rohitlodha@...> 2004/06/25

> Sean O'Dell (sean@celsoft.com) wrote:

[#104500] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/25

On Thursday 24 June 2004 17:23, rolo wrote:

[#104526] Re: Is it considered Harmful? — ts <decoux@...> 2004/06/25

>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:

[#104539] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/25

On Friday 25 June 2004 02:19, ts wrote:

[#104542] Re: Is it considered Harmful? — Dave Thomas <dave@...> 2004/06/25

[#104587] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/25

On Friday 25 June 2004 08:57, Dave Thomas wrote:

[#104636] Re: Is it considered Harmful? — ts <decoux@...> 2004/06/26

>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:

[#104646] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/26

On Saturday 26 June 2004 04:19, ts wrote:

[#104663] Re: Is it considered Harmful? — ts <decoux@...> 2004/06/27

>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:

[#104694] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 01:41, ts wrote:

[#104699] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

I think that #become and #class= are _theoretically_ wrong. Such a

[#104700] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 13:44, Patrick May wrote:

[#104701] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

On Sunday, June 27, 2004, at 05:20 PM, Sean O'Dell wrote:

[#104706] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 14:48, Patrick May wrote:

[#104710] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

Sean,

[#104712] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 15:43, Patrick May wrote:

[#104714] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

[#104715] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Sunday 27 June 2004 16:53, Patrick May wrote:

[#104716] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/28

[#104724] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Sunday 27 June 2004 17:30, Patrick May wrote:

[#104754] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/28

Sean,

[#104763] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Monday 28 June 2004 05:45, Patrick May wrote:

[#104764] Re: Is it considered Harmful? — Mikael Brockman <phubuh@...> 2004/06/28

"Sean O'Dell" <sean@celsoft.com> writes:

[#104766] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Monday 28 June 2004 08:33, Mikael Brockman wrote:

[#104767] Re: Is it considered Harmful? — Austin Ziegler <halostatue@...> 2004/06/28

On Tue, 29 Jun 2004 00:58:22 +0900, Sean O'Dell <sean@celsoft.com> wrote:

[#104769] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Monday 28 June 2004 09:27, Austin Ziegler wrote:

[#104787] Re: [OT] Re: Is it considered Harmful? — "Bill Kelly" <billk@...> 2004/06/28

Hi,

[#104533] Re: Is it considered Harmful? — Scott Rubin <srubin@...> 2004/06/25

I can't possibly imagine it being useful to do this except when the

[#104535] Re: Is it considered Harmful? — "Jim Weirich" <jim@...> 2004/06/25

[#104501] Building Ruby on AIX -- again — Matt Lawrence <matt@...>

I finally have a stable system to use to try to build Ruby. Here's the

18 messages 2004/06/25
[#104510] Re: Building Ruby on AIX -- again — nobu.nokada@... 2004/06/25

Hi,

[#104511] Re: Building Ruby on AIX -- again — Matt Lawrence <matt@...> 2004/06/25

On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:

[#104512] Re: Building Ruby on AIX -- again — nobu.nokada@... 2004/06/25

Hi,

[#104513] Re: Building Ruby on AIX -- again — Matt Lawrence <matt@...> 2004/06/25

On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:

[#104601] OSCON Ruby tutorials cancelled? — ptkwt@... (Phil Tomson)

14 messages 2004/06/25

[#104637] SQLite-Ruby and "other chrs" — Meino Christian Cramer <Meino.Cramer@...>

Hi,

13 messages 2004/06/26

[#104649] Writing UNIX 'wc' program — "@*(&SPAM&)*optonline.net" <" kboruff\""@*.*optonline.net>

Hey all,

13 messages 2004/06/27

[#104737] (oddity) applying objects with #call() implicitly — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>

Hi gurus and nubys,

16 messages 2004/06/28

[#104864] arrayfields-3.0.0 — "Ara.T.Howard" <Ara.T.Howard@...>

URLS:

16 messages 2004/06/29

Re: How to ducktype a Hash?

From: Mauricio Fern疣dez <batsman.geo@...>
Date: 2004-06-06 10:25:21 UTC
List: ruby-talk #102555
On Sun, Jun 06, 2004 at 09:36:25AM +0900, Sean O'Dell wrote:
> This is the solution I am going with now.  In fact, if Ruby itself had this 
> sort of "interface identification" built-in, it would suit me perfectly.  I 
> don't believe that respond_to? really tells you much about an object's 
> interface.  Two objects can respond to the same method name, but do 
> COMPLETELY different things.  Duck typing doesn't work, and checking 
> respond_to? doesn't work.  The only way to REALLY know if an object 
> implements a certain interface is if you can positively identify it directly.  
> Somehow, the object has to say "I implement the hash interface."  Whether 
> that's just a simple flag, or if Ruby can somehow match it's methods to an 

A protocol imposes constraints to the acceptable behavior of the object, so
as you correctly pointed out, the signatures alone can't suffice. I
believe the current state of the art can discover many implicit
invariants in the code, but it can't infer them all. Even if it could,
at some point you might have some invariants that hold only due to the
particular implementation used, it is still up to the programmer to
specify whether some invariant belongs to the interface or is just a
coincidence.

Therefore, what you seem to want still requires the programmer to tag the 
objects somehow. 

Once we get to this point, we can think of ways to do it. There's two
things to consider: tagging objects and checking for some tag.
One can trivially use Ruby's mix-in mechanism to declare conformance
with a given interface, and then use some magic to allow

def_typed :my_method, HashProtocol, FooProtocol do |foo, bar|
  ... foo, bar have been declared to satisfy HashProtocol & FooProtocol
end

or something like 
	typesig HashProtocol, FooProtocol	# Types for next defined method
	def my_method(foo, bar)

The latter (and many other ways to do type checking) is implemented in
http://people.freebsd.org/~eivind/ruby_types/types.rb .

Regarding including this in the language:
I have argued above that ruby wouldn't be able to do internally much more
than the current solutions (in particular, it is also possible to make
sure that method redefinition doesn't break conformity with a declared
interface in pure-Ruby/C-extension solutions). If it won't be any more
powerful, the possible advantages that could justify including it I can
think of are
 (1) convenience
 (2) speed
 (3) sanctioning this practice as belonging to "the Ruby way"

Regarding (3), it is up to matz to define what is and what isn't Ruby,
so we can't comment.

As for (1), Ruby's syntax is "extensible" thanks to blocks, as shown
in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/99660 .
We'd have to compare syntaxes at some point, but it's not clear a-priori
that a sanctioned syntax in the core must be necessarily better (i.e.
a good solution doesn't necessarily require changes in the parser).

Finally, as far as speed is concerned:
in [85895], matz explains that he doesn't know how to make interface checking
efficient. In [85888] you proposed an interesting interface checking
system and concluded that "Performance hit at runtime is merely a very short
interface table lookup". However, I believe you didn't consider the
following:
* per-object conformity tables are very expensive, memory-wise: one
  additional word per object pointing to the table (if you don't put
  it in the R* structure and store it in the iv_table instead, it'll be
  slower) , plus the table itself.
* per-class conformity tables would have a lower mem. impact, but make
  singleton classes a bit more complex to handle and most importantly
  would make interface checking slower cause you'd have to walk up the
  inheritance chain (caching couldn't be as effective as method caching
  cause there's more objects than distinct methods)

In other words, there's no real way to implement interface checking
much faster than http://mephle.org/StrongTyping/.

That being said, in the future it might be possible to do constraint
propagation (+ partial evaluation) at compile/parse time + method
specialization, which could make everything significantly faster.


Summarizing, there's arguably little gain in adding this sort of interface
checking to Ruby's core _as of now_. There's a number of solutions that
work fairly well and some that are as fast as you can get today.

You have stated before on this thread that tagging objects is a "kludge";
I cannot agree with that, or more precisely, I don't see it as any
worse than the proposed modifications to Ruby we've seen in the past,
since tagging is about as efficient as they would be, and the available
"interface tagging" implementations have pretty convenient syntaxes
(although that's somewhat subjective, but I think we can agree on the fact
that the "best" syntax doesn't necessarily involve changes in the parser).

> interface description, or whatever, I don't care.  All I want to know is if 
> an object implements a certain interface.  I don't care about ancestry, what 
> methods it responds to, and I don't like just calling the object's methods 
> and crossing my fingers.  Errors slip through quietly like that, and except 
> for people who don't really care about that sort of thing, it doesn't work.  

If you need a solution that badly, I'd recommend that you use types.rb
(more flexible) or StrongTyping (faster) for the time being.
I don't think Ruby will do this "natively" for some time...

> It just doesn't.

It is my understanding that some large systems have been implemented in
Smalltalk; I'd like to know if they solved those problems through
interface declaration + checking, more stringent procedures or some
other technical solution.

PS: I am personally more interested in concrete type discovery (for speed)
than in generic type inference.

-- 
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

> Tut mir Leid, Jost, aber Du bist ein unertraeglicher Troll.
Was soll das? Du *beleidigst* die Trolle!
	-- de.comp.os.unix.linux.misc

In This Thread