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 - kanen

#61
Using Dragonfly;



I am interested in having a user enter some text into a box and then have them click a button which will perform a newLISP def and return some results.



For example:



(your-name input box) Name: | John |

(JavaScript button) Submit



When the user clicks submit, it runs:


(define (Name your-name)
  (println "Hello: " your-name)
)


Seems simple, but my ant-like brain has not yet grok'd the fullness of Dragonfly.
#62
newLISP in the real world / net-connect timeout
March 31, 2010, 06:34:58 PM
Searched, but couldn't find an answer. I am not the most patient forum searcher, tho...



Is there a way to specify a net-connect timeout value so I do not spend too long trying to connect to a port that is not open or a system that is not online?



The default value, whatever it is, is too long for what I am doing and I need a shorter timeout.
#63
When I attempt to import the unix.lsp module, I get an "invalid ELF header" error.



The results are below.



I have tried the Ubuntu apt-get version and the version compiled from source. Both have the same problem.



Any ideas? Am I missing something obvious?


kanen@openkane:~/Source/newlisp-10.2.1$ ./newlisp
newLISP v.10.2.1 on Linux IPv4 UTF-8, execute 'newlisp -h' for more info.

> (load "unix.lsp")

ERR: problem loading library in function import : "/usr/lib/libc.so: invalid ELF header"
> kanen@openkane:~/Source/newlisp-10.2.1$ head /usr/lib/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.2 ) )