anandijain / cas3.rs

a minimal implementation of a mathematica kernel
3 stars 1 forks source link

Windows stackoverflows much sooner than Linux (Fac 5000) failing #14

Open anandijain opened 11 months ago

anandijain commented 11 months ago

Unfortunately out of the box rug doesn't build on windows, so I decided to go with num-bigint, which should have decreased compile times a bit but idk. However, (Fac 10000) no longer works on linux either, although it gets close (Fac 9000) I think still works

(Fac 5000) overflowed

warning: `cas3` (bin "cas3") generated 2 warnings (run `cargo fix --bin "cas3"` to apply 1 suggestion)
    Finished release [optimized] target(s) in 9.85s
     Running `target\release\cas3.exe`
No previous history.
Running file: lang/attrs.sexp
Running file: lang/startup.sexp
Running file: lang/calculus.sexp
(In 1) := (Fac 5000)

thread 'main' has overflowed its stack
error: process didn't exit successfully: `target\release\cas3.exe` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)

regardless i think the change is a win since i can have people just run on windows without any extra nonsense