Page MenuHomePhabricator

Create a built-in equality function for Z60/Natural language
Closed, ResolvedPublic

Description

Description

Function implementations cannot rely on assumptions that instances of Z60 will consistently be either references or literals. (The design of ZObjects and the approach of orchestration require flexibility in the degree of resolution that gets performed, and when it gets performed.) For this reason, it's important to have comprehensive equality functions that can be used to determine when 2 instances are the same, regardless of whether they are references or literals.

Since Z60 instances are so numerous, it makes sense to have a built-in equality function to get the best possible performance characteristics.

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • This built-in function should reliably and accurately determine whether two given instances of Z60 are equivalent, regardless of the form they have.

Completion checklist

Event Timeline

DMartin-WMF triaged this task as Medium priority.

Change #1281265 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (9cfefae)

https://gerrit.wikimedia.org/r/1281265

Change #1281265 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (9cfefae)

https://gerrit.wikimedia.org/r/1281265

jforrester merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/647

Add orchestrator code for equality functions for Z60/Natural language & Z31/Monolingual stringset

DSantamaria changed the task status from Open to In Progress.May 4 2026, 9:09 AM

Change #1283785 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2026-04-29-001940 to 2026-05-05-223522

https://gerrit.wikimedia.org/r/1283785

Change #1283785 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2026-04-29-001940 to 2026-05-05-223522

https://gerrit.wikimedia.org/r/1283785

Change #1283786 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-04-21-184122 to 2026-05-05-223640

https://gerrit.wikimedia.org/r/1283786

Change #1283786 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-04-21-184122 to 2026-05-05-223640

https://gerrit.wikimedia.org/r/1283786

Service-side part of this is now deployed; waiting for the train to roll so that we can push the WikiLambda-side parts.