Hacker Newsnew | past | comments | ask | show | jobs | submit | jie's commentslogin

Cool! You can even add Chinese songs!


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!


Thx! I'll do something about the site this week end, check it out when the docs are online, I'll tweet it!


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!


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.


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!


What's the link for my.js on Github?


Thx! See you next month at ParisJS!


Uh! I forgot about ParisJS. :P


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!


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)


If you want to toss this site's repo up on Github (or email me directly if you wish to keep it private), I'll design it. No obligation to use my design but I'm going under the assumption that this is a non-commercial project & the design would be attributed to me if used.


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


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!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: