Search found 1390 matches

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

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: 7406

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: 7406

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: 136178

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: 136178

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: 6704

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: 6704

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: 6704

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: 6704

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
by HPW
Fri Jan 25, 2019 7:38 am
Forum: newLISP in the real world
Topic: csv to assoc-list
Replies: 9
Views: 6704

Re: csv to assoc-list

Hello, My first approach: (load "C:/Programme/newlisp/artful-newlisp-master/csv.lsp") (setq csvlst(CSV:parse-file "C:/Programme/newlisp/csv_file.csv" ",")) (setq colnames (first csvlst)) (setq csvlst (rest csvlst)) (setq alst (list )) (dolist (sublst csvlst) (setq alst(append alst (list(map list col...
by HPW
Fri Jan 25, 2019 7:13 am
Forum: newLISP in the real world
Topic: csv to assoc-list
Replies: 9
Views: 6704

Re: csv to assoc-list

Oops,

To early this morning. I think this will do the job.

Code: Select all

> (map list '(1 2 3) '(4 5 6))
((1 4) (2 5) (3 6))
Regards
by HPW
Fri Jan 25, 2019 7:06 am
Forum: newLISP in the real world
Topic: csv to assoc-list
Replies: 9
Views: 6704

csv to assoc-list

Hello, Inspired by this thread: http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4918&p=24159&hilit=csv#p24159 Using the artful-newlisp-master/csv.lsp I get a proper list. The first sublist contains the column header names. Now I want to transform the list to a assoc-list where the colum...
by HPW
Thu Jan 03, 2019 4:30 pm
Forum: newLISP newS
Topic: Ask info about newLISP
Replies: 6
Views: 8454

Re: Ask info about newLISP

Hello,

newlisp has gone a long journey/history.
It is now stable and proven. Well tested.
As far I know no bugs open on the Todo list.
So why do you ask?
You can post new wishes or ideas of improvement.

So only Lutz can tell more.

Regards
Hans-Peter
by HPW
Thu Dec 13, 2018 11:51 am
Forum: newLISP in the real world
Topic: newlisp as Log-parser
Replies: 0
Views: 4531

newlisp as Log-parser

Hello, After Long time using newlisp I am still impressed about it's speed. Yesterday I had a Log-File from our Unix-Host with 588000 lines and 35 MB size. The newlisp code takes about 40 sec to read each line and parse a complex structure out. The result file was 10000 lines in 46KB. No highend-PC....
by HPW
Sun Dec 09, 2018 6:06 pm
Forum: newLISP in the real world
Topic: Cmdline-option to keep newlisp instance running
Replies: 3
Views: 2983

Re: Cmdline-option to keep newlisp instance running

Hello, For the interested WIN user: I made a delphi-wrapper which allow to run only one instance and hold the newlisp.dll running. http://hpwsoft.de/anmeldung/html1/newLISP/nlCmd.png The log entrys comes from subsequent calls to different batch files. For the intereseted here the zip with the exe an...
by HPW
Sun Dec 02, 2018 12:11 pm
Forum: newLISP in the real world
Topic: Cmdline-option to keep newlisp instance running
Replies: 3
Views: 2983

Re: Cmdline-option to keep newlisp instance running

Hello,

Similar but not the same. Not so simple as a series of cmdline-call.

Regards
by HPW
Sun Dec 02, 2018 8:32 am
Forum: newLISP in the real world
Topic: Cmdline-option to keep newlisp instance running
Replies: 3
Views: 2983

Cmdline-option to keep newlisp instance running

Hello, I could thing about a cmdline option for newlisp to keep it running. This means I can call the newlisp.exe simply a second time and instead of starting a second instance it passes the cmdline-args to the running instance and call there a predefined function with it. Sample: newlisp.exe -k fun...
by HPW
Sat Nov 24, 2018 3:28 pm
Forum: newLISP in the real world
Topic: help with a database in newlisp
Replies: 4
Views: 3920

Re: help with a database in newlisp

Hello,

You may have a look at nldb from here:

https://github.com/cormullion/newlisp-p ... aster/nldb

You may also find discussions here with a Forum search for 'nldb'

At least you can use 'assoc' on your list.

Or use modules for real databases.

Regards
by HPW
Sun Oct 28, 2018 9:35 am
Forum: newLISP in the real world
Topic: doc for read with hint to seek
Replies: 2
Views: 3193

Re: doc for read with hint to seek

Thanks Lutz for the fast addition. All needed info together.

Regards
by HPW
Sun Oct 28, 2018 5:53 am
Forum: newLISP in the real world
Topic: doc for read with hint to seek
Replies: 2
Views: 3193

doc for read with hint to seek

Hello,

I would find it usefull if the doc of the 'read' command could give a advice to command 'seek' (and link) about setting the file-pointer to a different position in the file.

Regards
by HPW
Wed Oct 17, 2018 4:55 pm
Forum: newLISP in the real world
Topic: newlisp.dll UTF8 used with purebasic 5.62
Replies: 4
Views: 4242

Re: newlisp.dll UTF8 used with purebasic 5.62

Hello,

Updated the demo with 2 more callbacks with Integer and Double parameters.

Again here is the complete purebasic source with the newlisp utf8 dll (32 bit):
This time also the compiled demo with 52224 Bytes.

http://www.hpwsoft.de/anmeldung/html1/n ... isp_PB.zip

Regards
by HPW
Sun Oct 14, 2018 12:45 pm
Forum: newLISP in the real world
Topic: newlisp.dll UTF8 used with purebasic 5.62
Replies: 4
Views: 4242

Re: newlisp.dll UTF8 used with purebasic 5.62

Hello, With the help of various purebasic fellows from the purebasic community, I managed to get callbacks to work from newlisp-dll. Here is a complete purebasic source with the newlisp utf8 dll (32 bit): http://www.hpwsoft.de/anmeldung/html1/newLISP/hpwNewLisp_PB.zip Screenshot: http://www.hpwsoft....
by HPW
Mon Oct 08, 2018 4:03 pm
Forum: newLISP in the real world
Topic: newlisp.dll UTF8 used with purebasic 5.62
Replies: 4
Views: 4242

Re: newlisp.dll UTF8 used with purebasic 5.62

Hello, After a advice from Fred(Author of purebasic) I now here an improved code: Init: OpenLibrary(0,"newlisp_utf8.dll") ; Define your function pointer, with auto utf8 conversion (and cleaning) Prototype newlispEvalStrProto(input.p-utf8) newlispEvalStr.newlispEvalStrProto = GetFunction(0, "newlispE...
by HPW
Sun Oct 07, 2018 12:41 pm
Forum: newLISP in the real world
Topic: newlisp.dll UTF8 used with purebasic 5.62
Replies: 4
Views: 4242

newlisp.dll UTF8 used with purebasic 5.62

Hello, Today I find a bit time to test a new combination: newlisp.dll UTF8 with purebasic 5.62 Since latest purebasic versions are unicode compiler, it was interesting to use newlisp.dll UTF8 there. Importing the dll is simple: OpenLibrary(0,"newlisp_utf8.dll") The call function can look like this: ...
by HPW
Wed Oct 03, 2018 6:05 am
Forum: newLISP newS
Topic: Recommended build tool for newlisp on win
Replies: 1
Views: 5543

Recommended build tool for newlisp on win

Hello Lutz, In the 10.6.3 thread was an anouncment about used build tool for newlisp binarys: http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=2&t=4720&hilit=gcc So is http://tdm-gcc.tdragon.net/ now the recommended compiler for building newlisp on Windows? Is tdm-gcc-5.1.0-3.exe the right ve...