Yesterday I wanted to publish version 2 on NPM and make it official, but I hit this NPM issue. Seems it's now fixed, but I'm holding it off to finish a new feature that I'm working on (import the SpiderMonkey AST), so you still have to use the Git tree to play with it.
I completed the CLI tool with a bunch of new options and wrote the documentation in the README. It's now possible to keep certain comments in the output. Still no API documentation so far, but it'll come shortly (I'll actually have a dedicated section on this website for UglifyJS).
Next, some points about why I'm not switching to the SpiderMonkey AST internally. Tl;dr: I don't quite like it. Also, I'd kinda have to rewrite the mangler and compressor from scratch. That's Esmangle's job. Any case, UglifyJS will support the SpiderMonkey AST by converting it to our internal AST.
[ read more... ]

Early 2010 I joined the IT team of a small research center in Italy. Our
manager at the time was a smart guy, a programmer himself—Emacs user and
Haskell lover. We started a big project and, although their initial plan was
to develop it in PHP (having already a few PHP devs there), the manager
agreed I can use whatever language I want to bring us faster to the
objective. He'd prefer Haskell, but I don't know it. I was having some 10
years experience with JavaScript, but not on server-side (NodeJS was in early
stages those days), 8 years with Perl and only a few months with Common Lisp.
I picked Lisp and I still congratulate myself for that choice.