News for hackers. Stuff that matters.
Re:C, The Beautiful Language by Groxx on Wednesday March 16, 2011 @07:35PM (#2334446)
>Not really. Unless the language gives you access to the computer (either directly, or by emitting machine code and scheduling for execution), you'll have hard time implementing it efficiently.

Why not use Ruby to emit a bunch of bytes (ie, assembly), push it into a file, and set the executable bit? Ruby could be used to create GCC so you can write C. ie, a Ruby-based Ruby-to-assembly compiler. With that technique and therefore technically Ruby alone, you're still capable of recreating every language or application in existence, right down to being exact binary duplicates.

Sure it's pedantry. But the entire hypothetical deserted-forever-with-one-language situation is pedantic at its core.

There are no comments on this comment yet.