Hacker GitHub

← All repos

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

Mentions per year 39 mentions · busiest year 2016 (8)
20082026
  1. 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
  2. …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
  3. 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
  4. …outside Google, but (imo) were pretty great in the days before TypeScript. (Disclosure: Googler) 0. https://github.com/google/closure-compiler/wiki/Annotating-J...
  5. Notably not the Closure Compiler https://github.com/google/closure-compiler
    comment by nateglims · 2024-08-29 · in Google Closure Library has been archived
  6. 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…
  7. …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
  8. Seems like an active project: https://github.com/google/closure-compiler
    comment by nolist_policy · 2024-03-18 · in Google Closure
  9. …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)
  10. 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)
  11. 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
  12. 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
  13. 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
  14. …`for ()` vs `forEach`, etc AFAIK Google Closure Compiler [1] does similar things automagically. [1] https://github.com/google/closure-compiler
  15. …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
  16. Indeed: https://github.com/google/closure-compiler
  17. …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
  18. 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…
  19. Ever heard of minimized JavaScript[0]? [0]: https://github.com/google/closure-compiler
  20. 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
  21. …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
  22. …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
  23. …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…
  24. …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...…
  25. …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
  26. …For example, there exists a Javascript compiler that puts static type annotations in the comments: https://github.com/google/closure-compiler/wiki/Annotating-J...
  27. These are closure type annotations - https://github.com/google/closure-compiler/wiki/Annotating-J...
  28. …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...
  29. …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
  30. 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
  31. …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
  32. …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
  33. 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
  34. …(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
  35. …[0]: https://github.com/jterrace/js.js/ [1]: https://developers.google.com/closure/compiler/ / https://github.com/google/closure-compiler
  36. …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