Giter Club home page Giter Club logo

quasar's Introduction

Docs built Build passed Coverage Status

Dannnno's WebBrowser: Quasar

This is a very long term project I'm going to play around with. In general I'm interested in how to most effectively write parsers and I'd like to practice using a well solved problem (html, js, css). This way I can compare my implementation to existing implementations and better locate edge cases I wouldn't otherwise notice.

I'm also interested in browser rendering - I'm curious how something parses an HTML file (and associated CSS, JS, etc) and then displays it appropriately. I want to play around with that as well.

Eventually I'd like to take a crack at a JavaScript interpreter.

I'd like for all of this to be written in Python. I'm planning on starting in CPython and getting things working properly there. Eventually I'd like to find the important bits (probably the JavaScript interpreter) and use ctypes or cython to speed it up.

In short, this rather ambitiously named project will eventually seek to have some level of functionality consistent with other webbrowsers (on a much smaller scale in all likelihood)

###Approximate timeline/order of events:

  1. Getting a working implementation of a CSS Parser. This will probably be a gradual process, lots of coming back and covering edge cases and such.
  2. Getting a working implementation of an HTML Parser. Again, gradual. Going to take a lot of work...
  3. HTML rendering. I frankly have no idea how I'm even going to approach this
  4. CSS rendering. See above
  5. Working implementation of a JavaScript Parser. See <1>, <2>
  6. JavaScript interpreter. See <3>
  7. JavaScript rendering (ie rendering things based on JavaScript)
  8. Actual browser implementation. Don't really know what this will entail, but I imagine a lot of stuff with HTTP requests
  9. Use my new browser semi-exclusively. Fix edge cases as they come up.
  10. ???
  11. Profit!

...

At least where I'm standing, that is an entire list of non-trivial problems. This isn't ambitious; its insane as a one man project. It'll be fun though. Learn a lot.

Testing

This will have to be a well tested job to even come close to functioning. I plan on testing somewhat rigorously from the get-go and then updating for edge cases as often as necessary.

All tests can be run using nose from the commandline

\Path\To\Directory\Quasar\> nosetests

Naming

I forgot all about Python's builtin module webbrowser so I renamed my project from WebBrowser to Quasar. No particular reason, I just think its a cool sounding name.

quasar's People

Contributors

dannnno avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.