Esoteric Update #91 - Adequately Expressive (ufufufufu)


This week was weird. Like I said last time, I decided to go back to writing the clothing interactions, but I just kept... getting distracted by 4 AM pudding incidents.

The first incident happened on Tuesday. I woke up at 1 AM and started coding for... I think about 1.5 hours. It was a series of improvements to my selector code, both optimisations and extensions. I switched from a purely conjunctive (all selector) and disjunctive (any selector) forms to something a bit more... complete (teehee, math jokes). Specifically the first now supports full conjunctive normal form and the other disjunctive normal form.

While I did this on a whim, I instantly started making use of these features to simplify various expressions.

The second pudding incident happened on Sunday, where I just pressed onward, optimised my remaining selectors. Now, up to this point, I actually had two separate implementations for each selector, a hardcoded one that existed as part of the grammar definition language and a second soft implementation for (and in) the scripting language. That's not quite the case anymore. I consolidated and extended the hard implementations based on the soft ones, then exposed them for the scripting language. Finally, I used these newly exposed expressions in the initial scripted selectors.

So it all basically works like it used to (full backwards compatibility), but it all fires from the C# code, is faster (especially if the ontological descriptors are ordered correctly) and has more features.


Just to be sure though I did some test runs and managed to find a few unrelated bugs, small errors in the grammars leading to malformed sentences. Everything I noticed to be off I also fixed. There's also some more stuff about exposing the engine's memory to scripting too but... yeah I'll talk more about that when I'm done with it.


Oh, and yeah, I still managed to get most of the texts for the item manips down. But I'm missing one action (which I was supposed to do on Sunday and didn't manage to). I'll finish this up before the week is over and then probably finalise the current version and move to another one.

Get Esoteric ♥ Esoterica

Leave a comment

Log in with itch.io to leave a comment.