google/closure-compiler
View on GitHub ↗ ★ 7,703 JavaScript
A JavaScript checker and optimizer.
39 mentions on Hacker News by 36 people: 3 stories, 36 comments · first 2014-08-24 · latest 2026-09-14
20082026
-
Something as important as https://github.com/google/closure-compiler/issues/2731 that is in ES2022 standard (Yes, released near 4 years ago) is still not implemented. Lots of new code don't compile with it. It has become a liability in the…
comment by fg137 · 2026-04-08 · in JSIR: A High-Level IR for JavaScript -
…with this dependabot giving you thousands of false positives due to the deep dependency tree). [1] https://github.com/google/closure-compiler
comment by chii · 2026-02-21 · in Turn Dependabot off -
The [Closure Compiler]( https://github.com/google/closure-compiler ) is still active. The [Closure Library]( https://github.com/google/closure-library ) is done. Very confusing, I know
comment by myko · 2025-07-06 · in ClojureScript from First Principles [video] -
…outside Google, but (imo) were pretty great in the days before TypeScript. (Disclosure: Googler) 0. https://github.com/google/closure-compiler/wiki/Annotating-J...
comment by jkaptur · 2024-10-31 · in Google CEO says more than a quarter of the company's new code is created by AI -
Notably not the Closure Compiler https://github.com/google/closure-compiler
comment by nateglims · 2024-08-29 · in Google Closure Library has been archived -
This can give you some hints of the current status of closure compiler: https://github.com/google/closure-compiler/issues/2731 I happen to know this because we have some old projects that depend on this and are working hard to get rid of…
comment by rty32 · 2024-07-25 · in Node.js adds experimental support for TypeScript -
…Google's Closure had an (IMHO) nicer approach (using doc comments for type annotations, see: https://github.com/google/closure-compiler/wiki/Types-in-the... ), but I don't get the impression it'll ever catch on outside Google.
comment by fhd2 · 2024-05-04 · in Figma’s Journey to TypeScript -
Seems like an active project: https://github.com/google/closure-compiler
comment by nolist_policy · 2024-03-18 · in Google Closure -
…so I'm not sure any of today's minifiers actually do that. (Edit - turns out Closure Compiler does: https://github.com/google/closure-compiler/wiki/FAQ#closure-... )
comment by AshleysBrain · 2023-07-17 · in Minify and Gzip (2022) -
Closure Compiler follows the same line of thinking: https://github.com/google/closure-compiler/wiki/FAQ#closure-...
comment by julian37 · 2023-07-17 · in Minify and Gzip (2022) -
for those interested, https://jsdoc.app/tags-template.html is 404 but https://github.com/google/closure-compiler/wiki/Generic-Type... appears to be the thing (reinforcing my rage at the JFC situation with JSDoc specification)
comment by mdaniel · 2023-05-10 · in TS to JSDoc Conversion -
10 years ago I have used Closure compiler from Google, https://github.com/google/closure-compiler/wiki/Annotating-T... , as a type checker. We had to use for production a different minimizer, not the closure compiler, but it was extremely…
comment by _0w8t · 2023-05-10 · in TS to JSDoc Conversion -
i'm not sure you want them to write back https://github.com/google/closure-compiler/pull/3958 time to fork
comment by sgammon · 2022-07-25 -
…`for ()` vs `forEach`, etc AFAIK Google Closure Compiler [1] does similar things automagically. [1] https://github.com/google/closure-compiler
comment by 22c · 2021-09-06 · in Show HN: Auto-generate vanilla JavaScript alternatives for jQuery methods -
…existing JavaScript libraries were already typed, but with the awkward "types in comments" system: https://github.com/google/closure-compiler/wiki/Types-in-the... Their team only (though it's a big "only") needed to do the work to make…
comment by jefftk · 2021-07-06 · in Leaving Google -
Indeed: https://github.com/google/closure-compiler
comment by aloisdg · 2021-04-20 · in A curated list of JavaScript tooling not written in JavaScript -
…internal customers? An external-focused project would have better docs and do more outreach. [1] https://github.com/google/closure-compiler/commits/master [2] https://github.com/google/closure-compiler/wiki/Releases
comment by skybrian · 2018-08-21 · in Small Assets without the Headache in Elm 0.19 -
Some examples of "transpilers" targeting Javascript but writen in other languages: https://github.com/google/closure-compiler https://github.com/BuckleScript/bucklescript https://github.com/fastpack/fastpack Seems like on the average it…
comment by tjallingt · 2018-05-29 · in Show HN: Sucrase, 20x faster smaller-scoped alternative to Babel -
Ever heard of minimized JavaScript[0]? [0]: https://github.com/google/closure-compiler
comment by hjek · 2018-05-02 · in I've spent the last two years building a new email client -
By closure compiler, do you mean https://github.com/google/closure-compiler ? Because I don't think it's related to Clojure in any way.
comment by yorwba · 2018-02-08 · in Q1 2018 Funding Announcement -
…a solution to a problem can cause it to grow into a “standard”. Source: I invented Source Maps [1] https://github.com/google/closure-compiler [2] https://googlecode.blogspot.com/2009/11/introducing-closure-...
comment by jschorr · 2017-11-15 · in What is a Source Map -
…closure compiler[0], js* has a type system. You must just be willing to write it in the docs. [0]: https://github.com/google/closure-compiler/wiki/Types-in-the...
comment by oneweekwonder · 2017-09-16 · in Modern JavaScript Tutorial -
…have side effects and elides unused side-effect-free code, it does type-based optimizations ( https://github.com/google/closure-compiler/wiki/Type-Based-P... ), the list goes on and on. It's really like having GCC or LLVM for Javascript…
comment by cromwellian · 2017-09-11 · in Web frameworks are transforming from runtime libraries into optimizing compilers -
…where complicated generic type transitions can be defined with functional expressions. Examples: https://github.com/google/closure-compiler/blob/d1c1673d1d89... and https://github.com/google/closure-compiler/blob/55cf43ee31e8...…
comment by jart · 2017-04-22 · in Forall.js: Idris-like static types and invariant checks for JavaScript -
…It even does type-based optimization by disambiguating property names on prototypes by types ( https://github.com/google/closure-compiler/wiki/Type-Based-P... ) -- this alone I've measured at 14% code size reduction in my projects, and it…
comment by cromwellian · 2017-04-10 · in Closure Compiler vs Rollup vs Webpack -
…For example, there exists a Javascript compiler that puts static type annotations in the comments: https://github.com/google/closure-compiler/wiki/Annotating-J...
comment by cbhl · 2017-02-07 · in Systemd's slowly but steadily increased idealism about the world -
These are closure type annotations - https://github.com/google/closure-compiler/wiki/Annotating-J...
comment by phpnode · 2016-11-15 · in JSNice: Statistical renaming, type inference, and deobfuscation -
…compiler, so it can optimize way much better[1] [0]: https://github.com/angular/tsickle [1]: https://github.com/google/closure-compiler/wiki/Type-Based-P...
comment by localvoid · 2016-07-04 · in Closure Compiler: High-level overview of a compilation job -
…take up much less space though, if you take gzip compression into account. See for example here: https://github.com/google/closure-compiler/wiki/FAQ#closure-...
comment by julian37 · 2016-05-30 · in Microlight.js, a code highlighting library -
Google Closure compiler seems to already support this out of the box: https://github.com/google/closure-compiler/wiki/ECMAScript6 Edit: s/good/support/
comment by emidln · 2016-02-08 · in The cost of transpiling ES2015 in 2016 -
…until I read this, but then again, it only arrived last May. Here's some more information about it: https://github.com/google/closure-compiler/wiki/ECMAScript6
comment by Qerub · 2016-02-02 · in Investigating the overhead cost of compiled ES2015 -
…Overflow in 4096 bytes [2], where author also tried to write code that would compress more. [1] https://github.com/google/closure-compiler/wiki/FAQ#closure-... [2] http://danlec.com/blog/stackoverflow-in-4096-bytes
comment by hawski · 2016-02-02 · in The smallest JavaScript libraries on the internet -
Worth noting that Google Closure Compiler specifically optimizes for post-gzip size: https://github.com/google/closure-compiler/wiki/FAQ#closure-...
comment by julian37 · 2016-01-22 · in Advanced Closure Compiler vs. UglifyJS2 -
…(ES6, ES7 proposals, and a couple of features that aren't in either) into older versions. [3] [1]: https://github.com/google/closure-compiler/wiki/Releases#oct... [2]: https://github.com/google/closure-compiler/wiki/ECMAScript6#... (might…
comment by timothya · 2015-11-29 · in Must-See JavaScript Dev Tools -
…[0]: https://github.com/jterrace/js.js/ [1]: https://developers.google.com/closure/compiler/ / https://github.com/google/closure-compiler
comment by LukeShu · 2015-02-05 · in Js2js: A revolutionary open-source compiler from JavaScript to JavaScript -
…is not perfect, then it will be useless. For a working counterexample, see the Closure Compiler ( https://github.com/google/closure-compiler ), which adds a bolt-on, underspecified, occasionally-changing type system to Javascript.…
comment by arthurdenture · 2014-08-24 · in Revenge of the Types