MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

mogli
MAME Fan
Reged: 01/26/08
Posts: 1956
Send PM
Re: C versus C++ with regard to MAME
07/06/11 06:56 AM



Quote:


I'll bet you're glad you asked now, eh?




Indeed I am. In particular, seeing things like these:

((emphasis added is mine))



Quote:


Like a cpu instruction missing in one core but not another but a game relying on the behavior of the missing instruction. So many things ended up with switchs and jump tables. For something that would be a simple derivation in C++. It got better with sharing. But I still see blog posts where 'merged code and used newer implementation xyz number of bugs fixed'. That is just one symptom of the problem of sticking to C dogmatically. Another one was having to retrofit savestates into all of the drivers. Where it could in theory be inherited into everything.






Quote:


It's dogma uber alles. I've actually written CPU, sound, and general device cores under each of MAME's major stages of development and it has *never* been cleaner, easier, or more elegant than it is now. Abolishing fixed device types ("CPU", "sound", "video", "general") in favor of being able to inherit the precise fine-grained capabilities you need from a set of base classes is something like a fucking revolution, and makes it far, far easier to write and maintain devices. (It also makes them easier to use outside of MAME because you know exactly what the interface contract is and everything else is private).




If only this kind of infrastructure existed within the collective unconscious of humanity.....


Consider it high comedy....sincere tragedy....whatever...don't take it personally.

The Culture








Entire thread
Subject Posted by Posted on
* C versus C++ with regard to MAME mogli 07/04/11 07:09 PM
. * Re: C versus C++ with regard to MAME byuu  07/06/11 12:14 AM
. * Re: C versus C++ with regard to MAME AeroCityMayor  07/05/11 05:44 PM
. * Re: C versus C++ with regard to MAME mogli  07/06/11 06:56 AM
. * Re: C versus C++ with regard to MAME R. Belmont  07/05/11 06:05 AM
. * Re: C versus C++ with regard to MAME byuu  07/06/11 12:20 AM
. * Re: C versus C++ with regard to MAME Bryan Ischo  07/06/11 06:52 AM
. * Re: C versus C++ with regard to MAME italieAdministrator  07/06/11 02:43 AM
. * Re: C versus C++ with regard to MAME italieAdministrator  07/04/11 11:57 PM
. * Re: C versus C++ with regard to MAME Anonymous  07/04/11 10:54 PM
. * Re: C versus C++ with regard to MAME TafoidAdministrator  07/04/11 11:09 PM
. * Re: C versus C++ with regard to MAME Anonymous  07/05/11 10:17 AM
. * Re: C versus C++ with regard to MAME BIOS-D  07/05/11 12:26 PM
. * Re: C versus C++ with regard to MAME Anonymous  07/05/11 03:25 PM
. * Re: C versus C++ with regard to MAME Olivier Galibert  07/05/11 10:27 AM
. * Re: C versus C++ with regard to MAME Anonymous  07/05/11 11:52 AM
. * Re: C versus C++ with regard to MAME R. Belmont  07/05/11 02:29 PM
. * Re: C versus C++ with regard to MAME Anonymous  07/05/11 03:42 PM
. * Re: C versus C++ with regard to MAME Heihachi_73  07/06/11 04:44 AM
. * Re: C versus C++ with regard to MAME R. Belmont  07/05/11 04:13 PM
. * Re: C versus C++ with regard to MAME Anonymous  07/05/11 04:39 PM
. * Re: C versus C++ with regard to MAME R. Belmont  07/05/11 04:45 PM
. * Re: C versus C++ with regard to MAME TheGuru  07/05/11 11:25 PM
. * Re: C versus C++ with regard to MAME Anonymous  07/05/11 05:39 PM
. * Re: C versus C++ with regard to MAME zambr  07/06/11 06:12 AM
. * Re: C versus C++ with regard to MAME R. Belmont  07/05/11 06:07 PM
. * Re: C versus C++ with regard to MAME byuu  07/06/11 01:00 AM
. * Re: C versus C++ with regard to MAME Bryan Ischo  07/06/11 01:36 AM
. * Re: C versus C++ with regard to MAME Bryan Ischo  07/05/11 06:51 PM
. * Re: C versus C++ with regard to MAME Olivier Galibert  07/05/11 06:03 PM
. * Re: C versus C++ with regard to MAME Anonymous  07/05/11 07:18 PM
. * Re: C versus C++ with regard to MAME Olivier Galibert  07/06/11 08:38 AM
. * Re: C versus C++ with regard to MAME R. Belmont  07/05/11 07:34 PM
. * Re: C versus C++ with regard to MAME lharms  07/06/11 04:03 AM
. * Re: C versus C++ with regard to MAME CrapBoardSoftware  07/04/11 10:16 PM
. * Re: C versus C++ with regard to MAME Roman  07/04/11 11:02 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 193 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3745