[#29932] Happy 2002! — "Rich Kilmer" <rich@...>

Happy New Year from Washington DC!

24 messages 2002/01/01
[#29938] RE: Happy 2002! — "James Britt (rubydev)" <james@...> 2002/01/01

>

[#29954] Re: Happy 2002! — Dinakar <Desai.Dinakar@...> 2002/01/01

"James Britt (rubydev)" wrote:

[#29991] Execing command with backquotes — mail02@... (Frank Benoit)

Hi

13 messages 2002/01/01

[#30101] Ruby Weekly News rdf feed now available — Dave Thomas <Dave@...>

12 messages 2002/01/03

[#30191] chomp for arrays? — dempsejn@...

Hi All,

25 messages 2002/01/04
[#30238] Re: chomp for arrays? — adamspitz@... (Adam Spitz) 2002/01/04

How about something like this?

[#30248] Re: chomp for arrays? — Massimiliano Mirra <list@...> 2002/01/05

On Sat, Jan 05, 2002 at 04:53:14AM +0900, Adam Spitz wrote:

[#30357] snippet exchange (was: Re: Re: chomp for arrays?) — David Alan Black <dblack@...> 2002/01/06

Hello --

[#30369] Re: snippet exchange (was: Re: Re: chomp for arrays?) — "Mark Hahn" <mchahn@...> 2002/01/06

A daydream of mine is a "super-require" that if the file was not found, the

[#30401] Re: snippet exchange (was: Re: Re: chomp for arrays?) — Dan Sugalski <dan@...> 2002/01/07

At 06:31 AM 1/7/2002 +0900, Mark Hahn wrote:

[#30195] should I use ruby instead of perl — vekkuli ketkutin <qvyht@...>

simple question...

25 messages 2002/01/04

[#30265] Structs and Marshalling — Albert Wagner <alwagner@...>

I keep getting myself tripped up when I Marshal Struct objects. I typically

18 messages 2002/01/05
[#30281] Re: Structs and Marshalling — ts <decoux@...> 2002/01/05

>>>>> "A" == Albert Wagner <alwagner@tcac.net> writes:

[#30334] Re: Structs and Marshalling — Albert Wagner <alwagner@...> 2002/01/06

On Saturday 05 January 2002 06:25 am, you wrote:

[#30473] Re: [ruby-talk:30334] Re: Structs and Marshalling — matz@... (Yukihiro Matsumoto) 2002/01/07

Hi,

[#30528] Possible bug with struct.c (Re: Re: Structs and Marshalling) — ts <decoux@...> 2002/01/07

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#30546] Re: Possible bug with struct.c (Re: Re: Structs and Marshalling) — nobu.nokada@... 2002/01/07

At Tue, 8 Jan 2002 02:36:12 +0900,

[#30274] The Ruby Way — "Conrad Schneiker" <schneiker@...>

Hi,

31 messages 2002/01/05
[#30275] RE: The Ruby Way — "Curt Hibbs" <curt@...> 2002/01/05

> From: Conrad Schneiker [mailto:schneiker@jump.net]

[#30276] Re: The Ruby Way — "Curt Hibbs" <curt@...> 2002/01/05

That was supposed to say "how do I implement a hash with duplicate keys?"

[#30320] Sorting a Hash by value of integer stored in the Hash — Michael Joner <finalfrontier@...>

I have a program which creates a Hash array. The ultimate result is a

14 messages 2002/01/06

[#30327] one liner / overriden class repository — "Jack Dempsey" <dabigdemp@...>

Why aim if not high? :-)

15 messages 2002/01/06

[#30366] class name reported differently in different contexts — Joel VanderWerf <vjoel@...>

30 messages 2002/01/06
[#30380] Re: class name reported differently in different contexts — "Chr. Rippel" <chr_news@...> 2002/01/06

[#30496] Re: class name reported differently in different contexts — <ale@...> 2002/01/07

On Mon, 7 Jan 2002, Chr. Rippel wrote:

[#30372] [ANN] Invitation to join LotY (Language of the Year) project, 2002: learning Haskell — David Alan Black <dblack@...>

Dear fellow programmers,

10 messages 2002/01/06

[#30431] Re: snippet exchange (was: Re: Re: chomp for arrays?) — "Jack Dempsey" <dabigdemp@...>

The way i was thinking of this working would be this: someone has heard of a

14 messages 2002/01/07

[#30461] Re: the [ruby-talk] is gone? — "Jack Dempsey" <dabigdemp@...>

Hi Matz,

13 messages 2002/01/07

[#30494] Segfault with druby and fork — Michael Witrant <mike@...>

Hello,

24 messages 2002/01/07
[#30510] Re: Segfault with druby and fork — matz@... (Yukihiro Matsumoto) 2002/01/07

Hi,

[#30543] Re: Segfault with druby and fork — Michael Witrant <mike@...> 2002/01/07

On Tue, 8 Jan 2002 00:37:14 +0900

[#30640] Re: Segfault with druby and fork — matz@... (Yukihiro Matsumoto) 2002/01/08

Hi,

[#30644] An Update on the FreeRIDE Project — "Curt Hibbs" <curt@...> 2002/01/08

I wanted to give everyone an update on where we are with the FreeRIDE

[#30655] Re: An Update on the FreeRIDE Project — bobx@... (Bob) 2002/01/08

Documentation should also be a big(?) concern. I am new to Ruby as

[#30539] RDoc Alpha-6 available — Dave Thomas <Dave@...>

37 messages 2002/01/07

[#30737] rpkg 0.1 (long) — Massimiliano Mirra <list@...>

<yaaawn>

16 messages 2002/01/10

[#30866] Dir.entries have no home — Ron Jeffries <ronjeffries@...>

Chet and I were writing a little code manager yesterday and we wrote

38 messages 2002/01/11

[#30920] MetaRuby : RubySchema.rb howto? — Tobias Reif <tobiasreif@...>

Hi,

15 messages 2002/01/11
[#30953] Re: MetaRuby : RubySchema.rb howto? — Mathieu Bouchard <matju@...> 2002/01/12

[#30969] Re: MetaRuby : RubySchema.rb howto? — Tobias Reif <tobiasreif@...> 2002/01/12

Mathieu Bouchard wrote:

[#30949] Another suggestion for FreeRIDE — ptkwt@...1.aracnet.com (Phil Tomson)

Based on some discussions over at comp.lang.python...

13 messages 2002/01/12

[#31017] Why I think Ruby will eventually be more popular than Python — gandy@... (Thomas Gandy)

Ruby and Python both play in the same niche: they're both Object

9 messages 2002/01/12

[#31080] Best way for platf. independent compression? — Massimiliano Mirra <list@...>

Currently, rpkg builds packets by tar'ring and gzip'ping the source

25 messages 2002/01/13
[#31112] Re: Best way for platf. independent compression? — Chris Gehlker <gehlker@...> 2002/01/14

On 1/13/02 1:42 PM, "Massimiliano Mirra" <list@chromatic-harp.com> wrote:

[#31153] Re: Best way for platf. independent compression? — Massimiliano Mirra <list@...> 2002/01/14

On Mon, Jan 14, 2002 at 12:08:58PM +0900, Chris Gehlker wrote:

[#31085] Small Methods - a ramble — Ron Jeffries <ronjeffries@...>

I noticed in some code that Chet and I were writing that, as Smalltalkers, we tend to write really

45 messages 2002/01/13
[#31170] Re: Small Methods - a ramble — Brian Marick <marick@...> 2002/01/14

Ron Jeffries wrote:

[#31099] a wishlist for ruby 2.0 — Mathieu Bouchard <matju@...>

49 messages 2002/01/14
[#31237] Re: a wishlist for ruby 2.0 — matz@... (Yukihiro Matsumoto) 2002/01/15

Hi,

[#31276] Re: a wishlist for ruby 2.0 — Mathieu Bouchard <matju@...> 2002/01/15

[#31251] Swig Ruby documentation mods. — Hugh Sasse Staff Elec Eng <hgs@...>

I have been trying to use Swig Ruby recently, and in attempting to

10 messages 2002/01/15

[#31262] grabbing stuff from web pages — Ron Jeffries <ronjeffries@...>

Part of my web site has recommended books. I use the cover jpegs from

11 messages 2002/01/15

[#31275] how to get all the reserved words? — Tobias Reif <tobiasreif@...>

Hi;

16 messages 2002/01/15

[#31289] memory usage question — "Mark Hahn" <mchahn@...>

I need to write a script that will use a hash with 4 million strings of 16

30 messages 2002/01/15

[#31311] Vote for Windows Installer packages — Andrew Hunt <andy@...>

14 messages 2002/01/15

[#31404] Re: A question on Ruby Threads — "Tobias DiPasquale" <anany@...>

In article <a242re$gop@ftp.ee.vill.edu>, "Chris Gehlker"

15 messages 2002/01/16

[#31424] A few words on threads — "Avdi B. Grimm" <avdi@...>

Warning: many strong personal opinions and broad

14 messages 2002/01/16

[#31442] #59 Add fsync method to IO class — hensleyl@... (Leslie Hensley)

Adding fsync and fdatasync methods to the IO class will allow Ruby to

17 messages 2002/01/16

[#31512] Hello! Array sub classing? — Markt <markt@...>

Hello Ruby lovers!

23 messages 2002/01/17

[#31533] Possible bug in Mac version? — Dave Thomas <Dave@...>

16 messages 2002/01/17

[#31564] The first alternative RDoc template — Dave Thomas <Dave@...>

22 messages 2002/01/17

[#31658] dynamic method creation — "Albert L. Wagner" <alwagner@...>

I have a need to dynamically create methods with method names

16 messages 2002/01/18

[#31711] Re: zip on Linux — "Mirabai Neumann" <webmaster@...>

19 messages 2002/01/19

[#31727] Keeping track of multiple Ruby discussion sites. — "James Britt (rubydev)" <james@...>

Recently, Massimiliano Mirra wrote:

13 messages 2002/01/19

[#31735] installing mod_ruby --> seg fault in ruby-rdtool — craig@...

At least that's where core dumped. FreeBSD/Alpha (4.4-RELEASE). New to

16 messages 2002/01/19

[#31741] $_ as default parameter for a function — thomass@... (Thomas)

I'd like the fragment below to produce "blah blah", but it doesn't

15 messages 2002/01/19

[#31882] RANT: Ruby GUI API — Sean Russell <ser@...>

I started this rant in another thread, where it was way OT, so I'm moving

60 messages 2002/01/21

[#31937] Re: RANT: Ruby GUI API — Ben Crowell <crowell02@...>

M. Mirra wrote:

28 messages 2002/01/22
[#31948] Re: RANT: Ruby GUI API — John Carter <john.carter@...> 2002/01/22

On Tue, 22 Jan 2002, Ben Crowell wrote:

[#32056] Ruby Publishing Framework v0.5.0 — Bryan Murphy <bryan@...>

Ruby Publishing Framework

15 messages 2002/01/22

[#32106] about time for seperate lists? — "Tobias DiPasquale" <anany@...>

Hi all,

12 messages 2002/01/23

[#32121] : ruby-talk seperation — "Tobias DiPasquale" <anany@...>

Hi all,

19 messages 2002/01/23

[#32177] — Eugene Scripnik <Eugene.Scripnik@...>

I have a problem loading files from my script (I mean Kernel::load):

20 messages 2002/01/23
[#32187] — nobu.nokada@... 2002/01/23

Hi,

[#32722] Re: — Eugene Scripnik <Eugene.Scripnik@...> 2002/01/29

Hello nobu,

[#32728] Re: — nobu.nokada@... 2002/01/29

Hi,

[#32793] Re[2]: — Eugene Scripnik <Eugene.Scripnik@...> 2002/01/30

Tuesday, January 29, 2002, 5:05:05 PM, you wrote:

[#32799] $: in mod_ruby — nobu.nokada@... 2002/01/30

Hi,

[#32957] Re: $: in mod_ruby — Eugene Scripnik <Eugene.Scripnik@...> 2002/02/01

Wednesday, January 30, 2002, 4:55:23 PM, you wrote:

[#32233] Subclassing vs Subtyping (partly OOP vs FP) — Robert Feldt <feldt@...>

Hi,

16 messages 2002/01/24
[#33032] Re: Subclassing vs Subtyping (partly OOP vs FP) — Dave Thomas <Dave@...> 2002/02/03

Lewis Perin <perin@panix.com> writes:

[#32247] Array.last Weirdness — Jesse Jones <jesjones@...>

I'd expect the following code:

19 messages 2002/01/24

[#32312] Serious Array Bug in Ruby 1.6.6? — William Djaja Tjokroaminata <billtj@...>

Hi,

42 messages 2002/01/24
[#32315] Re: Serious Array Bug in Ruby 1.6.6? — David Alan Black <dblack@...> 2002/01/24

Hello --

[#32400] Re: Serious Array Bug in Ruby 1.6.6? — billtj@... (Bill Tj) 2002/01/25

Hi,

[#32404] Re: Serious Array Bug in Ruby 1.6.6? — David Alan Black <dblack@...> 2002/01/25

Hello --

[#32319] looking for an example problem to demonstrate TaskMaster — ptkwt@...1.aracnet.com (Phil Tomson)

I'm looking for suggestions here...

19 messages 2002/01/24

[#32355] RDoc learns to draw pictures... — Dave Thomas <Dave@...>

15 messages 2002/01/25
[#32377] Re: [ANN] RDoc learns to draw pictures... — "Pit Capitain" <pit@...> 2002/01/25

On 25 Jan 2002, at 9:34, Dave Thomas wrote:

[#32388] Ruby Developers Guide — Robert Feldt <feldt@...>

Hi,

16 messages 2002/01/25

[#32401] Sourcecode dump? — Olivier CARRERE <carrere@...>

Hello,

12 messages 2002/01/25

[#32417] Subrange of String subclass => invalid object — "Bob Alexander" <bobalex@...>

Given these conditions:

52 messages 2002/01/25

[#32445] "friend" alternative in Ruby? — kturing@... (kate turing)

I have a class "Foo". It has a method "doSecretStuff" that I want to

13 messages 2002/01/26

[#32465] rubyzip 0.3.1 — thomass@... (Thomas)

rubyzip 0.3.1 is out.

18 messages 2002/01/26

[#32593] OT: tools for creating documentation — ptkwt@...1.aracnet.com (Phil Tomson)

I'm going to be creating a good bit of documentation for TaskMaster and I

12 messages 2002/01/27

[#32646] popen3 and buffering — Paul Brannan <paul@...>

I have a program test.rb:

26 messages 2002/01/28

[ruby-talk:30117] subsetting and .NET (was Re: Python and Ruby: a comparison)

From: "Alex Martelli" <aleax@...>
Date: 2002-01-03 10:47:30 UTC
List: ruby-talk #30117
"Edward Diener" <eldiener@earthlink.net> wrote in message
news:3C33856F.3050809@earthlink.net...
    ...
> > Subsetting becomes even more prevalent as soon as you accept some
> > "standard library" features as part of a language.  If you never
    ...
> I make the distinction between libraries and language features. There is
> a totally different mindset to not using libraries than to not using
> features, even though both "not using" parts may be a logical result of

But, not using *PART* of a module or package, or not using a subset of
some object's methods, is very similar, mindset-wise, to not using part
of a language's features.

E.g., consider:

A) "I don't ever write 'x+=23' -- I grew up with 'x = x + 23' and that's
good enough for me"

B) "I don't ever write 'd.setdefault(key, def)' -- I grew up with
'if not d.has_key(key): d[key] = def' and that's good enough for me"

C) "I don't ever write '[x for x in l if isok(x)]' -- I grew up with
'filter(isok, l)' and that's good enough for me"

(and so on, and so forth).  Some of these uses and not-uses affect
stuff that is documented in Python's Library manual, others don't
(affecting only stuff that's documented in the Language manual), but
there's really very little "mindset difference" between them.


> inclination to learn to use it, or 3) Yes, I know all about it but I
> have always done things this way because very few implementations
> support this new feature so I haven't bothered to learn it.

A very good pragmatical reason to eschew "this new feature", if true
and if you do need to worry about several implementations.  Among the
applications I maintained, it was 1994 before I could feel confident
of going for ISO-C function prototypes throughout the codebase (and
even then, it was only possible because at that point in time I felt
I could, worst case, rely on gcc being available in all cases of need).
The Python codebase only took the same step in version 2.0, i.e.,
in the year 2000, having to worry about a wider porting-targets range.


This doesn't really affect the .NET situation, of course.  E.g.,
the "new features" in Haskell for .NET are the .NET-specific parts
(equivalent to a traditional "foreign function interface" part).

Worrying that "Haskell for .NET" users won't use "Haskell specific"
parts (such as lazy evaluation or typeclasses) is IMHO misplaced: it
would be a terrible chore to carefully avoid them (just try to avoid
lazy evaluation systematically in Haskell...!!!), and people with no
liking or need for them would presumably choose a language of wider
availability such as, say, C#.  All in all, I consider your worries
that .NET-compatible versions of such languages will worsen the issue
of subsetting for the languages in question to be unfounded.


> The language which you ( and so many others ) identify as C++, with its
> ability to "play havoc with pointers and memory management" has been
> superceded in the past 7 years by a language whose modern constructs
> make it nearly impossible to have these problems. The fact that many

I *beg* your pardon: I'm a Brainbench MVP for C++, "C++ Guru" is one
of the main roles for which my current employer pays my not inconsiderable
salary (side by side with similar guruhood for other technologies such
as COM, network protocols, and Win32 APIs), and I'm perfectly aware of
ISO C++ strengths (and weaknesses -- mostly, subtlety and complication).

It's simply untrue that ISO C++'s "modern constructs" ``make it nearly
impossible to have [memory management] problems'', because those constructs
need to keep working within an overall conceptual framework where
memory management is among an application programmer's responsibilities
and "object ownership" is the fundamental conceptual tool for it.  And
it's just not an appropriate tool for most application needs (garbage
collection IS).

> so-called C++ programmers do not want to use these very simple and
> elegant constructs, in favor of more error-prone techniques still
> supported by the lnaguage for backward compatibility, is not proof of
> these problems still existing for practiced programmers in the language.

If somebody's doing "greenfield development" in C++, they're lucky (if,
in my well-informed opinion, misguided in their language choice).  Most
commonly, there are legacy subsystems and legacy interfaces to be kept,
and those won't give you the freedom to use currently-optimal approaches
(typically template-based ones) everywhere.

> Java's doing away with those problems is a red herring, since these
> problems no longer exist for professional C++ programmers.

I play the guru and language advisor for almost 200 professional C++
programmers at my current employer, and I maintain your assertion is
totally false.


> Nor am I sold on productivity enhancement when moving to Java simply
> because you claim it. And I am a Java programmer also. Productivity is

I'm not "a Java programmer".  I just conducted pilot projects back when
Java was launched, to help my employer make strategic technology choices
on the basis of something better than sheer hype (technology trailblazing
being among my job responsibilities).  I measured things carefully and
noticed a productivity increase of between 10% and 20% for such tasks as
coding in Java a number of existing proprietary net protocols, compared
to coding them in ISO C++ -- this was with substantial C++ experience vs
no substantial Java experience yet (but some features of ISO C++ were
then new enough that the experience with them was still a bit thin,
albeit richer than that with Java).  The gain came mostly from automatic
memory management, offset, however, by the huge productivity loss due
to the lack of templates (generics) -- a short while later I tried a
Java dialect called "Pizza", which DID offer generics, but it was deemed
an experimental project, not suitable for production use (pity).

On the basis of these and other measurements, my employer decided that
the costs and risks of technology migration were not warranted; Java was
used only for certain well-defined projects where customers demanded it,
and otherwise we stuck with C++.  I still strongly believe that going to
a higher-level language (such as Python) for most of our development
would be a huge productivity win, but I concur that languages such as
Java or C#, with their maybe-20% gains, are not worth the costs and risks
(particularly for migrations; greenfield projects may be different) --
when generics are in, things may get better, but for example .NET generics
at this time are *not* scheduled to cover one of the most productive
patterns, Coplien's "Pattern Without a Name" (class C<T>: public T {...});
not sure if "Generic Java" does accept Coplien's PWAN.

> not just the spewing forth of the maximum lines of code in the minimum
> time. But I am sure you know that.

"Spewing forth" *working* code (that passes a thorough test suite and
thus demonstrably delivers a given functionality F, measured, say, in
function points), is indeed the key measure in coding productivity.  The
ease of future code modification and refactoring is of course also
important, but, if the test suites are really good and thorough, the
correlation with ease of initially passing the test suites is high.


> I am guessing that the "generic programming" of Java and C# will be
> created to allow flexibly specified algorithms to operate against any
> "collection" or parts of a "collection" of objects.

Collections are important, but far from exhaustive in terms of
generics' usefulness.  E.g., Coplien's PWAN has little to do with
collections, yet it's highly pervasive in well-designed generics code.


> > Much as I might prefer "C# with templates" or whatever, therefore, I'm
> > quite liable to choose "Managed C++" today if tasked to develop some
    ...
> Save me ! No, I will be using C# ( aka Microsoft's version of Java ) if
> I do .NET and not some managed abortion.

I wonder if you do fully appreciate the power of signature based
polymorphism (generics).  Many don't.


> Being "sensible" in programming is not my inclination. I prefer
> creativity at its expense. That is why I heavily prefer Python over
> sensible and pragmatic Perl or safe and limited Javascript ( or
BScript  ).

I find Python highly sensible and highly pragmatic, as (allegedly) befits
the Dutch national character.  But then, I'm not a highly creative person
(much like Carver Mead, according to his interview to the Economist
last September -- "He says he has never had an original idea in his
life", and I feel quite similarly -- cfr
http://www.economist.com/displayStory.cfm?Story_ID=779543).


> I hope you are right, but I anticipate too many full-blooded languages
> becoming watered down and weak by bathing in the .NET stream. Have I not
> already seen posts on this NG about Python .NET ?

Yes, and?  Where's the "watered down and weak" effect?


Alex



In This Thread