From: Phillip Gawlowski Date: 2011-04-11T19:34:16+09:00 Subject: Re: can we use direct ruby instaed of javascript ? On Mon, Apr 11, 2011 at 11:45 AM, Michal Suchanek wrote: > > This is incredibly cool but can you really translate any language into > machine code? Of course. Otherwise, the code wouldn't be executed on a CPU, after all. The question is if you can implement every feature a language has, but that's more about how much work and workarounds you are willing to invest (dynamic code is a touch harder, but since there's JRuby which started before the JVM had any sort of dynamic capabilities at all..), rather than pure ability. See also: "Compiler" and "bytecode" or "intermediary language". ;) After all, a programming language is a construct, an abstraction, that allows us to instruct computers to do Stuff(tm), without us having to lower ourselves to the CPU's level. ;) The question is kind of like asking if computers can represent text, or do substraction of irrational numbers, when all they do is binary addition. ;) -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.