Rubinius is an implementation of the Ruby language spec. I’ve been using it recently for a project, and I’ve been liking it so far. Here’s a few thoughts I’ve been having while using it.
Philosophy
The Core
Rubinius, in its core, is written in C++ and uses LLVM (Low Level Virtual Machine). Without getting too technical, it translates the Ruby code that you write into efficient machine code, then executes the machine code directly on the CPU. This architecture is very similar to Google’s V8 (and one of the reasons that Google Chrome is a fast browser).
A week ago, I posted Automate your Workflow: Local WordPress Install with a script that helps you install new WordPress installations. I’ve been using it regularly, and have made some improvements:
Multi-language support (install a different language with the -l switch)
Lately, I’ve been pretty obsessed with streamlining my workflow, which means writing scripts (read: building tools to do stuff for me). They say that the best programmers are the laziest; I can’t vouch for being a great programmer, but I can proudly say that I am pretty lazy.
So, I’ve decided to start cleaning up my tools and posting them here as I make them. Use at your own risk!
In the past few weeks, I’ve found myself demonstrating how to do things on my computer for other people. You know, screenshots, screencasts, the like.
I ran into a small problem: Most of the people I need to teach don’t understand English.
And my default user interface is in English.
So, I ran into this little trick:
$ [path to app]/Contents/MacOS/[app name] -AppleLanguages '([language code])'
That little bit of Terminal code will launch that app in the specified language code you entered, if supported by that application. For those of you who don’t have 10 terminal windows open at any given time, don’t worry! I’ve made something for you too. :)
There’s a Japanese word I like, “謎” - the dictionary defines it as “a mystery”, “riddle”, or “enigma” - I like to define it as “something that makes no logical sense whatever”.
Here is a part of WordPress that I think makes no logical sense whatever.
Inconsistent Naming Convention
In The Loop, as WordPress likes to call it, you are given some functions that will output information for you. Handy!