Just whistling in that there's a project, that has tree-shaker similar to proguard, but written (partly) in Clojure: https://github.com/portkey-cloud/portkey Portkey has been a bit dormant for a while, but we had some success as minimizing amount of bytecode that's shipped to AWS Lambda, to keep a repl-like development experience.
tiistai 30. tammikuuta 2018 18.10.32 UTC+2 Laurens Van Houtven kirjoitti: > > This is great! Thanks Ning! Do you have any experience/pointers/projects > around reducing deployable size on the code side (as opposed to runtime)? > They seem like very related concerns. I've messed with proguard but it > mostly seems to be great at producing jars that are 10% of the size and > don't actually work ;-) > > On Tue, Jan 30, 2018 at 8:24 AM, Ning Sun <class...@gmail.com > <javascript:>> wrote: > >> Hi clojurians, >> >> I just created a Leiningen plugin that creates custom Java Runtime >> Environment based on you configuration. The custom JRE can be as small >> as 29MB, and it's fully capable to run a Ring web app. >> >> With this plugin: >> 0. You can test your Clojure application against the custom JRE; >> 1. You can distribute your Clojure application with runtime attached and >> don't have to assume your user has JRE installed; >> 2. You can create minimal Docker image for your Clojure service, it >> takes less than 50MB at minimal setup, comparing to others can be 350MB+; >> 3. You discover. >> >> The plugin is here: >> https://github.com/sunng87/lein-jlink >> >> I have a blog post about it: >> https://sunng.info/blog/custom-jre-for-clojure-app-distribution.html >> >> And I'd like to hear your ideas about it. >> >> Don't forget it requires JDK9 or 10. Because jlink is a feature >> introduced in JDK9. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com >> <javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.