From: andrew mcelroy Date: 2012-05-25T00:51:05+09:00 Subject: Re: Ruby through CGI and Rails --0016e6dee77405f59d04c0ca3804 Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 24, 2012 at 10:23 AM, Brian Candler wrote: > Shaun Lloyd wrote in post #1061905: > > I don't want any framework. Although i have been looking at rails and am > > extremely impressed. > > > > I just want to know the "fastest" way to execute ruby code in a web > > server and display output. > > Like a hacking challenge one could think of the problem. > > You can write applications which talk to Rack directly, and that will be > the fastest way to generate a response. I'm sure there's a "hello world" > Rack example. > > If you have this performance requirement in a real-world application, > you can still use Rails. There is "Rails Metal" which lets you connect > certain actions directly to Rack. > Rails Metal is deprecated. Once again railscasts went over this. Andrew McElroy > > -- > Posted via http://www.ruby-forum.com/. > > --0016e6dee77405f59d04c0ca3804 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Thu, May 24, 2012 at 10:23 AM, Brian = Candler <lists@ruby-forum.com> wrote:
Shaun Lloyd wrote in post #1061905:
> I don't want any framework. Although i have been= looking at rails and am
> extremely impressed.
>
> I just want to know the "fastest" way to execute ruby code i= n a web
> server and display output.
> Like a hacking challenge one could think of the problem.

You can write applications which talk to Rack directly, and that will= be
the fastest way to generate a response. I'm sure there's a "he= llo world"
Rack example.

If you have this performance requirement in a real-world application,
you can still use Rails. There is "Rails Metal" which lets you co= nnect
certain actions directly to Rack.

Rails= Metal is deprecated. Once again railscasts went over this.

<= /div>
Andrew McElroy
=A0

--0016e6dee77405f59d04c0ca3804--