[#104966] Why I don't use Ruby. — TLOlczyk <olczyk2002@...>

For a short period I used Ruby and found that I liked it very much,

137 messages 2004/07/01
[#105594] Re: Functional Ruby (Re: Why I don't use Ruby.) — ser@... (Sean Russell) 2004/07/08

Mikael Brockman <phubuh@phubuh.org> wrote in message news:<87llhx2hec.fsf@phubuh.org>...

[#105603] Re: Functional Ruby (Re: Why I don't use Ruby.) — James Britt <jamesUNDERBARb@...> 2004/07/08

Sean Russell wrote:

[#105607] Re: Functional Ruby (Re: Why I don't use Ruby.) — Hal Fulton <hal9000@...> 2004/07/08

James Britt wrote:

[#106115] Re: Functional Ruby (Re: Why I don't use Ruby.) — bruno modulix <onurb@...> 2004/07/12

Hal Fulton a 馗rit :

[#106121] Re: Functional Ruby (Re: Why I don't use Ruby.) — "Sean O'Dell" <sean@...> 2004/07/12

On Monday 12 July 2004 13:52, bruno modulix wrote:

[#106268] Re: Functional Ruby (Re: Why I don't use Ruby.) — bruno modulix <onurb@...> 2004/07/13

Sean O'Dell a 馗rit :

[#106278] Re: Functional Ruby (Re: Why I don't use Ruby.) — "Sean O'Dell" <sean@...> 2004/07/13

On Tuesday 13 July 2004 13:02, bruno modulix wrote:

[#105596] Re: Functional Ruby (Re: Why I don't use Ruby.) — ser@... (Sean Russell) 2004/07/08

Mikael Brockman <phubuh@phubuh.org> wrote in message news:<87llhx2hec.fsf@phubuh.org>...

[#105610] Re: Functional Ruby (Re: Why I don't use Ruby.) — "Sean O'Dell" <sean@...> 2004/07/08

On Thursday 08 July 2004 11:52, Sean Russell wrote:

[#105621] Re: Functional Ruby (Re: Why I don't use Ruby.) — zuzu <sean.zuzu@...> 2004/07/08

On Fri, 9 Jul 2004 05:03:10 +0900, Sean O'Dell <sean@celsoft.com> wrote:

[#105057] ruby-dev summary 23763-23840 — Minero Aoki <aamine@...>

Hi all,

13 messages 2004/07/02

[#105058] Exceptions list - Unix ENOENT not the name of the exception - what is? — Graham Nicholls <graham@...>

10 messages 2004/07/02

[#105081] Help with one-liner — Philip Mateescu <pmateescu@...>

Hello,

13 messages 2004/07/02

[#105134] slow method searching? — David Garamond <lists@...6.isreserved.com>

$ time ruby -e'a=(1..200000).to_a; a.classx'

17 messages 2004/07/02

[#105234] Which version of Ruby is most widely used? — Randy Lawrence <jm@...>

What version of Ruby are most of us currenting using?

14 messages 2004/07/04

[#105240] aeditor 1.0 released — Simon Strandgaard <neoneye@...>

screenshots:

24 messages 2004/07/05

[#105307] Net::SSH 0.0.2 — Jamis Buck <jgb3@...>

Net::SSH is an implementation of the SSH2 protocol in Ruby.

19 messages 2004/07/05

[#105314] Array::index and rindex operator — Hadmut Danisch <nospam@...>

Hi,

23 messages 2004/07/05
[#105364] Re: Array::index and rindex operator — "Robert Klemme" <bob.news@...> 2004/07/06

[#105373] Re: Array::index and rindex operator — "Robert Klemme" <bob.news@...> 2004/07/06

[#105384] Re: Array::index and rindex operator — "Robert Klemme" <bob.news@...> 2004/07/06

[#105330] Ruby Advocacy/Documentation/Sponsorship? — Randy Lawrence <jm@...>

Having discovered Ruby recently and falling in love with it, I'm

16 messages 2004/07/06

[#105408] Bugtracking & UnitTests == good? — martinankerl at eml dot cc <asdf@...>

Hi all! I am afraid this post is a bit offtopic. If you are not

14 messages 2004/07/06

[#105417] Secure Ruby Compiler — Randy Lawrence <jm@...>

One of the killer features lacking in most scripting languages is the

37 messages 2004/07/06
[#105463] Re: Secure Ruby Compiler — Neil Stevens <neil@...> 2004/07/07

Randy Lawrence wrote:

[#105808] Secure Ruby Compiler — tony summerfelt <snowzone5@...> 2004/07/09

On Wed, 7 Jul 2004 17:32:46 +0900, you wrote:

[#105836] Re: Secure Ruby Compiler — zuzu <sean.zuzu@...> 2004/07/09

On Sat, 10 Jul 2004 04:28:54 +0900, tony summerfelt

[#105454] Class#=== has interesting results — Charles Comstock <cc1@...>

Why does this happen?

20 messages 2004/07/07
[#105461] Re: Class#=== has interesting results — Mauricio Fern疣dez <batsman.geo@...> 2004/07/07

On Wed, Jul 07, 2004 at 04:22:36PM +0900, Charles Comstock wrote:

[#105510] Re: Class#=== has interesting results — Charles Comstock <cc1@...> 2004/07/07

Mauricio Fern疣dez wrote:

[#105560] ruby interpreter as mach kernel server (beside bsd) — zuzu <sean.zuzu@...>

ruby, starting the interactive ruby shell, but with filesystem access

21 messages 2004/07/08

[#105567] speeding ruby development — David Garamond <lists@...6.isreserved.com>

I personally would very much like Ruby development to be sped up. We

34 messages 2004/07/08

[#105597] While we're discussing 'ri'... — Hal Fulton <hal9000@...>

I have a confession. 'ri' has never worked for me, and I have never

17 messages 2004/07/08
[#105605] Re: While we're discussing 'ri'... — James Britt <jamesUNDERBARb@...> 2004/07/08

Hal Fulton wrote:

[#105651] Anomoly using pattern to remove superfluous final \, if present — "Richard Lionheart" <NoOne@...>

Hi All,

13 messages 2004/07/09

[#105660] Secure Database Systems — "Sarah Tanembaum" <sarahtanembaum@...>

I was wondering if it is possible to create a secure database system

13 messages 2004/07/09

[#105681] I love Ruby — Graham Nicholls <graham@...>

I had to say it! I teach for LearningTree, so was able to attend a perl

19 messages 2004/07/09

[#105687] Ruby-Syntax capable editors for OS X? — Michael Fivis <michael.fivis@...>

Hello, fellow OS X Ruby fans. I was wondering if there was any nice

12 messages 2004/07/09

[#105735] PickAxe 2 licensing — Dave Thomas <dave@...>

Folks:

65 messages 2004/07/09
[#105828] Re: PickAxe 2 licensing — ser@... (Sean Russell) 2004/07/09

Dave Thomas <dave@pragprog.com> wrote in message news:<DA50B6EA-D1B6-11D8-A508-000A95676A62@pragprog.com>...

[#105830] Re: PickAxe 2 licensing — Dave Thomas <dave@...> 2004/07/09

[#105886] Re: PickAxe 2 licensing — zuzu <sean.zuzu@...> 2004/07/10

On Sat, 10 Jul 2004 06:43:23 +0900, Dave Thomas <dave@pragprog.com> wrote:

[#105911] Re: PickAxe 2 licensing — Dave Thomas <dave@...> 2004/07/10

[#105929] Re: PickAxe 2 licensing — "Sean O'Dell" <sean@...> 2004/07/10

On Saturday 10 July 2004 10:21, Dave Thomas wrote:

[#105754] : RubyGems 0.7.0 Released — Jim Weirich <jim@...>

Hello all,

15 messages 2004/07/09

[#105788] My impressions about Ruby — "Sam Sungshik Kong" <ssk@...>

This post is kinda long and a personal opinion which is not meant for

12 messages 2004/07/09

[#105942] Business application building with Ruby — Alexey Verkhovsky <alex@...>

I am contemplating a project, and I have a question:

28 messages 2004/07/10
[#105950] Re: Business application building with Ruby — "Kirk Haines" <khaines@...> 2004/07/10

On Sun, 11 Jul 2004 07:27:23 +0900, Alexey Verkhovsky wrote

[#105959] A little algorithmic help requested... — Hal Fulton <hal9000@...>

Here's a problem my tired brain is having trouble with.

23 messages 2004/07/11

[#106011] Net::SSH 0.0.3 — Jamis Buck <jgb3@...>

Net::SSH is a Ruby implementation of the SSH2 client protocol.

20 messages 2004/07/11

[#106022] SQLite-Ruby 1.3.0 — Jamis Buck <jgb3@...>

Looks like there were no problems found in the SQLite-Ruby release

15 messages 2004/07/11
[#106064] Re: [ANN] SQLite-Ruby 1.3.0 — Meino Christian Cramer <Meino.Cramer@...> 2004/07/12

From: Jamis Buck <jgb3@email.byu.edu>

[#106135] Re: [ANN] SQLite-Ruby 1.3.0 — Jamis Buck <jgb3@...> 2004/07/12

Meino Christian Cramer wrote:

[#106028] Ruby quickies and useful idioms — Sam Stephenson <sstephenson@...>

There's a few trivial but useful "extensions" to Ruby's standard

30 messages 2004/07/11

[#106052] Ruby Module Naming Convention vs Java Namespaces — Randy Lawrence <jm@...>

How do we manage namespaces in Ruby to avoid collisions with 3rd parties?

15 messages 2004/07/12

[#106215] Printing contents of a method — Nate Smith <nsmith5@...>

Hello all,

16 messages 2004/07/13
[#106221] Re: Printing contents of a method — "Robert Klemme" <bob.news@...> 2004/07/13

[#106227] qtruby compilation error — Jochen Immendfer <jochen.i@...>

Hi,

20 messages 2004/07/13
[#106231] Re: qtruby compilation error — Paul Brannan <pbrannan@...> 2004/07/13

On Wed, Jul 14, 2004 at 01:40:23AM +0900, Jochen Immendfer wrote:

[#106233] Re: qtruby compilation error — Jochen Immendfer <jochen.i@...> 2004/07/13

Thank you two for answering.

[#106366] — Jesse van den Kieboom <troplosti@...>

Hi,

28 messages 2004/07/14
[#106371] — ts <decoux@...> 2004/07/14

>>>>> "J" == Jesse van den Kieboom <troplosti@orcaweb.cjb.net> writes:

[#106374] Re: No Subject — Jesse van den Kieboom <troplosti@...> 2004/07/14

On Wed, 2004-07-14 at 14:41, ts wrote:

[#106377] Re: No Subject — ts <decoux@...> 2004/07/14

>>>>> "J" == Jesse van den Kieboom <troplosti@orcaweb.cjb.net> writes:

[#106380] Re: No Subject — Jesse van den Kieboom <troplosti@...> 2004/07/14

Okay, I understand the idea now. Problem is that I register two global

[#106382] Re: No Subject — ts <decoux@...> 2004/07/14

>>>>> "J" == Jesse van den Kieboom <troplosti@orcaweb.cjb.net> writes:

[#106445] Newbie: Pointers for Ruby compatible DBase engine — xdblade@... (Xeon)

Hi,

13 messages 2004/07/14

[#106471] Free Ruby "Cookbook" (48.71% done) — Randy Lawrence <jm@...>

Anyone know if this is moving along or stalled?

12 messages 2004/07/15

[#106480] my ruby code won't go as fast as my perl code — "Dave Burt" <burtdav@...>

I realise I'm doing this a perlish way, but my question is, is it possible

12 messages 2004/07/15

[#106493] Writing games in Ruby? — winnocence@... (Innocence)

Hey

15 messages 2004/07/15

[#106512] Problem using Ruby as script language, which limits its distribution speed — "Christian Kaiser" <bchk@...>

I am (or was) a big fan of ruby (except some unexpected function names, but

12 messages 2004/07/15

[#106519] Hiding app.run in begin-rescue block: pros & cons? — "Richard Lionheart" <NoOne@...>

Hi All,

16 messages 2004/07/15

[#106530] scripting language (fwd) — "Ara.T.Howard" <Ara.T.Howard@...>

28 messages 2004/07/15
[#106552] Re: scripting language (fwd) — Jamis Buck <jgb3@...> 2004/07/15

Ara.T.Howard wrote:

[#106546] Anyone tried Arachno Ruby? — "Robert Oschler" <no_replies@..._email_address.invalid>

I'm considering taking a look at Arachno Ruby but I'd like to hear from some

20 messages 2004/07/15
[#106687] Re: Anyone tried Arachno Ruby? — Lothar Scholz <mailinglists@...> 2004/07/16

Hello Keith,

[#106694] Re: Anyone tried Arachno Ruby? — Wirianto Djunaidi <wirianto.djunaidi@...> 2004/07/17

Saw this mentioned here, so I tried it out. Looks very need and the

[#106675] Dynamically replacing methods for efficiency — Hal Fulton <hal9000@...>

I have an idea here, but I'm afraid of crossing the line from

14 messages 2004/07/16

[#106735] : about class method — "Kurk Lord" <kurk_lord@...>

Hi all,

17 messages 2004/07/17

[#106819] Which compiled language is closest to Ruby? — Gully Foyle <nospam@...>

I am currently using C++ as my compiled language but fell in love with

37 messages 2004/07/19

[#106823] Ruby Specification — David Ross <drossruby@...>

Request. Can someone create a ruby specification? I

27 messages 2004/07/19
[#106845] Re: Ruby Specification — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com> 2004/07/19

il Mon, 19 Jul 2004 15:38:31 +0900, David Ross <drossruby@yahoo.com>

[#106837] Compiling Ruby code — Nospam <news.home.nl-1@...>

Hi,

29 messages 2004/07/19

[#106908] Onigurama — Harry Ohlsen <harryo@...>

I've just started reading "Mastering Regular Expressions" because, while

32 messages 2004/07/19
[#107163] Re: [OT] FreeBSD <-> Debian — Michael Mueller <muellerix@...> 2004/07/22

> HI Michael,

[#106979] thread safe? — tony summerfelt <snowzone5@...>

i see that a number of modules are declared 'thread safe?'

16 messages 2004/07/20

[#106988] VB(ish) replacement — Dave Boland <NOSPAMdboland9@...>

The other day I was asked if there is an open source replacement for VB6

17 messages 2004/07/20

[#107001] openssl not getting built — Hal Fulton <hal9000@...>

I'm building the July 20 snapshot on Fedora 1.

15 messages 2004/07/20
[#107004] Re: openssl not getting built — Jamis Buck <jgb3@...> 2004/07/20

Hal Fulton wrote:

[#107051] sysread and buffered I/O — Hal Fulton <hal9000@...>

I've been playing with telnet (and ssh) and I've been

40 messages 2004/07/21
[#107052] Re: sysread and buffered I/O — Tanaka Akira <akr@...17n.org> 2004/07/21

In article <40FE101D.90603@hypermetrics.com>,

[#107053] Re: sysread and buffered I/O — Hal Fulton <hal9000@...> 2004/07/21

Tanaka Akira wrote:

[#107054] Re: sysread and buffered I/O — Tanaka Akira <akr@...17n.org> 2004/07/21

In article <40FE1A4C.9080403@hypermetrics.com>,

[#107055] Re: sysread and buffered I/O — Hal Fulton <hal9000@...> 2004/07/21

Tanaka Akira wrote:

[#107057] Re: sysread and buffered I/O — Tanaka Akira <akr@...17n.org> 2004/07/21

In article <40FE1F86.6030005@hypermetrics.com>,

[#107062] Re: sysread and buffered I/O — Gavin Sinclair <gsinclair@...> 2004/07/21

On Wednesday, July 21, 2004, 6:22:19 PM, Tanaka wrote:

[#107065] Re: sysread and buffered I/O — Tanaka Akira <akr@...17n.org> 2004/07/21

In article <189-1205065002.20040721185353@soyabean.com.au>,

[#107118] Ruby Installer for Windows 1.8.2-14_RC5 (from Ruby 1.8.2 preview1) — "Curt Hibbs" <curt@...>

Today Matz released the official preview1 for Ruby 1.8.2. This release

56 messages 2004/07/21
[#107162] Re: [ANN] Ruby Installer for Windows 1.8.2-14_RC5 (from Ruby 1.8.2 preview1) — David Espada <davinciSINSPAM@...> 2004/07/22

El mi駻coles 21 de julio, Curt Hibbs escribi鷓

[#107184] Re: [ANN] Ruby Installer for Windows 1.8.2-14_RC5 (from Ruby 1.8.2 preview1) — "Curt Hibbs" <curt@...> 2004/07/22

David Espada wrote:

[#107185] Re: [ANN] Ruby Installer for Windows 1.8.2-14_RC5 (from Ruby 1.8.2 preview1) — Lothar Scholz <mailinglists@...> 2004/07/22

Hello Curt,

[#107819] **RC6** Ruby Installer for Windows 1.8.2-14 — "Curt Hibbs" <curt@...> 2004/07/29

This release candidate of the Ruby Installer for Windows

[#107128] Re: substring by range parameter (bug?) — "D T" <email55555@...>

Correct to my previous conclusion.

12 messages 2004/07/21
[#107130] was - Re: substring by range parameter (bug?) — "Ara.T.Howard" <ahoward@...> 2004/07/21

On Thu, 22 Jul 2004, D T wrote:

[#107278] Active Record 0.9.0: Thread safety, speed, naturalness — David Heinemeier Hansson <david@...>

What's new in Active Record 0.9.0?

15 messages 2004/07/23
[#107556] Re: [ANN] Active Record 0.9.0: Thread safety, speed, naturalness — Carl Youngblood <carl.youngblood@...> 2004/07/27

I'm still new to ActiveRecord, so forgive me if this is obvious, but

[#107580] Re: [ANN] Active Record 0.9.0: Thread safety, speed, naturalness — Gavin Sinclair <gsinclair@...> 2004/07/27

On Tuesday, July 27, 2004, 8:59:26 PM, Carl wrote:

[#107583] Re: [ANN] Active Record 0.9.0: Thread safety, speed, naturalness — David Heinemeier Hansson <david@...> 2004/07/27

> I'm pretty confident that David would ensure ActiveRecord works just

[#107621] Re: [ANN] Active Record 0.9.0: Thread safety, speed, naturalness — Carl Youngblood <carl.youngblood@...> 2004/07/27

This stuff should probably be documented better, since it is not very

[#107627] Re: [ANN] Active Record 0.9.0: Thread safety, speed, naturalness — David Morton <mortonda@...> 2004/07/27

Carl Youngblood wrote:

[#107370] Rails 0.5.0: The end of vaporware! — David Heinemeier Hansson <david@...>

I致e been talking (and hyping) Rails for so long that it痴 all wierd to

22 messages 2004/07/24
[#107404] Re: [ANN] Rails 0.5.0: The end of vaporware! — Andreas Schwarz <usenet@...> 2004/07/25

David Heinemeier Hansson wrote:

[#107405] Re: [ANN] Rails 0.5.0: The end of vaporware! — David Heinemeier Hansson <david@...> 2004/07/25

> The 10 minute video is really impressive. But after browsing through

[#107407] Re: [ANN] Rails 0.5.0: The end of vaporware! — Andreas Schwarz <usenet@...> 2004/07/25

David Heinemeier Hansson wrote:

[#107409] Re: [ANN] Rails 0.5.0: The end of vaporware! — David Heinemeier Hansson <david@...> 2004/07/25

>>> The 10 minute video is really impressive. But after browsing through

[#107410] Re: [ANN] Rails 0.5.0: The end of vaporware! — Andreas Schwarz <usenet@...> 2004/07/25

David Heinemeier Hansson wrote:

[#107387] rubyonrails and cgikit comparison — Gully Foyle <nospam@...>

There seems to be a lot of excitement about rubyonrails even before the

50 messages 2004/07/25
[#107397] Re: rubyonrails and cgikit comparison — Bauduin Raphael <rb@...> 2004/07/25

Gully Foyle wrote:

[#107448] Re: rubyonrails and cgikit comparison — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com> 2004/07/25

il Mon, 26 Jul 2004 03:48:30 +0900, Florian Weber

[#107485] Re: rubyonrails and cgikit comparison — Florian Weber <csshsh@...> 2004/07/26

> He's saying that he does not want to have 'foo' referencing something

[#107490] Re: rubyonrails and cgikit comparison — Raphael Bauduin <raphael.bauduin@...> 2004/07/26

Florian Weber wrote:

[#107495] Re: rubyonrails and cgikit comparison — Florian Weber <csshsh@...> 2004/07/26

[#107555] Why's (Poignant) Guide to Ruby: Expansion Pak I: The Tiger's Vest (with a Basic Introduction to Irb) — why the lucky stiff <ruby-talk@...>

Yes, I've been taking forever. Well, what can I say? Answering threats

27 messages 2004/07/27
[#107661] Re: [ANN] Why's (Poignant) Guide to Ruby: Expansion Pak I: The Tiger's Vest (with a Basic Introduction to Irb) — Raphael Bauduin <raphael.bauduin@...> 2004/07/28

why the lucky stiff wrote:

[#107662] Re: [ANN] Why's (Poignant) Guide to Ruby: Expansion Pak I: The Tiger's Vest (with a Basic Introduction to Irb) — "Curt Hibbs" <curt@...> 2004/07/28

Raphael Bauduin wrote:

[#107675] Re: [ANN] Why's (Poignant) Guide to Ruby: Expansion Pak I: The Tiger's Vest (with a Basic Introduction to Irb) — why the lucky stiff <ruby-talk@...> 2004/07/28

Curt Hibbs wrote:

[#107681] Re: [ANN] Why's (Poignant) Guide to Ruby: Expansion Pak I: The Tiger's Vest (with a Basic Introduction to Irb) — "Curt Hibbs" <curt@...> 2004/07/28

why the lucky stiff wrote:

[#107594] DBI: connecting 'local' database — Ralf Mler <r_mueller@...>

Hi,

13 messages 2004/07/27
[#107595] Re: DBI: connecting 'local' database — Michael Neumann <mneumann@...> 2004/07/27

Ralf Mler wrote:

[#107715] Stupid ODBC! — Lennon Day-Reynolds <rcoder@...>

So, in response to David's call for contributions of adapters for

33 messages 2004/07/28
[#107738] Re: Stupid ODBC! — "Sean O'Dell" <sean@...> 2004/07/29

On Wednesday 28 July 2004 15:04, Lennon Day-Reynolds wrote:

[#107741] Re: Stupid ODBC! — Lennon Day-Reynolds <rcoder@...> 2004/07/29

Sean,

[#107740] Rails 0.5.5: Windows, WEBrick, lots! — David Heinemeier Hansson <david@...>

What's new in Rails 0.5.5?

10 messages 2004/07/29

[#107832] C ext: GC claiming objects early — Tilman Sauerbeck <tilman@...>

Hi,

17 messages 2004/07/29
[#107885] Re: C ext: GC claiming objects early — ts <decoux@...> 2004/07/30

>>>>> "T" == Tilman Sauerbeck <tilman@code-monkey.de> writes:

[#107906] Forward references? — Lloyd Zusman <ljz@...>

Is there a way to define forward references to functions? Due to my own

27 messages 2004/07/30

[#107916] AllInOneRuby — "Erik Veenstra" <pan@...>

I'm pleased to announce the birth of AllInOneRuby.

15 messages 2004/07/30

[#107984] Free(real Free) GUI toolkits — David Ross <drossruby@...>

Has anyone tried using the WideStudio libraries with

82 messages 2004/07/31
[#107985] Re: Free(real Free) GUI toolkits — Hal Fulton <hal9000@...> 2004/07/31

David Ross wrote:

[#107986] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/07/31

> I haven't tried this (or even heard of it before),

[#107989] Re: Free(real Free) GUI toolkits — Lothar Scholz <mailinglists@...> 2004/07/31

Hello David,

[#107990] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/08/01

> I hate myself for asking this question:

[#107991] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/08/01

Oh a correction, by binary, I meant statically linked

[#107994] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/08/01

Hmm.. does anyone have a MacOSX computer they can try

[#108000] Re: Free(real Free) GUI toolkits — Lothar Scholz <mailinglists@...> 2004/08/01

Hello David,

[#108008] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/08/01

"Truth is important, knock down the trolls on thier

[#108017] Re: Free(real Free) GUI toolkits — Rando Christensen <eyez@...> 2004/08/01

David Ross wrote:

[#108657] Re: Free(real Free) GUI toolkits — Florian Gross <flgr@...> 2004/08/09

David Ross wrote:

[#108660] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/08/09

>> And i must say i don't understand your attitude,

[#108690] Re: Free(real Free) GUI toolkits — Lothar Scholz <mailinglists@...> 2004/08/09

Hello David,

[#108752] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/08/10

>

[#108816] Re: Free(real Free) GUI toolkits — Carl Youngblood <carl.youngblood@...> 2004/08/10

It's amazing to see how much one bad apple can spoil the barrel.

[#108818] Re: Free(real Free) GUI toolkits — David Ross <drossruby@...> 2004/08/10

> It's amazing to see how much one bad apple can spoil

[#108634] Re: Free(real Free) GUI toolkits — Reinder Verlinde <reinder@...> 2004/08/08

In article <410CAD5B.8030405@illuzionz.org>,

Re: [NUBY] Iteration in extensions

From: "daz" <dooby@...10.karoo.co.uk>
Date: 2004-07-27 12:27:21 UTC
List: ruby-talk #107579
Fredrik Jagenheim wrote:
> ts wrote:
> >
> >  Well, in ruby
> > [snip solution in ruby]
>
> I had to interface with a C-library that took, among other things, an
> array of bitmaps as input. Otherwise, I would have done it in Ruby, of
> course.
>

I assumed it was mainly for experimentation until you said that.

Your example showed the first mutable Fixnum object that I've seen
and you must have wondered why a simple task was so tough to get
right in an extension.

Have a look at the same thing implemented (for amusement only) as an
extension to the Integer class (Fixnum/Bignum's parent).  Notice how
the input array is created from a sequence of parameters in both the
Ruby and C versions, so you call with (1,2,3) instead of ([1,2,3]).
(Method Bitmask#add_bits is defined with "-1" arguments.)

Method Bitmask#add_bit in Ruby is now:
    bitmask | 1 << bit
not:
    bitmask |= 1 << bit

which means that you would need bitmask = bitmask.add_bit(...) when
accumulating single results.  Apart from this "new" problem, you
should find that things look simpler (e.g. no Bitmask.new).

> As for the solution, Tim was correct in that rb_iterate wasn't what I
> neded. The for loop solved the problem I had.

OK, I saw that, but you may be tempted to try another approach.
A similar loop to Tim's is still there.

It's a kind of "Hello bit-World" extension if anyone needs one   :-)

>
> Thanks everyone,
> //Fredrik
>

and thank you,

:daz


-------8<------ Bitmask.c

#include "ruby.h"

static ID id_lshift, id_or;

static VALUE
add_bit(VALUE obj, VALUE bit)  /* OK with Fixnum or Bignum */
{
    VALUE bit_or = rb_funcall(INT2FIX(1), id_lshift, 1, bit);

    return rb_funcall(obj, id_or, 1, bit_or);
}

static VALUE
bm_add_bit(VALUE self, VALUE bit)
{
    return add_bit(self, bit);
}

static VALUE
bm_add_bits(int argc, VALUE *argv, VALUE self)
{
    VALUE arr_bits, result = self;
    int x;

    rb_scan_args(argc, argv, "0*", &arr_bits);

    for (x = 0; x < RARRAY(arr_bits)->len; x++)
        result = add_bit(result, RARRAY(arr_bits)->ptr[x]);

    return result;
}

void Init_Bitmask() {
    rb_define_method(rb_cInteger, "add_bit",  bm_add_bit, 1);
    rb_define_method(rb_cInteger, "add_bits", bm_add_bits, -1);

    id_lshift = rb_intern("<<");
    id_or     = rb_intern("|");
}


       /*  E N D  */


/***
###-----  extconf.rb

require 'mkmf'
create_makefile('Bitmask')

# - to build ...
# make
# -  then  ...
# make install

###-----  test_Bitmask.rb

require 'Bitmask'

class Integer
  def add_rubits(*args)  ###  Ruby add_bits
    res = self
    args.each {|bx| res = res.add_bit(bx)}
    res
  end
end

show = lambda{ |res| puts 'value: 0x%03x  [%08b]' % [res, res] }

bm = 0

show[ bm = bm.add_bit(2) ]
show[ bm = bm.add_bit(4) ]

puts '------------'
show[ 0.add_bits(2, 4) ]

puts '------------'
MSK1 = 0b11110011
bm = MSK1;  show[ bm.add_bits(  31, 33) ]
bm = MSK1;  show[ bm.add_rubits(31, 33) ]  # Ruby
                     bit_arr = [31, 33]
bm = MSK1;  show[ bm.add_bits(*bit_arr) ]

puts '------------'
MSK2 = 2**41
bm = MSK2;  show[ bm.add_bits(  19, 3, 9, 17, 6, 18) ]
bm = MSK2;  show[ bm.add_rubits(19, 3, 9, 17, 6, 18) ]  # Ruby


 ***/



In This Thread

Prev Next