clips terminal command

61 views
Skip to first unread message

Руслан Сорокин

unread,
Jun 26, 2023, 4:09:39 AM6/26/23
to CLIPSESG
Hi , clips users and team!

What parameters has clips terminal command in linux and windows?
I could not find it in a standard documentation nor in google :(
Reference information would be greatly appreciated. 

Sincerely,
  Ru

Joshua Scoggins

unread,
Jun 26, 2023, 11:23:00 AM6/26/23
to CLIPSESG
Hello!

Here are the command line switches:

-f <path/to/file> : batch the file e.g. (batch <path/to/file>)
-f2 <path/to/file> : batch* the file e.g. (batch* <path/to/file>)
-l <path/to/file> : load the file e.g. (load <path/to/file>)

Hope this helps

-Josh

CLIPS Support

unread,
Jun 26, 2023, 11:31:28 AM6/26/23
to CLIPSESG
From section 2.1.2, Automated Command Entry and Loading, in the Basic Programming Guide.

Руслан Сорокин

unread,
Jun 26, 2023, 11:53:09 AM6/26/23
to CLIPSESG
Thank you very much!

понедельник, 26 июня 2023 г. в 18:31:28 UTC+3, CLIPS Support:

Basile Starynkevitch

unread,
Jul 12, 2023, 2:42:36 AM7/12/23
to Руслан Сорокин, clip...@googlegroups.com

The CLIPS tool is public domain and open source. You are invited to download its source code from https://sourceforge.net/projects/clipsrules/files/CLIPS/6.4.1/clips_core_source_641.tar.gz/download and to compile it (I am adding the -g flag to the gcc compiler in line 70 of its makefile).

If you look inside that source code of CLIPS, you see a main function in file core/main.c; that function calls

That main function calls RerouteStdin from file core/commline.c which accepts -f2 -f -l program argument.

You could improve CLIPS by following GNU conventions and accept a --help and --version program argument.


However, CLIPS is old code, and single threaded. On current laptops, it does not take advantage of multicore processors, and POSIX threads are never used in the C code. Check by running grep pthread_ * in the source directory.


Maybe you want to participate to an ongoing effort to develop a GPLv3+ licensed multi-threaded successor to CLIPS. There is such a project, called RefPerSys; see http://refpersys.org/ amateur website and C++ code on https://github.com/RefPerSys/RefPerSys. But RefPerSys is incomplete (and today july 12, 2023, unab le to make any inference).


Potential contribution to RefPerSys would include a syntax proposal. We are not good at designing a user-friendly syntax and are hesitating between several ones.

Here is the standard description:


I am living near Paris in France and got my PhD in 1990 at Paris LIP6, on symbolic artificial intelligence

On github I am https://github.com/bstarynk

On SoftwareEngineering I am  https://softwareengineering.stackexchange.com/users/40065/basile-starynkevitch

You (or colleagues or students in computer science or software engineering) could be interested by the RefPerSys -a reflexive& persistent system- open source symbolic artificial intelligence system (GPLv3+ licensed, for Linux) - work in progress

See http://refpersys.org/ for details. (It is in july 2021 - mid 2023 an informal project)

See also C++ code on https://github.com/RefPerSys/RefPerSys (last commit on july 10 th 2023 is ec16949)

It is related to the work of the late Jacques Pitrat (1934 - oct. 2019) who was the director of my PhD jury, defended in Paris in 1990.

You probably would enjoy reading both Pitrat's blog, still on http://bootstrappingartificialintelligence.fr/WordPress3/ and his last book:

Artificial Beings: the Conscience of a Conscious Machine

ISBN-13: 978-1848211018

(that book also contains something relevant to machine learning with metarules)


My professional work at CEA LIST in France is on cybersecurity on Bismon, a static source code analyzer above GCC for C and C++ code : code is on https://github.com/bstarynk/bismon and funding happens thru the DECODER projects. They could end quickly. My professional email is basile.sta...@cea.fr.
RefPerSys is currently (2020 to mid 2023) an unofficial project (coded with others in C++, and we are considering rewriting it in C for non-technical reasons), but I am trying to find some contributors (some of them are in India), maybe funds and applications for it (and dream of being able to work on, it part time in a few months). It is (as a Linux application) orthogonally persistent and generates C++ (and hopefully soon machine or C) code. The insight is to generate a lot more and more code from a more declarative description, as advocated by the late Jacques Pitrat.
Perhaps you could be interested in contributing to RefPerSys?

Perhaps you have students or colleagues interested in actively contributing to RefPerSys?

Perhaps RefPerSys could be useful to some students, interns, or become a starting point for some future  ITEA or HorizonEurope proposal....? Or any kind of project which could partly fund  or contribute code to RefPerSys? In such case email me also at work: basile.sta...@cea.fr


(with funding and cooperation, RefPerSys could be applied and extended to accounting needs, or become a helper application for medical decisions, business decisions, mechanical engineering decisions, etc...)

Difference between RefPerSys and Ocaml: RefPerSys has introspection, is dynamically typed, and multi-threaded. It is alpha quality.


My constraints are: RefPerSys is for Linux only, and I am only capable of producing PDF documents with LaTeX (but not with Microsoft software) I never used in my life any Microsoft Windows operating system (only Linux), and at the age of 63 I don't have the time -or the motivation- to learn how to use a Microsoft Windows operating system. But I am using Linux both at home and at work since 1993.

Some contributors to RefPerSys are living in India, near Kolkotta. In particular Abhishek Chakravarti abhi...@taranjali.org or <chakravar...@gmail.com>

A mailing list for RefPerSys also exists, archived on https://framalistes.org/sympa/arc/refpersys-forum

If interested by RefPerSys please compile it and give output of ./refpersys --version on your computer. Also try make test01 and make test03

PS. Some code related to RefPerSys stays under https://github.com/bstarynk/misc-basile

NB. See also French talks on https://afia.asso.fr/journee-hommage-j-pitrat/

Regards

-- 
Basile Starynkevitch                  <bas...@starynkevitch.net>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/

Reply all
Reply to author
Forward
0 new messages