Hi Thad,

Initially, only compositions will be able to call Wikifunction functions that are implemented in different ways.

Eventually, we want to enable calling Wikifunction functions also in code implementations.

We definitely also want to enable calling Wikifunctions functions from external code. Ideally, there would be something like a Python library that would allow you to write

from Wikifunctions import Z860 as getLanguage
lang = getLanguage("en")

Or something similar. I hope that there would be a number of different libraries who follow slightly different approaches to that, depending on where the function is evaluated, and how give local names to a function, etc.

I hope that makes sense as an answer?

Cheers,
Denny


On Tue, Feb 22, 2022 at 4:50 PM Thad Guidry <thadguidry@gmail.com> wrote:
Wondering how the community will be allowed to interop with function definitions in their languages of choice...even extending functions with other languages.

I didn't know about NAPI-RS existed until watching a podcast today (33:00) where `#[napi]` macro was mentioned as an interesting PR and thus bringing about a very powerful feature of building pre-compiled Node.js add-ons in Rust.  And now even ThreadSafe functions.

How this might be utilized in Wikifunctions later on is an interesting thought experiment... imagine someone wanting to use a Node library that already affords a great implementation but also needs to be adapted or expanded for special fit and purpose... and in Wikifunctions by writing a Node.js addon in Rust language.

Does anyone feel that the idea of extending functions with other languages (even native) might be too edgy a task on Function Composition?  Or will this eventually be expected to be supported in whole or partially with the Launch requirements ,one of which is:
  • "Switching from one language to the other"
Thoughts?

_______________________________________________
Abstract-Wikipedia mailing list -- abstract-wikipedia@lists.wikimedia.org
List information: https://lists.wikimedia.org/postorius/lists/abstract-wikipedia.lists.wikimedia.org/