[#231977] General Programming Books — Mark Woodward <markonlinux@...>

Hi all,

17 messages 2007/01/01

[#232004] Re: Status of Cardinal (was Re: Proposal to create a new mailing list) — "Martin DeMello" <martindemello@...>

On 12/31/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:

8 messages 2007/01/01

[#232143] Detecting holidays — "Daniel Berger" <djberg96@...>

Hi all,

22 messages 2007/01/02

[#232198] Any projects need rdoc documentation help? — Jay Bornhoft <jbornhoft@...>

As part of my effort to become increasingly more involved in the Ruby

13 messages 2007/01/02

[#232214] Calculating roman numerals — "Shiloh Madsen" <shiloh.madsen@...>

Ok, I'm having trouble with another exercise in this book. It has

13 messages 2007/01/02

[#232335] Problem in Unit Testing Methods that start new threads — Hemant Kumar <gethemant@...>

I have a bit of doubt, in Unit Testing Programs that start new threads.

13 messages 2007/01/03

[#232347] Memory Leak Madness — Brandon Casci <brandon@...>

I'm having one hell of a time trying to find and stop a memory leak in a

19 messages 2007/01/03

[#232374] Scriptable text editor with Ruby? — "Dolazy" <francis.rammeloo@...>

Hi all!

37 messages 2007/01/03

[#232694] How can I do this better? — "Sam Kong" <sam.s.kong@...>

Hi,

14 messages 2007/01/05

[#232719] Word Blender (#108) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

57 messages 2007/01/05
[#233040] Re: [QUIZ] Word Blender (#108) — Daniel Finnie <danfinnie@...> 2007/01/07

I made two this time. One plays a game and one just picks the word.

[#233042] Re: [QUIZ] Word Blender (#108) — "Fedor Labounko" <fedor.labounko@...> 2007/01/07

On 1/7/07, Daniel Finnie <danfinnie@optonline.net> wrote:

[#232806] removing Ruby success stories page from Ruby-lang.org — "Rahul" <vrahul@...>

38 messages 2007/01/05
[#232808] Re: removing Ruby success stories page from Ruby-lang.org — dblack@... 2007/01/05

Hi --

[#232821] Re: removing Ruby success stories page from Ruby-lang.org — "Jeremy McAnally" <jeremymcanally@...> 2007/01/05

Notable stories that should be added that I'm aware of:

[#232839] Re: removing Ruby success stories page from Ruby-lang.org — James Britt <james.britt@...> 2007/01/05

Jeremy McAnally wrote:

[#232865] SparseFile — "Erik Veenstra" <erikveen@...>

I had to send huge files over a network to another machine.

13 messages 2007/01/06

[#233008] Sending SMS Messages With Ruby — James Edward Gray II <james@...>

I'm going to need to send SMS messages from a Ruby server I am

11 messages 2007/01/07

[#233037] a most undangerous Hash#store! — "Trans" <transfire@...>

Hi--

32 messages 2007/01/07
[#233054] Re: a most undangerous Hash#store! — Florian Gross <florgro@...> 2007/01/08

On 2007-01-08 02:00:10 +0100, dblack@wobblini.net said:

[#233059] Re: a most undangerous Hash#store! — dblack@... 2007/01/08

Hi --

[#233095] Re: a most undangerous Hash#store! — Robert Klemme <shortcutter@...> 2007/01/08

On 08.01.2007 02:59, dblack@wobblini.net wrote:

[#233096] Re: a most undangerous Hash#store! — Mauricio Fernandez <mfp@...> 2007/01/08

On Mon, Jan 08, 2007 at 08:20:05PM +0900, Robert Klemme wrote:

[#233098] Re: a most undangerous Hash#store! — dblack@... 2007/01/08

Hi --

[#233107] Re: a most undangerous Hash#store! — Mauricio Fernandez <mfp@...> 2007/01/08

On Mon, Jan 08, 2007 at 09:37:05PM +0900, dblack@wobblini.net wrote:

[#233133] Tattle - The Ruby Census — "Chad Fowler" <chad@...>

Greetings and Happy New Year, Rubyists!

118 messages 2007/01/08
[#233181] Re: [ANN] Tattle - The Ruby Census — Pit Capitain <pit@...> 2007/01/09

Chad Fowler schrieb:

[#233245] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/09

[#233253] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Ryan Davis wrote:

[#233261] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/09

On Jan 9, 2007, at 09:31, Ben Bleything wrote:

[#233265] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Eric Hodel wrote:

[#233278] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/09

On Jan 9, 2007, at 10:42, Ben Bleything wrote:

[#233284] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Eric Hodel wrote:

[#233393] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/10

On Jan 9, 2007, at 13:03, Ben Bleything wrote:

[#233333] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/10

[#233338] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/10

On Wed, Jan 10, 2007, Ryan Davis wrote:

[#233345] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/10

[#233352] Re: Tattle - The Ruby Census — Evan Weaver <eweaver.spamtrap@...> 2007/01/10

Ryan Davis wrote:

[#233399] Re: Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/10

On Jan 10, 2007, at 02:02, Evan Weaver wrote:

[#233416] Re: Tattle - The Ruby Census — Evan Weaver <eweaver.spamtrap@...> 2007/01/10

Eric Hodel wrote:

[#233456] Re: Tattle - The Ruby Census — "Austin Ziegler" <halostatue@...> 2007/01/10

On 1/10/07, Evan Weaver <eweaver.spamtrap@gmail.com> wrote:

[#233586] Re: Tattle - The Ruby Census — "Daniel Berger" <djberg96@...> 2007/01/11

[#233625] Re: Tattle - The Ruby Census — "Gregory Brown" <gregory.t.brown@...> 2007/01/12

On 1/11/07, Daniel Berger <djberg96@gmail.com> wrote:

[#233633] Re: Tattle - The Ruby Census — "Jeremy McAnally" <jeremymcanally@...> 2007/01/12

But the question is would the hoe developers use this? They seem

[#233665] Re: Tattle - The Ruby Census — "Austin Ziegler" <halostatue@...> 2007/01/12

On 1/12/07, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

[#233769] Re: Tattle - The Ruby Census — "Chris Carter" <cdcarter@...> 2007/01/13

On 1/12/07, Austin Ziegler <halostatue@gmail.com> wrote:

[#233158] Why is there a seperate Math class? — Daniel Finnie <danfinnie@...>

Why does everything have to be Math.<func>(num)? Isn't num.func more

22 messages 2007/01/09

[#233180] Problems with Posting to comp.lang.ruby, due to gateway to Ruby-Talk — Ronald Fischer <ronaldf@...>

Hello

11 messages 2007/01/09

[#233189] inheritance concept in ruby — Kumar Tnj <senvenit2003@...>

Hi,

19 messages 2007/01/09

[#233209] sortung a structured array on more than one criteria — Josselin <josselin@...>

I can sort an array like that :

11 messages 2007/01/09

[#233238] Elements of Ruby Style — "Jeremy McAnally" <jeremymcanally@...>

Hello all,

14 messages 2007/01/09

[#233285] Re: String performance — "Gavin Kistner" <gavin.kistner@...>

From: Vincent Fourmond

11 messages 2007/01/09

[#233386] return_on — "Trans" <transfire@...>

Sometimes i do this:

24 messages 2007/01/10

[#233424] building Ruby with dmalloc — Young Hyun <youngh@...>

Has anyone managed to build Ruby with dmalloc support? I'm having

11 messages 2007/01/10

[#233584] Finding path to ruby script argument — "Matthew Hailstone" <matthew.hailstone@...>

When I execute a ruby script by the following:

11 messages 2007/01/11

[#233640] Why doesn't Ruby allow for overloaded methods within a class — Wes Gamble <weyus@...>

(from a Java refugee)

12 messages 2007/01/12

[#233671] Number Spiral (#109) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

29 messages 2007/01/12

[#233676] DRY gsub... — Josselin <josselin@...>

I wrote the following ruby statements.. I get the result I need , I

33 messages 2007/01/12

[#233714] RCR again (Integer#succ!, Integer#pred!) — "Robert Dober" <robert.dober@...>

I am definitely in an RCR mood ;)

13 messages 2007/01/12

[#233763] Running Webrick alongside IIS on port 80 — Prashant Deva <prashant.deva@...>

Hi,

12 messages 2007/01/12

[#233889] checking if a string matches a regexp - am I missing something? — "Rob Sanheim" <rsanheim@...>

I figure that I must be missing something really obvious with this

11 messages 2007/01/14

[#233914] Hoe poisoned in Rubyforge — Eric Hodel <drbrain@...7.net>

Somehow hoe-1.1.7 has become poisoned in the RubyGems index:

50 messages 2007/01/14
[#233958] Re: Hoe poisoned in Rubyforge — "Chris Carter" <cdcarter@...> 2007/01/14

On 1/14/07, Eric Hodel <drbrain@segment7.net> wrote:

[#233961] Re: Hoe poisoned in Rubyforge — SonOfLilit <sonoflilit@...> 2007/01/14

So if I have a RubyForge account I can upload a modified gem, of, say,

[#233993] Re: Hoe poisoned in Rubyforge — Tom Copeland <tom@...> 2007/01/14

On Mon, 2007-01-15 at 00:56 +0900, SonOfLilit wrote:

[#233999] Re: Hoe poisoned in Rubyforge — Tom Copeland <tom@...> 2007/01/14

On Sun, 2007-01-14 at 13:20 -0500, Tom Copeland wrote:

[#233938] "soemthing".pluralize/at/from/... -> NoMethodError — David Krmpotic <david.krmpotic@...>

Hello,

11 messages 2007/01/14

[#233963] possible to un-warn? — "David Chelimsky" <dchelimsky@...>

Hi all,

12 messages 2007/01/14

[#233969] how to translate base 10 number into base 2 number — chen li <chen_li3@...>

Hi all,

15 messages 2007/01/14

[#234052] keybox 1.0.0 Released — Jeremy Hinegardner <jeremy@...>

keybox version 1.0.0 has been released.

15 messages 2007/01/15

[#234063] Can anyone try to solve this problems? — Cyrus Gabilla <gabilla19992004@...>

Hi to everybody.

20 messages 2007/01/15
[#234160] Re: Can anyone try to solve this problems? — David Madden <moose56@...> 2007/01/15

[#234170] Q: How can a Rake task know the caller's directory? — James Britt <james.britt@...>

I'm increasingly using rake files for common system tasks. Since Rake

20 messages 2007/01/15

[#234183] Hi all! — Mustapha! <mail_gw_ruby@...>

Hi! I hate america!

23 messages 2007/01/15

[#234254] Ruby and E.V.E. Paradox — GD <garthy_lmkltybr@...>

I have been using Ruby for several years. Most importantly I have been using

30 messages 2007/01/16
[#234269] Re: Ruby and E.V.E. Paradox — "gga" <GGarramuno@...> 2007/01/16

[#234434] RubyGems 0.9.1 — Eric Hodel <drbrain@...7.net>

= Announce: RubyGems Release 0.9.1

19 messages 2007/01/16

[#234529] Intensive computing: Ruby? Ruby/C? Pure C++? — "Shot (Piotr Szotkowski)" <shot@...>

Hello, ruby-talk. I have a question about choosing between Ruby, Ruby

20 messages 2007/01/17

[#234646] Struggling With RubyGems — James Edward Gray II <james@...>

I can't seen to query or install gems over here. Is anyone else

18 messages 2007/01/17
[#234649] RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — Gregory Seidman <gsslist+ruby@...> 2007/01/17

On Thu, Jan 18, 2007 at 06:29:09AM +0900, James Edward Gray II wrote:

[#234655] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — James Edward Gray II <james@...> 2007/01/17

On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:

[#234659] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — "David Goodlad" <dgoodlad@...> 2007/01/17

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234667] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — James Edward Gray II <james@...> 2007/01/17

On Jan 17, 2007, at 4:17 PM, David Goodlad wrote:

[#234668] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — "Tim Pease" <tim.pease@...> 2007/01/17

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234732] Ruby text editor for beginner — "Shawn Wa..." <shawnw@...>

I'm looking for a simple text editor for Ruby to work under WinXP SP2.

29 messages 2007/01/18

[#234744] Ruby and Python, questions (not a flamewar!) — Drew Olson <olsonas@...>

I've been using ruby for the past 6 months and I must say I am extremely

19 messages 2007/01/18

[#234800] auto assign arguments? — "David Chelimsky" <dchelimsky@...>

I see where to put bugs and patches, but this is a feature request. Is

35 messages 2007/01/18
[#234826] Re: auto assign arguments? — "Daniel Berger" <djberg96@...> 2007/01/18

[#234830] Re: auto assign arguments? — James Edward Gray II <james@...> 2007/01/18

On Jan 18, 2007, at 3:35 PM, Daniel Berger wrote:

[#234832] Re: auto assign arguments? — "Gregory Brown" <gregory.t.brown@...> 2007/01/18

On 1/18/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234839] Re: auto assign arguments? — gwtmp01@... 2007/01/18

[#234842] Re: auto assign arguments? — "David Chelimsky" <dchelimsky@...> 2007/01/18

Wow. You guys are all coming up w/ great alternatives, but would

[#234919] Re: auto assign arguments? — dblack@... 2007/01/19

Hi --

[#234922] Re: auto assign arguments? — "Robert Dober" <robert.dober@...> 2007/01/19

On 1/19/07, dblack@wobblini.net <dblack@wobblini.net> wrote:

[#234925] Re: auto assign arguments? — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#234889] rubyforge.org questions — Peter Szinek <peter@...>

Hello,

15 messages 2007/01/19
[#234901] Re: rubyforge.org questions — "Jan Svitok" <jan.svitok@...> 2007/01/19

On 1/19/07, Peter Szinek <peter@rubyrailways.com> wrote:

[#234908] Re: rubyforge.org questions — Vincent Fourmond <vincent.fourmond@9online.fr> 2007/01/19

Jan Svitok wrote:

[#234902] OFFTOPIC: How to pronounce Ruby? — Peter Szinek <peter@...>

Is it more similar to 'dummy' or 'dubi(ous)'? (or neither :-)

13 messages 2007/01/19

[#234949] Minor Change Proposal for Classes 'Object' and 'Method' — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <wonado@...>

Minor Change Proposal for Classes 'Object' and 'Method'

98 messages 2007/01/19
[#234953] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#234972] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#235124] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Robert Klemme <shortcutter@...> 2007/01/20

On 19.01.2007 19:33, Yukihiro Matsumoto wrote:

[#235126] Re: Minor Change Proposal for Classes 'Object' and 'Method' — "Phrogz" <gavin@...> 2007/01/20

Robert Klemme wrote:

[#235137] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Robert Klemme <shortcutter@...> 2007/01/20

On 20.01.2007 18:54, Phrogz wrote:

[#235144] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235148] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Wolfgang N疆asi-Donner <wonado@...> 2007/01/20

dblack@wobblini.net schrieb:

[#235150] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235153] Re: Minor Change Proposal for Classes 'Object' and 'Method' — gwtmp01@... 2007/01/20

[#235155] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235166] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235192] Re: Minor Change Proposal for Classes 'Object' and 'Method' — gwtmp01@... 2007/01/21

[#235238] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235254] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Wolfgang N疆asi-Donner <wonado@...> 2007/01/21

dblack@wobblini.net schrieb:

[#235262] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235274] Re: Minor Change Proposal for Classes 'Object' and 'Method' — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <wonado@...> 2007/01/21

dblack@wobblini.net schrieb:

[#235280] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235347] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235352] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235354] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235361] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235388] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235443] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235448] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235567] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/23

Hi --

[#235575] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/23

Hi,

[#235578] Re: Minor Change Proposal for Classes 'Object' and 'Method' — ara.t.howard@... 2007/01/23

On Tue, 23 Jan 2007, Yukihiro Matsumoto wrote:

[#235653] Re: Minor Change Proposal for Classes 'Object' and 'Method' — "Robert Dober" <robert.dober@...> 2007/01/23

On 1/23/07, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

[#235680] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Pit Capitain <pit@...> 2007/01/23

Robert Dober schrieb:

[#235684] Re: Minor Change Proposal for Classes 'Object' and 'Method' — ara.t.howard@... 2007/01/23

On Wed, 24 Jan 2007, Pit Capitain wrote:

[#235013] I don't get rspec — "nicknameoptional" <dorrenchen@...>

I just discovered rspec today, reading the example and tutorials,

45 messages 2007/01/19
[#235021] Re: I don't get rspec — James Britt <james.britt@...> 2007/01/19

nicknameoptional wrote:

[#235035] Re: I don't get rspec — "nicknameoptional" <dorrenchen@...> 2007/01/20

> There is a good Google video about rspec and Behavior Driven

[#235492] Re: I don't get rspec — Christian Neukirchen <chneukirchen@...> 2007/01/22

"nicknameoptional" <dorrenchen@gmail.com> writes:

[#235539] test/spec -- was Re: I don't get rspec — Joel VanderWerf <vjoel@...> 2007/01/22

Christian Neukirchen wrote:

[#235747] Re: test/spec -- was Re: I don't get rspec — Christian Neukirchen <chneukirchen@...> 2007/01/23

Joel VanderWerf <vjoel@path.berkeley.edu> writes:

[#235770] Re: test/spec -- was Re: I don't get rspec — "David Chelimsky" <dchelimsky@...> 2007/01/23

On 1/23/07, Christian Neukirchen <chneukirchen@gmail.com> wrote:

[#235031] Learning Japanese — "Gerardo Santana Gez Garrido" <gerardo.santana@...>

Thanks to Ruby I've learned a lot recently about programming languages

11 messages 2007/01/20

[#235046] "postgres" module needs work, author gone, patch included — Jeff Davis <ruby@...>

The "postgres" module is old and it's been a long time since there's

12 messages 2007/01/20

[#235141] FreeRIDE - Way too many warnings — Ab Cd <grauenwolf@...>

Whenever I start FreeRIDE I get a ton of warnings. It takes a long time

29 messages 2007/01/20
[#235145] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/20

On Sun, 2007-01-21 at 03:32 +0900, Ab Cd wrote:

[#235172] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/20

matt wrote:

[#235173] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/20

On Sun, 2007-01-21 at 08:43 +0900, Jonathan Allen wrote:

[#235181] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/21

[#235184] Re: FreeRIDE - Way too many warnings — Timothy Hunter <TimHunter@...> 2007/01/21

Jonathan Allen wrote:

[#235191] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/21

On Sun, 2007-01-21 at 10:41 +0900, Timothy Hunter wrote:

[#235198] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/21

matt wrote:

[#235180] Hash pairs at? — "Trans" <transfire@...>

Seesm like there should be a mehtod for this:

32 messages 2007/01/21

[#235197] Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...>

Hi,

22 messages 2007/01/21
[#235202] Re: Getting the version number for rubygems? — Eric Hodel <drbrain@...7.net> 2007/01/21

On Jan 20, 2007, at 20:11, Gregory Brown wrote:

[#235203] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/20/07, Eric Hodel <drbrain@segment7.net> wrote:

[#235204] Re: Getting the version number for rubygems? — "Jeremy McAnally" <jeremymcanally@...> 2007/01/21

require 'rubygems'

[#235205] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/21/07, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

[#235206] Re: Getting the version number for rubygems? — Devin Mullins <twifkak@...> 2007/01/21

Gregory Brown wrote:

[#235208] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/21/07, Devin Mullins <twifkak@comcast.net> wrote:

[#235248] uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...>

hi all

20 messages 2007/01/21
[#235251] Re: uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...> 2007/01/21

My reason for wanting to uninstall is that ive tried to install the

[#235258] Re: uninstalling the mac tiger version of ruby — Timothy Hunter <TimHunter@...> 2007/01/21

libsfan01 wrote:

[#235287] Re: uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...> 2007/01/21

[#235294] Re: uninstalling the mac tiger version of ruby — Timothy Hunter <TimHunter@...> 2007/01/21

libsfan01 wrote:

[#270097] Re: uninstalling the mac tiger version of ruby — Aaron Massey <amassey@...> 2007/09/20

I have a similar problem. I installed a manually compiled version of

[#270098] Re: uninstalling the mac tiger version of ruby — "Peter Cooper" <peter@...> 2007/09/20

On 9/20/07, Aaron Massey <amassey@csoft.net> wrote:

[#235283] module global variables — Stefano Zacchiroli <zack@...>

Is there a way to define per-module global variables? My best

14 messages 2007/01/21
[#235289] Re: module global variables — "Trans" <transfire@...> 2007/01/21

[#235290] Re: module global variables — Stefano Zacchiroli <zack@...> 2007/01/21

On Mon, Jan 22, 2007 at 02:52:58AM +0900, Trans wrote:

[#235384] Can't install rubygems — lijie <cpunion@...>

The rubygems installer can't finish, and CPU is 100% used in several hours.

14 messages 2007/01/22

[#235460] ebedded: calling a C function from script. — Shea Martin <shea@...>

I have my embedded interpreter running my scipt. Now I would like my

12 messages 2007/01/22

[#235464] Method notation question — "Avdi Grimm" <avdi@...>

I've been using Ruby for years, and it just occurred to me to ask:

15 messages 2007/01/22

[#235574] Placing tabs in strings in irb — "Michael W. Ryder" <_mwryder@...>

Is there any reason I cannot embed tabs in a string while using irb? I

16 messages 2007/01/23

[#235624] I need a more efficient algorithm for this problem. — "Sam Kong" <sam.s.kong@...>

Hi,

15 messages 2007/01/23

[#235633] Ruby for massively multi-core chips? — Bil Kleb <Bil.Kleb@...>

How to best evolve Ruby to accommodate 80-core

13 messages 2007/01/23

[#235880] Trickery in the ancestors chain — "Paolo Nusco Perrotta" <paolo.nusco.perrotta@...>

Try this:

12 messages 2007/01/24

[#235938] Ruby IDE for Windows 98? — Bart Braem <bart.braem@...>

Hello,

26 messages 2007/01/24
[#235973] Re: Ruby IDE for Windows 98? — Olivier <o.renaud@...> 2007/01/24

> With Ruby. (We have good reasons, I'll explain them

[#235980] Re: Ruby IDE for Windows 98? — "Robert Dober" <robert.dober@...> 2007/01/24

On 1/24/07, Olivier <o.renaud@laposte.net> wrote:

[#236140] A Ruby Operating System (no bashing please) — "Andr蘂 <andre.nho@...>

Hello,

12 messages 2007/01/25

[#236217] cartesian product of arrays — Thomas Hafner <thomas@...>

Hello,

31 messages 2007/01/26

[#236240] Counting Toothpicks (#111) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

55 messages 2007/01/26
[#236445] Re: [QUIZ] Counting Toothpicks (#111) — "Andrey Falko" <ma3oxuct@...> 2007/01/27

Hi everyone,

[#236489] Re: [QUIZ] Counting Toothpicks (#111) — James Edward Gray II <james@...> 2007/01/28

On Jan 27, 2007, at 12:21 PM, Andrey Falko wrote:

[#236241] simple question about Ruby Regext — Peter Bailey <pbailey@...>

Hi,

22 messages 2007/01/26

[#236243] Rubygem install "Invalid argument - sources-0.0.1.gem" — Jeremy Lecour <jeremy.lecour@...>

Hi,

16 messages 2007/01/26
[#236475] Re: Rubygem install "Invalid argument - sources-0.0.1.gem" — Eric Hodel <drbrain@...7.net> 2007/01/27

On Jan 26, 2007, at 06:05, Jeremy Lecour wrote:

[#236530] Re: Rubygem install "Invalid argument - sources-0.0.1.gem" — Jeremy Lecour <jeremy.lecour@...> 2007/01/28

Eric Hodel wrote:

[#236333] pass by reference? — Andy Koch <andy.koch@...>

Hello,

46 messages 2007/01/26
[#236335] Re: pass by reference? — Vincent Fourmond <vincent.fourmond@9online.fr> 2007/01/26

Andy Koch wrote:

[#236342] Re: pass by reference? — "Phrogz" <gavin@...> 2007/01/27

On Jan 26, 4:32 pm, Vincent Fourmond <vincent.fourm...@9online.fr>

[#236344] Re: pass by reference? — "Martin C. Martin" <martin@...> 2007/01/27

[#236346] Re: pass by reference? — dblack@... 2007/01/27

Hi --

[#236491] Net::HTTP Closes STDIN — James Edward Gray II <james@...>

Kenneth Kalmer has brought up a HighLine issue and I'm trying to look

30 messages 2007/01/28
[#236947] Re: Net::HTTP Closes STDIN — gwtmp01@... 2007/01/30

[#236950] Re: Net::HTTP Closes STDIN — ara.t.howard@... 2007/01/30

On Wed, 31 Jan 2007 gwtmp01@mac.com wrote:

[#236611] Ruby << is ambiguos — Neville Franks <subs@...>

Hi, I working on syntax highlighting for ED4W and have problem with <<

18 messages 2007/01/28

[#236687] FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info — Mauricio Fernandez <mfp@...>

13 messages 2007/01/29
[#236727] Re: [ANN] FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info — Pe, Botp <botp@...> 2007/01/29

From: Mauricio Julio Fern疣dez Pradier

[#236800] Sane #hash implementation? — "Shot (Piotr Szotkowski)" <shot@...>

I have a Set subclass, Block. I need two blocks to be considered the

18 messages 2007/01/29
[#236833] Re: Sane #hash implementation? — Eric Hodel <drbrain@...7.net> 2007/01/30

On Jan 29, 2007, at 14:38, Shot (Piotr Szotkowski) wrote:

[#236988] tinderbox 1.0.0 Released — Eric Hodel <drbrain@...7.net>

tinderbox version 1.0.0 has been released!

18 messages 2007/01/31

[#237012] Ruby and an efficiency — "Miroslaw Maziarz" <miroslaw.maziarz@...>

Hi,

15 messages 2007/01/31

[#237036] proper usr/bin/env ruby shebang — "Rob Sanheim" <rsanheim@...>

I'm trying to convert some bash scripts to use /usr/bin/env ruby

23 messages 2007/01/31
[#237040] Re: proper usr/bin/env ruby shebang — Nobuyoshi Nakada <nobu@...> 2007/01/31

Hi,

Re: Ruby and E.V.E. Paradox

From: "gga" <GGarramuno@...>
Date: 2007-01-16 06:30:21 UTC
List: ruby-talk #234269
GD ha escrito:

> This is what I needed to replace LUA:
> - Ability to load a script *from*memory*, not from a file (important).

Use rb_eval_string_protect().

> - Run any init code in the script.

BEGIN {} calls or rb_eval_string_protect() of whatever you need.

> - Hook a bunch of local functions (C++) so that the script can call them for
> information from the main code body.

Ideally, handle this using SWIG, as either a ruby extension or a pseudo
extension you link in statically.
Avoid doing the binding yourself manually.  Binding functions for most
basic C constructs (ints, chars, etc) is VERY easy.
Doing proper binding of classes, it is not as easy, as the GC requires
you to be careful.  Best thing for you to do is look at SWIG's output.
SWIG also deals properly now with inheritance of C++ classes into ruby,
including multiple inheritance.

> - Call functions in the script both periodically and in response to events (eg.
> an update call every 1/60 of a second, in response to mouse clicks, etc).

This may be much trickier with the current ruby C interpreter,
depending on what you are looking for.   You can start a C++ thread to
do it, but the ruby C interpreter is not thread safe.  So, if you have
ruby code running in two different threads at the same time, bad things
WILL happen.
You can also try to rely on a single thread and let ruby's own light
threads handle this.  However, this may not be as efficient as actual
multi-threaded code.
Mind you, ruby is not the only language with issues here.  Python is
also pretty bad at this.
LUA and TCL are in a class of their own as far as multithreading
interpreters go.

> - Clean up everything entirely when the level is over.


>
> This is what I have encountered:
>
> - There doesn't appear to be any way to indicate that Ruby should clean
> everything up and get to a state where I can start again. I have attempted to
> work around this by making each script contain a single unique class that I use,
> but this is a terrible hack.

ruby_cleanup(0);  SHOULD clean up the interpreter.   Problem is not so
much cleaning the interpreter but restarting it again.
I did find issues when I did this (back in 1.8.0).  I think now issues
are better, but I won't vouch for it being 100% solved.
If all fails, best thing you can do is what you did.  Encapsulate all
in its own class and clean that instead.  That will still leave the
class/module constants around, but it is better than nothing.

> - How do I load a script from memory? rb_eval_string()? rb_compile_string()?
> Something else?

Use rb_eval_string_protect().

> - The documentation is flawed. It indicates calling rb_run(), but that can
> eventually call exit, which is the last thing you want from an embedded
> language. It mentions rb_apply() as having an argc parameter.

Again, rb_eval_string_protect() is what you probably want.

> - I am getting inexplicable crashes when calling the garbage collector.

This is a probably a bug in your code.  Take a look at rubyMEL at
highend3d.com for a relatively simple embedding of MEL into a 3d
application (Maya).
Depending on platform (windows, mainly) you need other initialization
code besides ruby_init().

> - The documentation is not at all clear how you protect something from the
> garbage collector, or indicate it is no longer in use.

You need to use a mark and a free function respectively, and use ruby's
mysterious Data_Wrap_Struct stuff.  This is the pretty hairy part of
exposing a C++ api.
Suggestion: look at SWIG's code.  It has a bunch of wrapper functions
to handle it nicely and it is now pretty mature.
For any questions regarding SWIG not clear from the SWIG manual, refer
to FXRuby's excellent wrapping of the Fox library.

> - How does one call "Foo.new(args)" on a class from outside of Ruby, where the
> args have been generated from outside of Ruby (hence no name) meaning

You call it like any other method, with rb_funcall* like:

VALUE cFoo;   // defined somewhere else...
int nargs = 1;
VALUE args[] = { INT2NUM( 30 ) };
ID new_id = rb_intern("new");
rb_funcall2( cFoo,  new_id, nargs, args );

> - rb_protect() is a complete mess. Rather than being able to call an arbitrary
> function with a void pointer, you are stuck calling something that takes a
> single VALUE arg.

No, you are wrong.  It is extremely well thought out.
No need for ugly void*, thank god.
Think of VALUE as being a void*  (it is really an unsigned long).  Ruby
requires sizeof(unsigned long) == sizeof(void*) -- see ruby.h's check.
Just do a simple casting of your pointer to VALUE in your caller and do
the opposite cast from VALUE to whatever in your receiver function.
See how all the RCAST() and similar macros work in ruby.h.

> - The code runs fine for a while if I don't call the garbage collector.
> Unfortunately, I get stack depth errors and eventual segfaults if I make
> repeated calls to the Ruby script (via rb_apply()).

This likely means you wrapped your C++ classes incorrectly or you are
trying to run ruby in a multi-threaded environment.
If the first is true, look and learn from SWIG.  If the second is true,
remove the multi-threaded code, create a global mutex that all your
ruby functions should call before doing anything or use a different
scripting language at this time.
Ruby is not thread safe, unlike LUA.

> - I can't find one example that completely and correctly demonstrates the whole
> process involved in having C call Ruby then call C, return values through the
> chain neatly, and clean up. If there was such a reference, it would be outstanding.

There's no real trick to it.
Ruby is fine as an embedded language, just as you remember it is not
safe as a multi-threaded embedded language.  YARV may eventually solve
this somewhere in the future.  The unofficial fork of Ruby that is
Sydney (and now rubinius) supposedly is multi-thread safe, but is
32-bits only (and I won't vouch for it).
Python is just as bad as Ruby, btw, albeit it avoids some threading
issues by using a global lock every time two threads try to run some
code simultaneously, effectively running only a single thread at a
time.  In ruby, you can do the same, but you need to create this global
mutex yourself.
LUA and TCL are different and better in this aspect, as they both can
use different (and very light) interpreter instances to execute code.

>
> Am I alone in thinking this? Should I be looking at other embeddable languages
> (Python, for example), or just go back and get the LUA code working again? Am I
> doing something wrong?

Truth is... you are looking at the two best languages for embedding.
LUA is admittedly better to embed due its multi-threading aspects,
while Ruby is admittedly better for embedding due to its nice syntax.

>
> Is there anything I can do to successfully and reliably add support for my
> favourite scripting language into my project? Or is it simply an unrealistic
> prospect?
>

Follow the advices I gave you and you should be able to get ruby as an
embedded language.  Wrapping classes for the garbage collector is the
hairy part, but you can steal all of SWIG's source code for that now
(or use SWIG itself for doing it).
However, if your game engine does require heavy multi-threading in the
scripting language, you are indeed looking at the wrong language.
LUA is still the best language for this, unfortunately.


In This Thread