wanpeebaw
2020-5-12 07:29:29

mark.warren
2020-5-12 12:00:23

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.


soegaard2
2020-5-12 12:02:02

@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”.


soegaard2
2020-5-12 12:04:41

@mark.warren Haven’t tried them, but take a look here: http://code_man.cybnet.ch/code.html


mark.warren
2020-5-12 12:05:35

@soegaard2 Thanks I’ll have a look


cseli
2020-5-12 17:04:31

Thank you @wanpeebaw !!!


krismicinski
2020-5-13 01:10:38

I have kind of a beginner question. I’m doing some bit-related stuff where I’m trying to replicate a C++ hash function


krismicinski
2020-5-13 01:10:59

Should I just be able to use all of Racket’s normal bitwise and and or stuff on number?s?


krismicinski
2020-5-13 01:11:18

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++


krismicinski
2020-5-13 01:12:56

Looks like the answer is that I want Racket fixnums


samth
2020-5-13 01:21:47

There’s not a great answer for 64 bit math if you want that


samth
2020-5-13 01:22:15

If you don’t care about performance you can just work mod 2**64


samth
2020-5-13 01:22:59

Because the fixnum operations will not give you c++ like 64 bit math


krismicinski
2020-5-13 01:23:06

yeah, I do want the 64-bit math :slightly_smiling_face:


krismicinski
2020-5-13 01:23:13

I don’t care a ton about perf, though


samth
2020-5-13 01:23:13

Since they are 62 bit


krismicinski
2020-5-13 01:23:30

I see, ok, similar to ocaml giving 63


samth
2020-5-13 01:23:35

Then I recommend just using modulo


krismicinski
2020-5-13 01:23:47

Okay, that makes sense


samth
2020-5-13 01:24:08

Ocaml and racket are the same here, but both are 63 bit signed


samth
2020-5-13 01:24:20

And you can’t do “unsigned” math


krismicinski
2020-5-13 01:24:38

I see, right, further reason to just work mod 2**64


krismicinski
2020-5-13 01:25:04

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