Received: from eggs.gnu.org ([2001:4830:134:3::10]:52585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1af5tI-0008Mc-Ds for qemu-devel@nongnu.org; Sun, 13 Mar 2016 09:17:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1af5tD-0007qZ-E3 for qemu-devel@nongnu.org; Sun, 13 Mar 2016 09:17:04 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:50380 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1af5tD-0007qH-1G for qemu-devel@nongnu.org; Sun, 13 Mar 2016 09:16:59 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <87r3fjpvgx.fsf@fimbulvetr.bsc.es> <56E046D3.2080709@twiddle.net> <87twkfo6tn.fsf@fimbulvetr.bsc.es> <56E0714F.1090602@twiddle.net> <878u1rnv36.fsf@fimbulvetr.bsc.es> Date: Sun, 13 Mar 2016 14:16:52 +0100 Message-ID: <8737rujz5n.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC] [tcg] Idea on refactoring target code generation loop (gen_intermediate_code) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Peter Crosthwaite , QEMU Developers , Richard Henderson Peter Maydell writes: > On 10 March 2016 at 05:29, Llu=C3=ADs Vilanova wrot= e: >> Richard Henderson writes: >>> Alternately... can we broach the subject of C++? Honestly, it >>> seems we work too hard sometimes to re-implement templates and >>> classes in C. >>=20 >> Whooo, I'd really *love* to switch to C++ just for templates and >> classes... But last time this was discussed, the idea wasn't met >> with much joy :) > I would be more interested in a proposal to move parts of QEMU > to Rust, or just about anything else except C++... QEMU is pretty low-level, so I'm not sure other languages will fit the bill= as good, and for the parts relevant to QEMU you have just as much control of low-level details as with C (having a very close syntax also helps transition). But I'm curious, what'd be the advantage of rust? Cross-language bindings a= re usually expensive, and require some duplication for defining structures acr= oss them (maybe it's not the case for rust). Lluis