← Back to team overview

opencog-dev team mailing list archive

OpenCog Shell

 

Hi all,

While in Maryland to discuss PLN and attention allocation with Ben in
OpenCog [1], we discussed the idea of a OpenCog shell. There exists a
nmsh in Novamente, which remotely connects and issues commands to a
Novamente server. It allows manipulation and inspection of the
AtomSpace. However, this implementation is currently difficult for
introducing new commands. One idea, brought up in conjunction by
myself and Moshe, was to use Swig [2] bindings to create a direct
foreign library interface. This doesn't provide a remote shell, but
allows a variety of scripting language interfaces.

I'm personally fond of Python (although not blindly so), and thought
it'd be neat to use a Python shell to interact with OpenCog. This
comes naturally with the Swig binding, and one could make use of an
enhanced Python shell such as IPython [3] which can be extended to
have application specific features.

Lastly, by utilising the Twisted [4] Python libraries, it's possible
to create a remote python shell relatively easily [5]. However recent
developments in IPython may mean that it can provide this remote
access directly.

Thoughts?

J

[1] http://brainwave.opencog.org/2008/05/22/a-week-in-maryland/
[2] http://www.swig.org/
[3] http://ipython.scipy.org/moin/
[4] http://twistedmatrix.com/trac/
[5] http://www.devshed.com/c/a/Python/SSH-with-Twisted/



Follow ups