|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ichimunki) Re: Perl Web Browser?
by ichimunki (Priest) on Oct 20, 2001 at 07:39 UTC | |
Other browsers in Perl: artemis: this is a total hack job, and the lunatic that started the project can never seem to keep make progress. I'm guessing there's a major rewrite and some architectural rethinking in Artemis' near future. (If the author manages to pay any attention to his projects, that is, he's a real slouch in that regard.) Whole book on the topic of web client programming online at O'Reilly. A WML browser: not quite HTML, but might offer some architectural ideas. Of course tkweb is included with Tk::HTML. Farther along than some stuff I've seen, but I think it has a ways to go. Table-based sites like PM don't render at all. And I have a project that I found one day on the web, that I can't find a link to. Note to developers: always put at least your name on a script, and maybe a link or an email address. But the real question: what can a Perl browser offer than one written in C (Mozilla) and one written in C++ (Konqueror) can't? Both the Mozilla and Konqueror browsers are based on rendering engines that are theoretically separable from much of the other software included in a browser (AFAIK), so it might be better to build bindings that could link Perl to those rendering engines, or to work on Perl scripted plug-ins. Different people have very different ideas about what web browsers are and how they should behave. On the one hand a browser has to render every pixel exactly as the designer intended, even though many web designers are incredibly sloppy about the way they build pages, so that clients have to guess what they meant to do. On the other hand, some people think a browser that displays the text mostly correctly is sufficient-- they won't use sites that don't conform well enough to the standard to allow for that. And in the end, a Perl browser comes down to a question of making choices. You could do everything, but you'd need a super-computer to run it on, Perl trying to emulate IE6 would run slooooow on a normal home computer. OTOH, a Perl browser that targeted a specific application would make a lot of sense. And it might help to think of it as an HTTP/HTML client more than a "browser". That way you're freer to think outside the norm. I think Tk::HTML and tkweb show the most promise, and would recommend looking at ways to help push those forward, or merge the two-- since tkweb does not use Tk::HTML but Tk::Text (which is a very versatile widget in the first place). | [reply] |
|
Re: Perl Web Browser?
by jryan (Vicar) on Oct 20, 2001 at 03:57 UTC | |
| [reply] |
by John M. Dlugosz (Monsignor) on Oct 20, 2001 at 06:09 UTC | |
| [reply] |
by Biker (Priest) on Oct 23, 2001 at 13:10 UTC | |
That would make the guys at geocities and other 'free' web servers extremely happy. :-)
| [reply] |
by John M. Dlugosz (Monsignor) on Oct 23, 2001 at 20:17 UTC | |
by tlhf (Scribe) on Oct 27, 2001 at 01:33 UTC | |
PerlMonks, Microsoft, and Mozilla all fail validation. And they're the only 3 I've tried. This is because writing correct w3c validated html which renders well in all browsers is extremely difficult without losing page complexity. These problems are increased on dynamically generated pages. To avoid these problems, the w3c is pushing the xhtml standard; which is similar to HTML 4.01 except has to be structured in xml style syntax. | [reply] |
|
Re: Perl Web Browser?
by toma (Vicar) on Oct 21, 2001 at 01:55 UTC | |
My goal was to create a web browser to help automate the generation of web data mining code. I used these modules: The biggest challenge was getting the HTML layout to work. I started to get tables to work, but I gave up when I ran into frames. If you ignore these issues, it is easy to write a browser. To make the HTML easy to parse, I suggest Dave Ragget's tidy program. Tidy converts hard-to-parse HTML into easy-to-parse XHTML. A perl module to interface to the tidy C code would be useful. In addition to being helpful for writing a perl web browser, a tidy perl module would be useful for web site maintenance and data mining. It should work perfectly the first time! - toma | [reply] |
|
Re: Perl Web Browser?
by sm3g (Hermit) on Oct 20, 2001 at 06:10 UTC | |
Unfortunately I haven't been able to get any of the HTML widgets it uses (CscHTML, GtkHTML, or GtkXmHTML) to 'make' and install so I can't give any more firsthand information. If it is as well done as Pronto! is, it's worth a look. sm3g | [reply] |
|
Re: Perl Web Browser?
by BlueLines (Hermit) on Oct 25, 2001 at 01:45 UTC | |
there is the gecko library (the rendering engine from mozilla) that is freely available. perhaps a gtk frontend could be written in perl. but the galeon people have already done a pretty good job of this in C; if your goal is to make a faster web browser, perl isn't really the right way to go. and i'm not sure what you mean by the "coolest ones". everyone in my office drools over the tabbed interface mozilla 0.9.5 has, while ie continues to have scripting issues (and won't recognize urlencoded urls as of ie6), and opera costs money. i should note that i'm a bit biased; i've been using mozilla for the last 2 years (exclusively for the past 16 months). i've submitted and worked on alot of userland bugs and compiler related issues. and to be perfectly honest, i do more web browsing at work with nc and telnet than i do with any browser.... BlueLines Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary. | [reply] |
|
Re: Perl Web Browser?
by Elvis (Sexton) on Oct 23, 2001 at 23:15 UTC | |
This comment is slight OT, but Netscape 6 is a *VAST* improvement over netscape 4.77 for *nix. (I haven't had to kill -9 it once!) I'm gusssing your experience of netscape 4 has made you leave out netscape in the list of 'coolest ones'. :) Still, it would be nice to have a good open source web browser. I think it's likely that mozilla will make the grade soon. BTW, there is GNUNavigator which is a browser bolt-on for emacs (IIRC). I've no idea what that's like though. Also, what about konqueror? The latest version has better CSS 2 support than any other browser, (that's including IE 6) IIRC. | [reply] |
|
Re: Perl Web Browser?
by fr3ez (Acolyte) on Oct 25, 2001 at 12:12 UTC | |
I know at least the GIF standard is copyrighted by Compuserve and while I'm not a lawyer I'm sure there'd be some sort of royalty fees or something involved. While yes you could just support other graphic formats but people use gifs and jpgs most commonly. One other not mentioned so far is lynx, yes not perl solution or a graphical browser but free and does a good job of html, but I personally only use it as a scrape by measure, because I've come to rely on graphics. I'm sure a lot of other standards have thorny legal issues as well like Java and VBScript support, and these days you need that sort of stuff in a browser because people's sites use such technologies (as much as it pains me). -That is all | [reply] |
by impossiblerobot (Deacon) on Oct 25, 2001 at 17:51 UTC | |
Oops! Apparently I spoke too soon. A quick web search revealed that it is obviously *much* more complex than that. | [reply] |
|
Re: Perl Web Browser?
by archen (Pilgrim) on Oct 26, 2001 at 02:27 UTC | |
Keep in mind that Mozilla IS open source. You're free to fork the code and try doing it your own way (something like the guys at kmeleon are doing. Now if you ask me, what REALLY needs to be done, is some sort of Perl plug in that lets Perl scripts and Mozilla communicate. If I could get Mozilla to execute perl scripts on the fly to do certain things, I'd be a VERY happy camper. Yeah yeah, I know - security problems, but still... | [reply] |
|
Re: Perl Web Browser?
by zakzebrowski (Curate) on Oct 24, 2001 at 17:29 UTC | |
UPDATE: To the people that gave this node a --, I'm promoting code reuse here. This is not to say there shouldn't be a web browser in perl, but this is just my humble opinon... bah humbug ---- Zak | [reply] |
|
Re: Perl Web Browser?
by EvanK (Chaplain) on Oct 25, 2001 at 11:34 UTC | |
______________________________________________ | [reply] |
|
Re: Perl Web Browser?
by Anonymous Monk on Oct 27, 2001 at 04:07 UTC | |
-doonyakka | [reply] |
by Anonymous Monk on Nov 06, 2001 at 01:57 UTC | |
| [reply] |
|
Re: Perl Web Browser?
by Draxil (Novice) on Nov 08, 2001 at 02:21 UTC | |
Still berating parts of your argument aside (and mabye getting back on topic), a perl web brower could rock. If for no other reason than sheer quick hackability :)
| [reply] |