Re: picoLisp 19.12: variable length array in structure fixes

2020-05-22 Thread C K Kashyap
Super ...Congratulations Andras! I just gave it a spin and it just worked. I generated 64bit and 32bit executables (after installing libffi-dev and libffi-dev:i386) and tried (call "ls") :) I am particularly happy since I will be able to reference C code for the FFI implementation that I

Re: picoLisp 19.12: variable length array in structure fixes

2020-05-22 Thread Alexander Burger
Hi Andras, > The code at https://github.com/pahihu/picoLisp > fulfils Mike’s super > goal - all pil64 specific tests passed as well. It has namespaces, > native C calls and coroutines and the documented features of > pil64 - except the external symbol and

Re: picoLisp 19.12: variable length array in structure fixes

2020-05-22 Thread Andras Pahi
Hi all, The code at https://github.com/pahihu/picoLisp fulfils Mike’s super goal - all pil64 specific tests passed as well. It has namespaces, native C calls and coroutines and the documented features of pil64 - except the external symbol and database format.

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-21 Thread Guido Stepken
Interesting. You might have also run into no "excution bits" on Intel hardware: https://releases.llvm.org/8.0.1/docs/SpeculativeLoadHardening.html https://en.wikipedia.org/wiki/NX_bit In Lisp, "code is data, data is code". There simply is no separation the like - "code here, data there".

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-21 Thread Mike
> Maybe not related to this one, but on Mac OS X the heap size is limited > to 65532KB. On startup picolisp fails to set the unlimited stack size, > And use the actual ulimit so on the first run I’ve got a SIGSEGV running > code2015.l > Indeed! I always forget this requirement on Openbsd. $

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-21 Thread Andras Pahi
Hi, Maybe not related to this one, but on Mac OS X the heap size is limited to 65532KB. On startup picolisp fails to set the unlimited stack size, And use the actual ulimit so on the first run I’ve got a SIGSEGV running code2015.l Andras > On 2020. Apr 21., at 10:38, Mike wrote: > > hi all,

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-21 Thread Mike
hi all, > If you are interested I have patched the 19.12 32bit sources to compile > without GCC. > I have attached the changed files: pico.h, main.c, apply.c and flow.c > > Since clang does not support variable length array in structures I allocate > the bindFrame > with alloca() and provided

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-20 Thread Guido Stepken
Linux, here Debian GNU/Linux, allows parallel installation of 32/64 bit libraries ... https://wiki.debian.org/Multiarch/HOWTO Sometimes "apt-get install ia32-libs" helps. Have fun! Am Montag, 20. April 2020 schrieb Mike : > April 20, 2020 11:01 AM, "Andras Pahi" wrote: > >> Hi Mike, >> >>

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-20 Thread Mike
April 20, 2020 11:01 AM, "Andras Pahi" wrote: > Hi Mike, > > pil32, x64 means you’ve built the contents of the src/ dir in x64 mode ? > pil32, x64 - means gcc and voidlinux-x64 compiled-supports multilib. I use pil32 and pil64 on the same machine, I always in pil64, but can switch fast.

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-20 Thread Andras Pahi
Hi Mike, pil32, x64 means you’ve built the contents of the src/ dir in x64 mode ? Thanks, Andras > There are more numbers for the only task "advent2015": > pil64, x64 - 1 min > pil32, x64 - 9 min > pil32, 686 - 9 min > pil32, 686, -O3 - 7 min > VLA patch, 686 - 10 min > > (mike) > > -- >

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-20 Thread Mike
> > You don’t need energy, you need some patience. > Hard get patience when code running 9x slower :) Its awesome your patch is working and correct, congratulations! There are more numbers for the only task "advent2015": pil64, x64 - 1 min pil32, x64 - 9 min pil32, 686 - 9 min pil32, 686, -O3

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-19 Thread Andras Pahi
Hi Mike, You don’t need energy, you need some patience. Andras ===> time pil huge.l -bye OK-UTF8 OK-Montgomery OK-Leibniz OK-math OK-forth OK-parse2list OK-mapreduce OK-pow OK-destr OK-test-car OK-bitwise # reduce redefined # pow redefined OK-4clojure # pow redefined OK-AoC15 OK-SimplyScheme #

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-19 Thread George-Phillip Orais
Hi tankf33der, Thanks for sharing your huge.l test, I tried it on my pil64 on WSL and all passed! 20:27 $ pil huge.l + OK-UTF8 OK-Montgomery OK-Leibniz OK-math OK-forth OK-parse2list OK-mapreduce OK-pow OK-inc-db # worker redefined # +Inc c redefined OK-inc-db-v2 OK-destr OK-test-car OK-bitwise

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-19 Thread Mike
hi all, > If you are interested I have patched the 19.12 32bit sources to compile > without GCC. > I have attached the changed files: pico.h, main.c, apply.c and flow.c My testing status for https://github.com/picolisp/picolisp 1. pil @lib/test.l + clang - ok clang+asan - ok tcc-git-

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-18 Thread Alfonso Villén
Hello, with your patches, I've compiled Picolisp on 32-bit Termux + Clang without any problems. Thanks a lot! Great job! Greetings Alfonso V. Andras Pahi schrieb am Sa., 18. Apr. 2020, 20:00: > Hello, > > If you are interested I have patched the 19.12 32bit sources to compile > without GCC.

Re: picoLisp 19.12: variable length array in structure fixes

2020-04-18 Thread Alexander Burger
Hi Andras, > If you are interested I have patched the 19.12 32bit sources to compile > without GCC. > I have attached the changed files: pico.h, main.c, apply.c and flow.c Thanks a lot! > Since clang does not support variable length array in structures I allocate > the bindFrame > with

picoLisp 19.12: variable length array in structure fixes

2020-04-18 Thread Andras Pahi
Hello, If you are interested I have patched the 19.12 32bit sources to compile without GCC. I have attached the changed files: pico.h, main.c, apply.c and flow.c Since clang does not support variable length array in structures I allocate the bindFrame with alloca() and provided a macro in