Nasal Browser

From FlightGear wiki
Revision as of 22:00, 25 June 2014 by Philosopher (talk | contribs) (Created page with "{{Nasal Navigation}} {{WIP}} The '''Nasal '''('''Namespace''')''' Browser''' is a new dialog (3.3+) that allows the user to peek at the internal state of Nasal (starting from...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.

The Nasal (Namespace) Browser is a new dialog (3.3+) that allows the user to peek at the internal state of Nasal (starting from the global namespace). It displays a alphabetical list of keys mapped to values using the Canvas framework. Hashes and vectors are shown as their size and can be entered into via clicking on them; scalars' complete values are shown while ghosts and other types and represented in brackets.

Note  Per-update performance of the dialog (i.e. how fast it runs) is determined by how big the namespace is. On the developer's computer, it takes about 20–30ms to update the global namespace, much less for much smaller namespaces. The dialog is automatically updated about every 0.6 seconds.

Features

Each entry is color-coded by type and scrollable via the Canvas scroll widget. In a hash, each key is shown as either a string, a number, or a symbol, depending on what it really is (i.e. a scalar may be numeric but still a string; also, interned symbols are special cases of strings). Strings are shown in single quotes, symbols and numbers are shown without quotes. For strings, the brightness of the color is optionally reduced.