From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs Date: Wed, 24 Nov 2010 18:10:16 +0200 Message-ID: <4CED38E8.50409@redhat.com> References: <1290595933-13122-1-git-send-email-avi@redhat.com> <1290595933-13122-3-git-send-email-avi@redhat.com> <50DD1E97-0ECD-41E6-B6F8-1D78AA4A4876@suse.de> <4CED2416.1040102@codemonkey.ws> <20101124154006.GE15111@redhat.com> <4CED344B.3030000@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Gleb Natapov , Alexander Graf , Marcelo Tosatti , kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39543 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317Ab0KXQK0 (ORCPT ); Wed, 24 Nov 2010 11:10:26 -0500 In-Reply-To: <4CED344B.3030000@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: On 11/24/2010 05:50 PM, Anthony Liguori wrote: >>> >> Any sane modern language gives you that. Why C++? > > > Because I don't think we can implement a reasonable device model using > a garbage collected language. Garbage collection introduces > non-determinism and in QEMU we need to ensure that when we're running > in a VCPU context, we exit back to the guest as quickly as possible. My answer is that C++ is the only language that allows you to evolve away from C, with mixed C/C++ source (not just linkage level compatibility). If there are others, I want to know about them. -- error compiling committee.c: too many arguments to function