Closed sogaiu closed 1 year ago
I'm seeing the same issue with (- (int/u64 "0xFF_FF_FF_FF") 1)
being equal to (int/u64 "0xFF_FF_FF_FF")
on an Apple Silicon M1 as well.
Ah, so may be it's an ARM thing of some sort.
I tried 8183cc5a8dc6fa7beeddb434ed26db966bf8aee5 and things look better there.
Thanks @bakpakin!
@sogaiu which repo of termux provide janet?
@yunfan I build from source.
I think the instructions which start at this comment may still be relevant. Some of the dependencies are:
pkg install binutils clang git libandroid-spawn make
FWIW, I do a "user" install via the Makefile
with an invocation like this from the janet source directory:
make clean && PREFIX=$HOME/.local make && PREFIX=$HOME/.local make install
Also, my ~/.profile
has at least:
export PATH=$HOME/.local/bin:$PATH
in it.
On an Android device (aarch64) via termux, I got a strange result when subtracting
1
from(int/u64 "0xFF_FF_FF_FF")
:(Output above edited to space things out.)
The surprise was that subtracting
1
from(int/u64 "0xFF_FF_FF_FF")
did not yield a result different from(int/u64 "0xFF_FF_FF_FF")
.Trying with some other values like
2
and127
:It is as if nothing was subtracted.
When subtracting
-1
or0
, things seem ok:The version of janet used was 5437744126f86a352f93187099cdd5820715ad7f.