Shared by molokoloco

On me conseille ce framework pour l’embarqué, à tester…

MY.JS v0.1.1

  • Get element : <1ms (48ms pour jQuery)
  • Instantiate class : <1ms (name:John)
  • Call class method :< 1ms

Performances are mainly achieved by :

  • Dynamic inline code generation with eval. My.js is the first framework to thoroughly use this technique to achieve quasi native performances (sometimes even better when caching used)
  • A highly efficient class implementation with no wrappers. Other frameworks use wrappers either for instantiation and/or inheritance. When creating custom classes, MY.JS is way faster at instantiation and when calling a method.
  • MY.JS also provides many other optimizations such as better scope control or better timers parallelization.

Example :

/*
    <button>Hello</button>
 
*/
scope.ready(function(my, $) {
    $('button').on('click', function() {
      my('box').setText('Hello World from my.js!')
               .addClass('message')
               .setLeft(200, {duration: 300});
    });
});

Download minified version (11.1kb gzipped)
Download sources

 

Home made artworks

MyBookReadR | The RSS Wall | Carousel slider | Fast web start | Try it :)
My latest sources and sheets :
Github sources | Personnal wiki | jsFiddle example | WebDev bookmark

RSS Code tooltips updates

  • An error has occurred; the feed is probably down. Try again later.

RSS Molokoloco's JS fiddles

Recent Comments