Bit Twiddling with Ruby's Array#pack | C++ | Compiler Hacking

Share this & earn $10
Published at : October 01, 2021

Ruby has a really neat method on Array called "pack" -- one of the things it can do is interpret an ASCII string as binary data. Let's teach Natalie how to do that!

About the Project: Natalie is a very early-stage work-in-progress Ruby implementation that compiles Ruby to an executable. It does so by compiling Ruby to C++ and feeding it to gcc or clang to produce a binary.

GitHub: https://github.com/seven1m/natalie

Twitter: https://twitter.com/timmrgn
Discord: https://discord.gg/hnHp2tdQyn
YouTube: https://www.youtube.com/timmorgan


#programming #compiler #ruby #array #pack #binary #bits Bit Twiddling with Ruby's Array#pack | C++ | Compiler Hacking
rubyprogrammingprogramming languages