Re: a floating point math library for 64 bit PicoLisp

2016-01-25 Thread Mike Pechkin
hi, i was wrong, i take a part of my words back. problem in native.l, not gcc.l patch attached, now sunos works: # pil + : (load "@lib/fp.l") -> dmodf : (s2r "11.11") -> 1093780111 : (cons *OS *CPU (== 64 64)) -> ("SunOS" "x86-64" . T) : On Mon, Jan 25, 2016 at 2:13 PM, Mike Pechkin

Re: a floating point math library for 64 bit PicoLisp

2016-01-25 Thread Alexander Burger
Hi all, > patch attached, now sunos works: Thanks Mike! I've released a new version (16.1.25) with the patch. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: a floating point math library for 64 bit PicoLisp

2016-01-25 Thread Alexander Burger
Thanks Greg!! Perhaps it would be good if you plant also a link somewhere in the wiki at picolisp.com? ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: a floating point math library for 64 bit PicoLisp

2016-01-25 Thread andreas
+0200 Subject: Re: a floating point math library for 64 bit PicoLisp 1. (gcc) not ported to Solaris 2. # pil + : (load "@lib/fp.l") -> dmodf : (test 1065353216 (s2r "1.0")) !? (native "/root/.pil/tmp/10225/fp" "s2r" 'I X) [DLL] ld.so.1: picolisp: fata

Re: a floating point math library for 64 bit PicoLisp

2016-01-25 Thread Mike Pechkin
1. (gcc) not ported to Solaris 2. # pil + : (load "@lib/fp.l") -> dmodf : (test 1065353216 (s2r "1.0")) !? (native "/root/.pil/tmp/10225/fp" "s2r" 'I X) [DLL] ld.so.1: picolisp: fatal: /root/.pil/tmp/10225/fp: wrong ELF class: ELFCLASS32 ? On Sun, Jan 24, 2016 at 10:49 AM, Mike

Re: a floating point math library for 64 bit PicoLisp

2016-01-25 Thread Mike Pechkin
I run pil64 under Solaris 11 on x64 On Mon, Jan 25, 2016 at 11:46 AM, wrote: > compile the library as 64bit. (native) is a 64bit-pil-only functionality, > naturally it only supports interfacing with 64bit libraries (confirmed by > Abu).-

Re: a floating point math library for 64 bit PicoLisp

2016-01-25 Thread Mike Pechkin
> have you compiled fp.c 64bit too ? ​you missed the point:​ o) look at my original email o) i've tested *inline* version o) gcc function not ported to solaris and doesnt have default branch in case to fatal. (file gcc.l) o) on linux library works

Re: a floating point math library for 64 bit PicoLisp

2016-01-24 Thread Mike
i will test on solaris 11 next week > On 24 янв. 2016 г., at 10:33, Greg Lee wrote: > > Hello everyone. > > I recently discovered PicoLisp, and like a few other newcomers, I was > initially disappointed to find that there was no support for floating point >

a floating point math library for 64 bit PicoLisp

2016-01-24 Thread Greg Lee
Hello everyone. I recently discovered PicoLisp, and like a few other newcomers, I was initially disappointed to find that there was no support for floating point arithmetic. After reading the excellent documentation, I came to understand why that is so and also why fixed point arithmetic

Re: a floating point math library for 64 bit PicoLisp

2016-01-24 Thread Alexander Williams
Hi Greg, This is quite impressive, particularly for a first time Lisper. Great job! I haven't tested it, but the code looks good. Thanks for the contribution. AW *https://aw.github.io/picolisp * On Sun, Jan 24, 2016 at 8:33 AM, Greg Lee

Re: a floating point math library for 64 bit PicoLisp

2016-01-24 Thread Jakob Eriksson
I like it! Back when we needed float, we just used C, but your way is nicer  > 25 jan. 2016 kl. 06:12 skrev Alexander Williams : > > Hi Greg, > > This is quite impressive, particularly for a first time Lisper. Great job! > > I haven't tested it, but the code looks good.