From: Stefan Weil <sw@weilnetz.de>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org, Alex Bradbury <asb@asbradbury.org>
Subject: Re: [Qemu-devel] [PATCH RFC] pyembed: integer python into QEMU
Date: Mon, 16 Jan 2012 20:45:48 +0100 [thread overview]
Message-ID: <4F147E6C.1090203@weilnetz.de> (raw)
In-Reply-To: <4F14794C.5060706@us.ibm.com>
Am 16.01.2012 20:23, schrieb Anthony Liguori:
> On 01/16/2012 12:35 PM, Alex Bradbury wrote:
>> On 16 January 2012 18:22, Anthony Liguori<aliguori@us.ibm.com> wrote:
>>> This is something I started during 1.0-rc on a lark and spent some
>>> time last
>>> night actually making work. I'm sending it only to show that (1)
>>> it's possible
>>> and (2) to get some input about what other people think as a longer
>>> term
>>> direction.
>>
>> At the risk of starting a language flame-war, have you considered
>> embedding something like Lua?The source of the core Lua interpreter is
>> small enough that it could be imported into the Qemu repository.
>
> Generally, I don't think importing external source code is a Good
> Idea. Part of the appeal to me about Python is the rich library that
> it brings in.
>
> I'm less interested in Python for it's list comprehension syntax and
> more interested in it for it's config parsing library, RPC
> infrastructure, etc.
>
> Plus, I'm reasonably confident that most QEMU developers have some
> experience with Python. I'd wager that very few people have any
> practical experience with LUA.
>
> So in terms of embedding, I think Python is the only reasonable path
> forward (if we think we should even head in this direction).
>
5 years ago, I experimented with an embedded Ruby interpreter. Although
it worked
(at least to some degree), that's not a reasonable path. Standalone Ruby
is a
good interpreter language, but embedding a Ruby interpreter is horrible.
Embedding TCL works well, but TCL is a little old fashioned, so that's
also not a
reasonable path.
If we need an embedded interpreter, Python is a good choice, but Lua is
also an excellent
embedded interpreter which would be useful for QEMU.
I'd prefer a competition with both of them instead of a single "only
reasonable path".
The overhead of supporting two interpreters won't be very high, and it
will allow more
people to contribute scripts in their favorite language.
Cheers,
Stefan Weil
prev parent reply other threads:[~2012-01-16 19:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-16 18:22 [Qemu-devel] [PATCH RFC] pyembed: integer python into QEMU Anthony Liguori
2012-01-16 18:35 ` Alex Bradbury
2012-01-16 19:23 ` Anthony Liguori
2012-01-16 19:45 ` Stefan Weil [this message]
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=4F147E6C.1090203@weilnetz.de \
--to=sw@weilnetz.de \
--cc=aliguori@us.ibm.com \
--cc=asb@asbradbury.org \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).