From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Pre-alpha scripting engine
Date: Wed, 19 Jan 2005 21:04:41 +0100 [thread overview]
Message-ID: <200501192104.41983.okuji@enbug.org> (raw)
In-Reply-To: <87oeflwp1n.fsf@marco.marco-g.com>
On Wednesday 19 January 2005 14:01, Marco Gerards wrote:
> But as I said before, the most important thing that needs to be done
> is that Okuji agrees with the syntax.
Honestly speaking, I don't know.
I also prefer that it looks more like BASH, but shell scripting is
sometimes very ugly (e.g. "i = `expr $i + 1`"). So I don't know what
the best is.
But I bet that these should be right:
- GRUB should not distinguish command execution from scripting.
- The language must not enforce users to learn really new things.
- The language should be flexible enough to do many things without
writing modules in C.
The first item is a must for GRUB, because the strongest advantage in
GRUB is that you can do whatever at run time. Once we accept that
scripting can do more than from the command line, we would lose
complete control of booting process.
I think the first one suggests that we should not have multiple
languages. There is a way to have multiple ones without breaking that
policy (i.e. embedding a language in another language), but this sounds
overkill to me.
So a scripting language should fit into the semantics of the
command-line interface. For example, Lisp is not acceptable, because it
is too difficult to use as a shell. I don't know if PHP-like syntax
fulfills this requirement, but I don't like it very much, because PHP
is really similar to Perl (which is known as a maker of write-only
code).
I'd like to hear others' opinions. I have been thinking this issue for
some years, but I still don't know a good answer.
Okuji
next prev parent reply other threads:[~2005-01-19 20:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1CpUhp-000IYX-00.grub-devel-bounces+serbinenko-vova=list-ru-gnu-org@mx11.mail.ru>
2005-01-14 18:48 ` Pre-alpha scripting engine Serbinenko Vladimir
2005-01-18 18:55 ` Marco Gerards
2005-01-18 19:54 ` Serbinenko Vladimir
2005-01-19 13:01 ` Marco Gerards
2005-01-19 20:04 ` Yoshinori K. Okuji [this message]
2005-01-19 20:48 ` Marco Gerards
2005-01-19 21:48 ` Maurizio Boriani
2005-01-20 17:10 ` Serbinenko Vladimir
2005-01-20 17:56 ` Yoshinori K. Okuji
2005-01-20 18:34 ` Serbinenko Vladimir
2005-01-21 2:26 ` Hollis Blanchard
2005-01-21 17:23 ` Scripting, partitions and filesystems Serbinenko Vladimir
2005-01-21 17:52 ` Device syntax, scripting, " Serbinenko Vladimir
2005-01-23 14:22 ` Pre-alpha scripting engine Yoshinori K. Okuji
2005-01-19 20:59 ` Tomas Ebenlendr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501192104.41983.okuji@enbug.org \
--to=okuji@enbug.org \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.