How to implement PeekStr()

Re: How to implement PeekStr()

Postby FWExplorer » Fri Jun 19, 2020 8:23 pm

Generally, the hype is about its traditional use in Expert Systems, and A.I. It's also relatively easy to build DSLs with Prolog.

My reasons are threefold

1. I'm updating a program that is specifically about Logic. Prolog is a natural for this.

2. Prolog also represents Trees in a very natural, intuitive way. My pim and some other tools are tree-based, and I want to build various utilities for analysis & conversion.

3. The main reason, has to do with Flow. https://en.wikipedia.org/wiki/Flow_(psychology)

I've been trying to find a language for years that is natural, challenging enough to be absorbing but not so difficult to be frustrating.

Lisps and specifically Clojure seemed to fit these requirements. But after playing with Clojure for a couple of years, I decided that the scrunched-up parentheses were unbearable. Everyone preaches to you, that you will 'get used to it' - but to me it's silly to give up the visual benefits of indentation, in order to conform to standard syntax.

Prolog has a simple consistent syntax, and it seems worth learning well, if only for personal use.


If you're curious about Prolog, the absolute best Youtube site is here:

https://www.youtube.com/watch?v=QM1iUe6IofM

,and his official site is

https://www.metalevel.at/prolog

He goes into details & philosophy that's relevant to the Prolog implementations of today, with modern hardware.



joseluispalma wrote:Hi,

And what can be used for?
FWExplorer
 
Posts: 100
Joined: Fri Aug 09, 2013 12:43 am

Re: How to implement PeekStr()

Postby Antonio Linares » Sat Jun 20, 2020 8:56 am

D.

>
2. Prolog also represents Trees in a very natural, intuitive way. My pim and some other tools are tree-based, and I want to build various utilities for analysis & conversion.
>

Would you be so kind to provide some examples about using trees with prolog ?

> 3. The main reason, has to do with Flow. https://en.wikipedia.org/wiki/Flow_(psychology)

Do you mean that using Prolog you get into the "flow" ?

thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 70 guests