http://github.com/tmountain/Liby/blob/c784b187511750f27071e8...
This is how it's done on browsers, sure, outside javascript, it's best to add environment querying functionality and basic introspection to the language. Common Lisp has the following functions to do that, among others:
Function LISP-IMPLEMENTATION-TYPE, LISP-IMPLEMENTATION-VERSION
Function SHORT-SITE-NAME, LONG-SITE-NAME
Function MACHINE-INSTANCE (hostname)
Function MACHINE-TYPE (processor architecture)
Function MACHINE-VERSION (processor version)
Function SOFTWARE-TYPE, SOFTWARE-VERSION (OS name, and type)
Function USER-HOMEDIR-PATHNAME
Don't re-implement Lisp in Ruby. Clone and copy Lisp's features for your favorite language, so you don't have to emulate ./configure in a far richer environment; automake is poverty.A few days ago I told the polite crowd in #ruby how I felt about the irb ruby shell. That too is lacking and there is tremendous room for improvement. Start by implementing value registers; in CL, * (star) contains the value of the last expression evaluated; (star)(star) the one before that, and (star)(star)(star) the one after the last. They come handy because you don't need to build complex binding LETs, and you don't have to pollute your current namespace creating global variables (naming something, on the spot when you're in the flow is really hard. And a convention is better than everyone inventing a trick)
I had to do (star) because HN ate my #\*s, Paul.