Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30204

Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'languages,': 0.04; '(so': 0.07; 'apis': 0.07; 'finished.': 0.07; 'api': 0.09; 'python': 0.09; '(it': 0.09; 'convenience': 0.09; 'http,': 0.09; 'received:mail-vc0-f174.google.com': 0.09; 'sep': 0.09; 'sockets': 0.09; 'such.': 0.09; "they've": 0.09; 'language,': 0.11; 'language': 0.14; '*i*': 0.16; 'chris,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'least,': 0.16; 'pity': 0.16; 'subject: \n ': 0.16; 'subject:these': 0.16; 'tcp': 0.16; 'wrappers': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'variables': 0.17; 'obviously': 0.18; '(not': 0.20; 'fairly': 0.21; 'not,': 0.21; 'together.': 0.21; 'embedding': 0.22; 'stick': 0.22; "i'd": 0.22; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'extend': 0.26; 'done.': 0.27; 'question': 0.27; 'c++': 0.27; 'components': 0.27; 'message- id:@mail.gmail.com': 0.27; 'subject:/': 0.28; 'reply.': 0.28; 'concern': 0.29; 'mirror': 0.29; 'protocols': 0.29; 'received:209.85.220.174': 0.29; 'unique,': 0.29; "i'm": 0.29; 'could': 0.32; 'goes': 0.33; 'largely': 0.33; 'requirement.': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'done': 0.34; 'thanks': 0.34; 'whatever': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'subject:?': 0.35; "won't": 0.35; 'received:209.85': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'anything': 0.36; 'subject:with': 0.36; 'level': 0.37; 'uses': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'nothing': 0.38; 'performance': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'end': 0.40; 'think': 0.40; 'your': 0.60; 'networking': 0.60; 'easy': 0.60; 'most': 0.61; 'high': 0.61; 'first': 0.61; "you'll": 0.62; 'is.': 0.62; 'different': 0.63; 'world': 0.63; 'ever': 0.63; 'more': 0.63; 'here': 0.65; '26,': 0.65; 'promise': 0.65; 'facilities': 0.69; 'bored': 0.84; 'then!': 0.84; 'toy': 0.84; 'unleash': 0.84; 'hardest': 0.91; 'kong': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=PCnngrU3vo9ThF8F+a5ULDT3lrGRpbT5Gok2D9S3iaI=; b=Zrk40VXu1azy/nSHxjfnS1Arv/a4saUNDbgY8vv+OM4dFQN2cWtr/YcuxfJAXzg+qj xJ3ZQuF/GwGRifLna+lgB5c4jmV0pdCWEIldtWk4TX4k2aa478r02gUUEWR4OuqEi2qi rewcPRUvTlofsvGHzcJmwreqlfF2RJyGNnzVvlCkDGLcaZa66LbeG0AORlfdiFCsWj81 ibcnF3Z5vvGa8JoGkH+wmiMxmOIdGjGsZ/zXt809cMpjPMcFFoCeYxV+3+MS50ecXC2b P2hY1jQ3j8SH7U3wHAd4XvdMXDRfERzwFho5XZfoGbobl+4v5GwPgiBU88TfNFR/S0Q2 bc0A==
MIME-Version 1.0
In-Reply-To <664fc219-a785-405f-a563-8980d683ad9f@googlegroups.com>
References <8f1ed0ca-2dec-4462-964b-dc645ce0f081@googlegroups.com> <mailman.1422.1348653960.27098.python-list@python.org> <664fc219-a785-405f-a563-8980d683ad9f@googlegroups.com>
Date Thu, 27 Sep 2012 00:04:31 +1000
Subject Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1436.1348668275.27098.python-list@python.org> (permalink)
Lines 42
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348668275 news.xs4all.nl 6851 [2001:888:2000:d::a6]:41723
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30204

Show key headers only | View raw


On Wed, Sep 26, 2012 at 8:41 PM, Anthony Kong <anthony.hw.kong@gmail.com> wrote:
> Hi, Chris,
>
> Thanks for your reply. I really do not have any requirement. It is more a curiosity question (not work related). I'd like to find out how python can be used to 'glue' all these moving parts together. Performance and security are definitely not a concern as it is just a toy idea/project.

Okay! Toy project. Here goes then! (BTW, you don't need to send to
both python-list and comp.lang.python - they mirror each other.)

1) It's straight-forward to extend Python using C, so you could fairly
readily make thin wrappers around the C APIs of whatever components
you want to glue together.

2) V8 may be a smidge more fiddly, though; it uses a C++ API that's
designed to be really convenient, using automatic variables and such.
You may want to consider embedding a different engine, but if you do
use V8, you'll end up largely undoing all that convenience work
they've done. A pity really; V8's the first language engine I've ever
seen that makes it so easy on the embedder.

3) Networking is easy to do in Python. Obviously you can do TCP
sockets in pretty much any language, but Python also has handy
facilities for higher level protocols like HTTP, already built-in. (So
do quite a few high level languages, these days. It's nothing unique,
but no less handy.)

4) Security is going to be a pain. But you said you don't care. Just
promise me you won't unleash this thing on the world :)

5) This is going to be a huge job. You're going to get bored of it
long before it's finished. But it'll still be educative for as long as
you stick it.

Have you ever done anything with networking? If not, I'd recommend you
start there - not because it's the hardest (it isn't), but because
it's the most fun. At least, *I* think it is. But I'm biased majorly.
:D

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Looking for pointers/suggestion - how to make a webbrowser with these restriction? Anthony Kong <anthony.hw.kong@gmail.com> - 2012-09-26 01:23 -0700
  Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction? Chris Angelico <rosuav@gmail.com> - 2012-09-26 20:05 +1000
    Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction? Anthony Kong <anthony.hw.kong@gmail.com> - 2012-09-26 03:41 -0700
      Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction? Chris Angelico <rosuav@gmail.com> - 2012-09-27 00:04 +1000
    Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction? Anthony Kong <anthony.hw.kong@gmail.com> - 2012-09-26 03:41 -0700

csiph-web