On 28 Jan 2010, at 16:31, Curtis Olson wrote:

> It's interesting though how much nasal you can actually get away with using 
> without making a blip on frame rates.  Nasal is *very* efficient and powerful 
> for being an interpreted script language.

Absolutely - and I really don't want to get into an efficiency debate about 
Nasal (or, even worse, C++!)

My concern is about maintainability - coming back to the 'nav-loc' example, 
this is a very general function, which the C++ code is supposed to provide. 
Working around C++ bugs or omissions is Nasal just seems unfortunate to me - it 
shows that on the C++ side 'we' (the C++ developers) need to be more responsive 
to requests from the Nasal/aircraft author side. (And yes, more frequent 
release would help)

A related observation is that there is not much of a FG-sepcific Nasal 
'standard library' for this kind of thing, so huge amounts of copy-and-paste 
goes on between aircraft. Sometimes there's five or ten copies of a given Nasal 
function in CVS, across different aircraft. If something is in C++, my hope is 
that people will prefer that to writing their own version. 

This is partly true for the autobrake case - by defining the properties in C++, 
it forces people to use a standard interface for the feature/instrument. If 
things are pure Nasal, authors *tend* to use their own property scheme, so that 
only the core (C++ properties) end up being generic and standard. This doesn't 
need C++ to fix, of course - just a better standards body to agree what 
properties and names are used.

Regards,
James


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to