Search found 8 matches

by newland
Fri Feb 05, 2016 12:43 pm
Forum: newLISP in the real world
Topic: bayes-train and query-cgi.txt
Replies: 1
Views: 2771

bayes-train and query-cgi.txt

Hi,
I'm wondering, in the code of http://nuevatec.nfshost.com/query-cgi.txt , does bayes-train just update counts, or is there some bayesian stuff going on? I'm quite unfamiliar with newlisp, and not sure what exactly the purpose of bayes-train is?
by newland
Tue Sep 16, 2014 10:05 am
Forum: newLISP in the real world
Topic: PEG and template system?
Replies: 4
Views: 1818

Re: PEG and template system?

Hi,

forgot to add this link: http://www.inf.puc-rio.br/~roberto/docs/ry10-01.pdf on how to write regex equivalent in PEG. That article gives some motivation why PEG's are sometimes easier.
by newland
Tue Sep 16, 2014 9:13 am
Forum: newLISP in the real world
Topic: PEG and template system?
Replies: 4
Views: 1818

Re: PEG and template system?

Hi, The scheme regex or Pike's system are not related to PEG's. A PEG is a top down parsing language, and you can use it to parse data or (small) command languages. A PEG often looks like a BNF , so making it quite easy to read and write. In contrast, simple regexes are easy to write and work fast, ...
by newland
Mon Sep 15, 2014 8:20 pm
Forum: newLISP in the real world
Topic: PEG and template system?
Replies: 4
Views: 1818

PEG and template system?

Hi, I'm wondering, is there something like the PEG implementation of guile: https://www.gnu.org/software/guile/docs/master/guile.html/PEG-Parsing.html That would allow to define templates and to define parsing rules for e.g. the wiki, without using regular expressions. Probably slower, but probably ...
by newland
Mon Sep 15, 2014 8:18 pm
Forum: newLISP in the real world
Topic: newlisp wiki setup / error
Replies: 7
Views: 2916

Re: newlisp wiki setup / error

Hi Lutz,

thanks very much! The wiki now works. I'm experimenting to see how it exactly works.

newland
by newland
Fri Sep 12, 2014 10:35 am
Forum: newLISP in the real world
Topic: newlisp wiki setup / error
Replies: 7
Views: 2916

Re: newlisp wiki setup / error

Hi, as a followup to my previous post, I also tried with newlisp 10.5 and 10.4. Strangely they work better, as they allow to use the links at the bottom: Files | Index | Changes | References These links don't work in my setup in 10.6 But still I can't visit http://localhost:8080/index.cgi?page=How_T...
by newland
Fri Sep 12, 2014 8:37 am
Forum: newLISP in the real world
Topic: newlisp wiki setup / error
Replies: 7
Views: 2916

Re: newlisp wiki setup / error

Hi Lutz and Ralph, thanks for the suggestions. I tried the wiki also on a server with apache, next to my local setup. I still get the same errors. The strange thing is, when I request most pages, it works, e.g. http://localhost:8080/index.cgi?page=Changes But when I request the page http://localhost...
by newland
Thu Sep 11, 2014 9:48 am
Forum: newLISP in the real world
Topic: newlisp wiki setup / error
Replies: 7
Views: 2916

newlisp wiki setup / error

Hi, I'm trying to use the newlisp wiki on localhost, started with the following command line: ./newlisp -http -d 8080 -w $PWD/ It works for some pages and page creation, but i run into problems with string functions used in the index.cgi script. For example, if i try to view or http://localhost:8080...