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

#46
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">//http://www.hpwsoft.de/anmeldung/html1/newLISP/hpwNewLisp_PB.zip



Screenshot:

http://www.hpwsoft.de/anmeldung/html1/newLISP/hpwNewLisp_PB.png">



By the way: One of the reasons why purebasic is a good companion to newlisp is the size of the final exe which is here 49 KB.

For 64 bit purebasic user the 64 bit Dll must be downloaded from newlisp.org.



Regards

Hans-Peter
#47
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, "newlispEvalStr")


Call in the main Event Loop in my GUI:

SetGadgetText(#Gadget_Form1_Editor5, PeekS(newlispEvalStr(GetGadgetText(#Gadget_Form1_String3)),-1,#PB_UTF8))


At the end you can (not needed, but cleaner)

CloseLibrary(0)


Regards
#48
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:

sourcestr.s = GetGadgetText(#Gadget_Form1_String3)
*newlispstr = AllocateMemory(StringByteLength(sourcestr) + SizeOf(Character))
PokeS(*newlispstr, sourcestr, Len(sourcestr),#PB_UTF8)
retstr.s = PeekS(CallFunction(0,"newlispEvalStr",*newlispstr),-1,#PB_UTF8)
FreeMemory(*newlispstr)
SetGadgetText(#Gadget_Form1_Editor5, retstr)

At the end you can (not needed, but cleaner)

CloseLibrary(0)

Regards
#49
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">http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=2&t=4720&hilit=gcc



So is http://tdm-gcc.tdragon.net/">http://tdm-gcc.tdragon.net/ now the recommended compiler for building newlisp on Windows?



Is tdm-gcc-5.1.0-3.exe the right version?

Or tdm64-gcc-5.1.0-2.exe ?



Regards

Hans-Peter
#50
Hello,



On the spiderbssic Forum I posted the source of my newlisp module for spiderbasic.



https://forums.spiderbasic.com/viewtopic.php?f=16&t=1174">https://forums.spiderbasic.com/viewtopi ... =16&t=1174">https://forums.spiderbasic.com/viewtopic.php?f=16&t=1174



The source of the sample is also included.



Regards

Hans-Peter
#51
newLISP newS / Re: Development release newLISP v.10.7.4
September 13, 2018, 12:09:10 AM
Hello Lutz,



Thanks for the Win32 binarys.



I have successfull tested them against neobook plugin and TclTK frontend.



Regards
#52
newLISP newS / Re: Development release newLISP v.10.7.4
September 12, 2018, 10:17:50 AM
Hello Lutz,



.. but looking at current download logs it is very rare



Which downloads are Win32 only?

Your last complete installer was a win32 Version. Right?

And Win32 version runs fine on every Win64 Windows System.

And the win32 dll is compatible to many programming enviroments.

So isn't it possible to set up a toolchain which compiles all wanted version in one run and provide the different Downloads in a separate Folder?



So my vote for 4 binary Folders:

Win32

Win32-UTF8

Win64

Win64-UTF8



Of cource only speaking for win os.



Regards

Hans-Peter
#53
newLISP newS / Re: Development release newLISP v.10.7.4
September 12, 2018, 09:10:55 AM
Hello Lutz,



>>Files to copy are indicated in the INSTALL.txt.



But there are only the win64 Versions mentioned.

Will you provide Win32 and Win32-Utf8 versions of the exe+dll to download.

I havent currently not installed the toolchain to compile newlisp myself.



>>There I could also link an the updated TclTK based development environment. Can you post a direct link to it? Could not find it.



The link was in the thread mentioned above but the forum shorten the display:

http://www.hpwsoft.de/anmeldung/html1/newLISP/newlisptk_85.zip


>> I would depend on somebody else to supply it



Do you think the js-platform is not worth to support it further?

Or is it a matter of workload?

Should we ask Ferry(fdb) if he can support the js and web-assembly Version?



Regards

Hans-Peter
#54
newLISP newS / Re: Development release newLISP v.10.7.4
September 12, 2018, 06:15:45 AM
Hallo Gregor,



I am not sure if I had posted a link to my latest Version of the TclTk Editor.

I had tested it again each newlisp-version in the past.

I will check in the evening for a download-Option and will post it here.



Keine Tomaten auf den Augen. Bin mir nicht sicher einen Link hier gepostet zu haben.

Habe bislang alle NewLisp-Versionen mit dem Front-End getestet.

Auch die alten Demos laufen immer noch.

Werde heute abend mal schauen das ich etwas online bekomme.



Edit: Was here on the Forum:

http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=10&t=4863&p=23898&hilit=tcltk#p23898">http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=10&t=4863&p=23898&hilit=tcltk#p23898



GrĂ¼sse,

Hans-Peter
#55
newLISP newS / Re: Development release newLISP v.10.7.4
September 11, 2018, 08:30:24 AM
Hello Lutz,



Thanks for the ongoing development.



Will you provide an Win-installer for the new Releases as before?

And a sub-Directory for Win32-Utf8 with exe+dll ?

And a newlisp-js release?



By the way: We stll have the optional TclTk Editor. ;-)



Regards

Hans-Peter
#56
newLISP newS / Re: newLISP in a browser
September 07, 2018, 03:31:26 AM
Hello,

After browser updates on major browsers



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 69 JS



>>>>> total time: 1099



Chrome 69 WA



>>>>> total time: 860





Firefox 62 JS



>>>>> total time: 822



Firefox 62 WA



>>>>> total time: 679



Regards
#57
Hello,



Added a info and doku button to the sample with spiderbasic,

Test-app: http://www.hpwsoft.de/nls/">http://www.hpwsoft.de/nls/



Also added on NeoAppBuilder/VisualNeo.

Test-app: http://www.hpwsoft.de/nl/">http://www.hpwsoft.de/nl/



You may have to delete the browser-cache.



Regards
#58
newLISP newS / Re: newLISP in a browser
August 25, 2018, 11:19:23 PM
Hello Lutz,



In the index.html is some code to Show a progressbar for downloading.

I was wondering that it never Show up. Only the Status text changed.



      if (!Module.setStatus.last) Module.setStatus.last = { time: Date.now(), text: '' };
          if (text === Module.setStatus.text) return;
          var m = text.match(/([^(]+)((d+(.d+)?)/(d+))/);
            alert (text);
            alert (m);

The m variable keeps always null so the later if gets never true.



Regards
#59
Hello,



Based on the current newlisp-js version I am making progresses in using it from javaScript-GUI frameworks.



One solution is based on NeoAppBuilder/VisualNeo. Currently still in beta.

Test-app: http://www.hpwsoft.de/nl/">http://www.hpwsoft.de/nl/

The GUI tool uses Bootstrap,Angular and Jquery internaly.



Another solution is based on spiderbasic,

Test-app: http://www.hpwsoft.de/nls/">http://www.hpwsoft.de/nls/

The language embeds various js-libs like jquery,dojo,paperjs and others

http://www.spiderbasic.com">http://www.spiderbasic.com

https://www.spiderbasic.com/showcase/onlineviewer/">https://www.spiderbasic.com/showcase/onlineviewer/



I expect to be able to use newlisp-js in modern web-apps.

Test-reports from other platforms than Windows wellcomed.

Tested on Win with IE11, Chrome 68, Firefox 61

And on Samsung Handy S3 with Chrome



Regards
#60
newLISP newS / Re: newLISP in a browser
July 25, 2018, 06:46:51 AM
Hello,



Chrome Version 68.0.3440.75 (Offizieller Build) (64-Bit) is back on full speed with  webassembly.



Firefox 61.0.1 (64-Bit) still a bit faster.



Regards