![]() The main (slightly) effective change here is to avoid disturbing loop patterns within the Rumble layer's implementation. Most of the commit is a commented out, updated version of the Scheme implementation of MRG32k3a `random`. With the latest improvements for unboxed floating-point arithmetic, performance is relatively good, but it doesn't catch up to the C compiler's output. On an x86_64 MacBook (i7 4870HQ) using LLVM or a Raspberry Pi 3 using GCC, it's about 50% slower compared to C (in contrast to 300% slower before unboxing). It's almost the same speed on a older x86_64 Linux machine (i7 2600) using GCC. Where the C compiler wins, maybe it's due to the use of SIMD instructions in the C output for x86_64 and Arm32. Switching to the Scheme implementation of `random` would probably be fine, but aisde from the satisfaction of being in Scheme, there's no reason to pay the sometimes 50% penalty for now. |
||
---|---|---|
.github | ||
pkgs | ||
racket | ||
.gitattributes | ||
.gitignore | ||
.lgtm.yml | ||
.mailmap | ||
build.md | ||
LICENSE | ||
Makefile | ||
README.md |
Racket is a general-purpose programming language and an ecosystem for language-oriented programming.
This repository holds the source code for the core of Racket plus some related packages. The rest of the Racket distribution source code is in other repositories, mostly under the Racket GitHub organization.
Quick Start
Pre-built versions of Racket for a variety of operating systems and architectures, as well as convenient source distributions are available at
https://download.racket-lang.org
Racket comes with extensive documentation, including several tutorials. You can read all of this documentation, as well as documentation for third-party packages at
Building from Source
For information on building Racket from this repository, see the Build Guide.
Contributing
Contribute to Racket by submitting a pull request, reporting an issue, joining the development mailing list, or visiting the IRC or Slack channels.
By making a contribution, you are agreeing that your contribution is licensed under the Apache 2.0 and MIT licenses. Those licenses are available in this repository in the files LICENSE-APACHE.txt and LICENSE-MIT.txt.
License
Racket is free software; see LICENSE for more details.
Friendly Environment Policy
Please see https://racket-lang.org/friendly.html