Giter Site home page Giter Site logo

e.js's Introduction

E.js

Web Framework (for Front End) is a software framework designed to support the development of client side web applications. Popular frameworks include React, Angular, Vue and etc.

One good thing about web framework is that it hides DOM operations from developers so they can focus on application logic. By separating application logic and DOM manipulations, the code is better modularized and more maintainable.

Most web frameworks follow MV* (MVC, MVVM) pattern. Developers specify the view for UI elements, and bind the view with model. They only manipulate the model to update the view. The framework will watch for data change in model, and update the DOM to keep the webpage in sync with the model.

The update time performance of a web framework depends on the way it updates the DOM upon data change. A good UI update algorithm should be able to detect the affected DOM nodes and compute the minimum DOM operations needed efficiently.

This research project studies various UI update methods in web frameworks, and proposed a virtual dom based method based on a generic tree edit script algorithm proposed in a paper.

We designed and built a naive web framework called E.js based on aoy.js, and implemented 4 different UI update methods on it:

  • Rebuild All
  • Throttle
  • A virtual DOM solution based on Snabbdom
  • Our own virtual DOM based solution CDHSI

The source code for the four implemenetations are available in \src.

We implemented a benchmarking system based on krausest's js-framework-benchmark to evaluate the performance. The source code is available in \benchhmarks.

This is a research course project (McGill University, COMP 400), under the supervision of Clark Verbrugge. For more detail, please refer to the project report.

e.js's People

Contributors

emolli 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.