User:Philosopher/Nasal introspection: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (just to make sure that I'll be able to find again this page ...)
mNo edit summary
Line 1: Line 1:
{{Template:Nasal Internals}}
{{Template:Nasal Internals}}


Currently working on getting Nasal to profile itself in a running FlightGear session. See progress at the "extended-nasal" branches of [https://gitorious.org/~philosopher/fg/philosophers-simgear] [https://gitorious.org/~philosopher/fg/philosophers-flightgear] [https://gitorious.org/~philosopher/fg/philosophers-fgdata].
Used to be working on getting Nasal to profile itself in a running FlightGear session. Currently more focused on introspection through debug.decompile()/.recompile() helpers that expose code objects. See progress at the "extended-nasal" branches of [https://gitorious.org/~philosopher/fg/philosophers-simgear] [https://gitorious.org/~philosopher/fg/philosophers-flightgear] [https://gitorious.org/~philosopher/fg/philosophers-fgdata].


The basic concept is to expose hooks/callbacks from the C source that get exposed to Nasal – so that Nasal does all the processing (and even collection of stats), but this requires a lot of core changes and is hard even to do from the Nasal end (I've found quite a challenge in it). The profiling script is currently fgdata:extended-nasal/Nasal/test.nas (WIP).
The basic concept is to expose hooks/callbacks from the C source that get exposed to Nasal – so that Nasal does all the processing (and even collection of stats), but this requires a lot of core changes and is hard even to do from the Nasal end (I've found quite a challenge in it). The profiling script is currently fgdata:extended-nasal/Nasal/test.nas (WIP).

Revision as of 18:49, 26 June 2014


Used to be working on getting Nasal to profile itself in a running FlightGear session. Currently more focused on introspection through debug.decompile()/.recompile() helpers that expose code objects. See progress at the "extended-nasal" branches of [1] [2] [3].

The basic concept is to expose hooks/callbacks from the C source that get exposed to Nasal – so that Nasal does all the processing (and even collection of stats), but this requires a lot of core changes and is hard even to do from the Nasal end (I've found quite a challenge in it). The profiling script is currently fgdata:extended-nasal/Nasal/test.nas (WIP).