Search found 1381 matches

by HPW
Wed Mar 31, 2021 2:09 pm
Forum: newLISP in the real world
Topic: error setq symbol with beginn with number
Replies: 2
Views: 812

Re: error setq symbol with beginn with number

Hello,

Thanks for the reminder. RTFM.
Long time using newlisp and forgetting something over time. ;-)

Regards

Hans-Peter
by HPW
Wed Mar 31, 2021 8:13 am
Forum: newLISP in the real world
Topic: error setq symbol with beginn with number
Replies: 2
Views: 812

error setq symbol with beginn with number

Hello Lutz,

I ran across this error:

Code: Select all

> (setq 01Text "Some Text")

ERR: missing argument in function setf
So is this not allowed to use a symbolname starting with a number?

Using: 10.7.4 32Bit Exe

Also showing in DLL-Flavour.

Regards

Hans-Peter
by HPW
Fri Dec 25, 2020 6:18 am
Forum: newLISP in the real world
Topic: Get rid of (some of) the parentheses with sublisp!
Replies: 5
Views: 2535

Re: Get rid of (some of) the parentheses with sublisp!

Hello, I agree that it is a matter of style and taste. The good thing is that a lisp does allow every user to do it in his preferred style. (not like python for example) My use of that style comes from a practical view in using it in a huge amount of production code in autolisp/newlisp. My editor do...
by HPW
Mon Dec 07, 2020 8:25 pm
Forum: newLISP in the real world
Topic: Get rid of (some of) the parentheses with sublisp!
Replies: 5
Views: 2535

Re: Get rid of (some of) the parentheses with sublisp!

Hello, I have no problem with the paranthesis and they belong to every lisp. For me a good editor solves the problem with paranthesis checker. Also a different coding style can help to view the structure better: (define (initial-clauses str) (set 'start (array rows columns (map int (explode str)))) ...
by HPW
Sun May 31, 2020 6:22 am
Forum: newLISP newS
Topic: Forum is back again
Replies: 2
Views: 2979

Forum is back again

Hello Forum-admin,

Just noticed that the forum is back to full power.
Many thanks to you for your ongoing support and providing this great resource of the newlisp community.

Regards
Hans-Peter
by HPW
Fri Nov 15, 2019 3:39 pm
Forum: newLISP newS
Topic: newLISP in a browser - new version
Replies: 6
Views: 6427

Re: newLISP in a browser - new version

Lutz original Version always on the link he posted here in the thread:

http://www.newlisp.org/newlisp-js/

For the package click on the info button. It links to:

http://www.newlisp.org/newlisp-js/README.html
by HPW
Thu Aug 01, 2019 5:31 am
Forum: newLISP and the O.S.
Topic: hpwNLAutoItDll released
Replies: 7
Views: 6097

Re: hpwNLAutoItDll released

Hello,
Just tried it again:
newLISP v.10.7.4 32-bit on Windows IPv4/6 libffi, options: newlisp -h

> (load "hpwAutoIt.lsp")
AUTOIT_WinMinimizeAllUndo@1000161F
>
Do you have a 32bit newlisp installed?
(The thread and the dll is from 2004)

Regards
by HPW
Mon Jun 10, 2019 7:12 am
Forum: newLISP in the real world
Topic: format json-parse data into html
Replies: 7
Views: 3590

Re: format json-parse data into html

Hello, From my first thoughts (untested): (setq alie '(("result" (("totalResults" 19) ("products" ((("productTitle" "GILDAN EMACS GNU XEMACS LISP programmers wildebeest short-sleeved T-shirt") ("imageUrl" "https://ae01.alicdn.com/kf/HTB1HMtjKuuSBuNjSsziq6zq8pXaz/GILDAN-EMACS-GNU-XEMACS-font-b-LISP-b...
by HPW
Mon May 13, 2019 5:01 pm
Forum: newLISP newS
Topic: Stable Release newLISP v.10.7.5
Replies: 10
Views: 8885

Re: Stable Release newLISP v.10.7.5

Hello Lutz, Thanks for the ongoing development and the great interpreter! A minor problem with viewing one link from the download-page on IE11 on Win7: http://www.newlisp.org/downloads/newlisp-10.7.5/doc/INSTALL Looks not good on IE11 because the browser seems not to show any CRLF. Shows fine with C...
by HPW
Mon May 13, 2019 12:42 pm
Forum: Whither newLISP?
Topic: problem with floats
Replies: 1
Views: 2021

Re: problem with floats

Hello,

Take a look at your locale with (set-locale).

This sets the locale to german with , as decimal seperator:
(set-locale "de_DE")

And note that + is for integer-math. Use (add ... ...) for floats.

And the doc has good explanations for that. ;-)

Regards
by HPW
Mon May 13, 2019 11:29 am
Forum: newLISP and the O.S.
Topic: Compile script to .exe with attached files
Replies: 8
Views: 6220

Re: Compile script to .exe with attached files

Hello,

Just one question: Can't you combine your 3 lsp files into one?
That would be the easiest way.

Regards
by HPW
Sun May 12, 2019 4:54 pm
Forum: newLISP and the O.S.
Topic: Compile script to .exe with attached files
Replies: 8
Views: 6220

Re: Compile script to .exe with attached files

Hello,

I assume that you do want to load your Lisp files from the same Directory (any) as your new exe.
Then you may use (main-args 0) to get the path+name of your running exe.
Extract the path and build full path of your files to load.

Regards
by HPW
Sun May 05, 2019 2:11 pm
Forum: newLISP newS
Topic: newLISP in a browser - new version
Replies: 6
Views: 6427

Re: newLISP in a browser - new version

Hello Lutz,

Thanks for the info. So it is a WA-only version! So any chance to get a JS version?
When I remember prior tests the JS-version was a bit more compatible across different Browsers.

Regards
Hans-Peter
by HPW
Sun May 05, 2019 1:40 pm
Forum: newLISP newS
Topic: newLISP in a browser - new version
Replies: 6
Views: 6427

Re: newLISP in a browser - new version

Hello Lutz, Thank you very much for the ongoing support of this target platform. Great News! Can you provide a download link for the complete package? Any special info from the Change-log besides newlisp 10.7.5 ? About the emscripten version? Edit: Any Chance to also build a WebAssembly Version? Reg...
by HPW
Sat Apr 06, 2019 4:55 am
Forum: newLISP and the O.S.
Topic: How to stop newlisp in daemon mode
Replies: 2
Views: 3170

Re: How to stop newlisp in daemon mode

Hello,

I do not know if there is a special way for -d mode, but in the former TclTk newlisp-Gui in -p mode, there was a tcl comand "exec kill" on the newlisp process id to end the session.

Regards
Hans-Peter
by HPW
Wed Mar 20, 2019 4:37 pm
Forum: newLISP in the real world
Topic: Unexpected result in round
Replies: 3
Views: 2542

Re: Unexpected result in round

Hello,

Thanks for the advices.
I am generating nc-code for a nc-drilling mashine.
Format will do the Job.

Regards
Hans-Peter
by HPW
Wed Mar 20, 2019 10:34 am
Forum: newLISP in the real world
Topic: Unexpected result in round
Replies: 3
Views: 2542

Unexpected result in round

Hello,

I get this unexpected result in round:

Code: Select all

> (round 8.3 -1)
8.300000000000001
> (round 8.30 -1)
8.300000000000001
> (round 8.430 -1)
8.4
> (round 8.4 -1)
8.4
> (round 8.2 -1)
8.199999999999999
>
The doc contains not this behaviour.

Regards
Hans-Peter
by HPW
Wed Feb 20, 2019 5:08 am
Forum: newLISP and the O.S.
Topic: Build newLISP for win10 64bit
Replies: 9
Views: 4165

Re: Build newLISP for win10 64bit

For testing and Benchmark:

Code: Select all

(module "qa-bench")
Regards
by HPW
Sat Feb 16, 2019 2:39 pm
Forum: newLISP and the O.S.
Topic: Build newLISP for win10 64bit
Replies: 9
Views: 4165

Re: Build newLISP for win10 64bit

Hello,

Maybe this helps:

viewtopic.php?f=2&t=4958

Regards
by HPW
Mon Feb 04, 2019 5:51 pm
Forum: newLISP newS
Topic: newLISP in a browser
Replies: 115
Views: 103596

Re: newLISP in a browser

Hello,

Oops, nothing special with Chrome and newlisp in the browser.
The "Not secure" Display is for every Non-https site.

Regards
by HPW
Sun Feb 03, 2019 5:31 am
Forum: newLISP newS
Topic: newLISP in a browser
Replies: 115
Views: 103596

Re: newLISP in a browser

Hello,

Latest obserations with chrome 72:

http://www.ferrydb.nl/newlisp/
http://www.ferrydb.nl/newlisp-wa/

For both url's chrome 72 shows a warning sign in front of the url "Nicht sicher" (german for not secure)
Performance seems slower on both than older versions.
Not nice.

Regards
by HPW
Mon Jan 28, 2019 5:31 pm
Forum: newLISP in the real world
Topic: csv to assoc-list
Replies: 9
Views: 4322

Re: csv to assoc-list

Hello rickyboy,

Yes, crazy but also cool. With this powerfull functions from newlisp I found the code harder to read and understand, but thats the power and beauty of newlisp. Thanks for sharing your ideas.

Regards
by HPW
Sun Jan 27, 2019 9:03 am
Forum: newLISP in the real world
Topic: csv to assoc-list
Replies: 9
Views: 4322

Re: csv to assoc-list

Hello,

And finally when I need the assoc list into symbols:

Code: Select all

(map (fn (x) (set(sym(first x))(last x)))assoclst)
Regards
by HPW
Sat Jan 26, 2019 12:21 pm
Forum: newLISP in the real world
Topic: csv to assoc-list
Replies: 9
Views: 4322

Re: csv to assoc-list

Hello rickyboy,

Thanks for the hint. Works like a charm.

Regards
by HPW
Sat Jan 26, 2019 5:29 am
Forum: newLISP in the real world
Topic: csv to assoc-list
Replies: 9
Views: 4322

Re: csv to assoc-list

Thanks for the code-sample.
But instead of your result:

Code: Select all

(("a" 1) ("b" 2) ("a" 3) ("b" 4) ("a" 5) ("b" 6))
I want:

Code: Select all

((("a" 1) ("b" 2)) (("a" 3) ("b" 4)) (("a" 5) ("b" 6)))
Regards