qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Alex Bradbury <asb@asbradbury.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH RFC] pyembed: integer python into QEMU
Date: Mon, 16 Jan 2012 13:23:56 -0600	[thread overview]
Message-ID: <4F14794C.5060706@us.ibm.com> (raw)
In-Reply-To: <CA+wH296OQYLz6A1G1q12yBzDV2zLcAttb_sA+EqdUZNC-mDKhg@mail.gmail.com>

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).

> There
> may also be advantages to having access to LuaJIT (on supported
> platforms) for its speed and FFI library [1] which could make it
> feasible to prototype new device models in a high level language with
> good performance.

Python has a simple FFI module (ctypes).

Regards,

Anthony Liguori


> Alex
>
> [1] http://luajit.org/ext_ffi.html
>

  reply	other threads:[~2012-01-16 19:24 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 [this message]
2012-01-16 19:45     ` Stefan Weil

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=4F14794C.5060706@us.ibm.com \
    --to=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).