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 https://napi.rs/ existed until watching a podcast today (33:00) https://youtu.be/Aeij24E-jHI?t=1980 where `#[napi]` macro was mentioned as an interesting PR https://github.com/napi-rs/napi-rs/pull/696 and thus bringing about a very powerful feature of building pre-compiled Node.js add-ons in Rust. And now even ThreadSafe functions https://napi.rs/docs/concepts/threadsafe-function.
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 https://meta.wikimedia.org/wiki/Abstract_Wikipedia/Launch_requirements ,one of which is:
- "Switching from one language to the other"
Thoughts?
Thad https://www.linkedin.com/in/thadguidry/ https://calendly.com/thadguidry/
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 https://napi.rs/ existed until watching a podcast today (33:00) https://youtu.be/Aeij24E-jHI?t=1980 where `#[napi]` macro was mentioned as an interesting PR https://github.com/napi-rs/napi-rs/pull/696 and thus bringing about a very powerful feature of building pre-compiled Node.js add-ons in Rust. And now even ThreadSafe functions https://napi.rs/docs/concepts/threadsafe-function.
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 https://meta.wikimedia.org/wiki/Abstract_Wikipedia/Launch_requirements ,one of which is:
- "Switching from one language to the other"
Thoughts?
Thad https://www.linkedin.com/in/thadguidry/ https://calendly.com/thadguidry/ _______________________________________________ Abstract-Wikipedia mailing list -- abstract-wikipedia@lists.wikimedia.org List information: https://lists.wikimedia.org/postorius/lists/abstract-wikipedia.lists.wikimed...
Yes it does. Thanks Denny.
Thad https://www.linkedin.com/in/thadguidry/ https://calendly.com/thadguidry/
On Fri, Mar 4, 2022 at 5:45 PM Denny Vrandečić dvrandecic@wikimedia.org wrote:
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 https://napi.rs/ existed until watching a podcast today (33:00) https://youtu.be/Aeij24E-jHI?t=1980 where `#[napi]` macro was mentioned as an interesting PR https://github.com/napi-rs/napi-rs/pull/696 and thus bringing about a very powerful feature of building pre-compiled Node.js add-ons in Rust. And now even ThreadSafe functions https://napi.rs/docs/concepts/threadsafe-function.
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 https://meta.wikimedia.org/wiki/Abstract_Wikipedia/Launch_requirements ,one of which is:
- "Switching from one language to the other"
Thoughts?
Thad https://www.linkedin.com/in/thadguidry/ https://calendly.com/thadguidry/ _______________________________________________ Abstract-Wikipedia mailing list -- abstract-wikipedia@lists.wikimedia.org List information: https://lists.wikimedia.org/postorius/lists/abstract-wikipedia.lists.wikimed...
Abstract-Wikipedia mailing list -- abstract-wikipedia@lists.wikimedia.org List information: https://lists.wikimedia.org/postorius/lists/abstract-wikipedia.lists.wikimed...
abstract-wikipedia@lists.wikimedia.org