Page 2 of 2

Re: How to implement PeekStr()

PostPosted: Fri Jun 19, 2020 8:23 pm
by FWExplorer
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?

Re: How to implement PeekStr()

PostPosted: Sat Jun 20, 2020 8:56 am
by Antonio Linares
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