Hi folks! Much appreciation for last week's submissions!
I've been looking at Spritely Goblins(https://docs.racket-lang.org/goblins/intro.html), which is an object system following the actor model. I want to try to use it to hack something up(in GUILE) that can monitor different machines in a cluster(assuming an agent is present in each node) What's interesting, is some of the historical context from which it borrows some of it's implementations from. You can read some of that here: http://erights.org/elib/distrib/captp/index.html. Ports of Goblins to other PL would be really cool!
Issue 2: https://is.gd/EKppEK
Mailing List Discussion: https://is.gd/WVnUzj
If you get the bandwidth, hack at the problems at the submission links above-- It's a nice way to get comments on your code \m/\m/.
Source: Anonymous
Reverse the bits given a binary number
Constraints: Do not do any string conversion(and string reversal)!
Examples:
Input: n = 0b1011
Output: 0b1101
Post your answers here as comments.
This feels like cheating but here is the actual code I'd use in production.
I'll post an imperative algorithm in a few.