Git Product home page Git Product logo

Comments (2)

keiffster avatar keiffster commented on June 20, 2024

Hey Sean,

As you say extensions are late binding, only called when the grammar resolves to an tag, but they also provide the greatest amount of flexibility, in that you can pretty much get them to do anything you want.

They are not exclusive to calling external services, in fact they were originally designed to provide a way to create new tags. This may have been superseded by some of the work I did in the past couple of releases which allow you to built your own tags and dynamically add them, but I still see the extension as an easy interface driven way of calling out to Python and them allowing that Python class to do what you want.

Services are my implementation of the AIML 2.0 sraix tag, which personally I think is broken. It was added by Dr Wallace to support Pandora bots and their very specific implementation of sraix and their API service. I don't even implement it 100% preferring to push config into the config file rather than the sraix definition. Having said that, Services are indeed early binding and therefore provide a way to do early init and configuration that might not be possible with an extension

For the work that I think you are doing, I think services are probably the best way, as you can push all config into config.yaml and license.keys, do early initiation and even caching/connection pooling if needed

from program-y.

seghcder avatar seghcder commented on June 20, 2024

Agreed. I have started moving the other interfaces to services, and using extensions to do things that seem easier to achieve in Python.

from program-y.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.