
Are there examples of solutions to the expression problem in Racket?


What’s everyone working on this week (46/2019)? https://groups.google.com/forum/#!topic/racket-users/_3mTn5aa9UU New week, new Racket! What are you folks up to? Answer here, racket-users or at /r/racket !


(shamelessly copied from r/rust)


Hi @mflatt, Is it intentional that a built-in struct property accessor , e.g. custom-write-accessor
, doesn’t pass struct-type-property-accessor-procedure?
?

No. That looks like a bug in the construction of custom-write-accessor
and similar in non-CS Racket.

Got you.

How do I find if the current machine is x86 or not?

(system-type 'machine)
seems to do it, but it seems very difficult to parse

On my Windows system it does not seem to indicate CPU arch > (system-type 'machine)
"Windows NT 10.0 (Build 18362)"

(system-library-subpath)
should have the arch, but there isn’t an ideal function for this.

Beware that there isn’t really a standardized list of architecture names

The closest thing to that is the name registry used by Go in the $GOARCH
environment variable. That list is a de facto standard because the spec for Docker images references it (because most of Docker was built in Go).

The arch specifiers provided by (system-library-subpath)
are chosen by racket; they’re not reported by the OS.

@sorawee you can look for x86_64
or i386
in the result