Search found 112 matches

by CaveGuy
Thu Nov 30, 2017 3:18 pm
Forum: newLISP and the O.S.
Topic: unusual (print buffering on FreeBSD
Replies: 4
Views: 1812

Re: unusual (print buffering on ubuntu this time ..

This one reared it's ugly head again this time testing 10.7.3 on ubuntu 17.10 newLISP v.10.7.3 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h > (setq x 0) (while (!= (char "x") (read-key true)) (sleep 1000)(println (inc x))) nil 0 1 2 x3 3 nil > (setq x 0) (while (!= (char "x") (read-key t...
by CaveGuy
Wed Nov 08, 2017 1:41 pm
Forum: newLISP and the O.S.
Topic: (module) problem on raspberry pi release 10.7.1
Replies: 0
Views: 1822

(module) problem on raspberry pi release 10.7.1

I installed newlisp 10.7.1 using apt-get install on on a raspberry pi 3. (module "unix.lsp") failed looking for "/usr/local/share/newlisp/modules/unix.lsp" I located it incorrectly installed at "/usr/share/newlisp/modules/unix.lsp" Not sure who is responsible for the repository or if it's location i...
by CaveGuy
Fri Aug 18, 2017 2:01 pm
Forum: newLISP in the real world
Topic: Why is the behavior of "trim" function so strange?
Replies: 11
Views: 3023

Re: Why is the behavior of "trim" function so strange?

I am back from the future :) no problem there ? newLISP v.10.7.3 64-bit on Windows IPv4/6 libffi, options: newlisp -h > (setq str (dup "\000" 52)) "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...
by CaveGuy
Fri Aug 11, 2017 3:29 pm
Forum: newLISP in the real world
Topic: Is this newLISP's bug?
Replies: 4
Views: 1590

Re: Is this newLISP's bug?

not sure if this helps but I am working with the same example and get a lockup with an unhandled win32 exception [10892] when I run it in 64bit newlisp but it runs as expected in 32 bit newlisp. newLISP v.10.7.1 64-bit on Windows IPv4/6 UTF-8 libffi, options: newlisp -h > (load "w32test2.lsp") hInst...
by CaveGuy
Fri Aug 11, 2017 2:44 pm
Forum: Anything else we might add?
Topic: key-pressed or (read function with a time out
Replies: 5
Views: 2282

Re: key-pressed or (read function with a time out

thanks, but I need a 32bit one. I will go into more detail why in a different thread.
by CaveGuy
Fri Aug 11, 2017 3:08 am
Forum: Anything else we might add?
Topic: key-pressed or (read function with a time out
Replies: 5
Views: 2282

Re: key-pressed or (read function with a time out

Thank you! my only question is if 10.7.3 will be released as binaries for windows in the near future ? Now I am retired the cost of maintaining the mickeysoft development tools has become prohibitive. Bottom line is I no longer have a windows build environment on my current system and plan on using ...
by CaveGuy
Tue Aug 08, 2017 2:56 pm
Forum: Anything else we might add?
Topic: key-pressed or (read function with a time out
Replies: 5
Views: 2282

key-pressed or (read function with a time out

WANTED: The able to test for a key-pressed or be able to time out from a (read- like function. The object is to be able to interrupt a loop with a key stroke. currently all input functions are blocking and wait forever for input. Sometimes when no input is forth coming we need to be able to move on....
by CaveGuy
Mon Aug 07, 2017 9:45 pm
Forum: newLISP and the O.S.
Topic: myscan example shows freebsd to be slow ?
Replies: 0
Views: 1785

myscan example shows freebsd to be slow ?

linux, freebsd and win 2012r2 are all running as virtual machines on the same box, each running on one dedicated xeon 3.0g core. The win 10 box is also on the same network connection, it is a new 7th generation I7 3.4g cpu with 8 cores proving the system speed has little to do with the net-connect t...
by CaveGuy
Mon Aug 07, 2017 3:45 pm
Forum: newLISP and the O.S.
Topic: unusual (print buffering on FreeBSD
Replies: 4
Views: 1812

Re: unusual (print buffering on FreeBSD

Thanks that works just fine :)

I will use that trick in some other common code ie. (myprintln ... and all should be fixed.

Thanks again ...
by CaveGuy
Sun Aug 06, 2017 7:44 pm
Forum: newLISP and the O.S.
Topic: unusual (print buffering on FreeBSD
Replies: 4
Views: 1812

unusual (print buffering on FreeBSD

The following test program runs just fine on both windows and ubuntu Linux but has print buffering problems and fails on FreeBSD 11.1. ;; (load "test.lsp") # ; pressing key1 returns true, key2 returns nil, all other keys ignored (define (torf key1 key2) (setq keypress2 "") (while (and (!= keypress2 ...
by CaveGuy
Wed Jun 21, 2017 8:42 pm
Forum: newLISP and the O.S.
Topic: (pause msg delay) debug tool - an ubuntu flavor needed
Replies: 0
Views: 1812

(pause msg delay) debug tool - an ubuntu flavor needed

;; ;; (pause msg delay) is a debuging tool that lets me ;; pause in a loop and look at things and in some ;; cases (setq things before continuing. ;; ;; msg is evaled and printed as a string for ;; delay in seconds, if not specified default is 10 ;; return key enters and exits eval print loop ;; an...
by CaveGuy
Tue Jun 20, 2017 10:05 am
Forum: newLISP in the real world
Topic: 2 char country code assoc list & example
Replies: 0
Views: 1657

2 char country code assoc list & example

Given the reverse dns generated by (setq rdns (net-lookup ip-add)) This example appends the expanded name if there is a 2 char code.. The value/time saver here, is the assoc list of countries. ;;; ;;; Expand 2 char country codes ;;; by caveguy ;;; (define (expand-cc rdns , tmp) (if (and (= "." (firs...
by CaveGuy
Sun Jun 18, 2017 5:38 am
Forum: Whither newLISP?
Topic: (directory) nonsence
Replies: 5
Views: 2075

Re: (directory) nonsence

Thank that worked... Went back and RTFM after catching up on some sleep, It makes more sense now then it did after several nights of manic programming looking for a pattern of twigs in a 7 million line haystack of access logs. who would have guessed the trail would lead to Quasi Networks LTD in Seyc...
by CaveGuy
Fri Jun 16, 2017 7:59 pm
Forum: Whither newLISP?
Topic: (directory) nonsence
Replies: 5
Views: 2075

Re: (directory) nonsence

I it dot'nt make ant difference still got nil. I ended up using (directory) followed with a do-list to remove everything I do not want.
thanks for the reply .

ps I missed the definitive reply before I posted this the first time ... my bad
by CaveGuy
Wed Jun 14, 2017 5:49 am
Forum: Whither newLISP?
Topic: (directory) nonsence
Replies: 5
Views: 2075

(directory) nonsence

first problem I put (directory) in the search box an it tells me it is too common ? I change-dir to the directory with my log files and do a (directory) and get back a list of everything. In this case I only want the dovecot logs so why does (directory "dovecot*") return nil ? obviously too common a...
by CaveGuy
Wed Jun 07, 2017 6:44 am
Forum: newLISP in the real world
Topic: suggestion: nand, nor, and xor functions
Replies: 8
Views: 3279

Re: suggestion: nand, nor, and xor functions

If I was still in my autolisp days I would have taken a different approach and used a (mapcar
oh the fun we had with (mapcar '(apply combinations on 3d point lists :)
by CaveGuy
Wed Jun 07, 2017 4:26 am
Forum: newLISP in the real world
Topic: suggestion: nand, nor, and xor functions
Replies: 8
Views: 3279

Re: suggestion: nand, nor, and xor functions

I ended up using a chain. looks ugly but it worked. What I really want is to go back to the pre1999 newlisp before the dos console code was taken out. And while I am wishing, a quick and easy inter-process communication for windows. using the file system for inter-process communication is so 80'ish ...
by CaveGuy
Tue Jun 06, 2017 10:51 pm
Forum: newLISP in the real world
Topic: suggestion: nand, nor, and xor functions
Replies: 8
Views: 3279

Re: suggestion: nand, nor, and xor functions

You make some good points, here are a few limp counterpoints :) I can do an (and a b c d e ... I am looking for a multy input (nand a b c d ... Almost everything I do gets linked to an exe which makes init.lsp not only useless but dangerous to have it effect my codeing and testing environment and no...
by CaveGuy
Tue Jun 06, 2017 2:02 pm
Forum: newLISP in the real world
Topic: suggestion: nand, nor, and xor functions
Replies: 8
Views: 3279

Re: suggestion: nand, nor, and xor functions

Its been a few years yet still no nand nor or xor :(
really wish I had them right now as I attempt to model a complex Boolean.

count this as a recalled vote from the past ....
by CaveGuy
Mon Jun 05, 2017 6:35 pm
Forum: newLISP newS
Topic: SMTP module improved
Replies: 2
Views: 3853

Re: SMTP module improvements

added Message-Id: to make the spam cops a bit happier - june 2017 caveguy the gettimezone hack is broken returns "-0-300" I hard coded -0400 until it can be fixed. ;; @module smtpx.lsp ;; @description Send mail using SMTP protocol ;; ;; @version 3.? - added Message-Id: to make the spam cops a bit ha...
by CaveGuy
Mon Jun 05, 2017 6:00 pm
Forum: newLISP in the real world
Topic: Building executable, without external lsp?
Replies: 3
Views: 1341

Re: Building executable, with includes and modified icons

In preparation I use http://icoconvert.com/ and ResourceHacker (google them:-) to create a myprogram-ico.exe file using the desired version of newlisp with the icon I want to use. next put load statements for anything you want to include up top. next edit (init) to include any additional setup - ini...
by CaveGuy
Fri Jun 02, 2017 10:59 am
Forum: newLISP in the real world
Topic: newlisp.sys for textpad editor
Replies: 0
Views: 1778

newlisp.sys for textpad editor

Updated my newlisp.syn file for the textpad editor. Hope this saves someone some work someday :) ;newlisp/sym ; Caveguys newlisp keyword syntax file for textpad editor. ; last edit 2017/06/01 C=1 [Syntax] Namespace1 = 6 IgnoreCase = Yes InitKeyWordChars = A-Za-z*$' KeyWordChars = -A-Za-z0-9*:_ Brack...
by CaveGuy
Wed May 31, 2017 4:01 pm
Forum: newLISP and the O.S.
Topic: All the console goodies you ever wanted
Replies: 11
Views: 7587

Re: All the console goodies you ever wanted

# # module for Win32-console # # modernized 5/31/2017 by caveguy and tested # using newLISP v.10.7.1 64-bit on Windows # (context 'CONSOLE) (import "kernel32.DLL" "GetStdHandle") (import "kernel32.DLL" "SetConsoleTextAttribute") (import "kernel32.DLL" "SetConsoleCursorPosition" ) (import "kernel32....
by CaveGuy
Sat Jan 10, 2015 7:45 pm
Forum: newLISP in the real world
Topic: newlisp -x does not play well with -m or -s
Replies: 9
Views: 2174

Re: newlisp -x does not play well with -m or -s

Thanks .. test3.lsp (println "sys-info " (sys-info)) (setq a '()) (reset 32768) (println "sys-info " (sys-info)) (for (x 1 10000) (setq a (append (list x 1 2) a))) (println "sys-info " (sys-info)) (exit) ~# newlisp -x test.lsp test3 ~# ./test3 sys-info (489 576460752303423488 409 2 0 2048 0 6871 106...
by CaveGuy
Sat Jan 10, 2015 6:24 pm
Forum: newLISP in the real world
Topic: newlisp -x does not play well with -m or -s
Replies: 9
Views: 2174

Re: newlisp -x does not play well with -m or -s

thanks for the quick responce, close but no cigar :) test.lsp (println "sys-info " (setq a (sys-info))) (reset 512) (for (x 1 1000) (setq a (append (list x) a))) (println "sys-info " (sys-info)) (exit) :~# newlisp newLISP v.10.6.2 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h > (load "tes...