[#66079] gc_sweep(): unknown data type 48 — Mauricio Fern疣dez <batsman.geo@...>

15 messages 2003/03/01
[#66082] Re: [BUG] gc_sweep(): unknown data type 48 — nobu.nokada@... 2003/03/01

Hi,

[#66085] Re: [BUG] gc_sweep(): unknown data type 48 — Mauricio Fern疣dez <batsman.geo@...> 2003/03/01

On Sat, Mar 01, 2003 at 07:26:58PM +0900, nobu.nokada@softhome.net wrote:

[#66088] Anything like Class::DBI from Perl — pw-googlegroups@... (Peter Wilkinson)

We've been doing some work using Class::DBI in Perl which makes access

17 messages 2003/03/01

[#66217] Prolly a simple question — <ghost-no-spam@...>

Sorry if these questions have come up before, but google searching hasn't

20 messages 2003/03/03

[#66245] TCPSocket delay problem — Seth Kurtzberg <seth@...>

Matz,

23 messages 2003/03/04

[#66269] OSCON — ptkwt@...1.aracnet.com (Phil Tomson)

For those coming to OSCON this year...

18 messages 2003/03/04

[#66315] system command expansion after PTY.spawn — Christian von Mueffling <cvm@...>

Hi!

13 messages 2003/03/05

[#66330] cookies in eruby mod_ruby — Daniel Bretoi <lists@...>

Can someone explain how to set/delete cookies using mod_ruby (eruby)?

13 messages 2003/03/06

[#66332] Russian Ruby resource and Ruby Course — leikind@... (Yuri Leikind)

Hi all,

19 messages 2003/03/06

[#66392] DRB and threads — Brian Candler <B.Candler@...>

I wonder if anyone can give me some hints on the interactions between dRuby

22 messages 2003/03/06
[#66417] Re: DRB and threads — "Robert Klemme" <bob.news@...> 2003/03/07

[#66421] Re: DRB and threads — Brian Candler <B.Candler@...> 2003/03/07

On Fri, Mar 07, 2003 at 07:15:29PM +0900, Robert Klemme wrote:

[#66449] Re: DRB and threads — ahoward <ahoward@...> 2003/03/08

On Fri, 7 Mar 2003, Brian Candler wrote:

[#66454] Re: DRB and threads — Brian Candler <B.Candler@...> 2003/03/08

On Sat, Mar 08, 2003 at 11:38:31AM +0900, ahoward wrote:

[#66440] Solving the 'strange language' documentation problem — "Josef 'Jupp' Schugt" <jupp@...>

Dear Rubyists,

18 messages 2003/03/07

[#66466] I'm to give short talk on ruby at work, anybody have material/outlines they can donate/ — Sam Roberts <sroberts@...>

10 messages 2003/03/08

[#66469] What character sets are available in Ruby ? — peterjohannsen@... (pj)

There is a Ruby FAQ which I read that said that Ruby only supports

17 messages 2003/03/08

[#66522] Thinking of learning Ruby — "anonimous" <n.thomp@...>

I have abour 3 or 4 years experience with Linux, and about 2 years

45 messages 2003/03/10

[#66530] Protocols — "Ray Capozzi" <Ray_Capozzi@...>

Is there a preferred set of ruby libraries for client/server solutions? As

26 messages 2003/03/10
[#66533] Re: Protocols — "MikkelFJ" <mikkelfj-anti-spam@...> 2003/03/10

[#66548] Re: Protocols — <jbritt@...> 2003/03/10

> "Ray Capozzi" <Ray_Capozzi@hotmail.com> wrote in message

[#66633] Threads and DRb — "Hal E. Fulton" <hal9000@...>

I changed the title here because this is not

16 messages 2003/03/10

[#66805] Ruby newbie uninstall question? — "Colin Coates" <colin@...>

Hello Everyone,

12 messages 2003/03/12

[#66850] Ruby / Eiffel ? — <cailloux@...>

Hello evry body

23 messages 2003/03/13

[#66906] Syck 0.08 -- Next-generation of YAML.rb — why the lucky stiff <yaml-core@...>

citizens,

21 messages 2003/03/14
[#66931] Re: [ANN] Syck 0.08 -- Next-generation of YAML.rb — Richard Kilmer <rich@...> 2003/03/14

Works great under OS X and Ruby 1.8!

[#66927] dynamically create a method — Rudolf Polzer <abuse@...>

Is there a possiblilty to dynamically create a method, like this?

14 messages 2003/03/14

[#66974] The onion truck strikes again ... Announcing rake — Jim Weirich <jweirich@...>

Ok, let me state from the beginning that I never intended to write this

25 messages 2003/03/15

[#67013] ANN: vcard 0.1 - a vCard decoding library — Sam Roberts <sroberts@...>

http://raa.ruby-lang.org/list.rhtml?name=vcard

10 messages 2003/03/15

[#67071] How do I get irb to use readline, (with OS X)? — Sam Roberts <sroberts@...>

I'm sure I saw something about this somewhere, but I've been searching,

12 messages 2003/03/16

[#67074] ANN: Madeleine 0.1 — Anders Bengtsson <ndrsbngtssn@...>

28 messages 2003/03/16
[#67109] Re: ANN: Madeleine 0.1 — Brian Candler <B.Candler@...> 2003/03/17

On Mon, Mar 17, 2003 at 07:00:35AM +0900, Anders Bengtsson wrote:

[#67115] Re: ANN: Madeleine 0.1 — Anders Bengtsson <ndrsbngtssn@...> 2003/03/17

--- Brian Candler <B.Candler@pobox.com> skrev:

[#67124] Re: ANN: Madeleine 0.1 — Brian Candler <B.Candler@...> 2003/03/17

On Mon, Mar 17, 2003 at 11:37:56PM +0900, Anders Bengtsson wrote:

[#67128] Re: ANN: Madeleine 0.1 — Anders Bengtsson <ndrsbngtssn@...> 2003/03/17

--- Brian Candler <B.Candler@pobox.com> wrote:

[#67222] OT: XML too hard (YAML opportunity?) — ptkwt@...1.aracnet.com (Phil Tomson)

On /. today there is a discussion about a weblog entry by an XML

27 messages 2003/03/18
[#67239] Re: XML too hard (YAML opportunity?) — <jbritt@...> 2003/03/19

> On /. today there is a discussion about a weblog entry by an XML

[#67302] Frequency of announcements — "Josef 'Jupp' Schugt" <jupp@...>

Hi!

14 messages 2003/03/19

[#67304] Strong advantages over Python — Greg McIntyre <greg@...>

Hi lovely Ruby people,

111 messages 2003/03/20
[#67408] Re: Strong advantages over Python — Greg McIntyre <greg@...> 2003/03/21

Good list. Amalgamated with http://www.ruby-lang.org/en/whats.html, it

[#67416] Re: Strong advantages over Python — Paul Prescod <paul@...> 2003/03/21

Greg McIntyre wrote:

[#67663] Ruby lecture slides (was Strong advantages over Python) — Greg McIntyre <greg@...> 2003/03/23

Thanks to all of you who answered and cleared up some of my perceptions

[#67675] Re: Ruby lecture slides (was Strong advantages over Python) — Paul Prescod <paul@...> 2003/03/23

Greg McIntyre wrote:

[#67685] Re: Ruby lecture slides (was Strong advantages over Python) — Mark Wilson <mwilson13@...> 2003/03/24

[#67697] Re: Ruby lecture slides (was Strong advantages over Python) — Greg McIntyre <greg@...> 2003/03/24

Mark Wilson <mwilson13@cox.net> wrote:

[#67346] class level Exception handling — Xiangrong Fang <xrfang@...>

Hi

12 messages 2003/03/20

[#67366] Newbie question: 9/5=1 ? — Thomas Jollans <nospam@...>

while learning ruby i wanted to program a simple fahrenheit to celsius

16 messages 2003/03/20

[#67387] Ruby tutorial download — Daniel Carrera <dcarrera@...>

Someone asked that I make the ruby tutorial available for download,

13 messages 2003/03/20

[#67415] Proposal: new operator: '<-' (for assignments) — ptkwt@...1.aracnet.com (Phil Tomson)

15 messages 2003/03/21

[#67446] Ruby & LaTeX — Walter Cazzola <cazzola@...>

Dear Ruby Experts,

19 messages 2003/03/21

[#67514] Rake problem? — manfred.lotz@... (Manfred)

Hi,

15 messages 2003/03/21

[#67546] Expression results — debitsch@... (Rasmus)

Hello,

22 messages 2003/03/21
[#67549] Re: Expression results — "Hal E. Fulton" <hal9000@...> 2003/03/21

----- Original Message -----

[#67634] exiting a loop — Daniel Carrera <dcarrera@...>

Hello,

31 messages 2003/03/23

[#67711] Iterate over two lists in parallel — Gavin Sinclair <gsinclair@...>

On Monday, March 24, 2003, 1:54:53 PM, Julian wrote:

33 messages 2003/03/24

[#67915] Conditionally make a method private? — Jeremy <thinker5555@...>

Hello again!

13 messages 2003/03/26

[#67961] What are the differences between Ruby's blocks and Python's lambdas? — sdieselil@... (sdieselil)

See subject.

22 messages 2003/03/26
[#67966] Re: What are the differences between Ruby's blocks and Python's lambdas? — "Chris Pine" <nemo@...> 2003/03/26

As was mentioned, Ruby has lambdas, but they are commonly called "procs".

[#67967] Re: What are the differences between Ruby's blocks and Python's lambdas? — Mauricio Fern疣dez <batsman.geo@...> 2003/03/26

On Thu, Mar 27, 2003 at 12:50:04AM +0900, Chris Pine wrote:

[#67975] Re: What are the differences between Ruby's blocks and Python's lambdas? — Paul Brannan <pbrannan@...> 2003/03/26

On Thu, Mar 27, 2003 at 01:01:25AM +0900, Mauricio Fern疣dez wrote:

[#67983] Re: What are the differences between Ruby's blocks and Python's lambdas? — Mauricio Fern疣dez <batsman.geo@...> 2003/03/26

On Thu, Mar 27, 2003 at 02:20:48AM +0900, Paul Brannan wrote:

[#67986] Re: What are the differences between Ruby's blocks and Python's lambdas? — Paul Brannan <pbrannan@...> 2003/03/26

On Thu, Mar 27, 2003 at 04:40:40AM +0900, Mauricio Fern疣dez wrote:

[#68082] Array question — walter@...

Any one know why Array.join can't take a code block and join that

28 messages 2003/03/27

[#68198] Announce: RHDL-0.4.2 (Ruby HDL) an agile HDL — ptkwt@...1.aracnet.com (Phil Tomson)

RHDL 0.4.2 is now available at:

12 messages 2003/03/29

[#68199] Ruby 1.6.8 vs Ruby 1.8.0 preview 2 - benchmarks — djberg96@... (Daniel Berger)

Hi all,

11 messages 2003/03/29

[#68201] Weighted random selection -- how would you do this? — "Hal E. Fulton" <hal9000@...>

Here's a little question for you.

24 messages 2003/03/29

[#68254] Saving code written during an irb session — Bil Kleb <W.L.Kleb@...>

OK, so I admit: I'm stupid. How do I save the code I've generated

19 messages 2003/03/30

[#68271] Hard coded newline characters — David King Landrith <dave@...>

There are a surprising number of ruby source files that have newline

24 messages 2003/03/30
[#68286] Re: Hard coded newline characters — nobu.nokada@... 2003/03/31

Hi,

[#68328] Re: Hard coded newline characters — David King Landrith <dave@...> 2003/03/31

On Sunday, March 30, 2003, at 08:06 PM, nobu.nokada@softhome.net wrote:

[#68318] syntax highlighting problem in vim — "Josef 'Jupp' Schugt" <jupp@...>

Hi!

16 messages 2003/03/31
[#68325] Re: syntax highlighting problem in vim — KONTRA Gergely <kgergely@...> 2003/03/31

Negative. It is correct for me. How is it displayed at you?

Re: The onion truck strikes again ... Announcing rake

From: djberg96@... (Daniel Berger)
Date: 2003-03-17 00:20:24 UTC
List: ruby-talk #67081
Jim Weirich <jweirich@one.net> wrote in message news:<1047700803.26404.123.camel@traken>...
> Ok, let me state from the beginning that I never intended to write this
> code.  I'm not convinced it is useful, and I'm not convinced anyone
> would even be interested in it.  All I can say is that Why's onion truck
> must by been passing through the Ohio valley.
> 
> What am I talking about? ... A Ruby version of Make.
> 
> See, I can sense you cringing already, and I agree.  The world certainly
> doesn't need yet another reworking of the "make" program.  I mean, we
> already have "ant".  Isn't that enough?
> 
> It started yesterday.  I was helping a coworker fix a problem in one of
> the Makefiles we use in our project.  Not a particularly tough problem,
> but during the course of the conversation I began lamenting some of the
> shortcomings of make.  In particular, in one of my makefiles I wanted to
> determine the name of a file dynamically and had to resort to some
> simple scripting (in Ruby) to make it work.  "Wouldn't it be nice if you
> could just use Ruby inside a Makefile" I said.
> 
> My coworker (a recent convert to Ruby) agreed, but wondered what it
> would look like.  So I sketched the following on the whiteboard...
> 
>     "What if you could specify the make tasks in Ruby, like this ..."
> 
>       task "build" do
>         java_compile(...args, etc ...)
>       end
> 
>     "The task function would register "build" as a target to be made,
>     and the block would be the action executed whenever the build
>     system determined that it was time to do the build target."
> 
> We agreed that would be cool, but writing make from scratch would be WAY
> too much work.  And that was the end of that!
> 
> .. Except I couldn't get the thought out of my head.  What exactly
> would be needed to make the about syntax work as a make file?  Hmmm, you
> would need to register the tasks, you need some way of specifying
> dependencies between tasks, and some way of kicking off the process. 
> Hey!  What if we did ... and fifteen minutes later I had a working
> prototype of Ruby make, complete with dependencies and actions.
> 
> I showed the code to my coworker and we had a good laugh.  It was just
> about a page worth of code that reproduced an amazing amount of the
> functionality of make.  We were both truely stunned with the power of
> Ruby.
> 
> But it didn't do everything make did.  In particular, it didn't have
> timestamp based file dependencies (where a file is rebuilt if any of its
> prerequisite files have a later timestamp).  Obviously THAT would be a
> pain to add and so Ruby Make would remain an interesting experiment.
> 
> .. Except as I walked back to my desk, I started thinking about what
> file based dependecies would really need.  Rats!  I was hooked again,
> and by adding a new class and two new methods, file/timestamp
> dependencies were implemented.
> 
> Ok, now I was really hooked.  Last night (during CSI!) I massaged the
> code and cleaned it up a bit.  The result is a bare-bones replacement
> for make in exactly 100 lines of code.
> 
> For the curious, you can see it at ...
>   o http://w3.one.net/~jweirich/tools/rake/rake.rb (the code)
>   o http://w3.one.net/~jweirich/tools/rake/Rakefile (example Rakefile)
>   o ftp://ftp.one.net/pub/users/jweirich/tools/rake/rake-0.1.0.tgz
>       (the complete package).
> 
>   (NOTE: The FTP server is flakey.  If it says it is busy, keep trying.
>          I'm looking into a different web/ftp hosting, but in the mean
>          time, good luck.)
> 
> Oh, about the name.  When I wrote the example Ruby Make task on my
> whiteboard, my coworker exclaimed "Oh! I have the perfect name: Rake ...
> Get it?  Ruby-Make. Rake!"  He said he envisioned the tasks as leaves
> and Rake would clean them up  ... or something like that.  Anyways, the
> name stuck.
> 
> Some quick examples ...
> 
> A simple task to delete backup files ...
> 
>    task :clean do
>      Dir['*~'].each {|fn| File.delete(fn) rescue nil }
>    end
> 
> Note that task names are symbols (they are slightly easier to type than
> quoted strings ... but you may use quoted string if you would rather). 
> Note also the use of "rescue nil" to trap and ignore errors in the
> File.delete command.
> 
> To run it, just type "rake clean".  Rake will automatically find a
> Rakefile in the current directory (or above!) and will invoke the
> targets named on the command line.  If there are no targets explicitly
> named, rake will invoke the task "default".
> 
> Here's another task with dependencies ...
> 
>    task :clobber => [:clean] do
>      sys %{rm -r tempdir}
>    end
> 
> Task :clobber depends upon task :clean, so :clean will be run before
> :clobber is executed.  "sys" is short for the "system" command (with an
> echo to standard out).
> 
> Files are specified by using the "file" command.  It is similar to the
> task command, except that the task name represents a file, and the task
> will be run only if the file doesn't exist, or if its modification time
> is earlier than any of its prerequisites.
> 
> Here is a file based dependency that will compile "hello.cc" to
> "hello.o".
> 
>    file "hello.cc"
>    file "hello.o" => ["hello.cc"] do |t|
>      srcfile = t.name.sub(/\.o$/, ".cc")
>      sys %{g++ #{srcfile} -c -o #{t.name}}
>    end
> 
> I normally specify file tasks with string (rather than symbols).  Some
> file names can't be represented by symbols.  Plus it makes the
> distinction between them more clear to the casual reader.  And yes,
> currently the "hello.cc" task with no prerequisites and no actions is
> required.
> 
> Currently writing a task for each and every file in the project would be
> tedious at best.  I envision a set of libraries to make this job
> easier.  For instance, perhaps something like this ...
> 
>    require 'rake/ctools'
>    Dir['*.c'].each do |fn|
>      c_source_file(fn)
>    end
> 
> where "c_source_file" will create all the tasks need to compile all the
> C source files in a directory.  Any number of useful libraries could be
> created for rake.
> 
> That's it.  There's no documentation (other than whats in this
> message).  Does this sound interesting to anyone?  If so, I'll continue
> to clean it up and write it up and publish it on RAA.  Otherwise, I'll
> leave it as an interesting excerise and a tribute to the power of Ruby.
> 
> Why /might/ rake be intersting to Ruby programmers.  I don't know,
> perhaps ...
> 
>    o No weird make syntax (only weird Ruby syntax :-)
>    o No need to edit or read XML (a la ant)
>    o Platform independent build scripts.
>    o Will run anywhere Ruby exists, so no need to have "make" installed.
>      If you stay away from the "sys" command and use things like
>      'ftools', you can have a perfectly platform independent
>       build script.  Also rake is only 100 lines of code, so it can
>       easily be packaged along with the rest of your code.
> 
> So ... Sorry for the long rambling message.  Like I said, I never
> intended to write this code at all.

Just an FYI, there's a Perl version at
http://www.perl.com/language/ppt/src/make/index.html.  Might be a good
baseline.

Regards,

Dan

In This Thread