Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - protozen

#1
Hi All,



I'm curious if any new releases are on the horizon, and if there are future plans for newlisp in general. Love the language and programming in newlisp, I only wish it were a more general purpose platform / language, but I know it's not in the cards.
#2
newLISP in the real world / parameter for http only
November 16, 2017, 05:17:44 PM
When using -http, should  newlisp still be processing file writing requests etc.. like with (write-file "http://xzy.com/index.html">http://xzy.com/index.html" "blah"). This is happening on several newlisp versions on windows and linux. If this is intended behavior, is there a simple way to disable it?
#3
newLISP in the real world / CGI and State
July 09, 2015, 06:11:25 PM
What is the best way to manage state when using CGI for web apps. Say I want to store program and session data, not using cookies - but the concept of session data from other web frameworks. I need to maintain persistent data in memory between requests.



Creating a newlisp server using newlisp -c , is suppose to create a stateful server right?



"After each transaction, when a connection closes, newLISP will go through a reset process, reinitialize stack and signals and go to the MAIN context. Only the contents of program and variable symbols will be preserved."



But during CGI processing and the connection is closed the reset happens. Which approach should I be looking into to solve my problem? Thanks a bunch.
#4
newLISP in the real world / Scaleway with newLisp
April 12, 2015, 10:19:37 PM
Hi All,



I started up an account with Scaleway - because I really like what they're doing. This really shouldn't be news but a simple ./configure-alt, make, make check builds just fine on their ARM infrastructure. newLisp is up and running on a new bare metal cloud =)



Cheers,



Travis
#5
Are there any plans to offer an api to access the development server, with an api from newLisp instead of the command line? I'm looking at creating a few small packaged servers that I would like to have configured and executed from newLips. Having some soft of API for the built in HTTP processor would be nice. Has anyone done this before?
#6
newLISP in the real world / Recent Performance
February 12, 2015, 09:52:57 AM
Hi All,



I'm looking for more recent macro performance numbers like these:



http://www.newlisp.org/benchmarks/">http://www.newlisp.org/benchmarks/



Or the old computer language shootout numbers. Does anyone happen to know or have a recent set? I know of the QA tests that I can run. I'm curious about the feasibility of using newLisp in areas where I would have once needed to use Java or a lower level language. I'm looking primarily at data processing and client / server / peer to peer networking. I've never personally tested newLisp network and io buffers etc... in creating custom persistence layers and messaging systems. Any pointers or discussion of experience for recent newLisp builds circa 2012+ are greatly appreciated.
#7
newLISP newS / Compile on Zorin OS (Ubuntu LTS base)
August 03, 2014, 01:08:37 PM
I'm not able to compile newlisp on Zorin where it was fine on Ubuntu. Below is the error and below that is gcc -v. Anyone run into this?



gcc -fPIC -m64 -Wall -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX -DFFI -I/usr/local/lib/libffi-3.0.13/include  newlisp.c

newlisp.c: In function 'main':

newlisp.c:907:37: error: 'CPPFunction' undeclared (first use in this function)

 rl_attempted_completion_function = (CPPFunction *)newlisp_completion;

                                     ^

newlisp.c:907:37: note: each undeclared identifier is reported only once for each function it appears in

newlisp.c:907:50: error: expected expression before ')' token

 rl_attempted_completion_function = (CPPFunction *)newlisp_completion;

                                                  ^

newlisp.c: At top level:

newlisp.c:990:47: error: unknown type name 'CPFunction'

 char ** completion_matches(const char * text, CPFunction commands);

                                               ^

newlisp.c: In function 'newlisp_completion':

newlisp.c:995:1: warning: implicit declaration of function 'completion_matches' [-Wimplicit-function-declaration]

 return(completion_matches(text, (CPFunction *)command_generator));

 ^

newlisp.c:995:34: error: 'CPFunction' undeclared (first use in this function)

 return(completion_matches(text, (CPFunction *)command_generator));

                                  ^

newlisp.c:995:46: error: expected expression before ')' token

 return(completion_matches(text, (CPFunction *)command_generator));

                                              ^

newlisp.c:996:1: warning: control reaches end of non-void function [-Wreturn-type]

 }

 ^

make[1]: *** [newlisp.o] Error 1



----------------





gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
#8
Is there a way to embedded files into the compiled executable? I would like to build a self contained website distributed as an executable - delivering static files that have been embedded. Alternatively, can the executable be rewritten if updates were made through such a web app?