Python Vs Scheme shell for interacting w/ opencog

37 views
Skip to first unread message

Apil Tamang

unread,
Oct 28, 2016, 8:43:07 AM10/28/16
to opencog
All,
So from what I know so far, there're at least two ways to interact w/ the cogserver for manipulating atomspace. They'd be the 'Python' and the high-level 'Scheme' shell exposed by default at 18001. My question: which one is generally preferred. I feel like I just see a lot more of the latter. Is there a reason why scheme code is preferred... if that indeed is the case?


Ben Goertzel

unread,
Oct 28, 2016, 9:18:45 AM10/28/16
to opencog
The Scheme shell is strongly preferred at the moment, because it is
less buggy and better maintained, and because the set of Scheme
bindings is more complete

There's of course a self-reinforcing aspect here: Everyone uses the
Scheme shell because it works better .. and it works better because it
gets better maintained and extended because everyone uses it...

-- Ben
> --
> You received this message because you are subscribed to the Google Groups
> "opencog" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to opencog+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> Visit this group at https://groups.google.com/group/opencog.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/opencog/b92fec3c-3890-463e-b03d-74fe9772adfd%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Ben Goertzel, PhD
http://goertzel.org

“I tell my students, when you go to these meetings, see what direction
everyone is headed, so you can go in the opposite direction. Don’t
polish the brass on the bandwagon.” – V. S. Ramachandran

Linas Vepstas

unread,
Oct 28, 2016, 12:23:57 PM10/28/16
to opencog
Yep. Also, you don't have to use the shells, either.  You can instead load opencog, as if it were a library, into either scheme or python.   There are two ways to access python: start pyton first, then load opencog, or start the cogserver first, then telnet to port 17001.

For scheme, you have the same two choices, plus a third choice: telnet to port 18001.

I should probably *remove* this third choice, as a smart scheme programmer can do this on their own, if they wish -- its a build in part of the scheme language, and its only a few lines of code.

--linas 

On Fri, Oct 28, 2016 at 8:18 AM, Ben Goertzel <b...@goertzel.org> wrote:
The Scheme shell is strongly preferred  at the moment, because it is
less buggy and better maintained, and because the set of Scheme
bindings is more complete

There's of course a self-reinforcing aspect here: Everyone uses the
Scheme shell because it works better .. and it works better because it
gets better maintained and extended because everyone uses it...

-- Ben


On Fri, Oct 28, 2016 at 8:43 PM, Apil Tamang
<apil.tama...@gmail.com> wrote:
> All,
> So from what I know so far, there're at least two ways to interact w/ the
> cogserver for manipulating atomspace. They'd be the 'Python' and the
> high-level 'Scheme' shell exposed by default at 18001. My question: which
> one is generally preferred. I feel like I just see a lot more of the latter.
> Is there a reason why scheme code is preferred... if that indeed is the
> case?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "opencog" group.
> To unsubscribe from this group and stop receiving emails from it, send an

> To post to this group, send email to ope...@googlegroups.com.
> Visit this group at https://groups.google.com/group/opencog.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/opencog/b92fec3c-3890-463e-b03d-74fe9772adfd%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Ben Goertzel, PhD
http://goertzel.org

“I tell my students, when you go to these meetings, see what direction
everyone is headed, so you can go in the opposite direction. Don’t
polish the brass on the bandwagon.” – V. S. Ramachandran
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
Reply all
Reply to author
Forward
0 new messages