Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/24/10 19:55, Avi Kivity wrote:
> On 11/24/2010 08:10 PM, Gleb Natapov wrote:
>> On Wed, Nov 24, 2010 at 07:50:44PM +0200, Avi Kivity wrote:
>> >  On 11/24/2010 07:43 PM, Gleb Natapov wrote:
>> >  >>   Implicit code means that you don't need to debug it.  The
>> compiler
>> >  >>   gets it right every time.
>> >  >>
>> >  >Best joke ever!
>> >
>> >  Do you encounter many compiler bugs in your daily work?
>> >
>> Bug can still be yours but all this virtual inheritance make it much
>> harder to understand what happens.
> 
> No, it's easier, since there's a lot less code to chase.
> 
> Of course, you have to learn the pattern in the language, but you do
> this once and keep reusing this.  If it's emulated in C, you have to
> read all the code over and over again (in different uses), always on the
> lookout to see if it's exactly the same pattern, or if some bug crept in.

How does it get easier when you have to debug templated code? It is much
harder to read the assembly and match it to the code, so no it becomes
much harder to debug.

Jes

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux