159 - Yaml Parsing Errors and FFI
Channel: StableCoder
Date: 2022-04-07

This session shifts the focus back towards import/export (ImEx).

The first issue to deal with was the cases where missing an importer for either a resource or entity component would be silently ignored, which isn't exactly desired. While a better implementation would be to finish and collect all errors, the resolution chosen for today was to fail fast, basically upon the first issue and leave.

Some minor fixes for the program's deinitialiation to cleanly deinitialize the program if it fails to fully startup are implemented.

The intention has always been that ImEx libraries would be usually used in the form of 'plugins', or libraries which are loaded dynamically at runtime as opposed to being directly linked in. Not to say that they *can't* be linked in, but the option should be to go either way, especially for the purposes of flexibility and modability down the line.

Towards this intent, this session also delves into testing how ready the libraries and interfaces are for runtime loading, and amazingly the very minor changes required to make it a reality, mostly dealing with changing the exported functions from C++ to a C-based FFI.

--

2022/04/06