Search found 72 matches

by kosh
Sun Sep 27, 2020 5:51 pm
Forum: Anything else we might add?
Topic: error in newlisp 10.7.1
Replies: 6
Views: 5240

Re: error in newlisp 10.7.1

Well.. From the looks of it, the code seems to be fine. And the code is parsed correctly in my environment. Of course the execution will fail, but not raise parse error. C:>curl -o file.lsp https://pastebin.com/raw/25z78mp3 C:>newlisp.exe .\file.lsp ERR: value expected in function read-line : f call...
by kosh
Sat Sep 26, 2020 6:18 pm
Forum: Anything else we might add?
Topic: error in newlisp 10.7.1
Replies: 6
Views: 5240

Re: error in newlisp 10.7.1

1. Could you show me that code? https://pastebin.com/, https://gist.github.com/, etc 2. Also, please make sure again that newlisp.exe supports UTF-8 C:\>newlisp.exe -v --- I'm not using newLISP GS. However, it doesn't seem to fully support UTF-8. For example: Run "guiserver/widget-demo-jp.lsp", you ...
by kosh
Fri Sep 25, 2020 5:01 pm
Forum: Anything else we might add?
Topic: error in newlisp 10.7.1
Replies: 6
Views: 5240

Re: error in newlisp 10.7.1

for example I got error like ERR: missing parenthesis : "...oin fline \",\"))\r\n(close fo)\r\n(close f�F�"
Please check that the number of parentheses in the file you are editing is balanced.

It would be safer to edit with an alternative editor (e.g. Notepad++)
by kosh
Mon Jul 22, 2019 10:13 am
Forum: newLISP in the real world
Topic: Church encoding
Replies: 2
Views: 3076

Re: Church encoding

lambda.lsp: https://gist.github.com/kosh04/262332

This is my newlisp snippet (Incomplete & Comments are written in japanese).
It may be useful something.
by kosh
Tue Dec 18, 2018 3:24 pm
Forum: newLISP and the O.S.
Topic: Installing on Cygwin
Replies: 1
Views: 3182

Re: Installing on Cygwin

Try install icmp6.h included in glibc source manually.

(Cygwin does not provide glibc. see https://cygwin.com/faq.html#faq.programming.glibc)

Example:

Code: Select all

$ curl -OLsk https://github.com/bminor/glibc/raw/master/inet/netinet/icmp6.h
$ install -D icmp6.h /usr/include/netinet/icmp6.h
by kosh
Tue Jul 26, 2016 8:33 pm
Forum: Whither newLISP?
Topic: mat BUG
Replies: 2
Views: 7720

mat BUG

Hello Lutz. "mat" function returns incorrect value on 64-bit system. (This problem is confirmed on Windows and macOSX both 32/64-bit) C:\>newlisp -v newLISP v.10.7.0 32-bit on Windows IPv4/6 UTF-8 libffi. C:\>newlisp -e "(mat * '((1 2 3) (4 5 6)) -1)" ((-1 -2 -3) (-4 -5 -6)) C:\>newlisp-x64 -v newLI...
by kosh
Sun Oct 18, 2015 12:42 pm
Forum: newLISP in the real world
Topic: newLISP in a browser in MS edge
Replies: 8
Views: 9127

Re: newLISP in a browser in MS edge

HPW wrote:But Chrome 47? For me there is only Chrome 46 stated as current.
for details, I use Chrome 47.0.2526.16 beta-m.

http://googlechromereleases.blogspot.jp ... te_15.html
by kosh
Sun Oct 18, 2015 10:07 am
Forum: newLISP in the real world
Topic: newLISP in a browser in MS edge
Replies: 8
Views: 9127

Re: newLISP in a browser in MS edge

Thanks. I tried taking benchmark again. Windows 10 32-bit Intel Core2 Duo CPU L9300 1.60GHz Microsoft Edge >>>>> total time: 4606 >>>>> Performance ratio: 7.70 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit) Internet Explorer 11 >>>>> total time: 14046 >>>>> Performance ratio:23.0...
by kosh
Thu Oct 15, 2015 5:26 pm
Forum: newLISP in the real world
Topic: newLISP in a browser in MS edge
Replies: 8
Views: 9127

Re: newLISP in a browser in MS edge

I have no idea about How to benchmarking newlisp-js ... So I tried run "Merge sort benchmark" on newlisp-js. http://www.newlisp.org/index.cgi?page=MergesortBenchmark http://www.newlisp.org/newlisp-js/ ;; try 10 times, and take those avarage (div (time (dotimes (i 3000) (mergesort numbers)) 10) 10) M...
by kosh
Wed Oct 14, 2015 12:40 pm
Forum: newLISP in the real world
Topic: newLISP in a browser in MS edge
Replies: 8
Views: 9127

Re: newLISP in a browser in MS edge

HPW wrote:Does 'newLISP in a browser' run on MS win 10 browser edge?
Yes. newlisp-js will works fine on Microsoft Edge. I have Windows 10 Insider Preview 32-bit.
by kosh
Thu Sep 24, 2015 3:17 pm
Forum: newLISP newS
Topic: newLISP v.10.6.4 development
Replies: 12
Views: 16492

Re: newLISP v.10.6.4 development

Nice work, Lutz. However newlisp-10.6.4.tgz can not be decompressed. $ curl -O http://www.newlisp.org/downloads/development/newlisp-10.6.4.tgz $ tar xf newlisp-10.6.4.tgz tar: Unrecognized archive format tar: Error exit delayed from previous errors. $ shasum * 82c51584a894e6f8dc02597d9ddfb68bd836966...
by kosh
Wed Sep 16, 2015 5:31 pm
Forum: Whither newLISP?
Topic: Can not load empty file
Replies: 2
Views: 5856

Can not load empty file

Hi. A error occurred in loadin empty file. It should be return a nil? $ touch empty.lsp $ newlisp newLISP v.10.6.3 64-bit on OSX IPv4/6 UTF-8 libffi, options: newlisp -h > (load "empty.lsp") ERR: problem accessing file in function load : "empty.lsp" > (eval-string "") ; passing empty string nil
by kosh
Sun Aug 09, 2015 8:40 pm
Forum: newLISP newS
Topic: newLISP Development Release v.10.6.3
Replies: 30
Views: 35498

Re: newLISP Development Release v.10.6.3

Thanks for the configure-alt fix. It works now, but on a Windows 7 64-bit systems it also compiles a 32-bit newlisp.exe and without libffi using the TDM GCC 64 toolset. I am not too concerned about this, as we have working Windows 32/64-bit compilations using the normal configure script and the TDM...
by kosh
Mon Jul 13, 2015 9:06 pm
Forum: newLISP newS
Topic: newLISP Development Release v.10.6.3
Replies: 30
Views: 35498

Re: newLISP Development Release v.10.6.3

Lutz, Thanks for applying my patch. I found some other compile problems. 1. configure-alt: still `os_type` is set to WIN_32/64 diff --git a/configure-alt b/configure-alt index 1994097..d1bfb73 100755 --- a/configure-alt +++ b/configure-alt @@ -70,8 +70,8 @@ case `uname` in SunOS) true ${os_type:=SUN...
by kosh
Mon May 18, 2015 6:28 pm
Forum: newLISP in the real world
Topic: How to unpack NULL string in libffi
Replies: 2
Views: 3450

How to unpack NULL string in libffi

`unpack` function with LIBFFI segfault when variable type "char*" is NULL. struct string { char *ptr; size_t len; }; newLISP v.10.6.2 32-bit on Win32 IPv4/6 UTF-8 libffi, options: newlisp -h > (struct '_struct_string "char*" "long") _struct_string > (setf s (pack _struct_string 0 0)) "\000\000\000\0...
by kosh
Sun Apr 12, 2015 1:02 pm
Forum: newLISP and the O.S.
Topic: mingw64 build patch
Replies: 22
Views: 19490

Re: mingw64 build patch

I also confirmed this IO problem. $ newlisp64.exe -n > (setf str (string (dup {X} 2049) {HELLO})) [text]XXXX...<repeat 2049 times>HELLO[/text] > (println str) XXXX...<repeat 2049 times> It seems that cause internal output function `my_vasprintf` (in nl-filesys.c, called from varPrintf) `vasprintf` h...
by kosh
Thu Apr 02, 2015 3:10 pm
Forum: newLISP and the O.S.
Topic: mingw64 build patch
Replies: 22
Views: 19490

Re: mingw64 build patch

> but only for IPv4. Perhaps IPv6 is not supported in the tdm version of mingw gcc? Hve not looked into it yet. Maybe, It because you use variable `defaultIn` without zero-initialization. https://github.com/kosh04/newlisp/compare/feature/mingw-w64#diff-ab3071b4db4911dec3a809c84f1a5cbfL159 initDefaul...
by kosh
Thu Mar 19, 2015 8:31 pm
Forum: newLISP and the O.S.
Topic: mingw64 build patch
Replies: 22
Views: 19490

Re: mingw64 build patch

Lutz, you have completed the setup of new Windows machine?

As an aside, http://tdm-gcc.tdragon.net/ provide "TDM32 Packages". so it works on 32-bit Windows XP.
Of course, a generated newlisp.exe runs on 64-bit Windows.
by kosh
Thu Feb 19, 2015 1:18 pm
Forum: newLISP and the O.S.
Topic: screenshot in Win7
Replies: 4
Views: 6797

Re: screenshot in Win7

Try translate to newLISP: (import "user32" "GetDC") ; HDC GetDC(HWND hWnd); (import "user32" "ReleaseDC") ; int ReleaseDC(HWND hWnd, HDC hDC); (import "gdi32" "GetPixel") ; COLORREF GetPixel(HDC hdc, int nXPos, int nYPos); (define (get-pixel point) (letn ((h (GetDC 0)) (color (GetPixel h (first poin...
by kosh
Wed Feb 18, 2015 8:43 pm
Forum: newLISP and the O.S.
Topic: mingw64 build patch
Replies: 22
Views: 19490

Re: mingw64 build patch

makefile_mingwLLP64_utf8 is here: # makefile for newLISP v. 10.x.x on MinGW-w64 with UTF-8 support OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o nl-sock.o \ nl-import.o nl-xml-json.o nl-web.o nl-matrix.o nl-debug.o pcre.o nl-utf8.o win-util.o win-path.o CFLA...
by kosh
Mon Feb 16, 2015 7:48 pm
Forum: newLISP and the O.S.
Topic: mingw64 build patch
Replies: 22
Views: 19490

Re: mingw64 build patch

Thanks Lutz for merge patch. I found a missing code in newlisp.h (newlisp-10.6.3.tgz) #undef NEWLISP64 #if defined(_LP64) || defined(_WIN64) #define NEWLISP64 #endif and qa-specific-tests/qa-local-domain (for `make testall`) diff --git a/qa-specific-tests/qa-local-domain b/qa-specific-tests/qa-local...
by kosh
Sat Feb 14, 2015 7:16 pm
Forum: newLISP and the O.S.
Topic: mingw64 build patch
Replies: 22
Views: 19490

mingw64 build patch

Hi Lutz. I wrote patch file for builds with MinGW-w64 gcc. Changes are following: - Define UINT as pointer size integer (stdint.h, uintptr_t) - Use type conversion macros for printf (inttypes.h, PRIdPTR) - Auto detect 64-bit memory model (LP64/LLP64) using C pre-defined macros - nl-sock.c: bugfix no...
by kosh
Thu Dec 25, 2014 7:01 am
Forum: newLISP newS
Topic: Alternative git repository
Replies: 8
Views: 14341

Re: Alternative git repository

This repository has moved to github.
- https://github.com/kosh04/newlisp

and It has introduced continuous integration.
- https://travis-ci.org/kosh04/newlisp
by kosh
Thu Sep 18, 2014 1:23 pm
Forum: So, what can you actually DO with newLISP?
Topic: complex arithmetics
Replies: 2
Views: 5556

Re: complex arithmetics

There is a point to problem. > (constant '*2pi* (mul 3.14159265358979323846264338327950288419716939937510 2)) 3.159714599e+020 > (read-expr "(mul 3.14159265358979323846264338327950288419716939937510 2)") (mul 3.141592653589793115997963468544185161590576171875 50288419716939937510L 2) newlisp parser ...