Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 7
  1. Downcasting Arcs in Rust

    The Arc type is Rust’s thread-safe smart pointer, and like other pointer types in Rust (e.g., Box), one can use the as keyword1 to cast an Arc<MyStruct> into an Arc<dyn MyTrait>, as long as MyTrait is dyn compatible.

  2. Every now and then, when one writes assembly code by hand, one notices opportunities for optimisation.

  3. If you’re not familiar with the Fast Inverse Square Root algorithm, I thoroughly recommend reading about it before continuing.

  4. Solving Super Six

    Super Six (a.k.a Rio and plenty of other names) is not a good game, it’s repetitive, heavily luck dependent, and repetitive.

  5. The other day I happened upon a post by Chris Barrick detailing how to encode a tic-tac-toe game state in 15 bits, itself a response to an earlier post by Alejandra González detailing how to encode a tic-tac-toe state in 18 bits.

  6. Recently I’ve had my 33rd birthday and since I’m a nerd I also checked the binary representation of that number, which is 100001.

  7. Let’s say you’ve worked a few years on an open source project released under the GNU General Public License (GPL) and let’s say you’ve spied an application that is eerily similar to your project but whose owner claims no infringement of your rights.