[#83328] tcltklib and not init'ing tk — aakhter@... (Aamer Akhter)

Hello,

13 messages 2003/10/01

[#83391] mixing in class methods — "Mark J. Reed" <markjreed@...>

Okay, probably a dumb question, but: is there any way to define

22 messages 2003/10/01
[#83392] Re: mixing in class methods — Ryan Pavlik <rpav@...> 2003/10/01

On Thu, 2 Oct 2003 06:02:32 +0900

[#83397] Re: mixing in class methods — Gavin Sinclair <gsinclair@...> 2003/10/01

On Thursday, October 2, 2003, 7:08:00 AM, Ryan wrote:

[#83399] Re: mixing in class methods — "Mark J. Reed" <markjreed@...> 2003/10/02

On Thu, Oct 02, 2003 at 07:37:25AM +0900, Gavin Sinclair wrote:

[#83404] Re: mixing in class methods — "Gavin Sinclair" <gsinclair@...> 2003/10/02

> On Thu, Oct 02, 2003 at 07:37:25AM +0900, Gavin Sinclair wrote:

[#83416] C or C++? — "Joe Cheng" <code@...>

I'd like to start writing Ruby extensions. Does it make a difference

32 messages 2003/10/02
[#83435] Re: C or C++? — "Aleksei Guzev" <aleksei.guzev@...> 2003/10/02

[#83448] xml in Ruby — paul vudmaska <paul_vudmaska@...> 2003/10/02

The biggest problem i have with Ruby is the sleepness

[#83455] Re: xml in Ruby — Chad Fowler <chad@...> 2003/10/02

On Thu, 2 Oct 2003, paul vudmaska wrote:

[#83464] Re: xml in Ruby or no xml it's just a question — paul vudmaska <paul_vudmaska@...> 2003/10/02

>>--------

[#83470] Re: xml in Ruby — paul vudmaska <paul_vudmaska@...>

>>>

15 messages 2003/10/02

[#83551] xml + ruby — paul vudmaska <paul_vudmaska@...>

>>---------

20 messages 2003/10/03
[#83562] Re: xml + ruby — Austin Ziegler <austin@...> 2003/10/03

On Fri, 3 Oct 2003 16:11:46 +0900, paul vudmaska wrote:

[#83554] hash of hashes — Paul Argentoff <argentoff@...>

Hi all.

18 messages 2003/10/03

[#83675] fox-tool - interactive gui builder for fxruby — henon <user@...>

hi fellows,

15 messages 2003/10/05

[#83730] Re: Enumerable#inject is surprising me... — "Weirich, James" <James.Weirich@...>

> Does it surprise you?

17 messages 2003/10/06
[#83732] Re: Enumerable#inject is surprising me... — nobu.nokada@... 2003/10/07

Hi,

[#83801] Extension Language for a Text Editor — Nikolai Weibull <ruby-talk@...>

OK. So I'm going to write a text editor for my masters' thesis. The

35 messages 2003/10/08
[#83803] Re: Extension Language for a Text Editor — Ryan Pavlik <rpav@...> 2003/10/08

On Thu, 9 Oct 2003 05:06:32 +0900

[#83806] Re: Extension Language for a Text Editor — Nikolai Weibull <ruby-talk@...> 2003/10/08

* Ryan Pavlik <rpav@mephle.com> [Oct, 08 2003 22:30]:

[#83812] Re: Extension Language for a Text Editor — Ryan Pavlik <rpav@...> 2003/10/08

On Thu, 9 Oct 2003 06:09:29 +0900

[#83955] Re: Extension Language for a Text Editor — Nikolai Weibull <ruby-talk@...> 2003/10/09

* Ryan Pavlik <rpav@mephle.com> [Oct, 09 2003 09:10]:

[#84169] General Ruby Programming questions — Simon Kitching <simon@...>

21 messages 2003/10/15
[#84170] Re: General Ruby Programming questions — Florian Gross <flgr@...> 2003/10/15

Simon Kitching wrote:

[#84172] Re: General Ruby Programming questions — Simon Kitching <simon@...> 2003/10/15

Hi Florian..

[#84331] Re: Email Harvesting — Greg Vaughn <gvaughn@...>

Ryan Dlugosz said:

17 messages 2003/10/21
[#84335] Re: Email Harvesting — Hugh Sasse Staff Elec Eng <hgs@...> 2003/10/21

On Wed, 22 Oct 2003, Greg Vaughn wrote:

[#84343] Re: Email Harvesting — Ruben Vandeginste <Ruben.Vandeginste@...> 2003/10/22

On Wed, 22 Oct 2003 08:35:32 +0900, Hugh Sasse Staff Elec Eng

[#84341] Ruby-oriented Linux distro? — Hal Fulton <hal9000@...>

There's been some talk of something like this in the past.

15 messages 2003/10/22
[#84348] Re: Ruby-oriented Linux distro? — Gavin Sinclair <gsinclair@...> 2003/10/22

On Wednesday, October 22, 2003, 6:01:16 PM, Hal wrote:

[#84351] Re: Ruby-oriented Linux distro? — Andrew Walrond <andrew@...> 2003/10/22

On Wednesday 22 Oct 2003 11:02 am, Gavin Sinclair wrote:

[#84420] Struggling with variable arguments to block — "Gavin Sinclair" <gsinclair@...>

Hi -talk,

18 messages 2003/10/24
[#84428] Re: Struggling with variable arguments to block — matz@... (Yukihiro Matsumoto) 2003/10/24

Hi,

[#84604] ruby-dev summary 21637-21729 — Takaaki Tateishi <ttate@...>

Hello,

21 messages 2003/10/30
[#84787] Re: ruby-dev summary 21637-21729 — Paul Brannan <pbrannan@...> 2003/11/06

On Fri, Oct 31, 2003 at 07:01:28AM +0900, Takaaki Tateishi wrote:

[#84789] Re: ruby-dev summary 21637-21729 — matz@... (Yukihiro Matsumoto) 2003/11/06

Hi,

[#84792] Re: ruby-dev summary 21637-21729 — Paul Brannan <pbrannan@...> 2003/11/06

On Thu, Nov 06, 2003 at 11:17:59PM +0900, Yukihiro Matsumoto wrote:

[#84794] Re: ruby-dev summary 21637-21729 — matz@... (Yukihiro Matsumoto) 2003/11/06

Hi,

Re: Project suggestion: Ruby code indenter

From: Nikolai Weibull <ruby-talk@...>
Date: 2003-10-10 17:25:17 UTC
List: ruby-talk #83989
* Gavin Sinclair <gsinclair@soyabean.com.au> [Oct, 10 2003 18:20]:
> I was meaning to mention this anyway, but now I can't resist.  I think
> a great project for someone to work on - someone who really really
> wants to work on a project but isn't sure what :) - is a Ruby code
> indenter.
>
> Input:
>   Ruby code
>
> Output:
>   Properly indented Ruby code, perhaps accounting for user preferences
>
> Motivation:
>   Ruby is a hard language to programatically indent, for reasons that
>   will become obvious if this thread goes anywhere.  Attempts to
>   provide support for this in Vim and Emacs are progressing, but are
>   hampered by languages which are not really suited to the task
>   (please prove me wrong).
I'd love to prove you wrong.  I have, however, as you, discovered that
it is a bitch to indent Ruby programatically.  It's syntax is simply too
general.  There is such overloading of so many tokens that it's hard to
get every case right, while maintaining compatibility with other cases.
For every case you fix, you'll have to check that it doesn't affect any
of the other ones.
Anyway, it would be an interesting project.  If I'm any judge, Perl 6
would make this very much easier to do.  However, it should be generally
possible in any language.  I'd assume Ruby would fit the task quite well
actually.  The hard part is, of course, keeping track of all the cases.
However, it is quite well specified what may exists where, and in many
ways it is also easier to manage than a language such as C.  Also, the
coding standards of Ruby are quite well defined as well, and almost
everyone seems to stick to them rather passionately, so this makes
things easier.  I can't promise that I'll take a look this personally,
since I'll be rather busy with other things in a near future.  I will,
however, try to improve the Vim indenter to the best of my ability.
By the way, if you read this and you use Vim, please check out the
Vim/Ruby project at
	http://rubyforge.org/projects/vim-ruby/
and try out all the latest features.  Much work has been done since the
6.2 release, and it needs a good test-run.
>
>   If a general-purpose program were provided, it would offer a
>   solution to any editor and for standalone use, as well as inspiring
>   greater agility in the existing editor plugins.  It would not render
>   such plugins obsolete, rather provide a backup for the tasks they do
>   not easily do (indent entire file, accounting for prefs, comments,
>   here-docs, etc.).
like indent(1) you mean?  I rarely run indent, but if I was ever to
alter other people's code, I'd probably run it through indent(1) before
running it through Vim's.
>
> Comments:
>   A Ruby implementation could take advantage of irb code, just like
>   RDoc does.  Understanding Ruby code, as opposed to reading a text
>   stream, makes indentation much easier.
>
>   There's no way I have time to work on this; just throwing it out
>   there in case it catches someone's fancy.
>
> >> Because [Emacs is] general, people have written lots of stuff, some
> >> of which is quite silly (tetris, web browser, etc.),
>
> ...on the rare occasions I play Tetris, it's as a Vim plugin :)
> Search www.vim.org if you're interested.
I like the one that comes with Zsh better :-D,
	niklai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

In This Thread