programming language translation
February 10th, 2006 by mmevesis probably a well-established field of inquiry, but I know nothing about it.
I was looking for the equivalent of php’s array_diff() in ruby, and I found this:
http://pleac.sourceforge.net/
It’s an attempt to solve a set of common programming problems with an assortment of different languages.
Each time I learn a new programming language I am struck by the awkward fumbly-ness of going from a language I am adept at to another I am a novice at. (java to perl, perl to php, php to javascript, and now ruby). You would expect that each successive language would come easier, and that thereby the process would be progressively more and more rewarding but in fact, the opposite is true: Taking on new languages is like taking on a new lover.  With each new nuance and idiosyncracy you discover, you find yourself missing the comfortable familiarity of the old. You unwittingly gather in your mind a set of all pleasant and fulfilling features against which you impossibly compare each new instance, and as you get progressively more bitter and jaded you accept that the only love you will ever know exists only as a conglomeration-memory of all the good memories of all the lovers you ever new, and by extension you love something that never really existed as an individual in the first place.  Dying is when you finally let go of this unattainable dream.
But what would make this transition-period smoother, I realized, would be an online programming language translator (that would translate function-by-function (or method or procedure)). Surely something like this exists out there?
The fun thing, of course, would be to discover bit by bit the underlying (overarching) babel- (omni- ?)- language among all programming languages, and all the weird constructs that some have that others don’t. (Closures, prototype-based vs. class-based OOP, lamda functions.)
thanks
Went to the dentist today (my actual teeth pictured). More on this later.
