HNHacker News
TopNewBestAskShowJobs

jeresig

3,006 karma · joined October 10, 2006

I'm John Resig, the creator and lead developer of the jQuery JavaScript Library.

I work at Khan Academy and the author of the books 'Pro JavaScript Techniques' and 'Secrets of the JavaScript Ninja'. I'm currently located in the Hudson Valley, NY.

I was in Y Combinator-funded startup during the summer of 2006 with Julia West ('juliamae') and Josh King ('skierx') working on peer-to-peer messaging over mobile devices.

Site: https://johnresig.com Email: jeresig at gmail.com

submissionscomments
jeresig··on Does Anyone Here Speak Art and Tech?
I was interviewed for this article, it looks like my comments were used well and relatively in context.

That being said I definitely don't fit into the tech + art audience that was being defined in this article. It seems to be implied that there is a large amount of naïveté regarding art amongst techies, which is very true for the most part, and they're just looking to burn their piles of tech money on something pretty (which is certainly debatable). I study art and art history in my spare time, with a particular focus on Japanese art and Ukiyo-e: http://ukiyo-e.org/ This seems to be very rare in the tech world with few technical people being interested in the humanities, let alone art and art history.

One point I mentioned to the reporter, but was left off, was that almost all art I collect is either antique (and then acquired from auction or dealer) or if it's from a living/contemporary artist then from the artist directly. I've never met a more disdainful group of people then art dealers, especially contemporary art dealers.

It's especially surprising that the article didn't mention Artsy (http://artsy.net) considering that it's right in NYC and it's the perfect intersection of the contemporary art world and tech. They are much more connected to contemporary art galleries and dealers and are working very hard to get people connected to the art they're interested in - which seems to be largely fixing the issue(s) outlined in the article.

There is a lot of interesting work happening in tech + art right now in NYC and I'm excited to even be in the outskirts. Cool projects like:

http://www.eyebeam.org/ http://arthackday.net/god_mode/ http://www.nypl.org/collections/labs http://smarthistory.khanacademy.org/ Not to mention many of the projects here: http://caa2013.thatcamp.org/

jeresig··on Asm.js: The JavaScript Compile Target
That certainly could be a theoretical future for Asm.js! In my post I link to a pure-JavaScript port of SQLite that runs in Node.js (using Emscripten): https://github.com/kripken/sql.js

Presumably either Node would have to switch to Mozilla's Spidermonkey or V8 would have to implement full performance support for Asm.js.

jeresig··on Asm.js: The JavaScript Compile Target
Ah! In that case I'm not sure - but according to mraleph's comment above it looks like there might be some issues in V8 for some of the benchmarks: https://code.google.com/p/v8/issues/detail?id=2223
jeresig··on Asm.js: The JavaScript Compile Target
If others have not read the parent's blog post on Asm.js, I highly recommend it: http://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html

I also largely agree with Jason's comment on that post: http://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html#co...

I see no reason why these efforts can't run in parallel - as certain optimizations are needed to improve execution performance standardize them and expose them to user-written JavaScript.

I'll say that I would be totally happy if Asm.js was nothing more than a line drawn in the sand that all the browser vendors then aspired to match with normal JavaScript. Knowing what is theoretically possible in a browser is a huge motivator (as was seen in the last browser JS performance war of 2008/2009).

jeresig··on Asm.js: The JavaScript Compile Target
Ok, I'll bite.

- I did not run performance benchmarks on my system because Asm.js does not yet support OS X (which is my primary OS). I fully intend to run some tests, and hopefully make some of my own, when that time comes. In the meantime it's not really beneficial for me to just re-run the same benchmarks that others have run on those platforms.

- I thought this was obvious: Chrome and normal Firefox are so much slower because they do not explicitly optimize the Asm.js code path.

- That's complete nonsense. I can't believe I have to say this but yes, I wrote those sentences.

jeresig··on Asm.js: The JavaScript Compile Target
I believe one has already been ported using Emscripten - but this was a while ago, I'd be curious to see how fast it runs now with Asm.js: https://github.com/mbebenita/Broadway
jeresig··on WebKit is the jQuery of Browser Engines
Forking WebKit is effectively the same as writing your own browser, with regards to standardization. At the end of the day you want to get everyone to agree on the standard -- having an implementation that everyone can use only helps to sweeten the deal.
jeresig··on WebKit is the jQuery of Browser Engines
I'm not sure Zepto could be defined as "better" considering that it only implements a small subset of the jQuery API. In the browser world you can't get away with implementing a small subset of a specification, it'll be consider broken and people won't use it.

I'm not arguing against multiple implementations. If Mozilla were to switch to WebKit, rewrite its DOM implementation to be 20x faster, and then release that -- that would be absolutely stupendous! Much in the same way that the Chrome team created a new JavaScript engine that was much faster than Safari's JS engine. I am arguing that the writing is on the wall for the common parts of a browser. A browser vendor's time will be used much more efficiently by collaborating with each other on the implementation instead of writing a number of separate implementations.

jeresig··on WebKit is the jQuery of Browser Engines
Except when it comes to the JavaScript engine. Safari's JS engine is the slowest out of Chrome/Firefox/Safari: http://arewefastyet.com/
jeresig··on WebKit is the jQuery of Browser Engines
I don't think this is particularly controversial opinion to have at this point: http://trends.builtwith.com/javascript/jQuery http://trends.builtwith.com/javascript
jeresig··on WebKit is the jQuery of Browser Engines
That's an interesting assumption to make: Just because Safari or Chrome hypothetically used Gecko doesn't mean that competition would've halted. Why couldn't it have been any different from when Chrome used WebKit as its basis and absolutely trounced Safari?
jeresig··on WebKit is the jQuery of Browser Engines
Are there better JavaScript libraries than jQuery at certain things? Absolutely -- look to Backbone, Angular, Meteor, etc. etc. Are they better than jQuery at doing DOM manipulation? I think that's an easy argument simply by looking at the numbers: http://trends.builtwith.com/javascript/jQuery

jQuery or WebKit being dominant platforms doesn't requite that innovation stop, it gives innovation the ability to explode: When you don't have to work about nit-picky cross-platform capabilities or standardization then you get to focus on performance and building sweet frameworks like Backbone and Angular.

jeresig··on WebKit is the jQuery of Browser Engines
Pretty much! People worry that the transition to a WebKit monoculture would result in some terrible things. On the contrary Chrome has shown that a shared rendering engine does not result in stagnation. Stagnation is a separate concern from a shared core.
jeresig··on Fixing Google Analytics for Ghostery
The issue you outline is tangential (but still important). The issues I'm seeing are actual exceptions occurring where sites are missing the reference to the GA object, not issues with _link tracking and redirects.
jeresig··on Fixing Google Analytics for Ghostery
If that's the case then there are a lot of sites that are willfully ignoring the correct snippet. Perhaps this was something new that they added recently - or perhaps there's a frequently-incorrect snippet that's copied?
jeresig··on Keeping Passwords in Source Control
git-crypt is incredibly cool - great work!
jeresig··on Keeping Passwords in Source Control
Great tip. This is what I've used in a number of organizations now, including a version of this at Khan Academy. I've amended the blog post to mention this.
jeresig··on Announcing the jQuery Plugin Registry
I had a similar issue so I posted a question in the #jquery-content IRC channel. They're looking in to it and recommended that I press the "Test Hook" button from the Webhook panel to get it to go through - and that worked. It sounds like the tags aren't being detected for some reason.
jeresig··on Chess - A Quandary for the Game in a High-Tech Era
It's fascinating to read the report by the professor mentioned in the article: http://www.cse.buffalo.edu/~regan/chess/fidelity/ACPcover-an...

The relevant conclusion: "My model projects that for a 2300 player to achieve the high computer correspondence shown in the nine tested games, the odds against are almost a million-to-one. The control data and bases for comparison, which are wholly factual, show several respects in which the performance is exceptional even for a 2700-player, and virtually unprecedented for an untitled player."

A NYT article from last year on his methodology: http://www.nytimes.com/2012/03/20/science/a-computer-program...

and more details on his site: http://www.cse.buffalo.edu/~regan/chess/fidelity/

jeresig··on I18n Module for Node and Express.js
I don't envy having to work on something of that scale! At least for my particular case, the only item in that list I needed to worry about was plurals (which I have with the __n method). (And thankfully there are other good JS libraries for currency and time/date formatting that I can use.) I recommended people look at Jed.js and messageformat.js for some of the more complex cases, thankfully I haven't had to go down that road yet!
jeresig··on A Strategy for Internationalization and Node.js
And this is the reason why I don't force anyone into viewing a particular version of the site -- I only use it for displaying an opt-out notice guiding them to the version that I think they may prefer.
jeresig··on A Strategy for Internationalization and Node.js
They are great libraries! Alex replied to my post and I replied with:

"I’m very familiar with your work (on both Jed and messageformat) – I hope to have a need for them some day! In my personal application I have no need for gender (there are no user accounts or socialization) and only very limited pluralization requirements (which can be mitigated with just basic one/other string replacement). Perhaps as the application grows something like that might be useful. We’re looking at possibly using your work for some upcoming i18n work at Khan Academy, we’ll see how that progresses!"

jeresig··on A Strategy for Internationalization and Node.js
A couple quick points: 1) If anyone ever comes up with a location-agnostic language icon for English, I'll implement it in a heartbeat. Using the Japanese flag for Japanese seems very safe. 2) Based upon the traffic to my site so far, all of my English-speaking audience is from the US. 3) The only time you'd be seeing the "US" flag (which does represent en-US, in my case) is when you're on the Japanese version of the site.
jeresig··on John Resig's ‘Secrets of the JavaScript Ninja’ has been released
Aww. I really want to start blogging again, in ernest, this year. I loved all the old blog posts I did - would love to do it again!
jeresig··on John Resig's ‘Secrets of the JavaScript Ninja’ has been released
Oh, no worries - hope you'll enjoy it!
jeresig··on John Resig's ‘Secrets of the JavaScript Ninja’ has been released
I think it's an issue of there being a bell curve on all the JavaScript users. If we assume that 80% of JS users are in the "use a library and know very little of the language" category and the top 10% is "publishes libraries/tools" and the bottom 10% is "copies-and-pastes code with reckless abandon" - then going from 1 million JS users in 2008 to 4 million now (theoretical) then there will be 4x more awesome libraries and 4x more ignorant users.

Thank you for the kind works regarding my blog - I really hope to begin writing again. Perhaps that'll make for a good new years resolution :)

jeresig··on John Resig's ‘Secrets of the JavaScript Ninja’ has been released
SIGH. I've tried really hard to get this changed. Outside of my control, unfortunately.
jeresig··on John Resig's ‘Secrets of the JavaScript Ninja’ has been released
I don't think it makes sense to shift the focus of the book - the topic that it serves (understanding the fundamental construction of JavaScript DOM libraries and the trickier aspects of the JavaScript language) is one that is grossly underserved. The issues that jQuery tackles are still issues that are relevant to developers on the whole. I should note that while the book does tackle cross platform issues that isn't exclusively what it tackles - at least 1/2 of the book is on nothing but the JavaScript language, for example.
jeresig··on John Resig's ‘Secrets of the JavaScript Ninja’ has been released
I wouldn't consider Pro JavaScript Techniques to be "The jQuery Memoirs" really at all. It only mentions libraries in passing. Whereas this book is much more in-depth and really breaks apart the fundamental aspects of a JavaScript DOM library in a way that developers can put into common use.
jeresig··on John Resig's ‘Secrets of the JavaScript Ninja’ has been released
I definitely agree that there are a ton more JavaScript users now, compared to 4 years ago - I disagree that they're more competent, it's a pretty massive bell curve. The tech bubble can be pretty insular here at Hacker News but I still run across TONS of people who've never 1) Used any JavaScript whatsoever or 2) Have used a JavaScript library but have no concept of how it relates to JavaScript, the DOM, or what the library does under the hood. The book attempts to serve #2 primarily and that's still a MASSIVE audience.

As to being involved in the JavaScript world, my focus has shifted - I'm no longer trying to build tools for people who already have tools, I'm trying to teach the next generation of developers and JavaScript users: http://ejohn.org/blog/introducing-khan-cs/

I also feel extremely confident that the technical work that I've done with the Khan Academy CS platform continues to be unlike anything else done by other development platforms.

← PreviousPage 3 of 11Next →