Re: To develop a system fit for Web-heroes.

Carlo Capelli <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CABty9wzRNfoz5ZWYH_kwPaCeB60Lz7OptVPYWAx3TsTcjf6TUg@mail.gmail.com>
2013/12/5 Richard A. O'Keefe <[email protected]>

> What does it take to develop a programming system
> that is appropriate for the web-developing heroes
>

...
maybe an equational approach ?

LAMP # LP

I'm still on this one, glossing over each single metaphore symbol (L,A,etc).

LAMP has been (and is) a great 'metalanguage'.
In practical terms, it produced (and produces) things like (just some silly
example) Wikipedia, Facebook, Wordpress, Drupal... Social is key...

LP it's a dream, and SWI-Prolog shed some reality on it by means of its
efficient transformational library - i.e. HTML via DCG - spiced up
Attributed Grammars.
I like so much the functional generation expressed via \callable, it could
substitute - actually, it does - a great part of LAMP' machinery.

And still more I like the - theoric - possibility to use bidirectionally
those same Relations on DOM ( a little Babele doomed to rules! ).
Could also provide a viable analysis tool for content in the wild.

It's -almost- all in bi-directionality of DCGs. Without ever speaking of
RDF and Big Data...

In perspective, what about using constrained variables to model *true
world* user interfaces ?
A kind of reflexive server - a stateful machine a là SCXML - where
transitions are modelled by analysis of user choices history ?

In practice, just now, sounds easier to take a whatsoever CMS and provide
sound MVC content - surely HTML5 and 'SQL', possibly PHP.
A single language -Prolog- to express the LAMP full stack, with
quasi-quotation to finish rough spots (Javascript,CSS,PHP,maybe Flash...)

I'd like that people that are *now* Web heroes could be interested in a
Prolog backend, serving well shaped data, and well behaving,
understandable, logic.

Maybe we could see it as an economic problem.
Does I need to buy a server on the cloud to run a full LAMP # LP ?
Clearly, no, my 2 cents machine could deliver *a lot* of semantic data,
just given a sufficiently inexpensive gate on Web.
( On purpose of getting access to *inexpensive* semantic publishing on WWW
- I target max 10€ / year to run a site - built in Prolog, running LAMP -
like http://www.erboristeriasantanna.it )

Brainstorming...

L: Linux, the sense of freedom...
A: Apache, great in battlefield communication !
M: MySQL - hey, relational data ! mmm... in Prolog ?
 P: PHP - Powerful Handlers Processing here ! A bit of pattern matching and
substitutions...

# : this is where All should happen

L: Logic - well, there is something more to say here... TL;DR
P: Programming - as above...

PS just kidding, please bear with me :)

Carlo
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.