From: ahoward Date: 2003-08-28T17:43:15+09:00 Subject: Re: Why would you abandon Ruby? (was) On Wed, 27 Aug 2003, MetalOne wrote: > As it turns out, I am beginning to think the notion of a > cross-platform GUI is flawed to begin with. At least it is not > optimal. It may be satisfactory for some types of work. i was just talking to someone about this today. we tried this: #!/usr/local/ruby-1.8.0/bin/ruby require 'webrick' include WEBrick fork do sleep 1 exec "netscape http://127.0.0.1:2000/hello_world" end s = HTTPServer.new( :Port => 2000 ) class HelloServlet < HTTPServlet::AbstractServlet def do_GET(req, res) res.body = "hello, world." res['Content-Type'] = "text/html" end end s.mount("/hello_world", HelloServlet) trap("INT"){ s.shutdown } s.start to our suprise, it worked. this may be the most realistic cross platform browser concept. -a ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 | ~ > ruby -e 'p(%.\x2d\x29..intern)' ====================================