soegaard2
2021-2-13 10:47:32

I found the long form in the dissertation easier to understand.


badkins
2021-2-13 19:18:35

<https://docs.racket-lang.org/guide/performance.html?q=fixnum|19.8 Fixnum and Flonum Optimizations> states “On a 64-bit machine, 60–62 bits plus a sign bit are available.” Why the range? On my Macbook Pro, it seems 60 bits is the max for a fixnum?


soegaard2
2021-2-13 19:19:28

I think, it is 62 for bc and 60 for cs (or perhaps the other way around).


badkins
2021-2-13 19:19:42

I’m running CS, so I guess 60 for CS.


soegaard2
2021-2-13 19:21:30

#lang racket (let loop ([n 1] [i 0]) (displayln (list n i (fixnum? n))) (when (fixnum? n) (loop (* 2 n) (+ i 1))))


badkins
2021-2-13 19:22:26

need a sub1


soegaard2
2021-2-13 19:22:59

yes, that’s better


soegaard2
2021-2-13 19:31:56

If you happen to have Chez Scheme installed, you can try (most-positive-fixnum).


laurent.orseau
2021-2-13 19:33:51

I’d feel better if you implemented a bisection search after the exponential phase :sweat_smile:


samth
2021-2-13 19:48:27

Or (vm-eval '(most-positive-fixnum)) in Racket


yilin.wei10
2021-2-14 00:49:05

Would they share the same stdlib?


dyllongagnier
2021-2-14 06:20:40

Is there a nice way to upgrade my Racket install so that I don’t have to reinstall and setup everything again? I use both Windows and Linux so solutions for either/both would be appreciated. On Windows I just install via the installer, but on Linux I use the script installer in a single directory rather than a machine wide install.