News for hackers. Stuff that matters.

jie

Cool! You can even add Chinese songs!
Re:How to go faster than jQuery, Ext, Mootools...? on Saturday April 02, 2011 @01:57AM (#2399332)
Thx! Sorry for the docs, my.js index on the left can't be browsed. I'll put a doc online this WE! For the perfs, I didn't imagine such a gap with others framework! I'll try to integrate my.js in taskspeed soon!
Re:How to go faster than jQuery, Ext, Mootools...? on Saturday April 02, 2011 @01:54AM (#2399323)
Thx! I'll do something about the site this week end, check it out when the docs are online, I'll tweet it!
Re:How to go faster than jQuery, Ext, Mootools...? on Saturday April 02, 2011 @01:38AM (#2399304)
In my.js, elts wrappers are both cached by id and in their native HTMLElements. The performance increases are sometimes from 1 to 100. Caching FTW. In fact, caching has only 1 minor fallback: you can't change an elt id if you have already accessed it by his former id (but who does? it's such bad practice). For the above snippet, it's normal that your new h2 doesn't have any class since the $ fn only returns the first h2 (like querySelector) contrary to jQuery $ who returns a set. The 3rd line of your code only add class to your first h2. To get a set of selected elts in my.js, use "$.elts" and it will work! If you're interested, I may give a presentation on my.js at the next WebWorkerCamp in Paris!
Re:How to go faster than jQuery, Ext, Mootools...? on Friday April 01, 2011 @09:11AM (#2396028)
Right, my.js is no commercial project. I'm pushing it on Github soon. It would be pretty cool if you could help on the design. If you make something that looks nice for my.js, I'll push it online and all design credits goes to you of course! Myjs.fr has been tweeted and visited a lot since yesterday! @jie
Re:How to go faster than jQuery, Ext, Mootools...? on Friday April 01, 2011 @08:38AM (#2395939)
MICRO-optimizations? Check some perfs: http://jsperf.com/my-js-perf-tests! There is still much to do for my.js to become mainstream. I may write a plugin for jQuery but for the moment I want to let my.js grow and stay independent. I think that my.js bring new concepts on the table that can't integrate in the main other frameworks without changing their core.
Re:How to go faster than jQuery, Ext, Mootools...? on Friday April 01, 2011 @08:25AM (#2395900)
I'm pushing it on Github and I'm also coming to the States before Summer. Sure, I'll find nice people to help me fix up the copy!
Re:How to go faster than jQuery, Ext, Mootools...? on Thursday March 31, 2011 @04:43PM (#2393606)
Thx! See you next month at ParisJS!
Re:How to go faster than jQuery, Ext, Mootools...? on Thursday March 31, 2011 @04:39PM (#2393586)
Thx! Yes, a good JS framework is not only about performance but also about the number of plugins, the good doc and its users base... And I have to admit, jQuery is good on those points! Give my.js some time, it's gonna grow!
Re:How to go faster than jQuery, Ext, Mootools...? on Thursday March 31, 2011 @04:33PM (#2393559)
Hehe, Myjs.fr is simply not designed! I presented the framework yesterday to a JS conf, many people wanted to try it out fast. So I pushed a raw version of the framework in the rush today. I'll be adding a getting started page, more benchmarks and the api doc first and i'll go for the Design quickly. For StumbleUpon, I don't know why it's not working, myjs.fr is a simple static site, with some .css & .js. By the way, do you happen to know good designers/developers? (I'm looking for a great one for my startup)
Re:How to go faster than jQuery, Ext, Mootools...? on Thursday March 31, 2011 @04:15PM (#2393462)
Totally right. I intend to add much more benchmarks and concrete examples in days to come. At first, I wanted to use Slickspeed but Slickspeed is very much "selectors" oriented. It was useful to have those selectors tests 3 years ago when each framework had to implement its own selector methods. But today, no matter which framework, under the hood it's the same "querySelectorAll" method. So comparing frameworks according to their selectors like slickspeed is a bit like comparing the performances of 2 PCs with the same hardware. In fact, the real difference between JS frameworks comes from the way they handle their HTMLElement wrappers, how those are created, how fast they access and modify the DOM. Keep you updated on the benchmarks!

How to go faster than jQuery, Ext, Mootools...?

http://myjs.frI coded a JS framework that goes faster than jQuery, Ext, Mootools... (I haven't find any faster on the web for now) Accessing and modifying HTML Element properties are the main taks of JS frameworks and My.js does those operations way faster than others. My.js also handles custom classes more efficiently. See the tests.I presented the framework and the core concepts I used to...

( Read More... | 27 comments | 40 points | on HN )