[#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: Extension Language for a Text Editor

From: Nikolai Weibull <ruby-talk@...>
Date: 2003-10-09 17:36:46 UTC
List: ruby-talk #83956
* Simon Strandgaard <qj5nd7l02@sneakemail.com> [Oct, 09 2003 09:09]:
> What a coincidence.. I am also writing a programmers editor (AEditor)
> in Ruby.
> http://aeditor.rubyforge.org/
Yes, I have seen it, and tried it (see below).
>
> > In my previous editor (slackedit/sled[3]) I used
> > Tcl[4] as an extension language, and it proved very easy to use, but I
> > never got far enough to actually give it a good run.
>
> where is the homepage ?  ;-)
eh, it was included in the end of the mail (marked [3]) ;-)
http://www.pcppopper.org/code/win/sled/
> http://sourceforge.net/projects/slackedit
This is very old.  Do not use ;-)
> Your Trove-info says 'gnome', but no unix install.
No, the plan was to port it to Gtk/GLib, but that never happened.
>
> > Do you figure Ruby to be a good extension language for a text editor?
>
> My original plan were to use Ruby as an extension language and write
> the core in C++... At some point started experimenting using Ruby for
> everything, and now I have actually written AEditor completely in Ruby!!
>
Yeah, it is very nice and simply done.  I like your code.  I see you've
read your GOF well ;-) (especially the first chapter I presume ;-).  I
do, however, feel that you've gone into it a bit too much.  I mean, It's
fine to represent lines as object, but individual characters?  It gets a
bit big at that point ;-)
>
> > * What would be easier to do using Ruby?
>
> undo/redo/macros.. The code which is responsible for this only takes up
> 119 lines of Ruby code.  This is more complex in C++ because you cannot
> #clone arbitrary objects.
>
Well, if you take a look at the undo/redo code for Wily and Sam, they
are actually not very large.  Using the Command pattern is very clean
and OO though.
>
> It would be easier for users of your editor to make changes
> to the internals of your editor (because Ruby is intuitive).
> If you have a testharness then they will also could test if
> their changes has unforeseen sideeffects.
>
Intuitive in general, yes.  But is it intuitive in this context.  Are
there any obvious winnings by using it?  Can you forsee syntax
definitions and indentation definitions easier to write in Ruby than in
LISP?  Why?  How?
>
> > * LISP?
>
> not enough intuitive.
>
Hehe, OK ;-).  I've just started getting interested in Lisp, shunning it
in the past as an Old-Fart Language.  It just seemed to arcane for me.
Then I realized that it's a language that's had all these features we
only now see making their way into mainstream languages.  I mean, look
what Matz has to say about it:
	"Some may say Ruby is a bad rip-off of Lisp or Smalltalk, and I
	admit that. But it is nicer to ordinary people."
	- Matz, LL2
OK, this may be true.  1 + 2 is easier to read and understand than (+ 1
2), but you can't do 1 + 2 3 and expect it to work ((+ 1 2 3) does).  I
guess, that, in the end I'm just pushing Lisp here because I am
interested in it and want to give it a try.  Ruby is great, but I
already know Ruby ;-).  I'm trying to get someone to push me back into
the Ruby camp :-D.
>
> > * What language allows the most of the editing commands to be written in
> >   the given language?
>
> If your editor core is written in a different language than your extension
> language. Then you will no matter what language chosen, have to make a
> bridge between. There are shortcuts, such as SWIG.
> SWIG can generate wrappers for *many* script languages.
> My vote would be Ruby :-)
>
Yeah, but I want the language that makes it simpler to move as much out
to the extension language as possible.
>
> > * Is Ruby good enough for the task at the moment, performance wise?
>
> You can try out AEditor, to feel if Ruby is fast enough.
> On a 100MHz machine AEditor feels quite Okay.
> On a 33MHz 486 it can be slow.
> I can live with this hardware requirements, thats why I choose to write
> everything in Ruby :-)
>
Yeah, I tried opening this rather large text file (In The Beginning Was
The Command Line) and it started thrashing my hard-drive (just loading
it (a file of perhaps 200K?) since it required 130MB to load it started
swapping.
>
> > * Resource wise?  Does anyone have any statistics on this?
>
> My datastructure has a huge amount of memory overhead (because it uses an
> Array of characters). I am in the process of rethinking the datastructure
> and maybe write a datastructure Ruby-extension module in C++..?
>
OK.
> Overloading Regexp... I don't know.
> I am currently writing my own regex engine.
OK, interesting.
> What features do you plan for your editor ?
> Is it a programmers editor, or a propertional font editor ?
It's a general editor, of course aimed at programming.  Proportional
text is for whimps ;-)
	nikolai

--
::: 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