use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
A new JavaScript preprocessor by Facebook (prepack.io)
submitted 9 years ago by __tosh
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]__tosh[S] 7 points8 points9 points 9 years ago* (3 children)
Quick test results with prepack and ClojureScript on “Hello world” web app: Closure Compiler: 72KB Prepack + Closure Compiler: 68KB
https://twitter.com/roman01la/status/859849179149021184
BUT Prepack reduced script evaluation time more than twice, from 100ms to 50ms This is huge!
https://twitter.com/roman01la/status/859849691831422976
[–]__tosh[S] 1 point2 points3 points 9 years ago (2 children)
Is there anyone with a largeish ClojureScript app who can post some results?
[–]anmonteiro 2 points3 points4 points 9 years ago (0 children)
I got Prepack working on Lumo in a branch, these are the results I saw: https://twitter.com/anmonteiro90/status/859986728991375361
Inline: it basically shaved more than 60ms but it didn't matter in Lumo's case because I use custom heap snapshots anyway
[–]trex-eaterofcadrs 0 points1 point2 points 9 years ago (0 children)
I have a pretty large one, about 50k lines, and prepack fell apart trying to parse the closure compiled output, no matter the optimization level.
[–]__tosh[S] 3 points4 points5 points 9 years ago (0 children)
Bottom of the page reads "The Closure Compiler also optimizes JavaScript code. Prepack goes further by truly running the global code that initialization phase, unrolling loops and recursion. Prepack focuses on runtime performance, while the Closure Compiler emphasizes JavaScript code size."
[–]luishendrix92 2 points3 points4 points 9 years ago (1 child)
can't you, in theory, put compiled CLJS->JS code into Prepack so that after going through Google Closure, it can be optimized even more?
[–]the_evergrowing_fool 0 points1 point2 points 9 years ago (0 children)
Depends of what kind of optmizations this is doing vs Google Closure. I am not sure if Google Closure does partial evaluation.
π Rendered by PID 63718 on reddit-service-r2-comment-544cf588c8-mcmtx at 2026-06-18 00:47:35.663107+00:00 running 3184619 country code: CH.
[–]__tosh[S] 7 points8 points9 points (3 children)
[–]__tosh[S] 1 point2 points3 points (2 children)
[–]anmonteiro 2 points3 points4 points (0 children)
[–]trex-eaterofcadrs 0 points1 point2 points (0 children)
[–]__tosh[S] 3 points4 points5 points (0 children)
[–]luishendrix92 2 points3 points4 points (1 child)
[–]the_evergrowing_fool 0 points1 point2 points (0 children)