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

Messages - HPW

#61
newLISP newS / Re: newLISP in a browser
June 08, 2018, 03:40:50 AM
Hello,



Seems that they found the bug. Waiting for the fix.



Regards
#62
newLISP newS / Re: newLISP in a browser
June 03, 2018, 07:46:35 AM
Hello,



Did a bug report about chromes webassembly speed:



https://bugs.chromium.org/p/chromium/issues/detail?id=849098">https://bugs.chromium.org/p/chromium/is ... ?id=849098">https://bugs.chromium.org/p/chromium/issues/detail?id=849098



Regards
#63
newLISP newS / Re: newLISP in a browser
June 03, 2018, 01:34:04 AM
Hello,



In last test with Google Chrome 67 I noticed that WA is now about 8x slower than JS.

In current Firefox WA is still faster than JS.



I also test a chromium based broser which shows similar Performance like Chrome. Also slow WA.



I wonder if it could be a problem with the used emscripten version.



Latest emscripten: Emscripten: 1.38.4 (June 02, 2018)



Regards
#64
Hello,



My wish is the option for the lazy newlisp user. ;-)

For now I wrote my own special function to traverse the listtree and convert it to a stringstream.

The stringstream gets written to disk with write-file.

Then I have the control about indention and dynamic comments.

Still in love with newlisp.



Regards
#65
Hello Lutz,



I had a wish for improving pretty-print.

Idea: I had problems in reading complex, nested lists which were saved with default pretty-print.

The problem is that on the first line are several list-items and on the following line one list per line.

For simple list it is pretty enough to be readable.

When symbols gets longer and more complex lists, I would like to see an option to use open-paranthese as line-seperators. The option could be activated by using a "(" instead of an integer.

Each open-paranthese would increase indent and the corrosponding close paranthese would decrease.

Sample-Call:

(pretty-print "(" " " "%1.16g")

Sample Output:

(set 'Symbolname
'("MainItem"
  ("Item1" "Value1")
  ("Item2" "Value2")
  ("Item3" "Value3")
  ("Item4" "Value4")
  ("Sublst"
   ("SubItem1" "SubValue1")
   ("SubItem1" "SubValue1")
   ("SubItem1" "SubValue1")
   ("SubList"
    (
     ("SubListItem1" "SubListValue1")
     ("SubListItem1" "SubListValue1")
     ("SubListItem1" "SubListValue1")
    )
   )
  )
 )
)


What do think?



Regards
#66
newLISP newS / Re: newLISP in a browser
January 27, 2018, 05:32:28 AM
Hello,



Firefox Quantum 58.0 getting even better:

Asus Eee Slate

i5 U470 1.33 Ghz 4 Gb



With javascript:

http://ferrydb.nl/newlisp/">http://ferrydb.nl/newlisp/

>>>>> total time: 1591

>>>>> Performance ratio: 2.79 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



With web-assembly:

http://ferrydb.nl/newlisp-wa/">http://ferrydb.nl/newlisp-wa/

>>>>> total time: 1405

>>>>> Performance ratio: 2.49 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Regards
#67
newLISP newS / Re: newLISP in a browser
January 03, 2018, 12:59:51 PM
Hello,



Also news on Edge compatibility:



On the WIN 10 laptop with latest updates and Edge 41



(module "qa-bench")



With javascript:

http://ferrydb.nl/newlisp/">http://ferrydb.nl/newlisp/



>>>>> total time: 3550

>>>>> Performance ratio: 5.98 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



With web-assembly:

http://ferrydb.nl/newlisp-wa/">http://ferrydb.nl/newlisp-wa/



>>>>> total time: 3968

>>>>> Performance ratio: 6.66 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Note: the only browser where web-assembly is slower than javascript.

But it works now with wa. A little faster in javascript than the last test.



Regards
#68
newLISP newS / Re: newLISP in a browser
January 03, 2018, 12:38:03 PM
Hello,



Latest emscripten: Emscripten 1.37.27 (December 29, 2017)



Firefox Quantum 57.0.3 64 bit with new impressive Performance on my tablet

Asus Eee Slate

i5 U470 1.33 Ghz 4 Gb

Windows performance Index 3.1

Tested on Ferry's pages with 1.37.14



With javascript:

http://ferrydb.nl/newlisp/">http://ferrydb.nl/newlisp/



>>>>> total time: 1891

>>>>> Performance ratio: 3.28 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



With web-assembly:

http://ferrydb.nl/newlisp-wa/">http://ferrydb.nl/newlisp-wa/



>>>>> total time: 1539

>>>>> Performance ratio: 2.71 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Much faster than the last test with Firefox 54 on that Hardware.



Regards
#69
Hello ferry,



Thanks a lot for the tip. I wasn't aware of that nice command.

(explode slotlist paramnumber)

Works like a charm.


Quote
Who doesn't like recursion and implicit indexing ! ;-)

Jup, don't teach a old horse new tricks.

Working mainly in Autolisp let me often forget the nice things from newlisp. ;-)



Regards

Hans-Peter
#70
My current code:

(setq counter 0)
(dotimes (xx (/(length slotlst)paramnumber))
(setq newlst (append newlst (list(slice slotlst counter paramnumber))))
(setq counter (+ counter paramnumber))
)
#71
Hello,



I have a long flat list of params parsed from a csv file.

For example it has for eample 49 items and I know that they are a mulitple of 7 elements.



What is the most elegant way to slice the list into a list with 7 sublists with each 7 items?

In a loop with (slice 0 7) and so on?



Regards

Hans-Peter
#72
Hello Lutz,



Thanks for the fix.

Will characters <32 now handled as whitespace and get trimmed?

Or do they stay?



Regards
#73
Hello,



trim seems not to like the null-character.

So is it valid whitespace character?



newLISP v.10.7.2 32-bit on Windows IPv4/6 libffi, options: newlisp -h
> (setq str "t00   t")
"t00   t"
> (trim str)

ERR: not enough memory in function trim



> (setq str "tabc00   abct")
"tabc00   abct"
> (trim str)
"abc00   abc"
>


Regards
#74
Quote2. debugging for embedded dll - no console at all...


But the dll-call returns the error-message.



Regards
#75
newLISP newS / Re: newLISP in a browser
June 25, 2017, 10:32:26 PM
Hello,



CAD-Workstation:

Dell Precision T3610

CPU E5-1620 v2 3.7 GHZ 16GB

Windows performance index 7.7

WIndows 7 PRO SP1



http://www.ferrydb.nl/newlisp/">http://www.ferrydb.nl/newlisp/

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



(module "qa-bench")





Chrome 59 JS



>>>>> total time: 1832

>>>>> Performance ratio: 3.18 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Chrome 59 WA



>>>>> total time: 796

>>>>> Performance ratio: 1.50 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)





Firefox 54 JS



>>>>> total time: 1032

>>>>> Performance ratio: 1.88 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Firefox 54 WA



>>>>> total time: 990

>>>>> Performance ratio: 1.81 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Regards