In order to filter the results, we can set the type when searching.
It is the output type of the embedded object, not Z2; so a Z4 returns a Z4, but a function returns its type not (necessarily) Z8.
In order to filter the results, we can set the type when searching.
It is the output type of the embedded object, not Z2; so a Z4 returns a Z4, but a function returns its type not (necessarily) Z8.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
wikilambda_zobject_labels: Add wlzl_return_type column and migrate code | mediawiki/extensions/WikiLambda | master | +520 -34 |
This would be the call producing the type - the full type itself would be much larger indeed, but what we store here is just the type's identity, e.g. "Z6", "Z10(Z6)" or "Z8([Z6,Z10(Z6)],Z6)", which should be considerably shorter than 2MB. (The table currently declares 255 bytes for that, this might be too optimistic though).
To make it clearer, changing the title of task from "type" to "type identity", thanks!
255 bytes - but strange errors may be generated if it is longer than this, for example a function with more than a dozen parameters. Alternatively we should introduce a "type" table (whose texts are blob up to 65536 bytes).
Change 745913 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):
[mediawiki/extensions/WikiLambda@master] [WIP] Add wlzl_return_type column
Discussed in 13th December 2021 KIT meeting:
Augment the search labels API with two parameters
Change 745913 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] wikilambda_zobject_labels: Add wlzl_return_type column and migrate code