Alan Baljeu writes:
>> ?- ensure_loaded('C:\\ciao-1.8p2Win32\\tmp\\test.pl').
>>
>> yes
>> ?- write('e\tf').
>> e f
>> yes
>> ?-
>>
>> Surely it's prolog which interprets the single \ as an escape
>> sequence? But 2 \\ works okay.
What I get in Linux from your second query is
?- write('e\tf').
e f
yes
because '\t' is passed to Ciao Prolog verbatim and interpreted as a
tabular by Ciao Prolog; see also:
?- set_prolog_flag(write_strings, off).
yes
?- atom_codes('e\tf', X).
X = [101,9,102] ?
yes
where \t translates to the ninth ascii code (sorry about this low
level parlance). However I guess that this is not what is happening
in your case, i.e., Ciao Prolog is not receiving a backslash _and_ a
't', but some precooked code. Again, if this is so, it is the Emacs
mode which should be change to behave properly under XEmacs.
MCL
__________________________________________
¡Ay, qué miedo saber tanto! (Lola Flores).
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
I guess I wasn't clear. My problem is not with ensure_loaded, as I can type
what you wrote, but with the emacs system which generates the wrong form of
the path name, as far as Ciao is concerned.
----- Original Message -----
From: "Guy Murphy" <guy.murphy(a)easynet.co.uk>
To: "Alan Baljeu" <alanb(a)cornerstonemold.com>
Sent: Friday, June 21, 2002 9:18 AM
Subject: Re: Emacs ciao-Prolog buffer in Windows
> Have you tried...
>
> ensure_loaded('C:/ciao-1.8p2Win32/tmp/test.pl').
>
> ...for the most part Windows doesn't care if you use forward or backslashes,
> and forward slashes don't have to be escaped, and are compatible with more
> systems.
>
> If that's not the issue, then it may well be that the path the file is
> visible under Cygwin is different that under the native OS.
>
> Cheers,
> Guy.
>
> ----- Original Message -----
> From: "Alan Baljeu" <alanb(a)cornerstonemold.com>
> To: <ciao-users(a)clip.dia.fi.upm.es>
> Sent: Friday, June 21, 2002 11:54 AM
> Subject: Emacs ciao-Prolog buffer in Windows
>
>
> >
> > The system seems mostly to work, except for loading info from buffers into
> > the shell. The problem is those \\, put in by the ^c-l command. Any
> hints
> > on how to make this work with forward slashes to make Ciao happy?
> >
> > ?- ensure_loaded('C:\ciao-1.8p2Win32\tmp\test.pl').
> > {ERROR: absolute_file_name/7, arg 1 - file C:iao-1.8p2Win32 mp est.pl not
> > found}
> >
> > I'm using Xemacs 21.4.
> >
> > Alan Baljeu
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
Brent Fulgham writes:
>> I was curious if the Ciao Prolog team had ever considered building
>> a native-mode compiler similar to the GNU Prolog compiler? This
>> would seem to have some advantages in terms of executable size and
>> speed.
>>
>> Was this ruled out for any technical reasons?
Yes, of course it has all the advantages you mention. It is not
that it has been "ruled out"; rather, it is "not yet implemented".
Historically, we started with an implementation based on a bytecode
interpreter, and we have been using it so far. But a compiler based
on translation to C is on the works, although it is not finished yet
(it is not even in alpha state).
As Daniel Diaz, the main GNU Prolog's implementor, can say, a
native compiler is a non-trivial task, and maintaining different
back-ends for different architectures (say, i386, SPARC, MIPS, Power
PC...) easily becomes a lot of work. That is one of the reasons why
we chose to translate to C.
MCL
___________________________________________
¡Hay, qué miedo saber tanto! (Lola Flores).
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
The system seems mostly to work, except for loading info from buffers into
the shell. The problem is those \\, put in by the ^c-l command. Any hints
on how to make this work with forward slashes to make Ciao happy?
?- ensure_loaded('C:\ciao-1.8p2Win32\tmp\test.pl').
{ERROR: absolute_file_name/7, arg 1 - file C:iao-1.8p2Win32 mp est.pl not
found}
I'm using Xemacs 21.4.
Alan Baljeu
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
I'm on macos 10.1.3 with ciao1.8p2
When I compile a programm with ciaoc with no options, it run
But when I compile cioc -S it don't run
Why ?
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
Hello anybody.
How I can ,in Pillow/CIAO Library , getting started cgi on Windows?
Thank you for your help
Chaiwat Tiraweerakhajohn
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
Hello all.
How I can, in CIAO Prolog, read a string of characters and put it in a list?
For example:
my name is jose
and obtain
[my,name,is,jose]
I need make this for "speak" to the program in natural language, and
after build a database consult, for example:
give me the books that treat of libraries and archives and users
Now, in my program, I must ask with the following format:
[give,me,the,books,that,treat,of,libraries,and,archives,and,users]
After, with a pattern, I get the tail of the list,
[libraries,and,archives,and,users], and delete the non-significative
words ("and" in this case). Therefore, my problem is convert the string
of characters in a list of elements.
Thank you for your help, a greeting.
José Antonio Echagüe Burgos
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
Hi all,
I've been having some trouble using HTML forms with the CGI program
written in Ciao. If I use the method 'post' instead of 'get' in the
form, the Ciao program outputs the following error:
Unknown conten type application/x-www-url-encoded or bad request.
(or something like that, I didn't copy/paste it)
Note that everything works fine when I use the 'get' method. But I'd
prefer to use post because the input to the form might be very long, too
long for the get method to handle ...
Anyone have any idea what the problem might be?
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
so, it should be noted that we shouln't let symbolic links in the
variables which we modify in "SETTINGS"
why "`Mac OS X' users should add (or modify) the `path' file in the
directory `~/Library/init/tcsh'" since it doesn't exist ?
(~/Library/init/ doesn't exist. should i create
~/Library/init/tcsh/path ?)
i have ".tcshrc"
doesn't it work if i add the lines into it ?
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------
Hi,
I'm considering a number of options in trying to architect a distributed
system in line with the semantic web's ambitions.
I haven't yet given a try to ciao prolog, but I would like to know a
number of things before I get into more details.
First: I have read that prolog systems are generally backward-chaining
systems. I would like to do forward-chaining so I can deal with
notification of particular events to the users.
Second: The user contributed libraries mention a utility to convert
Prolog to SQL... Does that cover triggers ? :-) that would be too easy,
wouldn't it ? More seriously, what does it cover ? It just sounds like
magic !
Finally: what kind of persistence does ciao prolog allow for ? In regard
to XSB for example. I'm concerned about the convenience of writing
triggered code to write things down to a database or an EJB,... Is such
a thing possible ?
Thanks in advance for taking the time to answer my naive questions,
Candide Kemmler
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------