Thought I’d repost this here as general produced no luck. Can anyone recommend a package for 3d games in Racket? I would like to be able to import Blender files or another standard 3d format if possible.
@wanpeebaw Nice find. Hopefully he won’t run out of steam. He kind of cheated in his solution to the “find the sum of the squares of the two largest (of three) numbers”.
@mark.warren Haven’t tried them, but take a look here: http://code_man.cybnet.ch/code.html
@soegaard2 Thanks I’ll have a look
Thank you @wanpeebaw !!!
I have kind of a beginner question. I’m doing some bit-related stuff where I’m trying to replicate a C++ hash function
Should I just be able to use all of Racket’s normal bitwise and and or stuff on number?
s?
I guess the thing that concerns me is that I think I want the 64-bit hash to overflow in the same way as C++
Looks like the answer is that I want Racket fixnums
There’s not a great answer for 64 bit math if you want that
If you don’t care about performance you can just work mod 2**64
Because the fixnum operations will not give you c++ like 64 bit math
yeah, I do want the 64-bit math :slightly_smiling_face:
I don’t care a ton about perf, though
Since they are 62 bit
I see, ok, similar to ocaml giving 63
Then I recommend just using modulo
Okay, that makes sense
Ocaml and racket are the same here, but both are 63 bit signed
And you can’t do “unsigned” math
I see, right, further reason to just work mod 2**64
that’s fine. This isn’t really something that needs to be perf equivalent. It’s just a little proof-of-concept racket-based implementation of a C++ thing