When running gsl from pony I get incorrect results like sqrt(9) = 9
here is the binding i used :
main.c : https://gist.github.com/afritfr/bedf3a898b674b06b6a8b2ac5ee8b3c9
sqrt.pony : https://gist.github.com/afritfr/6239d0a55ab9bb4cb583615c523b9b21
Everything works just fine when running the main function in c, but when pony calls the same function I get the previously stated error.
I compiled pony with the following command : make arch=armv8-a ( that do support 64 bit instructions I think ).
I'm running Ubuntu mate 16.04 LTS ( https://ubuntu-mate.org/download/ )
pony version : 0.2.1-984-g6473b37 [debug]
gsl version : gsl-2.1
Thanks for reporting @afritfr
@afritfr - is this reproducible only on ARM, or can it be reproduced on an x86 machine as well?
@jemc : Well i think my mac is X86 compatible and i don't have the same problem I've got with the raspberry. when i run the command "uname -m" i get x86_64.
okay, thanks - the fact that it doesn't reproduce on x86_64 is helpful to know
We haven't tested on 64 bit ARM and technically haven't ported to it yet. Its possible there are bugs that need to be worked out.
We are going to test on the 32 but to see if there is the same issue and then loop back around.
@lispmeister is handling the testing.
I have an Rpi3, and I am pretty sure it is an armv7, not 8. So it is 32 bits.
@pdtwonotes according to the website : https://www.raspberrypi.org/magpi/raspberry-pi-3-specs-benchmarks/
it is a ARM Cortex-A53
according to ARM's website : http://www.arm.com/products/processors/cortex-a/cortex-a53-processor.php