News for hackers. Stuff that matters.
Re:CoffeeScript source maps by mnemonik on Saturday September 08, 2012 @02:22AM (#4492431)
I just want to note that the new CoffeeScript compiler is using ESCodeGen as a backend, which is doing the source map heavy lifting. Anyone writing a compiler which targets JS can use ESCodeGen as a backend and get source maps pretty much for free. Awesome news all around!

https://github.com/Constellation/escodegen

Note: I do not want it to seem like I want to take anything away from Michael Ficarra and the new CoffeeScript compiler. He also wrote the code to integrate source maps with ESCodeGen, but it is something that many projects will be able to take advantage of, not just CoffeeScript.

In other source map news, if anyone hasn't seen it yet, UglifyJS v2 now supports source maps: http://lisperator.net/blog/uglifyjs-v2-news/

Source map support is on the way for Firefox's debugger as well: https://bugzilla.mozilla.org/show_bug.cgi?id=771597

Re:CoffeeScript source maps by ryanflorence on Sunday September 09, 2012 @12:46AM (#4494969)
Suppose I could go make that more clear in the article.
Re:CoffeeScript source maps by cedrichurst on Saturday September 08, 2012 @01:00AM (#4492300)
This is possibly the most important thing to happen to my frontend development workflow all year. Amazing contribution. Thank you.
Re:CoffeeScript source maps by jarek-foksa on Saturday September 08, 2012 @02:54PM (#4493644)
Is CoffeeScriptRedux actually ready for production use? From my read of https://github.com/michaelficarra/CoffeeScriptRedux/wiki/Pro... there are many features missing.
Re:CoffeeScript source maps by michaelficarra on Saturday September 08, 2012 @05:35PM (#4494081)
I would not recommend you use it in production just yet, but from my reading of that wiki page, there are only 3 or 4 fairly uncommon features that are unsupported. Most of them could still use more tests, though, and that's why they are missing that last checkmark.
Re:CoffeeScript source maps by danmaz74 on Saturday September 08, 2012 @03:35AM (#4492527)
I would LOVE to see source maps implemented into Rails CS compilation. Any idea how to do it/when will this be added to rails?
Re:CoffeeScript source maps by calibraxis on Saturday September 08, 2012 @06:55AM (#4492742)
Will this affect debugging under node.js, or just browsers? (Googling doesn't seem to make this clear.)
Re:CoffeeScript source maps by jeremiep on Saturday September 08, 2012 @09:12AM (#4492884)
I would assume both, if you use node-inspector to debug your programs you are using the browser's debugger.
Re:CoffeeScript source maps by calibraxis on Saturday September 08, 2012 @01:09PM (#4493356)
Ah, I was just asking about stacktraces, if the line-numbers will then correspond to the CoffeeScript line-numbers.

It's no issue for me personally, but it helps smooth over resistance to CoffeeScript.

Re:CoffeeScript source maps by pwpwp on Saturday September 08, 2012 @07:02AM (#4492753)
As the article mentions, the next big step will be access to the debug console.