[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] StrongED search and replace



On 2017-12-29 17:44, Gavin Wraith wrote:

Because the use of scripting with StrongED is so powerful,
quite a large chunk of what is already built into StrongED
becomes superfluous.

The thing is, although I agree that the scripting facility is
better than no scripting facility, in essence all you're doing
is using an external program to manipulate the file's contents.
You didn't need StrongED at all, to do that.

Also, while lua's syntax etc is I'm sure easily understood by
you, it's not to people who aren't used to scripting languages
especially cryptic ones.

The good thing about SE's scripting facility is that scripts
invoked from SE could presumably be written in any language
that is supported on RISC OS.

The bad thing is that for a file that's already loaded into
RAM, the scripting framework has to write a copy of that out
to disk, process it & read it back in.  It's a long way from
being efficient.   Probably that doesn't matter for 'small'
files on modern hardware though.

It's nothing like as elegant or efficient as scripts that run
inside an editor, acting on the file that's in RAM at the time
& issuing editor commands to query & change the data.  Editors
that support that sort of thing enable users to capitalise on
their existing knowledge of editor concepts & commands, though
of course the users do have to learn the scripting language
that the editor's programmer(s)' chose to implement.

[Though... some editors support internal scripts which can be
written in more than one programming language.]

--
Jeremy Nicoll - my opinions are my own

--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives at http://diy.Torrens.org/RO/StrongED/index.html