newLISP in a browser

Started by Lutz, January 02, 2014, 01:43:18 PM

Previous topic - Next topic

Lutz

#45
A fix for the save button on non-mobile platforms in the last version.



The + and - button now hit limits to avoid flipping to the bottom by the log column.



http://www.newlisp.org/downloads/development/inprogress/newlisp-js-10.5.7.zip">http://www.newlisp.org/downloads/develo ... 10.5.7.zip">http://www.newlisp.org/downloads/development/inprogress/newlisp-js-10.5.7.zip





Ps: If any layout problems persists, it is because of saved layout settings. Worst case clear browsing data in 'Privacy Settings'

HPW

#46
Hello,



Not sure which Version did work, but the last 2 Versions does not work for me on IE11 on Win 7.

But it is only index.html which does not return from downloading.

Layout stays small.

app.html does work.

On Chrome both work.



Edit: Just test a online Version and there it works with IE11. So it does not work on local file-System and answering the security question to allow blocked Content.



Regards



Hans-Peter
Hans-Peter

Lutz

#47
I see the same with IE on windows local filesystem, it refuses to load the newlisp-js-lib.js and stays in "Downloading..". Chrome and Firefox do fine on Windows and local file system. I wonder if there are some settings inside IE which can be changed by the user. It seems not to be some inherent capability of IE, because it works on web installations.



At the moment, I am not putting too much work into making IE work under all circumstances, but will guarantee for Chrome and Firefox always to work on Windows local and web and for OSX Safari, Chrome and Firefox local filesystem and web.



When the the boxes appear stacked or else wrong, the font is either to big (do a Ctrl minus) or switch layout a couple of times, then do save to remember the new settings. For really big fonts you need certain minimum browser window size, which may not be available due to screen size restrictions. It should work for bigger fonts often used by older people.



Also, my online installation changes frequently, as it is the only way for me to test the iPad. So sometimes I am editing the files or imnstall a new newlisp-jz-10.5.7.zip. Then things may not work for a few minutes.

HPW

#48
I only wonder that it works before and that app.html still works.

Of cource not a real problem as Long we have alternatives. ;-)



Regards
Hans-Peter

Lutz

#49
app.html doesn't access the local file-system or local browser storage.

Lutz

#50
The editor IDE is now in pretty good shape, but running a lot of stuff in JavaScript compiled newLISP over the weekend, too often optimization problems and exception handling problems occur which are problems of the Emscripten compilation.



When new versions of the LLVM-Clang-Emscripten toolchain come out, I will try again. At least the LLVM and Clang parts seems to be stable. Since a few versions now, newLISP is compiled using LLVM and Clang for the OSX 9.1 (Maverick) for all OSX binary distributions. Emscripten works by taking LLVM, Clang generated low level bit code and translating it to a subset of JavaScript called asm.js, which then gets fed to the JavaScript runtime VM.



The current newlisp-js-10.5.7.zip is Ok for demo purposes but not for production work.

HPW

#51
Hello Lutz,


Quote
When new versions of the LLVM-Clang-Emscripten toolchain come out, I will try again.

The current newlisp-js-10.5.7.zip is Ok for demo purposes but not for production work.


Not so good news. I hope the Emscripten-team is aware of the problems and get them fixed.

A stable engine is a must-have to move serious projects to that engine.



Regards
Hans-Peter

Lutz

#52
Occasional problems with exceptions persist but can be defined more precisely now. See the CHANGES notes for more about this. I believe it is still possible to build stable applications with newLISP compiled to JavaScript.



It was possible to cut the size of the library in half doing more compiler optimizations. This did not make the exception problems worse. The compressed newlisp-js-lib.js.gz is now only 250K.



http://www.newlisp.org/downloads/development/inprogress/">http://www.newlisp.org/downloads/develo ... nprogress/">http://www.newlisp.org/downloads/development/inprogress/

HPW

#53
Typo in changes: to work


QuoteFor this to wordk emsdk-portable.tar.gz must be installed ....
Hans-Peter

Lutz

#54
Since the last 'newLISP in a browser' announcement many things have been added to the editor. I use it now frequently for trying out and developing smaller code portions.



The execption handling problems (setjmp(), longjmp()) only occur rarely and I hope they will go away completely with newer versions of the Emscripten tool set.



- Syntax highlighting now with CodeMirror editor. This is the same editor, Marc is using at the http://newlisp.neocortex.io/">http://newlisp.neocortex.io/ demo. He could take the syntax highlighting file from here:

newlisp-js-x.x.x/codemirror/mode/newlisp/newlisp.js



- Several dark and brigth color schemes.



- Keyboard short cuts for most buttons (click [info]).



- Automatic vertical and horizontal resizing when browser window changes and sensing of mobile device rotation.



- Tool tips for all buttons.



- line numbers can be toggled on/off.



Access it here: http://www.newlisp.org/newlisp-js/">http://www.newlisp.org/newlisp-js/



The info page has a link to the source package. At least for me, a bluetooth keyboard connected to the iPad did not work with the CodeMirror editor. I hope this is something getting fixed soon by the Emscripten team.

johu

#55
Hello, Lutz.



For Stable Release or Development version,



in newlisp_manual.html

line 1430
QuotenewLISP code and JavaScript code together. Bot languages can call

                     ↓

newLISP code and JavaScript code together. But languages can call

line 7309
Quote<table border="0" cellpadding="1" width="95%" align="center" summary="Reflection and customization">

                                 ↓

<table border="0" cellpadding="1" width="95%" align="center" summary="API for newLISP in a web browser">

line 12401



might be added

Because there is between display-html and div.





in README.html

line 309
Quote        (eval-string-js (string "GetUrl('" url "')"))

                  ↓

        (eval-string-js (string "GetUrl('" url "')")) )

line 322
Quotenew webpage. When evaluating the following snipped in the editor box,

                     ↓

new webpage. When evaluating the following snippet in the editor box,


Thanks,

Lutz

#56
Thank you very much for all the corrections Johu.



Everything is online here: http://www.newlisp.org/newlisp-js/">http://www.newlisp.org/newlisp-js/

HPW

#57
Quote....and I hope they will go away completely with newer versions of the Emscripten tool set.


Since some time/versions have passed, is there any Progress in newer versions of the Emscripten tool set for more stable newlisp-implementations?



Regards
Hans-Peter

Lutz

#58
The current version at http://newlisp.org/newlisp-js">http://newlisp.org/newlisp-js was installed on September 16th and based on the latest version of Emscripten. All exception handling problems fortunately have disappeared :) On all platforms it runs best on Firefox.

HPW

#59
Hello Lutz,



Good News, It would be interesting to try newlisp in a browser combined with one of the popular JavaScript-GUI-frameworks for example: http://www.jqwidgets.com/jquery-ui-widgets-toolkit/">http://www.jqwidgets.com/jquery-ui-widgets-toolkit/



Regards
Hans-Peter